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

glen glen at pld-linux.org
Fri Jun 21 19:25:42 CEST 2013


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

    support building for multiple php versions

 php-pecl-phar.spec | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/php-pecl-phar.spec b/php-pecl-phar.spec
index d201e22..fbb0c6c 100644
--- a/php-pecl-phar.spec
+++ b/php-pecl-phar.spec
@@ -1,8 +1,9 @@
+%define		php_name	php%{?php_suffix}
 %define		modname	phar
 %define		status		stable
 Summary:	Extension to run complete applications out of .phar files (like Java .jar files)
 Summary(pl.UTF-8):	Rozszerzenie do uruchamianie gotowych aplikacji z plików .phar (podobnych do .jar w Javie)
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	2.0.0
 Release:	3
 License:	PHP 3.01
@@ -10,12 +11,12 @@ Group:		Development/Languages/PHP
 Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	fdba10432216c22c19cf8a86b3de56b9
 URL:		http://pecl.php.net/package/phar/
-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-bzip2
-Requires:	php-common >= 4:5.0.4
-Requires:	php-zlib
+Requires:	%{php_name}-bzip2
+Requires:	%{php_name}-common >= 4:5.0.4
+Requires:	%{php_name}-zlib
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-phar.git/commitdiff/660d85c7bb74c6ec07c242d45f970a4d2c5e4f3a



More information about the pld-cvs-commit mailing list