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

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


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

    support building for multiple php versions

 php-pecl-eio.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-eio.spec b/php-pecl-eio.spec
index ebb014f..ad69559 100644
--- a/php-pecl-eio.spec
+++ b/php-pecl-eio.spec
@@ -1,8 +1,9 @@
 # TODO
 # - compile with system libeio
+%define		php_name	php%{?php_suffix}
 %define		modname	eio
 Summary:	Extension to provide interface to the libeio library
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	1.2.0
 Release:	1
 License:	PHP 3.01
@@ -10,9 +11,9 @@ Group:		Development/Languages/PHP
 Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	e833c3927e2ebb5b54791cb89a364346
 URL:		http://pecl.php.net/package/eio
+BuildRequires:	%{php_name}-devel >= 4:5.3.0
 #BuildRequires:	libeio-devel
-BuildRequires:	php-devel >= 4:5.3.0
-BuildRequires:	rpmbuild(macros) >= 1.519
+BuildRequires:	rpmbuild(macros) >= 1.650
 %{?requires_php_extension}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-eio.git/commitdiff/e5bc64bda95bd9342b1daf78a01c9df0a3a6a7f7



More information about the pld-cvs-commit mailing list