26 |
Name: php |
Name: php |
27 |
Epoch: 3 |
Epoch: 3 |
28 |
Version: %{php_common_major}.%{php_common_sub}.11 |
Version: %{php_common_major}.%{php_common_sub}.11 |
29 |
Release: %mkrel 2 |
Release: %mkrel 3 |
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 |
46 |
Source11: php.ini-production-orig |
Source11: php.ini-production-orig |
47 |
Source12: php.ini-development-orig |
Source12: php.ini-development-orig |
48 |
Source13: 70_mod_php.conf |
Source13: 70_mod_php.conf |
49 |
|
|
50 |
|
# nginx files |
51 |
|
Source20: nginx-fpm.conf |
52 |
|
Source21: nginx-php.conf |
53 |
|
|
54 |
#automatic adding does not work on build server |
#automatic adding does not work on build server |
55 |
Source101: 05_assertion.ini |
Source101: 05_assertion.ini |
56 |
Source102: 05_date.ini |
Source102: 05_date.ini |
1243 |
#add all common requirements to the lib as a central |
#add all common requirements to the lib as a central |
1244 |
Requires: %{libname} = %{epoch}:%{version} |
Requires: %{libname} = %{epoch}:%{version} |
1245 |
Requires: webserver |
Requires: webserver |
|
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
|
1246 |
Provides: php = %{epoch}:%{version} |
Provides: php = %{epoch}:%{version} |
1247 |
Suggests: php-fpm-apache |
Suggests: php-fpm-apache |
1248 |
|
|
1262 |
Requires: apache >= 2.2 |
Requires: apache >= 2.2 |
1263 |
Requires: apache-mod_proxy |
Requires: apache-mod_proxy |
1264 |
Conflicts: apache-mod_php |
Conflicts: apache-mod_php |
1265 |
|
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
1266 |
|
|
1267 |
%description fpm-apache |
%description fpm-apache |
1268 |
This provides the configuration files to use php-fpm with apache. |
This provides the configuration files to use php-fpm with apache. |
1269 |
|
|
1270 |
|
%package fpm-nginx |
1271 |
|
Summary: PHP FastCGI Process Manager config for nginx |
1272 |
|
Group: Development/PHP |
1273 |
|
Requires: php-fpm |
1274 |
|
Requires: nginx |
1275 |
|
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
1276 |
|
|
1277 |
|
%description fpm-nginx |
1278 |
|
This provides the configuration files to use php-fpm with apache. |
1279 |
|
|
1280 |
%package -n phpdbg |
%package -n phpdbg |
1281 |
Summary: The interactive PHP debugger |
Summary: The interactive PHP debugger |
1282 |
Group: Development/PHP |
Group: Development/PHP |
1581 |
install -m0644 %{SOURCE10} %{buildroot}%{_httpd_modconfdir}/ |
install -m0644 %{SOURCE10} %{buildroot}%{_httpd_modconfdir}/ |
1582 |
install -m0644 %{SOURCE13} %{buildroot}%{_httpd_modconfdir}/ |
install -m0644 %{SOURCE13} %{buildroot}%{_httpd_modconfdir}/ |
1583 |
|
|
1584 |
|
# Nginx configuration |
1585 |
|
|
1586 |
|
install -D -m 644 %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/conf.d/php-fpm.conf |
1587 |
|
install -D -m 644 %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/php.conf |
1588 |
|
|
1589 |
# adjust a bit |
# adjust a bit |
1590 |
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 |
1591 |
|
|
1993 |
%files fpm-apache |
%files fpm-apache |
1994 |
%config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE10}) |
%config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE10}) |
1995 |
|
|
1996 |
|
%files fpm-nginx |
1997 |
|
%config(noreplace) %{_sysconfdir}/nginx/conf.d/php-fpm.conf |
1998 |
|
%config(noreplace) %{_sysconfdir}/nginx/default.d/php.conf |
1999 |
|
|
2000 |
%files -n phpdbg |
%files -n phpdbg |
2001 |
%doc sapi/phpdbg/CREDITS sapi/phpdbg/README.md |
%doc sapi/phpdbg/CREDITS sapi/phpdbg/README.md |
2002 |
%doc sapi/phpdbg/*.php |
%doc sapi/phpdbg/*.php |