Resynchronize with upstream package maintainer version.

Wed, 08 Aug 2012 20:31:17 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 08 Aug 2012 20:31:17 +0200
changeset 491
ccaf26ae9b81
parent 490
615d51fb3fea
child 492
e66ba21516b4

Resynchronize with upstream package maintainer version.

rrdtool/rrdtool.patch file | annotate | diff | comparison | revisions
rrdtool/rrdtool.spec file | annotate | diff | comparison | revisions
     1.1 --- a/rrdtool/rrdtool.patch	Wed Aug 08 20:29:13 2012 +0200
     1.2 +++ b/rrdtool/rrdtool.patch	Wed Aug 08 20:31:17 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4 -Index: RRDTool-OO-0.31/Makefile.PL
     1.5 ---- RRDTool-OO-0.31/Makefile.PL.orig	2010-01-09 00:50:31.000000000 +0100
     1.6 -+++ RRDTool-OO-0.31/Makefile.PL	2010-12-27 08:45:34.000000000 +0100
     1.7 +Index: RRDTool-OO-0.32/Makefile.PL
     1.8 +--- RRDTool-OO-0.32/Makefile.PL.orig	2010-06-26 05:32:42.000000000 +0200
     1.9 ++++ RRDTool-OO-0.32/Makefile.PL	2012-03-08 10:57:56.000000000 +0100
    1.10  @@ -10,52 +10,12 @@
    1.11       }
    1.12   };
    1.13 @@ -54,18 +54,18 @@
    1.14                            RRDs          => 0,
    1.15                            }, # e.g., Module::Name => 1.1
    1.16       $ExtUtils::MakeMaker::VERSION >= 6.50 ? (%$meta_merge) : (),
    1.17 -Index: RRDTool-OO-0.31/lib/RRDTool/OO.pm
    1.18 ---- RRDTool-OO-0.31/lib/RRDTool/OO.pm.orig	2010-05-26 02:26:34.000000000 +0200
    1.19 -+++ RRDTool-OO-0.31/lib/RRDTool/OO.pm	2010-12-27 08:45:34.000000000 +0100
    1.20 -@@ -5,7 +5,6 @@
    1.21 - use warnings;
    1.22 +Index: RRDTool-OO-0.32/lib/RRDTool/OO.pm
    1.23 +--- RRDTool-OO-0.32/lib/RRDTool/OO.pm.orig	2012-03-07 17:29:01.000000000 +0100
    1.24 ++++ RRDTool-OO-0.32/lib/RRDTool/OO.pm	2012-03-08 21:30:51.000000000 +0100
    1.25 +@@ -6,7 +6,6 @@
    1.26   use Carp;
    1.27   use RRDs;
    1.28 + use Data::Dumper;
    1.29  -use Log::Log4perl qw(:easy);
    1.30   
    1.31 - our $VERSION = '0.31';
    1.32 + our $VERSION = '0.32';
    1.33   
    1.34 -@@ -189,7 +188,7 @@
    1.35 +@@ -203,7 +202,7 @@
    1.36           # Check if we got all mandatory parameters
    1.37       for(@{$ref->{mandatory}}) {
    1.38           if(! exists $options_hash{$_}) {
    1.39 @@ -74,7 +74,7 @@
    1.40                   "Mandatory parameter '$_' not set " .
    1.41                   "in $method() (@{[%mandatory]}) (@$options)");
    1.42           }
    1.43 -@@ -201,7 +200,7 @@
    1.44 +@@ -215,7 +214,7 @@
    1.45           for(keys %options_hash) {
    1.46               if(! exists $optional{$_} and
    1.47                  ! exists $mandatory{$_}) {
    1.48 @@ -84,31 +84,12 @@
    1.49               }
    1.50           }
    1.51  Index: bindings/perl-shared/Makefile.PL
    1.52 ---- bindings/perl-shared/Makefile.PL.orig	2010-12-17 17:10:20.000000000 +0100
    1.53 -+++ bindings/perl-shared/Makefile.PL	2010-12-27 08:47:23.000000000 +0100
    1.54 -@@ -1,52 +1,6 @@
    1.55 - use ExtUtils::MakeMaker;
    1.56 - use Config;
    1.57 --# See lib/ExtUtils/MakeMaker.pm for details of how to influence
    1.58 --# the contents of the Makefile that is written.
    1.59 --
    1.60 --if (($Config{'osname'} eq 'MSWin32' && $ENV{'OSTYPE'} eq '')) {
    1.61 --	WriteMakefile(
    1.62 --		'NAME'         => 'RRDs',
    1.63 --		'VERSION_FROM' => 'RRDs.pm',
    1.64 --		'DEFINE'       => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL} -D_CRT_SECURE_NO_WARNINGS -DWIN32",
    1.65 --		'INC'          => '-I../../src/ "-IC:/Perl/lib/CORE" -I"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include" -I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include"',
    1.66 --		'LDDLFLAGS'    => '-dll -nologo -opt:ref,icf -ltcg -libpath:"C:\Perl\lib\CORE" -machine:X86',
    1.67 --		'LDFLAGS'      => '-nologo -opt:ref,icf -ltcg -libpath:"C:\Perl\lib\CORE" -machine:X86',
    1.68 --		'OPTIMIZE'     => '-O2 -MD',
    1.69 --		'LIBS'         => '"..\..\win32\Release\rrdlib.lib" "..\..\win32\Release" "C:\Perl\lib\CORE\perl514.lib" -L../../contrib/lib -L"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" -L"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib" -L"C:\Perl\lib\CORE"',
    1.70 --		'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' },
    1.71 --		($] ge '5.005') ? (
    1.72 --			'AUTHOR'   => 'Tobias Oetiker (tobi@oetiker.ch)',
    1.73 --			'ABSTRACT' => 'Round Robin Database Tool',
    1.74 --		) : ()
    1.75 --	);
    1.76 --}else{
    1.77 +--- bindings/perl-shared/Makefile.PL.orig	2011-12-15 17:07:05.000000000 +0100
    1.78 ++++ bindings/perl-shared/Makefile.PL	2012-03-08 10:57:56.000000000 +0100
    1.79 +@@ -20,32 +20,7 @@
    1.80 + 		) : ()
    1.81 + 	);
    1.82 + }else{
    1.83  -	# if the last argument when calling Makefile.PL is RPATH=/... and ... is the
    1.84  -	# path to librrd.so then the Makefile will be written such that RRDs.so knows
    1.85  -	# where to find librrd.so later on ... 
    1.86 @@ -135,32 +116,25 @@
    1.87  -	} else {
    1.88  -		$librrd = "-L../../src/.libs/ $R -lrrd";
    1.89  -	}
    1.90 --
    1.91 -+my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib @l_pangocairo@";
    1.92 ++    my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib -lcairo -lpangocairo -lpixman-1 -lpango -lpangoft2 -lfreetype -lpng -lgobject2 -lgio2 -lgmodule2 -lglib2 -lfontconfig -lfreetype -lxml2 -lexpat -lpcre -lz -liconv -lintl";
    1.93 + 
    1.94   	WriteMakefile(
    1.95   		'NAME'         => 'RRDs',
    1.96 - 		'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
    1.97 -@@ -59,5 +13,4 @@
    1.98 - 		'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' },
    1.99 - 		($^O eq 'darwin') ? ( 'LDDLFLAGS'    => "-L../../src/.libs/ $Config{lddlflags}" ) : ()
   1.100 - 	);
   1.101 --}
   1.102 - 
   1.103  Index: bindings/python/setup.py
   1.104  --- bindings/python/setup.py.orig	2008-03-15 11:39:48.000000000 +0100
   1.105 -+++ bindings/python/setup.py	2010-12-27 08:45:34.000000000 +0100
   1.106 ++++ bindings/python/setup.py	2012-03-08 10:57:56.000000000 +0100
   1.107  @@ -47,7 +47,7 @@
   1.108             Extension(
   1.109               "rrdtoolmodule",
   1.110               ["rrdtoolmodule.c"],
   1.111  -            libraries=['rrd'],
   1.112 -+            libraries=['rrd', 'freetype', 'png', 'z'],
   1.113 ++            libraries=['rrd', 'freetype', 'art_lgpl', 'png', 'z'],
   1.114               library_dirs=[library_dir],
   1.115               include_dirs=[include_dir],
   1.116             )
   1.117  Index: configure
   1.118 ---- configure.orig	2010-12-26 20:51:06.000000000 +0100
   1.119 -+++ configure	2010-12-27 08:45:34.000000000 +0100
   1.120 +--- configure.orig	2012-01-24 11:09:06.000000000 +0100
   1.121 ++++ configure	2012-03-08 10:57:56.000000000 +0100
   1.122  @@ -25560,7 +25560,7 @@
   1.123     $as_echo_n "(cached) " >&6
   1.124   else
   1.125 @@ -236,8 +210,8 @@
   1.126   
   1.127   save_CPPFLAGS="$CPPFLAGS"
   1.128  Index: src/rrd_daemon.c
   1.129 ---- src/rrd_daemon.c.orig	2010-12-21 17:06:32.000000000 +0100
   1.130 -+++ src/rrd_daemon.c	2010-12-27 08:45:34.000000000 +0100
   1.131 +--- src/rrd_daemon.c.orig	2011-12-16 08:29:44.000000000 +0100
   1.132 ++++ src/rrd_daemon.c	2012-03-08 10:57:56.000000000 +0100
   1.133  @@ -105,7 +105,7 @@
   1.134   #include <tcpd.h>
   1.135   #endif /* HAVE_LIBWRAP */
   1.136 @@ -248,8 +222,8 @@
   1.137   
   1.138   #define RRDD_LOG(severity, ...) \
   1.139  Index: src/rrd_open.c
   1.140 ---- src/rrd_open.c.orig	2010-12-26 20:24:48.000000000 +0100
   1.141 -+++ src/rrd_open.c	2010-12-27 08:45:34.000000000 +0100
   1.142 +--- src/rrd_open.c.orig	2012-01-24 11:08:48.000000000 +0100
   1.143 ++++ src/rrd_open.c	2012-03-08 10:57:56.000000000 +0100
   1.144  @@ -296,7 +296,7 @@
   1.145   #endif
   1.146       if (rdwr & RRD_CREAT)
     2.1 --- a/rrdtool/rrdtool.spec	Wed Aug 08 20:29:13 2012 +0200
     2.2 +++ b/rrdtool/rrdtool.spec	Wed Aug 08 20:31:17 2012 +0200
     2.3 @@ -1,6 +1,6 @@
     2.4  ##
     2.5  ##  rrdtool.spec -- OpenPKG RPM Package Specification
     2.6 -##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##  Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.8  ##
     2.9  ##  Permission to use, copy, modify, and distribute this software for
    2.10  ##  any purpose with or without fee is hereby granted, provided that
    2.11 @@ -23,7 +23,7 @@
    2.12  
    2.13  #   package version
    2.14  %define       V_rrdtool          1.4.7
    2.15 -%define       V_rrdtool_oo       0.31
    2.16 +%define       V_rrdtool_oo       0.32
    2.17  %define       V_rrdtool_creator  1.0
    2.18  %define       V_rrd_simple       1.44
    2.19  
    2.20 @@ -38,7 +38,7 @@
    2.21  Group:        Database
    2.22  License:      LGPL
    2.23  Version:      %{V_rrdtool}
    2.24 -Release:      20120208
    2.25 +Release:      20120308
    2.26  
    2.27  #   package options
    2.28  %option       with_perl        no
    2.29 @@ -52,10 +52,8 @@
    2.30  Patch0:       rrdtool.patch
    2.31  
    2.32  #   build information
    2.33 -Prefix:       %{l_prefix}
    2.34 -BuildRoot:    %{l_buildroot}
    2.35 -BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module
    2.36 -PreReq:       OpenPKG, openpkg >= 20040130
    2.37 +BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module, intltool
    2.38 +PreReq:       OpenPKG, openpkg >= 20100101
    2.39  BuildPreReq:  png, zlib, freetype, pango, cairo, libxml
    2.40  PreReq:       png, zlib, freetype, pango, cairo, libxml
    2.41  %if "%{with_perl}" == "yes"
    2.42 @@ -66,8 +64,6 @@
    2.43  BuildPreReq:  python
    2.44  PreReq:       python
    2.45  %endif
    2.46 -AutoReq:      no
    2.47 -AutoReqProv:  no
    2.48  
    2.49  %description
    2.50      RRD is the Acronym for Round Robin Database. RRD is a system
    2.51 @@ -107,25 +103,17 @@
    2.52      %setup -q -D -T -a 2
    2.53      %setup -q -D -T -a 3
    2.54      %patch -p0
    2.55 -    %{l_shtool} subst \
    2.56 -        -e 's;\-std=c99 *;;g' \
    2.57 -        configure
    2.58 -    %{l_shtool} subst \
    2.59 -        -e 's;@l_pangocairo@;`pkg-config pangocairo --libs-only-l`;' \
    2.60 -        bindings/perl-shared/Makefile.PL
    2.61      rm -f bindings/perl-shared/ntmake.pl
    2.62      rm -rf RRDTool-Creator-*/_build
    2.63  
    2.64  %build
    2.65      #   configure package
    2.66 -    ( echo "ac_cv_path_PERL=no"
    2.67 -      echo "ac_cv_have_broken_isfinite=yes"
    2.68 -    ) >config.cache
    2.69 +    echo "ac_cv_path_PERL=no" >config.cache
    2.70      CC="%{l_cc}" \
    2.71      CPPFLAGS="%{l_cppflags}" \
    2.72      CFLAGS="%{l_cflags -O}" \
    2.73      LDLAGS="%{l_ldflags}" \
    2.74 -    LIBS="`pkg-config pangocairo --libs-only-l`" \
    2.75 +    LIBS="`pkg-config pangocairo --libs`" \
    2.76      ./configure \
    2.77          --cache-file=./config.cache \
    2.78          --prefix=%{l_prefix} \
    2.79 @@ -138,6 +126,7 @@
    2.80          --disable-tcl \
    2.81          --disable-ruby \
    2.82          --disable-shared \
    2.83 +        --disable-nls \
    2.84          --enable-rrdcgi
    2.85  
    2.86      #   build package
    2.87 @@ -154,14 +143,13 @@
    2.88  %endif
    2.89  
    2.90  %install
    2.91 -    rm -rf $RPM_BUILD_ROOT
    2.92  
    2.93      #   install package
    2.94      %{l_shtool} subst \
    2.95          -e 's/^\(install-data-am:\).*/\1/' \
    2.96          Makefile
    2.97      %{l_make} %{l_mflags} install \
    2.98 -        DESTDIR=$RPM_BUILD_ROOT DESTDIR="$RPM_BUILD_ROOT"
    2.99 +        DESTDIR=$RPM_BUILD_ROOT AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   2.100  
   2.101      #   install Perl part
   2.102  %if "%{with_perl}" == "yes"
   2.103 @@ -196,5 +184,4 @@
   2.104  %files -f files
   2.105  
   2.106  %clean
   2.107 -    rm -rf $RPM_BUILD_ROOT
   2.108  

mercurial