|
@@ -28,12 +28,17 @@
|
|
%define www_group www-data
|
|
%define www_group www-data
|
|
%define fpm_user www-data
|
|
%define fpm_user www-data
|
|
%define fpm_group www-data
|
|
%define fpm_group www-data
|
|
|
|
+%if %{with systemd}
|
|
|
|
+%global fpm_sockdir /run/php%{majorver}-fpm
|
|
|
|
+%else
|
|
|
|
+%global fpm_sockdir /tmp
|
|
|
|
+%endif
|
|
|
|
|
|
Name: php%{majorver}
|
|
Name: php%{majorver}
|
|
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
|
|
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
|
|
Summary(ja): HTML 埋め込み型スクリプト言語 PHP
|
|
Summary(ja): HTML 埋め込み型スクリプト言語 PHP
|
|
-Version: 8.0.12
|
|
|
|
-Release: 2%{_dist_release}%{?with_systemd:.systemd}
|
|
|
|
|
|
+Version: 8.0.13
|
|
|
|
+Release: 1%{_dist_release}%{?with_systemd:.systemd}
|
|
Group: programming
|
|
Group: programming
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -53,13 +58,12 @@ Source28: php-fpm.logrotate
|
|
Source29: php_params
|
|
Source29: php_params
|
|
Source31: macros.php.ver
|
|
Source31: macros.php.ver
|
|
Source32: php-fpm.service
|
|
Source32: php-fpm.service
|
|
|
|
+Source33: php-fpm.tmpfiles
|
|
|
|
|
|
# upstream patch
|
|
# upstream patch
|
|
# for libgd >= 2.3.3
|
|
# for libgd >= 2.3.3
|
|
# https://github.com/php/php-src/commit/b3646440b1808abf0874b6f89027ce53ec5da03f
|
|
# https://github.com/php/php-src/commit/b3646440b1808abf0874b6f89027ce53ec5da03f
|
|
Patch1: php-gd2.3.3.patch
|
|
Patch1: php-gd2.3.3.patch
|
|
-# https://github.com/php/php-src/pull/7596
|
|
|
|
-Patch2: php-icu70.patch
|
|
|
|
|
|
|
|
# Additional feature
|
|
# Additional feature
|
|
Patch33: php-5.2.4-phpincludedir.patch
|
|
Patch33: php-5.2.4-phpincludedir.patch
|
|
@@ -418,7 +422,6 @@ on each request.
|
|
%setup -q -n %{srcname}
|
|
%setup -q -n %{srcname}
|
|
|
|
|
|
%patch1 -p1
|
|
%patch1 -p1
|
|
-%patch2 -p1
|
|
|
|
|
|
|
|
%patch33 -p1 -b .phpincludedir
|
|
%patch33 -p1 -b .phpincludedir
|
|
|
|
|
|
@@ -533,6 +536,7 @@ popd
|
|
sed \
|
|
sed \
|
|
-e 's/@WWWUSER@/%{fpm_user}/' \
|
|
-e 's/@WWWUSER@/%{fpm_user}/' \
|
|
-e 's/@WWWGROUP@/%{fpm_group}/' \
|
|
-e 's/@WWWGROUP@/%{fpm_group}/' \
|
|
|
|
+ -e 's|@sockdir@|%{fpm_sockdir}|' \
|
|
-e 's/@majorver@/%{majorver}/' < %{SOURCE27} > default-pool.conf
|
|
-e 's/@majorver@/%{majorver}/' < %{SOURCE27} > default-pool.conf
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
#----------------------------------------------------------------------
|
|
@@ -598,6 +602,12 @@ mkdir -p %{buildroot}%{_unitdir}
|
|
sed -i \
|
|
sed -i \
|
|
-e 's/@majorver@/%{majorver}/g' \
|
|
-e 's/@majorver@/%{majorver}/g' \
|
|
%{buildroot}%{_unitdir}/%{_name}-fpm.service
|
|
%{buildroot}%{_unitdir}/%{_name}-fpm.service
|
|
|
|
+mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
|
+%{__install} -m 644 %{SOURCE33} \
|
|
|
|
+ %{buildroot}%{_tmpfilesdir}/%{_name}-fpm.conf
|
|
|
|
+sed -i \
|
|
|
|
+ -e 's/@majorver@/%{majorver}/g' \
|
|
|
|
+ %{buildroot}%{_tmpfilesdir}/%{_name}-fpm.conf
|
|
%else
|
|
%else
|
|
%{__install} -m 755 %{SOURCE25} %{buildroot}%{_initdir}/%{_name}-fpm
|
|
%{__install} -m 755 %{SOURCE25} %{buildroot}%{_initdir}/%{_name}-fpm
|
|
sed -i -e 's/@majorver@/%{majorver}/g' %{buildroot}%{_initdir}/%{_name}-fpm
|
|
sed -i -e 's/@majorver@/%{majorver}/g' %{buildroot}%{_initdir}/%{_name}-fpm
|
|
@@ -623,7 +633,9 @@ sed -i \
|
|
# Install the configuration file for Nginx
|
|
# Install the configuration file for Nginx
|
|
mkdir -p %{buildroot}%{_sysconfdir}/nginx
|
|
mkdir -p %{buildroot}%{_sysconfdir}/nginx
|
|
%{__install} -m 644 %{SOURCE29} %{buildroot}%{_sysconfdir}/nginx/%{_name}_params
|
|
%{__install} -m 644 %{SOURCE29} %{buildroot}%{_sysconfdir}/nginx/%{_name}_params
|
|
-sed -i -e 's/@majorver@/%{majorver}/g' \
|
|
|
|
|
|
+sed -i \
|
|
|
|
+ -e 's/@majorver@/%{majorver}/g' \
|
|
|
|
+ -e 's|@sockdir@|%{fpm_sockdir}|g' \
|
|
%{buildroot}%{_sysconfdir}/nginx/%{_name}_params
|
|
%{buildroot}%{_sysconfdir}/nginx/%{_name}_params
|
|
|
|
|
|
%{__install} -m 755 -d %{buildroot}%{php_confdir}/php.d
|
|
%{__install} -m 755 -d %{buildroot}%{php_confdir}/php.d
|
|
@@ -867,6 +879,7 @@ rm -f files.*
|
|
%{_sbindir}/%{_name}-fpm
|
|
%{_sbindir}/%{_name}-fpm
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%{_unitdir}/%{_name}-fpm.service
|
|
%{_unitdir}/%{_name}-fpm.service
|
|
|
|
+%{_tmpfilesdir}/%{_name}-fpm.conf
|
|
%else
|
|
%else
|
|
%{_initdir}/%{_name}-fpm
|
|
%{_initdir}/%{_name}-fpm
|
|
%endif
|
|
%endif
|
|
@@ -896,6 +909,10 @@ rm -f files.*
|
|
|
|
|
|
#======================================================================
|
|
#======================================================================
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Nov 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.0.13-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped Patch2: fixed in upstream.
|
|
|
|
+
|
|
* Sat Oct 30 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.0.12-2
|
|
* Sat Oct 30 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.0.12-2
|
|
- built with icu-70.1.
|
|
- built with icu-70.1.
|
|
|
|
|