Difference Between Revision 6 and internetx:php5:extensions / php5-raphf
[-] | Changed | php5-raphf.spec |
x 1
2 # norootforbuild 3 %define pkg_name raphf 4 %define php_version %(php-config --version 2>/dev/null) 5 -%if "%{php_version}" >= "5.7" 6 +%if %{php_version} >= 5.6 7 %define my_version 2.0.0 8 %define upstream 1 9 %else 10
11 %define upstream 0 12 %endif 13 # 14 -Name: php5-raphf 15 +Name: php7-raphf 16 Version: %{my_version} 17 Release: 0 18 # 19
20 Group: Productivity/Networking/Web/Servers 21 # 22 BuildRoot: %{_tmppath}/%{pkg_name}-%{my_version}-build 23 -BuildRequires: php5-devel 24 -BuildRequires: -php5-raphf 25 -BuildRequires: -php5-propro 26 +BuildRequires: php7-devel 27 +BuildRequires: -php7-raphf 28 +BuildRequires: -php7-propro 29 # 30 URL: http://pecl.php.net/raphf 31 Source: http://pecl.php.net/package/raphf/%{pkg_name}-%{my_version}.tgz 32
33 %install 34 35 %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 36 -%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d 37 -echo "; comment out next line to disable raphf extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/raphf.ini 38 -echo 'extension = raphf.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/raphf.ini 39 +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php7/conf.d 40 +echo "; comment out next line to disable raphf extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini 41 +echo 'extension = raphf.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini 42 43 44 %clean 45
46 47 %files 48 %defattr(644,root,root,755) 49 -%{_libdir}/php5/extensions/raphf.so 50 -%config(noreplace) %{_sysconfdir}/php5/conf.d/raphf.ini 51 +%{_libdir}/php7/extensions/raphf.so 52 +%config(noreplace) %{_sysconfdir}/php7/conf.d/raphf.ini 53 %doc CREDITS 54 -%dir %{_includedir}/php5 55 -%dir %{_includedir}/php5/ext 56 -%dir %{_includedir}/php5/ext/raphf 57 -%{_includedir}/php5/ext/raphf/php_raphf.h 58 +%dir %{_includedir}/php7 59 +%dir %{_includedir}/php7/ext 60 +%dir %{_includedir}/php7/ext/raphf 61 +%{_includedir}/php7/ext/raphf/php_raphf.h 62 63 -%changelog -n php5-raphf 64 +%changelog -n php7-raphf 65 |
||
[+] | Added | project.diff ^ |
@@ -0,0 +1,57 @@ +--- php5-raphf.spec.orig ++++ php5-raphf.spec +@@ -9,7 +9,7 @@ + %define upstream 0 + %endif + # +-Name: php5-raphf ++Name: php7-raphf + Version: %{my_version} + Release: 0 + # +@@ -17,9 +17,9 @@ License: PHP + Group: Productivity/Networking/Web/Servers + # + BuildRoot: %{_tmppath}/%{pkg_name}-%{my_version}-build +-BuildRequires: php5-devel +-BuildRequires: -php5-raphf +-BuildRequires: -php5-propro ++BuildRequires: php7-devel ++BuildRequires: -php7-raphf ++BuildRequires: -php7-propro + # + URL: http://pecl.php.net/raphf + Source: http://pecl.php.net/package/raphf/%{pkg_name}-%{my_version}.tgz +@@ -62,9 +62,9 @@ popd + %install + + %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} +-%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d +-echo "; comment out next line to disable raphf extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/raphf.ini +-echo 'extension = raphf.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/raphf.ini ++%{__mkdir_p} %{buildroot}%{_sysconfdir}/php7/conf.d ++echo "; comment out next line to disable raphf extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini ++echo 'extension = raphf.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini + + + %clean +@@ -73,12 +73,12 @@ echo 'extension = raphf.so' >> %{buildro + + %files + %defattr(644,root,root,755) +-%{_libdir}/php5/extensions/raphf.so +-%config(noreplace) %{_sysconfdir}/php5/conf.d/raphf.ini ++%{_libdir}/php7/extensions/raphf.so ++%config(noreplace) %{_sysconfdir}/php7/conf.d/raphf.ini + %doc CREDITS +-%dir %{_includedir}/php5 +-%dir %{_includedir}/php5/ext +-%dir %{_includedir}/php5/ext/raphf +-%{_includedir}/php5/ext/raphf/php_raphf.h ++%dir %{_includedir}/php7 ++%dir %{_includedir}/php7/ext ++%dir %{_includedir}/php7/ext/raphf ++%{_includedir}/php7/ext/raphf/php_raphf.h + +-%changelog -n php5-raphf ++%changelog -n php7-raphf |