Difference Between Revision 2 and internetx:php5:extensions / php5-sphinx
[-] | Changed | php5-sphinx.spec |
x 1
2 %define pkg_version 1.3.3 3 %define php_version %(php-config --version 2>/dev/null) 4 # 5 -Name: php5-sphinx 6 +Name: php7-sphinx 7 Version: %{pkg_version} 8 Release: 1 9 # 10
11 Group: Productivity/Networking/Web/Servers 12 # 13 BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 14 -BuildRequires: php5-devel libsphinxclient-devel gcc gcc-c++ 15 -Requires: php5 = %{php_version} 16 +BuildRequires: php7-devel libsphinxclient-devel gcc gcc-c++ 17 +Requires: php7 = %{php_version} 18 # 19 URL: http://pecl.php.net/ 20 Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz 21
22 23 %install 24 %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 25 -%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d 26 -echo "; comment out next line to disable sphinx extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/sphinx.ini 27 -echo "extension = sphinx.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/sphinx.ini 28 +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d 29 +echo "; comment out next line to disable sphinx extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/sphinx.ini 30 +echo "extension = sphinx.so" >> %{buildroot}%{_sysconfdir}/php7/conf.d/sphinx.ini 31 32 33 %clean 34
35 36 %files 37 %defattr(-,root,root,-) 38 -%{_libdir}/php5/extensions/sphinx.so 39 -%config(noreplace) %{_sysconfdir}/php5/conf.d/sphinx.ini 40 +%{_libdir}/php7/extensions/sphinx.so 41 +%config(noreplace) %{_sysconfdir}/php7/conf.d/sphinx.ini 42 43 %doc CREDITS 44 45 |