[packages/php-pecl-geoip] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:22:20 CEST 2013
commit 4ebafef4936a45ad1421ef2f6802972d51b6b656
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:37 2013 +0300
support building for multiple php versions
php-pecl-geoip.spec | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-geoip.spec b/php-pecl-geoip.spec
index 964584b..1146e79 100644
--- a/php-pecl-geoip.spec
+++ b/php-pecl-geoip.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname geoip
%define status status
Summary: %{modname} - Map IP address to geographic places
Summary(pl.UTF-8): %{modname} - odwzorowanie adresów IP w miejsca geograficzne
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 1.0.8
Release: 5
License: PHP 3.01
@@ -11,9 +12,9 @@ Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 65263ac6d1c335f22ce818b3253912a5
Patch0: find_libgeoip.patch
URL: http://pecl.php.net/package/geoip/
+BuildRequires: %{php_name}-devel >= 3:5.0.0
BuildRequires: GeoIP-devel > 1.4.0
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: rpmbuild(macros) >= 1.650
Suggests: GeoIP-db-City
Suggests: GeoIP-db-Country
Suggests: GeoIP-db-IPASNum
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-geoip.git/commitdiff/4ebafef4936a45ad1421ef2f6802972d51b6b656
More information about the pld-cvs-commit
mailing list