[packages/php-pecl-zendopcache] move .ini file to sepatate file in git
glen
glen at pld-linux.org
Sat May 25 11:27:26 CEST 2013
commit 223ba65376641566dca268e2c2e81dd487a57e67
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 2 17:11:51 2013 +0300
move .ini file to sepatate file in git
php-pecl-zendopcache.spec | 6 ++----
zendopcache.ini | 2 ++
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-zendopcache.spec b/php-pecl-zendopcache.spec
index c5523bb..c01c8af 100644
--- a/php-pecl-zendopcache.spec
+++ b/php-pecl-zendopcache.spec
@@ -11,6 +11,7 @@ License: PHP 3.01
Group: Libraries
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: rpmbuild(macros) >= 1.519
@@ -44,10 +45,7 @@ rm -rf $RPM_BUILD_ROOT
# be sure that Xdebug is loaded after OPcache. "php -v" must show Xdebug
# after OPcache.
install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
-; Enable %{modname} zend extension module
-zend_extension=%{php_extensiondir}/opcache.so
-EOF
+sed -e 's, at extensiondir@,%{php_extensiondir},' %{SOURCE1} > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/zendopcache.ini b/zendopcache.ini
new file mode 100644
index 0000000..7e3b0fd
--- /dev/null
+++ b/zendopcache.ini
@@ -0,0 +1,2 @@
+; Enable zendopcache zend extension module
+zend_extension=@extensiondir@/opcache.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-zendopcache.git/commitdiff/82862555d5dec4aacfd45cc67bfbdec00965bd6f
More information about the pld-cvs-commit
mailing list