[packages/php-pecl-zendopcache] add php suffix support
glen
glen at pld-linux.org
Sat May 25 11:27:36 CEST 2013
commit 82862555d5dec4aacfd45cc67bfbdec00965bd6f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat May 25 12:27:17 2013 +0300
add php suffix support
php-pecl-zendopcache.spec | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/php-pecl-zendopcache.spec b/php-pecl-zendopcache.spec
index c01c8af..2141ba4 100644
--- a/php-pecl-zendopcache.spec
+++ b/php-pecl-zendopcache.spec
@@ -1,19 +1,20 @@
# NOTE:
# This version of Zend OPcache is compatible with PHP 5.2.*, 5.3.*, 5.4.*
# and PHP-5.5 development branch. PHP 5.2 support may be removed in the future.
+%define php_name php%{?php_suffix}
%define modname zendopcache
Summary: Zend Optimizer+ - PHP code optimizer
Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 7.0.1
-Release: 1
+Release: 2
License: PHP 3.01
-Group: Libraries
+Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 3a0a43a4819c72763bc35ecf5689221e
Source1: %{modname}.ini
URL: http://pecl.php.net/package/zendopcache
-BuildRequires: php-devel >= 4:5.0.4
+BuildRequires: %{php_name}-devel >= 4:5.0.4
BuildRequires: rpmbuild(macros) >= 1.519
%{?requires_php_extension}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,5 +62,5 @@ fi
%files
%defattr(644,root,root,755)
%doc README LICENSE
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
%attr(755,root,root) %{php_extensiondir}/opcache.so
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php/conf.d/%{modname}.ini
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-zendopcache.git/commitdiff/82862555d5dec4aacfd45cc67bfbdec00965bd6f
More information about the pld-cvs-commit
mailing list