[packages/php-pecl-hidef] support building for multiple php versions

glen glen at pld-linux.org
Fri Jun 21 19:22:40 CEST 2013


commit 0b32b5d1584bb50eca67c7ed2b777ca9860568dd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jun 21 20:18:37 2013 +0300

    support building for multiple php versions

 php-pecl-hidef.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-hidef.spec b/php-pecl-hidef.spec
index 49de29e..e69396e 100644
--- a/php-pecl-hidef.spec
+++ b/php-pecl-hidef.spec
@@ -1,8 +1,9 @@
+%define		php_name	php%{?php_suffix}
 %define		modname	hidef
 %define		status		stable
 Summary:	%{modname} - Constants for real
 Summary(pl.UTF-8):	%{modname} - mechanizm definiowana stałych
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	0.1.12
 Release:	3
 License:	PHP 3.01
@@ -10,8 +11,8 @@ Group:		Development/Languages/PHP
 Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	58c0e1f822a4371cfd0a5a19629ab353
 URL:		http://pecl.php.net/package/hidef/
-BuildRequires:	php-devel >= 3:5.0.0
-BuildRequires:	rpmbuild(macros) >= 1.344
+BuildRequires:	%{php_name}-devel >= 3:5.0.0
+BuildRequires:	rpmbuild(macros) >= 1.650
 %{?requires_php_extension}
 Requires:	php(core) >= 5.0.4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-hidef.git/commitdiff/0b32b5d1584bb50eca67c7ed2b777ca9860568dd



More information about the pld-cvs-commit mailing list