[packages/php-pecl-rar] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:26:10 CEST 2013
commit 709921d846bc4478a7de01c15116d5528d808d4d
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-rar.spec | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-rar.spec b/php-pecl-rar.spec
index 792f01b..57e1448 100644
--- a/php-pecl-rar.spec
+++ b/php-pecl-rar.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname rar
%define status stable
Summary: %{modname} - read rar archives
Summary(pl.UTF-8): %{modname} - odczyt archiwów rar
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 3.0.0
Release: 3
License: PHP 3.01
@@ -11,8 +12,8 @@ Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: f4f9edbf8dd1f00bf0d44ea30a32bd5a
URL: http://pecl.php.net/package/rar/
BuildRequires: libstdc++-devel
-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(core) >= 5.0.4
Obsoletes: php-pear-%{modname}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-rar.git/commitdiff/709921d846bc4478a7de01c15116d5528d808d4d
More information about the pld-cvs-commit
mailing list