[packages/php-pecl-cairo] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:20:07 CEST 2013
commit c266836559bf8725b88c641a3066c3d7bbea3adb
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:35 2013 +0300
support building for multiple php versions
php-pecl-cairo.spec | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-cairo.spec b/php-pecl-cairo.spec
index 2f7ef4d..741823e 100644
--- a/php-pecl-cairo.spec
+++ b/php-pecl-cairo.spec
@@ -1,8 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname cairo
%define status beta
Summary: Cairo Graphics Library Extension
Summary(pl.UTF-8): Rozszerzenie biblioteki Cairo
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 0.3.2
Release: 2
License: PHP 3.01
@@ -10,10 +11,10 @@ Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/Cairo-%{version}.tgz
# Source0-md5: e89d0842eef2b3111b4579b4a4753dda
URL: http://pecl.php.net/package/Cairo/
+BuildRequires: %{php_name}-devel >= 4:5.2.0
BuildRequires: cairo-devel >= 1.4
-BuildRequires: php-devel >= 4:5.2.0
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: rpmbuild(macros) >= 1.650
BuildRequires: which
%{?requires_php_extension}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,7 +31,7 @@ In PECL status of this extension is: %{status}.
Summary: Header files for Cairo PECL extension
Group: Development/Libraries
# does not require base
-Requires: php-devel >= 4:5.2.0
+Requires: %{php_name}-devel >= 4:5.2.0
%description devel
Header files for Cairo PECL extension.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-cairo.git/commitdiff/c266836559bf8725b88c641a3066c3d7bbea3adb
More information about the pld-cvs-commit
mailing list