Clean up.
This commit is contained in:
parent
8012b79e75
commit
f9ae101307
31
rrdtool.spec
31
rrdtool.spec
@ -1,25 +1,17 @@
|
|||||||
# $Id: rrdtool.spec,v 1.4 2004/11/09 02:50:32 cvsextras Exp $
|
%define php_extdir %(php-config --extension-dir || echo /usr/lib/php4)
|
||||||
# Authority: matthias
|
|
||||||
# Upstream: Tobi Oetiker <oetiker$ee,ethz,ch>
|
|
||||||
|
|
||||||
%define phpextdir %(php-config --extension-dir)
|
|
||||||
|
|
||||||
Summary: Round Robin Database Tool to store and display time-series data
|
Summary: Round Robin Database Tool to store and display time-series data
|
||||||
Name: rrdtool
|
Name: rrdtool
|
||||||
Version: 1.0.49
|
Version: 1.0.49
|
||||||
Release: 1.1.fc2.fr
|
Release: 2
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
||||||
|
|
||||||
Source: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz
|
Source: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz
|
||||||
Patch: rrdtool-1.0.48-php_config.patch
|
Patch: rrdtool-1.0.48-php_config.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
BuildRequires: gcc-c++, php-devel >= 4.0, openssl-devel
|
||||||
BuildRequires: gcc-c++, perl, php-devel >= 4.0, openssl-devel
|
|
||||||
BuildRequires: libpng-devel, zlib-devel
|
BuildRequires: libpng-devel, zlib-devel
|
||||||
Requires: perl >= %(rpm -q --qf '%%{epoch}:%%{version}' perl)
|
|
||||||
Requires: libpng, zlib
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
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
|
%setup
|
||||||
%patch -b .phpfix
|
%patch -b .phpfix
|
||||||
|
|
||||||
### FIXME: Fixes to /usr/lib(64) for x86_64
|
# Fixes to /usr/lib(64) for x86_64
|
||||||
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' configure contrib/php4/configure Makefile.in
|
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' \
|
||||||
|
configure contrib/php4/configure Makefile.in
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
@ -91,7 +85,7 @@ find examples/ -name "*.pl" \
|
|||||||
|
|
||||||
# Install the php4 module
|
# Install the php4 module
|
||||||
%{__install} -D -m0755 contrib/php4/modules/rrdtool.so \
|
%{__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
|
# Clean up the examples for inclusion as docs
|
||||||
%{__rm} -rf contrib/php4/examples/CVS
|
%{__rm} -rf contrib/php4/examples/CVS
|
||||||
# Put the php config bit into place
|
# Put the php config bit into place
|
||||||
@ -115,10 +109,6 @@ EOF
|
|||||||
# This is so rpm doesn't pick up perl module dependencies automatically
|
# This is so rpm doesn't pick up perl module dependencies automatically
|
||||||
find examples/ contrib/ -type f -exec chmod 0644 {} \;
|
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
|
# Clean up the buildroot
|
||||||
%{__rm} -rf %{buildroot}%{_prefix}/{contrib,doc,examples,html}/
|
%{__rm} -rf %{buildroot}%{_prefix}/{contrib,doc,examples,html}/
|
||||||
|
|
||||||
@ -153,10 +143,13 @@ find examples/ contrib/ -type f -exec chmod 0644 {} \;
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc contrib/php4/examples contrib/php4/README
|
%doc contrib/php4/examples contrib/php4/README
|
||||||
%config(noreplace) %{_sysconfdir}/php.d/rrdtool.ini
|
%config(noreplace) %{_sysconfdir}/php.d/rrdtool.ini
|
||||||
%{phpextdir}/rrdtool.so
|
%{php_extdir}/rrdtool.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Aug 25 2004 Dag Wieers <dag@wieers.com> - 1.0.49-1
|
||||||
- Updated to release 1.0.49.
|
- Updated to release 1.0.49.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user