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

glen glen at pld-linux.org
Fri Jun 21 19:23:26 CEST 2013


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

    support building for multiple php versions

 php-pecl-intl.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-intl.spec b/php-pecl-intl.spec
index 66f2ff7..25bace7 100644
--- a/php-pecl-intl.spec
+++ b/php-pecl-intl.spec
@@ -1,8 +1,9 @@
+%define		php_name	php%{?php_suffix}
 %define		modname		intl
 %define		status		stable
 Summary:	%{modname} - Internationalization extension
 Summary(pl.UTF-8):	%{modname} - rozszerzenie internacjonalizacji
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	1.1.2
 Release:	1
 License:	PHP 3.01
@@ -12,12 +13,12 @@ Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 Patch0:		zend_arg_info_static.patch
 Patch1:		z_refcount.patch
 URL:		http://pecl.php.net/package/intl/
+BuildRequires:	%{php_name}-devel >= 3:5.0.0
 BuildRequires:	libicu-devel >= 3.4.0-1
 BuildRequires:	libstdc++-devel
-BuildRequires:	php-devel >= 3:5.0.0
 BuildRequires:	pkgconfig
 BuildRequires:	re2c
-BuildRequires:	rpmbuild(macros) >= 1.344
+BuildRequires:	rpmbuild(macros) >= 1.650
 %{?requires_php_extension}
 Provides:	php(intl)
 Obsoletes:	php-pecl-idn
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-intl.git/commitdiff/f967fc76cf13ffc41ecf4e9a1231f18f5082579f



More information about the pld-cvs-commit mailing list