Changes of Revision 3
[-] | Changed | php-pecl-ZendOpcache.spec |
x 1
2 %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) 3 4 %define pecl_name zendopcache 5 +%define pecl_so_name opcache 6 7 Summary: The Zend OPcache provides faster PHP execution through opcode caching and optimization 8 Name: php-pecl-ZendOpcache 9
10 Requires(post): %{__pecl} 11 Requires(postun): %{__pecl} 12 Provides: php-pecl(%{pecl_name}) = %{version}-%{release} 13 +Provides: php-pecl(%{pecl_so_name}) = %{version}-%{release} 14 %if %{defined php_zend_api} 15 Requires: php(zend-abi) = %{php_zend_api} 16 Requires: php(api) = %{php_core_api} 17
18 # Drop in the bit of configuration 19 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d 20 %{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{pecl_name}.ini << 'EOF' 21 -; Enable %{pecl_name} extension module 22 -zend_extension=%{php_extdir}/%{pecl_name}.so 23 +; Enable %{pecl_so_name} extension module 24 +zend_extension=%{php_extdir}/%{pecl_so_name}.so 25 26 opcache.memory_consumption=128 27 opcache.interned_strings_buffer=8 28
29 %defattr(-, root, root, -) 30 %doc %{pecl_name}-%{version}/README 31 %config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini 32 -%{php_extdir}/%{pecl_name}.so 33 +%{php_extdir}/%{pecl_so_name}.so 34 %{pecl_xmldir}/%{name}.xml 35 36 %changelog 37 |