[packages/php-pecl-timezonedb] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:27:30 CEST 2013
commit a9846b924a95a502977629271cb6320a96de60ef
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-timezonedb.spec | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-timezonedb.spec b/php-pecl-timezonedb.spec
index 60fbf95..ba4e018 100644
--- a/php-pecl-timezonedb.spec
+++ b/php-pecl-timezonedb.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname timezonedb
%define status stable
Summary: %{modname} - timezone database to be used with PHP's date and time functions
Summary(pl.UTF-8): %{modname} - baza stref czasowych do wykorzystania z funkcjami date() oraz time()
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 2011.14
Release: 1
License: PHP
@@ -10,8 +11,8 @@ Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 3dadd9c2e4dd23e510f1dae03eb14f8a
URL: http://pecl.php.net/package/timezonedb/
-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-common >= 4:5.0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-timezonedb.git/commitdiff/a9846b924a95a502977629271cb6320a96de60ef
More information about the pld-cvs-commit
mailing list