[packages/php-redis] allow building with php_suffix

glen glen at pld-linux.org
Sun Oct 21 15:36:22 CEST 2012


commit 67fa4b41ce8ac27d7fa924c5ea67cb43ff98fcae
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Oct 21 16:36:12 2012 +0300

    allow building with php_suffix

 php-redis.spec | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/php-redis.spec b/php-redis.spec
index d2009ee..b728b5a 100644
--- a/php-redis.spec
+++ b/php-redis.spec
@@ -4,25 +4,26 @@
 # Conditional build:
 %bcond_without	tests		# build without tests
 
+%define		php_name	php%{?php_suffix}
 %define		modname	redis
 Summary:	%{modname} A PHP extension for Redis
-Name:		php-%{modname}
+Name:		%{php_name}-%{modname}
 Version:	2.1.3
 Release:	3
 License:	PHP 3.01
 Group:		Development/Languages/PHP
-Source0:	https://github.com/nicolasff/phpredis/tarball/%{version}#/%{name}-%{version}.tgz
+Source0:	https://github.com/nicolasff/phpredis/tarball/%{version}#/%{modname}-%{version}.tgz
 # Source0-md5:	eb2bee7e42f7a32a38c2a45377f21086
-Source1:	https://github.com/ukko/phpredis-phpdoc/tarball/master/%{name}-phpdoc.tgz
-# Source1-md5:	110fec82bf7699e7be195a2ec911f3c8
+Source1:	https://github.com/ukko/phpredis-phpdoc/tarball/master/%{modname}-phpdoc.tgz
+# Source1-md5:	b7cce5ee29c6597e0fdd3557397e1b2a
 URL:		https://github.com/nicolasff/phpredis
 %{?with_tests:BuildRequires:	/usr/bin/php}
-BuildRequires:	php-devel >= 4:5.0.4
-%{?with_tests:BuildRequires:	php-session}
-%{?with_tests:BuildRequires:	php-simplexml}
+BuildRequires:	%{php_name}-devel >= 4:5.0.4
+%{?with_tests:BuildRequires:	%{php_name}-session}
+%{?with_tests:BuildRequires:	%{php_name}-simplexml}
 BuildRequires:	rpmbuild(macros) >= 1.519
 %{?requires_php_extension}
-Requires:	php-session
+Requires:	%{php_name}-session
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-redis.git/commitdiff/67fa4b41ce8ac27d7fa924c5ea67cb43ff98fcae



More information about the pld-cvs-commit mailing list