commit 2c6ccf88b0b3128daefc4c8d80f75d9a1f991100
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Jun 21 11:19:51 2013 +0300

    support multiple php versions

 php-pecl-apd.spec | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/php-pecl-apd.spec b/php-pecl-apd.spec
index 49f97bf..63a8350 100644
--- a/php-pecl-apd.spec
+++ b/php-pecl-apd.spec
@@ -1,18 +1,19 @@
+%define                php_name        php%{?php_suffix}
 %define                modname apd
 %define                status  stable
 Summary:       %{modname} - full-featured engine-level profiler/debugger
 Summary(pl.UTF-8):     %{modname} - w pełni funkcjonalny profiler/debugger dla 
PHP
-Name:          php-pecl-%{modname}
+Name:          %{php_name}-pecl-%{modname}
 Version:       1.0.1
 Release:       8
 License:       PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: 470ea75cde09f7504c83441911c86f29
-Patch0:                %{name}-cvs.patch
+Patch0:                php-pecl-%{modname}-cvs.patch
 URL:           http://pecl.php.net/package/apd/
-BuildRequires: php-devel >= 4:5.2.17-8
-BuildRequires: rpmbuild(macros) >= 1.579
+BuildRequires: %{php_name}-devel >= 4:5.2.17-8
+BuildRequires: rpmbuild(macros) >= 1.650
 %{?requires_zend_extension}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,7 +44,6 @@ phpize
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-
 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 ; Enable %{modname} extension module
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apd.git/commitdiff/2c6ccf88b0b3128daefc4c8d80f75d9a1f991100

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to