Summary: Round Robin Database Tool to store and display time-series data Name: rrdtool Version: 1.2.13 Release: 1.n0i.12 Group: Applications/Databases License: GPL URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ Source0: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel, libpng-devel, freetype-devel, libart_lgpl-devel %{!?_without_rrdcgi:BuildRequires: cgilib-devel} %{!?_without_perl:BuildRequires: perl} %{!?_without_python:BuildRequires: python-devel} %{!?_without_tcl:BuildRequires: tcl-devel} %description RRD is the Acronym for Round Robin Database. RRD is a system to store and display time-series data (i.e. network bandwidth, machine-room temperature, server load average). It stores the data in a very compact way that will not expand over time, and it presents useful graphs by processing the data to enforce a certain data density. It can be used either via simple wrapper scripts (from shell or Perl) or via frontends that poll network devices and put a friendly user interface on it. Rebuilding options: --without rrdcgi = don't build RRD CGI --without perl = don't build Perl support --without python = don't build Python support --without tcl = don't build Tcl support %package devel Summary: RRDtool static libraries and header files Group: Development/Libraries Requires: %{name} >= %{version} %description devel RRD is the Acronym for Round Robin Database. RRD is a system to store and display time-series data (i.e. network bandwidth, machine-room temperature, server load average). This package allow you to use directly this library. %if %{!?_without_rrdcgi:1}%{?_without_rrdcgi:0} %package rrdcgi Summary: Create web pages containing RRD graphs Group: Development/Libraries Requires: %{name} >= %{version} %description rrdcgi rrdcgi is a sort of very limited script interpreter. Its purpose is to run as a cgi-program and parse a web page template containing special tags. %endif %if %{!?_without_perl:1}%{?_without_perl:0} %package perl Summary: RRDtool perl support files Group: Development/Libraries Requires: %{name} >= %{version} Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) AutoReq: no %description perl RRDTool perl support files %endif %if %{!?_without_python:1}%{?_without_python:0} %package python Summary: RRDtool python support files Group: Development/Libraries Requires: %{name} >= %{version} Requires: python %description python RRDTool python support files %endif %if %{!?_without_tcl:1}%{?_without_tcl:0} %package tcl Summary: RRDtool Tcl extension Group: Development/Libraries Requires: %{name} >= %{version} Requires: tcl %description tcl TCLRRD is A TCL interpreter extension to access the RRD library %endif %prep %setup %if %{!?_without_tcl:1}%{?_without_tcl:0} # fix Tobias' understanding of TCL_PACKAGE_PATH: it's a LIST! %{__sed} -i 's@\$TCL_PACKAGE_PATH/@\${TCL_PACKAGE_PATH/ *//}@' configure.ac %endif %build export CFLAGS="$RPM_OPT_FLAGS -fno-unsafe-math-optimizations -fno-finite-math-only" %configure \ %{!?_without_perl:--with-perl-options="INSTALLDIRS=vendor OPTIMIZE='$RPM_OPT_FLAGS'"} \ %{?_without_perl:--disable-perl} \ %{?_without_python:--disable-python} \ %{?_without_rrdcgi:--disable-rrdcgi} \ %{?_without_tcl:--disable-tcl} \ # parallel building is unsafe :( %{__make} # %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %{__strip} $RPM_BUILD_ROOT{%{_bindir}/*,%{_libdir}/librrd*.so.*} # drop examples (will install them as docs in perl package) %{__rm} -rf $RPM_BUILD_ROOT%{_prefix}/%{name}-%{version} # drop docs (will set them in the rpm way) %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} rrdtool-docs rmdir $RPM_BUILD_ROOT%{_docdir} # fix perl installation %if %{!?_without_perl:1}%{?_without_perl:0} %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/perl5/5.* %{__rm} -f $RPM_BUILD_ROOT%{perl_vendorarch}/ntmake.pl find $RPM_BUILD_ROOT%{perl_vendorarch} -name .packlist -delete || : find $RPM_BUILD_ROOT%{perl_vendorarch} -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT%{perl_vendorarch} -depth -type d -a -empty -delete || : find $RPM_BUILD_ROOT%{perl_vendorarch} -type f |xargs -r %{__chmod} 644 %endif %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_bindir}/rrdtool %{_bindir}/rrdupdate %{_libdir}/librrd*.so.* %{_datadir}/%{name} %{_mandir}/man1/[a-q]* %{_mandir}/man1/r[a-q]* %{_mandir}/man1/rrd[abd-z-]* %{_mandir}/man1/rrdcreate* %doc CHANGES CONTRIBUTORS COPYING COPYRIGHT NEWS README TODO %doc rrdtool-docs/* %files devel %defattr(-,root,root,-) %doc rrdtool-docs/* %{_includedir}/* %{_libdir}/librrd*.so %{_libdir}/librrd*.a %exclude %{_libdir}/librrd*.la %if %{!?_without_rrdcgi:1}%{?_without_rrdcgi:0} %files rrdcgi %defattr(-,root,root,-) %{_bindir}/rrdcgi %{_mandir}/man1/rrdcgi.1* %endif %if %{!?_without_perl:1}%{?_without_perl:0} %files perl %defattr(-,root,root,-) %{perl_vendorlib}/*.pm %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/* %doc examples/*.pl examples/*.cgi %endif %if %{!?_without_python:1}%{?_without_python:0} %files python %defattr(-,root,root,-) %{_libdir}/python*/site-packages/* %doc bindings/python/README bindings/python/AUTHORS bindings/python/COPYING %endif %if %{!?_without_tcl:1}%{?_without_tcl:0} %files tcl %defattr(-,root,root,-) %doc bindings/tcl/README %{_libdir}/tclrrd* %dir %{_libdir}/rrdtool %{_libdir}/rrdtool/*.tcl %endif %changelog * Sun Jun 11 2006 Marius FERARU - 1.2.12-1.n0i.12 - version 1.2.13 * Fri Apr 07 2006 Marius FERARU - 1.2.12-1.n0i.11 - version 1.2.12 * Thu Nov 24 2005 Marius FERARU 1.2.11-1.n0i.10 - version 1.2.11 * Thu Jul 28 2005 Marius FERARU 1.2.10-2.n0i.9 - rebuild with default options (iep, baked a cgilib package) * Wed Jul 27 2005 Marius FERARU 1.2.10-1.n0i.8 - version 1.2.10 - rewrote spec (new version, new fixes) :( * Mon Nov 29 2004 Marius FERARU 1.0.49-2.n0i.7 - rebuild against perl 5.8.6 * Thu Nov 25 2004 Marius FERARU 1.0.49-1.n0i.6 - version 1.0.49 * Fri Apr 30 2004 Marius Feraru 1.0.48-2.n0i.5 - automatic rebuild * Thu Apr 22 2004 Marius FERARU 1.0.48-1.n0i.4 - rrdtool 1.0.48 - drop Tcl patch as now Makefile seems to be fixed by vendor * Mon Feb 09 2004 Marius FERARU 1.0.46-2.n0i.3 - rebuild with perl 5.8.3 * Fri Jan 16 2004 Marius FERARU 1.0.46-1.n0i.2 - version 1.0.46 - Fedora-ized spec - moved perl stuff into _vendorarch - enabled usage of system zlib and libpng by default (use --without if don't want this to happen) - Tcl people get happy: baked a patch for Makefile-ing Tcl extension so you can now use RRD from your favorite language :) - rewrote documentation installation (texts were not real plain ascii) - pushed perl stuff into a separate package * Thu Jul 31 2003 Marius FERARU 1.0.45-1.n0i.1 - Update to 1.0.45. - spec cleanups - dropped useless build CFLAGS optimizations - added _clarifying_ CFLAGS! rrdtool need IEEE math stuff - cleaned up perl code * Wed Apr 16 2003 Matthias Saou - Update to 1.0.42. * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. * Wed Mar 5 2003 Matthias Saou - Added explicit perl version dependency. * Sun Feb 23 2003 Matthias Saou - Update to 1.0.41. * Fri Jan 31 2003 Matthias Saou - Update to 1.0.40. - Spec file cleanup. * Fri Jul 05 2002 Henri Gomez - 1.0.39 * Mon Jun 03 2002 Henri Gomez - 1.0.38 * Fri Apr 19 2002 Henri Gomez - 1.0.37 * Tue Mar 12 2002 Henri Gomez - 1.0.34 - rrdtools include zlib 1.1.4 which fix vulnerabilities in 1.1.3