]> git.pld-linux.org Git - packages/php-pecl-zendopcache.git/commitdiff
move .ini file to sepatate file in git
authorElan Ruusamäe <glen@delfi.ee>
Tue, 2 Apr 2013 14:11:51 +0000 (17:11 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 2 Apr 2013 14:11:51 +0000 (17:11 +0300)
php-pecl-zendopcache.spec
zendopcache.ini [new file with mode: 0644]

index c5523bb08cf11362f14f1fce63658d566899d7b6..c01c8afd16329b80246d95b18840c12a603bd4ae 100644 (file)
@@ -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,@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 (file)
index 0000000..7e3b0fd
--- /dev/null
@@ -0,0 +1,2 @@
+; Enable zendopcache zend extension module
+zend_extension=@extensiondir@/opcache.so
This page took 0.104937 seconds and 4 git commands to generate.