[packages/php-pecl-idn] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:23:09 CEST 2013
commit 550abe0982403e3a4a75dc1a420bce9774f13046
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:38 2013 +0300
support building for multiple php versions
php-pecl-idn.spec | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-idn.spec b/php-pecl-idn.spec
index 1effade..e1f54ad 100644
--- a/php-pecl-idn.spec
+++ b/php-pecl-idn.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname idn
%define status beta
Summary: %{modname} - binding to the GNU libidn
Summary(pl.UTF-8): %{modname} - wiązanie do GNU libidn
-Name: php-pecl-idn
+Name: %{php_name}-pecl-idn
Version: 0.2.0
Release: 2
License: PHP 3.0
@@ -10,11 +11,11 @@ Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: f42dadf9b15bfc897458ff8735f05f78
URL: http://pecl.php.net/package/idn/
+BuildRequires: %{php_name}-devel >= 3:5.0.0
BuildRequires: libidn-devel
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: rpmbuild(macros) >= 1.650
%{?requires_php_extension}
-Requires: php-common >= 4:5.0.4
+Requires: php(core) >= 5.0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-idn.git/commitdiff/550abe0982403e3a4a75dc1a420bce9774f13046
More information about the pld-cvs-commit
mailing list