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

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


commit e3eff1a9ae0628512f703b7aa1a055a574df5ecc
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-dbx.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-dbx.spec b/php-pecl-dbx.spec
index d447bc0..c37f78a 100644
--- a/php-pecl-dbx.spec
+++ b/php-pecl-dbx.spec
@@ -1,8 +1,9 @@
+%define		php_name	php%{?php_suffix}
 %define		modname	dbx
 %define		status		stable
 Summary:	%{modname} - database abstraction functions
 Summary(pl.UTF-8):	%{modname} - funkcje abstrakcji baz danych
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	1.1.1
 Release:	3
 License:	PHP 2.02
@@ -11,8 +12,8 @@ Source0:	http://pecl.php.net/get/%{modname}-1.1.0.tgz
 # Source0-md5:	82d1091c75e047c4a8f9aea7b279e13b
 URL:		http://pecl.php.net/package/dbx/
 Patch0:		branch.diff
-BuildRequires:	php-devel >= 4:5.0.4
-BuildRequires:	rpmbuild(macros) >= 1.344
+BuildRequires:	%{php_name}-devel >= 4:5.0.4
+BuildRequires:	rpmbuild(macros) >= 1.650
 %{?requires_php_extension}
 Obsoletes:	php-dbx
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-dbx.git/commitdiff/e3eff1a9ae0628512f703b7aa1a055a574df5ecc



More information about the pld-cvs-commit mailing list