Clean up.

This commit is contained in:
Matthias Saou 2005-01-13 18:27:47 +00:00
parent 8012b79e75
commit f9ae101307
1 changed files with 12 additions and 19 deletions

View File

@ -1,25 +1,17 @@
# $Id: rrdtool.spec,v 1.4 2004/11/09 02:50:32 cvsextras Exp $
# Authority: matthias
# Upstream: Tobi Oetiker <oetiker$ee,ethz,ch>
%define phpextdir %(php-config --extension-dir)
%define php_extdir %(php-config --extension-dir || echo /usr/lib/php4)
Summary: Round Robin Database Tool to store and display time-series data
Name: rrdtool
Version: 1.0.49
Release: 1.1.fc2.fr
Release: 2
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
Patch: rrdtool-1.0.48-php_config.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++, perl, php-devel >= 4.0, openssl-devel
BuildRequires: gcc-c++, php-devel >= 4.0, openssl-devel
BuildRequires: libpng-devel, zlib-devel
Requires: perl >= %(rpm -q --qf '%%{epoch}:%%{version}' perl)
Requires: libpng, zlib
%description
RRD is the Acronym for Round Robin Database. RRD is a system to store and
@ -56,8 +48,10 @@ RRDtool bindings to the PHP HTML-embedded scripting language.
%setup
%patch -b .phpfix
### FIXME: Fixes to /usr/lib(64) for x86_64
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' configure contrib/php4/configure Makefile.in
# Fixes to /usr/lib(64) for x86_64
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' \
configure contrib/php4/configure Makefile.in
%build
%configure \
@ -91,7 +85,7 @@ find examples/ -name "*.pl" \
# Install the php4 module
%{__install} -D -m0755 contrib/php4/modules/rrdtool.so \
%{buildroot}%{phpextdir}/rrdtool.so
%{buildroot}%{php_extdir}/rrdtool.so
# Clean up the examples for inclusion as docs
%{__rm} -rf contrib/php4/examples/CVS
# Put the php config bit into place
@ -115,10 +109,6 @@ EOF
# This is so rpm doesn't pick up perl module dependencies automatically
find examples/ contrib/ -type f -exec chmod 0644 {} \;
# Put man pages back into place...
#%{__mkdir_p} %{buildroot}%{_mandir}/
#%{__mv} %{buildroot}%{_prefix}/man/* %{buildroot}%{_mandir}/
# Clean up the buildroot
%{__rm} -rf %{buildroot}%{_prefix}/{contrib,doc,examples,html}/
@ -153,10 +143,13 @@ find examples/ contrib/ -type f -exec chmod 0644 {} \;
%defattr(-, root, root)
%doc contrib/php4/examples contrib/php4/README
%config(noreplace) %{_sysconfdir}/php.d/rrdtool.ini
%{phpextdir}/rrdtool.so
%{php_extdir}/rrdtool.so
%changelog
* Thu Jan 13 2005 Matthias Saou <http://freshrpms.net/> 1.0.49-2
- Minor cleanups.
* Thu Aug 25 2004 Dag Wieers <dag@wieers.com> - 1.0.49-1
- Updated to release 1.0.49.