26 |
Name: php |
Name: php |
27 |
Epoch: 3 |
Epoch: 3 |
28 |
Version: 7.4.4 |
Version: 7.4.4 |
29 |
Release: %mkrel 1 |
Release: %mkrel 2 |
30 |
Source0: http://fr2.php.net/distributions/php-%{version}.tar.xz |
Source0: http://fr2.php.net/distributions/php-%{version}.tar.xz |
31 |
Group: Development/PHP |
Group: Development/PHP |
32 |
License: PHP License |
License: PHP License |
1279 |
cp %{SOURCE5} php-fpm.sysconf |
cp %{SOURCE5} php-fpm.sysconf |
1280 |
cp %{SOURCE6} php-fpm.logrotate |
cp %{SOURCE6} php-fpm.logrotate |
1281 |
cp %{SOURCE7} create_data_file.php |
cp %{SOURCE7} create_data_file.php |
1282 |
cp %{SOURCE10} 00-php-fpm.conf |
# php-fpm must be loaded afer mod_proxy |
1283 |
|
cp %{SOURCE10} 10-php-fpm.conf |
1284 |
|
|
1285 |
# Change perms otherwise rpm would get fooled while finding requires |
# Change perms otherwise rpm would get fooled while finding requires |
1286 |
find -name "*.inc" | xargs chmod 644 |
find -name "*.inc" | xargs chmod 644 |
1548 |
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
1549 |
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
1550 |
install -d %{buildroot}%{_httpd_modconfdir} |
install -d %{buildroot}%{_httpd_modconfdir} |
1551 |
install -m0644 00-php-fpm.conf %{buildroot}%{_httpd_modconfdir}/00-php-fpm.conf |
install -m0644 10-php-fpm.conf %{buildroot}%{_httpd_modconfdir}/10-php-fpm.conf |
1552 |
|
|
1553 |
# adjust a bit |
# adjust a bit |
1554 |
perl -pi -e "s|^pid.*|pid = /run/php-fpm/php-fpm.pid|g" %{buildroot}%{_sysconfdir}/php-fpm.conf |
perl -pi -e "s|^pid.*|pid = /run/php-fpm/php-fpm.pid|g" %{buildroot}%{_sysconfdir}/php-fpm.conf |
1955 |
%files fpm |
%files fpm |
1956 |
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html |
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html |
1957 |
%{_unitdir}/php-fpm.service |
%{_unitdir}/php-fpm.service |
1958 |
%config(noreplace) %{_httpd_modconfdir}/00-php-fpm.conf |
%config(noreplace) %{_httpd_modconfdir}/10-php-fpm.conf |
1959 |
%config(noreplace) %{_sysconfdir}/php-fpm.conf |
%config(noreplace) %{_sysconfdir}/php-fpm.conf |
1960 |
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
1961 |
%{_sysconfdir}/logrotate.d/php-fpm |
%{_sysconfdir}/logrotate.d/php-fpm |