[packages/php-rrdtool] allow building with php_suffix

glen glen at pld-linux.org
Wed May 14 21:53:10 CEST 2014


commit e70324e62f56e5e1e591c958180b7f24ea36fe8f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed May 14 22:53:07 2014 +0300

    allow building with php_suffix

 php-rrdtool.spec | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/php-rrdtool.spec b/php-rrdtool.spec
index 4f2ee08..43401a6 100644
--- a/php-rrdtool.spec
+++ b/php-rrdtool.spec
@@ -1,20 +1,20 @@
+%define		php_name	php%{?php_suffix}
 %define		modname	rrdtool
 Summary:	RRDtool PHP module
 Summary(pl.UTF-8):	Moduł PHP RRDtool
-Name:		php-rrdtool
+Name:		%{php_name}-%{modname}
 Version:	1.2
-Release:	7
+Release:	8
 License:	GPL
 Group:		Applications/Databases
 Source0:	http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/contrib/php_rrdtool.tgz
 # Source0-md5:	c86a45cfc54517b9066c480bbc589d43
 URL:		http://oss.oetiker.ch/rrdtool/
-BuildRequires:	php-devel >= 3:5.0.0
+BuildRequires:	%{php_name}-devel >= 3:5.0.4
 BuildRequires:	rpmbuild(macros) >= 1.322
 BuildRequires:	rrdtool-devel >= 1.2.10
 BuildRequires:	sed >= 4.0
 %{?requires_php_extension}
-Requires:	php(core) >= 5.0.4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,7 +40,6 @@ phpize
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-
 %{__make} install \
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-rrdtool.git/commitdiff/e70324e62f56e5e1e591c958180b7f24ea36fe8f



More information about the pld-cvs-commit mailing list