2005-01-13 18:27:47 +00:00
|
|
|
%define php_extdir %(php-config --extension-dir || echo /usr/lib/php4)
|
2004-11-09 02:50:26 +00:00
|
|
|
|
|
|
|
Summary: Round Robin Database Tool to store and display time-series data
|
2004-11-09 02:50:14 +00:00
|
|
|
Name: rrdtool
|
2004-11-09 02:50:26 +00:00
|
|
|
Version: 1.0.49
|
2005-01-13 18:27:47 +00:00
|
|
|
Release: 2
|
2004-11-09 02:50:14 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/Databases
|
|
|
|
URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
2004-11-09 02:50:26 +00:00
|
|
|
Source: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz
|
|
|
|
Patch: rrdtool-1.0.48-php_config.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
2005-01-13 18:27:47 +00:00
|
|
|
BuildRequires: gcc-c++, php-devel >= 4.0, openssl-devel
|
2004-11-09 02:50:26 +00:00
|
|
|
BuildRequires: libpng-devel, zlib-devel
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
%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
|
2004-11-09 02:50:26 +00:00
|
|
|
Summary: RRDtool static libraries and header files
|
2004-11-09 02:50:14 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
%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.
|
|
|
|
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
%prep
|
2004-11-09 02:50:26 +00:00
|
|
|
%setup
|
|
|
|
%patch -b .phpfix
|
|
|
|
|
2005-01-13 18:27:47 +00:00
|
|
|
# Fixes to /usr/lib(64) for x86_64
|
|
|
|
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' \
|
|
|
|
configure contrib/php4/configure Makefile.in
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
%build
|
2004-11-09 02:50:26 +00:00
|
|
|
%configure \
|
|
|
|
--program-prefix="%{?_program_prefix}" \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-local-libpng \
|
|
|
|
--enable-local-zlib \
|
|
|
|
--with-pic
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
# Build the php4 module, the tmp install is required
|
|
|
|
%define rrdtmpdir %{_tmppath}/%{buildsubdir}-tmpinstall
|
|
|
|
%{__make} install DESTDIR="%{rrdtmpdir}"
|
|
|
|
pushd contrib/php4
|
|
|
|
./configure \
|
|
|
|
--with-rrdtool="%{rrdtmpdir}%{_prefix}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
%{__rm} -rf %{rrdtmpdir}
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
# Fix @perl@ and @PERL@
|
|
|
|
find examples/ -type f \
|
2004-11-09 02:50:26 +00:00
|
|
|
-exec %{__perl} -pi -e 's|^#! \@perl\@|#!%{__perl}|gi' {} \;
|
2004-11-09 02:50:14 +00:00
|
|
|
find examples/ -name "*.pl" \
|
2004-11-09 02:50:26 +00:00
|
|
|
-exec %{__perl} -pi -e 's|\015||gi' {} \;
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
%install
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# Install the php4 module
|
|
|
|
%{__install} -D -m0755 contrib/php4/modules/rrdtool.so \
|
2005-01-13 18:27:47 +00:00
|
|
|
%{buildroot}%{php_extdir}/rrdtool.so
|
2004-11-09 02:50:26 +00:00
|
|
|
# Clean up the examples for inclusion as docs
|
|
|
|
%{__rm} -rf contrib/php4/examples/CVS
|
|
|
|
# Put the php config bit into place
|
|
|
|
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
|
|
|
%{__cat} > %{buildroot}%{_sysconfdir}/php.d/rrdtool.ini << EOF
|
|
|
|
; Enable rrdtool extension module
|
|
|
|
extension=rrdtool.so
|
|
|
|
EOF
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
# Put perl files back where they belong
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__mkdir_p} %{buildroot}%{perl_sitearch}/
|
|
|
|
%{__mv} %{buildroot}%{_libdir}/perl/* %{buildroot}%{perl_sitearch}/
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
# We only want .txt and .html files for the main documentation
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__mkdir_p} doc2/doc
|
|
|
|
%{__cp} -a doc/*.txt doc/*.html doc2/doc/
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
# Clean up the examples and contrib
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__rm} -f examples/Makefile*
|
|
|
|
%{__rm} -f contrib/Makefile*
|
|
|
|
# This is so rpm doesn't pick up perl module dependencies automatically
|
|
|
|
find examples/ contrib/ -type f -exec chmod 0644 {} \;
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
# Clean up the buildroot
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__rm} -rf %{buildroot}%{_prefix}/{contrib,doc,examples,html}/
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
%clean
|
2004-11-09 02:50:26 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
|
|
|
|
%files
|
2004-11-09 02:50:26 +00:00
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO doc2/doc
|
2004-11-09 02:50:14 +00:00
|
|
|
%{_bindir}/*
|
2004-11-09 02:50:20 +00:00
|
|
|
%{_libdir}/*.so.*
|
2004-11-09 02:50:14 +00:00
|
|
|
%{perl_sitearch}/*.pm
|
|
|
|
%{perl_sitearch}/auto/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
%files devel
|
2004-11-09 02:50:26 +00:00
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc examples/
|
|
|
|
%doc contrib/add_ds contrib/killspike contrib/log2rrd contrib/rrdexplorer
|
|
|
|
%doc contrib/rrdfetchnames contrib/rrd-file-icon contrib/rrdlastds
|
|
|
|
%doc contrib/rrdproc contrib/rrdview contrib/snmpstats contrib/trytime
|
|
|
|
%{_includedir}/*.h
|
2004-11-09 02:50:14 +00:00
|
|
|
%{_libdir}/*.a
|
|
|
|
%exclude %{_libdir}/*.la
|
2004-11-09 02:50:20 +00:00
|
|
|
%{_libdir}/*.so
|
2004-11-09 02:50:14 +00:00
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
|
|
|
|
%files -n php-rrdtool
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc contrib/php4/examples contrib/php4/README
|
|
|
|
%config(noreplace) %{_sysconfdir}/php.d/rrdtool.ini
|
2005-01-13 18:27:47 +00:00
|
|
|
%{php_extdir}/rrdtool.so
|
2004-11-09 02:50:26 +00:00
|
|
|
|
|
|
|
|
2004-11-09 02:50:14 +00:00
|
|
|
%changelog
|
2005-01-13 18:27:47 +00:00
|
|
|
* Thu Jan 13 2005 Matthias Saou <http://freshrpms.net/> 1.0.49-2
|
|
|
|
- Minor cleanups.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Thu Aug 25 2004 Dag Wieers <dag@wieers.com> - 1.0.49-1
|
|
|
|
- Updated to release 1.0.49.
|
|
|
|
|
|
|
|
* Wed Aug 25 2004 Dag Wieers <dag@wieers.com> - 1.0.48-3
|
|
|
|
- Fixes for x86_64. (Garrick Staples)
|
|
|
|
|
|
|
|
* Fri Jul 2 2004 Matthias Saou <http://freshrpms.net/> 1.0.48-3
|
|
|
|
- Actually apply the patch for fixing the php module, doh!
|
|
|
|
|
|
|
|
* Thu May 27 2004 Matthias Saou <http://freshrpms.net/> 1.0.48-2
|
|
|
|
- Added php.d config entry to load the module once installed.
|
|
|
|
|
|
|
|
* Thu May 13 2004 Dag Wieers <dag@wieers.com> - 1.0.48-1
|
|
|
|
- Updated to release 1.0.48.
|
|
|
|
|
|
|
|
* Tue Apr 06 2004 Dag Wieers <dag@wieers.com> - 1.0.47-1
|
|
|
|
- Updated to release 1.0.47.
|
|
|
|
|
|
|
|
* Thu Mar 4 2004 Matthias Saou <http://freshrpms.net/> 1.0.46-2
|
|
|
|
- Change the strict dependency on perl to fix problem with the recent
|
|
|
|
update.
|
|
|
|
|
|
|
|
* Mon Jan 5 2004 Matthias Saou <http://freshrpms.net/> 1.0.46-1
|
|
|
|
- Update to 1.0.46.
|
|
|
|
- Use system libpng and zlib instead of bundled ones.
|
|
|
|
- Added php-rrdtool sub-package for the php4 module.
|
|
|
|
|
|
|
|
* Fri Dec 5 2003 Matthias Saou <http://freshrpms.net/> 1.0.45-4
|
|
|
|
- Added epoch to the perl dependency to work with rpm > 4.2.
|
|
|
|
- Fixed the %% escaping in the perl dep.
|
|
|
|
|
|
|
|
* Mon Nov 17 2003 Matthias Saou <http://freshrpms.net/> 1.0.45-2
|
|
|
|
- Rebuild for Fedora Core 1.
|
|
|
|
|
|
|
|
* Sun Aug 3 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:20 +00:00
|
|
|
- Update to 1.0.45.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Wed Apr 16 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:20 +00:00
|
|
|
- Update to 1.0.42.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:20 +00:00
|
|
|
- Rebuilt for Red Hat Linux 9.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Wed Mar 5 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:14 +00:00
|
|
|
- Added explicit perl version dependency.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Sun Feb 23 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:14 +00:00
|
|
|
- Update to 1.0.41.
|
|
|
|
|
2004-11-09 02:50:26 +00:00
|
|
|
* Fri Jan 31 2003 Matthias Saou <http://freshrpms.net/>
|
2004-11-09 02:50:14 +00:00
|
|
|
- Update to 1.0.40.
|
|
|
|
- Spec file cleanup.
|
|
|
|
|
|
|
|
* Fri Jul 05 2002 Henri Gomez <hgomez@users.sourceforge.net>
|
|
|
|
- 1.0.39
|
|
|
|
|
|
|
|
* Mon Jun 03 2002 Henri Gomez <hgomez@users.sourceforge.net>
|
|
|
|
- 1.0.38
|
|
|
|
|
|
|
|
* Fri Apr 19 2002 Henri Gomez <hgomez@users.sourceforge.net>
|
|
|
|
- 1.0.37
|
|
|
|
|
|
|
|
* Tue Mar 12 2002 Henri Gomez <hgomez@users.sourceforge.net>
|
|
|
|
- 1.0.34
|
|
|
|
- rrdtools include zlib 1.1.4 which fix vulnerabilities in 1.1.3
|
|
|
|
|