[packages/php-pecl-oauth] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:24:58 CEST 2013
commit 44c333a6b58ff535556a1f9d3a656e0db8b1e8c0
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:39 2013 +0300
support building for multiple php versions
php-pecl-oauth.spec | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-oauth.spec b/php-pecl-oauth.spec
index 37071ef..8e299ae 100644
--- a/php-pecl-oauth.spec
+++ b/php-pecl-oauth.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname oauth
%define status stable
Summary: %{modname} - consumer extension
Summary(pl.UTF-8): %{modname} - rozszerzenie klienckie
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 1.2.2
Release: 5
License: BSD
@@ -10,11 +11,11 @@ Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 9a9f35e45786534d8580abfffc8c273c
URL: http://pecl.php.net/package/oauth/
-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_name}-hash
Requires: php(core) >= 5.0.4
-Requires: php-hash
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-oauth.git/commitdiff/44c333a6b58ff535556a1f9d3a656e0db8b1e8c0
More information about the pld-cvs-commit
mailing list