Name: rrdtool Version: 1.2.23 Release: 2 Summary: Round Robin Database Tool to store and display time-series data License: GPL Group: Applications/Databases URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ Source: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz Patch0: rrdtool-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel BuildRequires: libart_lgpl-devel >= 2.0 BuildRequires: libpng-devel BuildRequires: zlib-devel BuildRequires: freetype2-devel Requires: freetype2 Requires: zlib Requires: libpng Requires: libart_lgpl %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. %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. %package -n rrdtool-perl Summary: Perl RRDtool bindings Group: Development/Languages Requires: %{name} = %{version} BuildRequires: perl = 5.8.2 Requires: perl = 5.8.2 %description -n rrdtool-perl The Perl RRDtool bindings. #%package -n php-rrdtool #Summary: RRDtool module for PHP #Group: Development/Languages #Requires: %{name} = %{version}, php >= 4.0 #%description -n php-rrdtool #The php-%{name} package includes a dynamic shared object (DSO) that adds #RRDtool bindings to the PHP HTML-embedded scripting language. %prep %setup -q %patch0 -p0 %build export CC=xlc ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static \ --disable-tcl --disable-python --disable-ruby make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install ### make symlinks from /opt/freeware/bin/* to /usr/bin/* mkdir -p $RPM_BUILD_ROOT/usr/bin/ ln -sf /opt/freeware/bin/rrdcgi $RPM_BUILD_ROOT/usr/bin/rrdcgi ln -sf /opt/freeware/bin/rrdtool $RPM_BUILD_ROOT/usr/bin/rrdtool ln -sf /opt/freeware/bin/rrdupdate $RPM_BUILD_ROOT/usr/bin/rrdupdate mv %{buildroot}/%{_datadir}/man/man3 %{buildroot}/%{_mandir} ### We only want .txt and .html files for the main documentation %{__mkdir_p} rpm-doc/docs/ /opt/freeware/bin/cp -ap doc/*.txt doc/*.html rpm-doc/docs/ %{__rm} -f examples/Makefile* examples/*.in ### Clean up buildroot %{__rm} -rf %{buildroot}%{_libdir}/perl/5.8.2/ppc-aix/*/*/.packlist %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc CHANGES CONTRIBUTORS COPYING COPYRIGHT NEWS README THREADS TODO %doc rpm-doc/docs/ %doc %{_mandir}/man1/*.1* %{_bindir}/rrdcgi %{_bindir}/rrdtool %{_bindir}/rrdupdate %{_libdir}/librrd.a %{_libdir}/librrd_th.a %{_datadir}/rrdtool/fonts/ /usr/bin/rrdcgi /usr/bin/rrdtool /usr/bin/rrdupdate %files devel %defattr(-, root, root, 0755) %{_includedir}/rrd.h %{_libdir}/librrd.la %{_libdir}/librrd_th.la %files -n rrdtool-perl %defattr(-, root, root, 0755) %doc examples/ %doc %{_mandir}/man3/RRDp.3* %doc %{_mandir}/man3/RRDs.3* %{_libdir}/perl/5.8.2/RRDp.pm %{_libdir}/perl/5.8.2/ppc-aix/RRDs.pm %{_libdir}/perl/5.8.2/ppc-aix/auto/ %{_datadir}/rrdtool/examples/ %changelog * Mon Nov 13 2007 Michael Perzl - 1.2.23-2 - prevent rrdtool from core dumping when compiled with shared library * Wed Jul 11 2007 Michael Perzl - 1.2.23-1 - first version for AIX V5.1 and higher