]> git.pld-linux.org Git - packages/rrdtool.git/commitdiff
- added system-libs patch to use system zlib, libpng and gd
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 18 Apr 2003 20:28:07 +0000 (20:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 2

Changed files:
    rrdtool-system-libs.patch -> 1.1
    rrdtool.spec -> 1.54

rrdtool-system-libs.patch [new file with mode: 0644]
rrdtool.spec

diff --git a/rrdtool-system-libs.patch b/rrdtool-system-libs.patch
new file mode 100644 (file)
index 0000000..ab69765
--- /dev/null
@@ -0,0 +1,97 @@
+diff -Nur rrdtool-1.0.42.orig/gd1.3/Makefile.am rrdtool-1.0.42/gd1.3/Makefile.am
+--- rrdtool-1.0.42.orig/gd1.3/Makefile.am      2003-04-04 23:23:55.000000000 +0200
++++ rrdtool-1.0.42/gd1.3/Makefile.am   2003-04-17 20:48:34.000000000 +0200
+@@ -3,15 +3,14 @@
+ noinst_LTLIBRARIES  = librrd_gd.la
+ librrd_gd_la_SOURCES = \
+-      gd.c            gdfontg.c       gdfontl.c       gdfontmb.c      \
+-      gdfonts.c       gdfontt.c       gdlucidab10.c   gdlucidab12.c   \
++      gdlucidab10.c   gdlucidab12.c   \
+       gdlucidab14.c   gdlucidan10.c   gdlucidan12.c   gdlucidan14.c \
+       gdlucidan10l2.c  gdlucidab12l2.c \
+-      gd.h           gdfontmb.h     gdlucidab10.h  gdlucidan10.h \
+-      gdfontg.h      gdfonts.h      gdlucidab12.h  gdlucidan12.h \
+-      gdfontl.h      gdfontt.h      gdlucidab14.h  gdlucidan14.h \
++      gdlucidab10.h  gdlucidan10.h \
++      gdlucidab12.h  gdlucidan12.h \
++      gdlucidab14.h  gdlucidan14.h \
+       gdlucidan10l2.h  gdlucidab12l2.h
+-
++librrd_gd_la_LIBADD = -lgd
+ EXTRA_DIST= README.rrdtool demoin.gif gd.dsp gd.dsw index.html readme.txt \
+       webgif.c mtables.c mathmake.c giftogd.c
+diff -Nur rrdtool-1.0.42.orig/Makefile.am rrdtool-1.0.42/Makefile.am
+--- rrdtool-1.0.42.orig/Makefile.am    2003-04-17 20:46:54.000000000 +0200
++++ rrdtool-1.0.42/Makefile.am 2003-04-17 20:47:27.000000000 +0200
+@@ -2,7 +2,7 @@
+ RSYNC = rsync --rsh=ssh
+ # build the following subdirectories
+-SUBDIRS = cgilib-0.4 config gd1.3 zlib-1.1.4 libpng-1.0.9 \
++SUBDIRS = cgilib-0.4 config gd1.3 \
+           src doc examples contrib tcl
+ # the following files are not mentioned in any other Makefile
+diff -Nur rrdtool-1.0.42.orig/src/Makefile.am rrdtool-1.0.42/src/Makefile.am
+--- rrdtool-1.0.42.orig/src/Makefile.am        2002-05-07 23:51:19.000000000 +0200
++++ rrdtool-1.0.42/src/Makefile.am     2003-04-17 20:49:49.000000000 +0200
+@@ -7,16 +7,12 @@
+ CGI_INC_DIR       = $(top_srcdir)/@CGI_LIB_DIR@
+ GD_INC_DIR        = $(top_srcdir)/@GD_LIB_DIR@
+-PNG_INC_DIR       = $(top_srcdir)/@PNG_LIB_DIR@
+-ZLIB_INC_DIR      = $(top_srcdir)/@ZLIB_LIB_DIR@
+ CGI_LIB_DIR       = $(top_builddir)/@CGI_LIB_DIR@
+ GD_LIB_DIR        = $(top_builddir)/@GD_LIB_DIR@
+-PNG_LIB_DIR       = $(top_builddir)/@PNG_LIB_DIR@
+-ZLIB_LIB_DIR      = $(top_builddir)/@ZLIB_LIB_DIR@
+-INCLUDES          = -I$(CGI_INC_DIR) -I$(GD_INC_DIR) -I$(PNG_INC_DIR) -I$(ZLIB_INC_DIR)
++INCLUDES          = -I$(CGI_INC_DIR) -I$(GD_INC_DIR)
+ #COMPILE   = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_EXTRA)
+ #LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_EXTRA)
+@@ -57,8 +53,7 @@
+ RRD_LIBS =                            \
+       $(CGI_LIB_DIR)/librrd_cgi.la    \
+       $(GD_LIB_DIR)/librrd_gd.la      \
+-      $(PNG_LIB_DIR)/librrd_png.la    \
+-      $(ZLIB_LIB_DIR)/librrd_z.la
++      -lpng -lz
+ lib_LTLIBRARIES           = librrd.la
+ noinst_LTLIBRARIES        = librrd_private.la
+--- rrdtool-1.0.42/perl-shared/Makefile.PL.in.orig     2002-03-21 22:52:35.000000000 +0100
++++ rrdtool-1.0.42/perl-shared/Makefile.PL.in  2003-04-17 21:07:29.000000000 +0200
+@@ -4,7 +4,7 @@
+ # the contents of the Makefile that is written.
+ # Specify the location of the archive containing PIC compiled object files.
+-my $librrd = "-L../src/.libs/ -lrrd_private"  ;
++my $librrd = "-L../src/.libs/ -lrrd"  ;
+ WriteMakefile(
+     'NAME'         => 'RRDs',
+@@ -13,7 +13,6 @@
+     'INC'          => '-I@top_srcdir@/src -I@top_srcdir@/gd1.3',
+     # where to look for the necessary libraries 
+     # Perl will figure out which one is valid
+-    'depend'     => {'RRDs.c' => "../src/.libs/librrd_private.a"},
+     'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
+     'realclean'    => {FILES => 't/demo?.rrd t/demo?.gif' }
+ );
+--- rrdtool-1.0.42/tcl/Makefile.am.orig        2002-02-26 11:21:52.000000000 +0100
++++ rrdtool-1.0.42/tcl/Makefile.am     2003-04-17 21:07:51.000000000 +0200
+@@ -21,7 +21,7 @@
+ if COMP_TCL
+ tclrrd$(TCL_SHLIB_SUFFIX): tclrrd.o
+-      $(TCL_SHLIB_LD) $(LIBDIRS) $< -o $@ -lrrd_private -lm
++      $(TCL_SHLIB_LD) $(LIBDIRS) $< -o $@ -lrrd -lm
+ tclrrd.o: tclrrd.c
+       $(CC) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(INCLUDES) -c $< -DVERSION=\"$(VERSION)\"
index 37caef798d91e575462fcb203095a45f02282123..ed091f4bca0eb3943e37777fa7276bb2f2c29c14 100644 (file)
@@ -6,19 +6,23 @@ Summary(ru):  RRDtool - 
 Summary(uk):   RRDtool - ÃÅ ÓÉÓÔÅÍÁ ÚÂÅÒ¦ÇÁÎÎÑ ÔÁ ÐÏËÁÚÕ ÓÅÒ¦ÊÎÉÈ ÄÁÎÉÈ
 Name:          rrdtool
 Version:       1.0.42
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/Databases
 Source0:       http://ee-staff.ethz.ch/~oetiker/webtools/rrdtools/pub/%{name}-%{version}.tar.gz
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-perl-install.patch
 Patch2:                %{name}-acfix.patch
+Patch3:                %{name}-system-libs.patch
 URL:           http://ee-staff.ethz.ch/~oetiker/webtools/rrdtol/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: gd-devel >= 1.3
+BuildRequires: libpng-devel >= 1.0.9
 BuildRequires: libtool
 BuildRequires: perl-devel >= 5.6.1
 #BuildRequired:        tcl-devel
+BuildRequires: zlib-devel >= 1.1.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -140,6 +144,7 @@ RRD - 
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
@@ -173,12 +178,12 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 mv -f ../../../examples/* .;
 mv -f ../../../contrib .)
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/rrd*
This page took 1.056418 seconds and 4 git commands to generate.