[packages/php-pecl-ssh2/AC-branch: 1/3] support building for multiple php versions

glen glen at pld-linux.org
Thu May 22 22:22:22 CEST 2014


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

    support building for multiple php versions

 php-pecl-ssh2.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec
index e8750f2..3330dbf 100644
--- a/php-pecl-ssh2.spec
+++ b/php-pecl-ssh2.spec
@@ -1,8 +1,9 @@
+%define		php_name	php%{?php_suffix}
 %define		modname	ssh2
 %define		status	beta
 Summary:	%{modname} - bindings for the libssh2 library
 Summary(pl.UTF-8):	%{modname} - dowiązania do biblioteki libssh2
-Name:		php-pecl-%{modname}
+Name:		%{php_name}-pecl-%{modname}
 Version:	0.11.0
 Release:	5
 License:	PHP
@@ -14,8 +15,8 @@ Patch1:		branch.diff
 URL:		http://pecl.php.net/package/ssh2/
 BuildRequires:	libssh2-devel >= 0.16
 BuildRequires:	openssl-devel >= 0.9.7d
-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}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-ssh2.git/commitdiff/97e3ed136a57ae31816a313f1ac9a5c8d2b94461



More information about the pld-cvs-commit mailing list