--- rpms/smeserver-php-fpm/contribs9/smeserver-php-fpm.spec 2019/12/16 18:38:47 1.1 +++ rpms/smeserver-php-fpm/contribs9/smeserver-php-fpm.spec 2019/12/16 18:56:19 1.2 @@ -1,5 +1,5 @@ %define version 0.1.1 -%define release 1 +%define release 2 %define name smeserver-php-fpm @@ -10,6 +10,7 @@ Release: %{release}%{?dist} License: MIT Group: Applications/System Source: %{name}-%{version}.tar.gz +Patch0: smeserver-php-fpm-0.1.1.bz10851-php72php73.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: x86_64 @@ -105,11 +106,51 @@ Requires: php71-php-pear Requires: php71-php-process Requires: php71-php-snmp +# PHP 7.2 +Requires: php72-php-cli +Requires: php72-php-ldap +Requires: php72-php-imap +Requires: php72-php-gd +Requires: php72-php-xml +Requires: php72-php-xmlrpc +Requires: php72-php-soap +Requires: php72-php-opcache +Requires: php72-php-fpm +Requires: php72-php-mbstring +Requires: php72-php-mysql +Requires: php72-php-json +Requires: php72-php-bcmath +Requires: php72-php-intl +Requires: php72-php-mcrypt +Requires: php72-php-pear +Requires: php72-php-process +Requires: php72-php-snmp + +# PHP 7.3 +Requires: php73-php-cli +Requires: php73-php-ldap +Requires: php73-php-imap +Requires: php73-php-gd +Requires: php73-php-xml +Requires: php73-php-xmlrpc +Requires: php73-php-soap +Requires: php73-php-opcache +Requires: php73-php-fpm +Requires: php73-php-mbstring +Requires: php73-php-mysql +Requires: php73-php-json +Requires: php73-php-bcmath +Requires: php73-php-intl +Requires: php73-php-mcrypt +Requires: php73-php-pear +Requires: php73-php-process +Requires: php73-php-snmp %description Manage PHP FPM pools, and switch between PHP versions easily %prep %setup -q -n %{name}-%{version} +%patch0 -p1 %build perl createlinks @@ -122,6 +163,10 @@ perl createlinks %{__mkdir_p} root/var/lib/php/php70/{session,tmp,opcache,wsdlcache} %{__mkdir_p} root/var/log/php/php71/ %{__mkdir_p} root/var/lib/php/php71/{session,tmp,opcache,wsdlcache} +%{__mkdir_p} root/var/log/php/php72/ +%{__mkdir_p} root/var/lib/php/php72/{session,tmp,opcache,wsdlcache} +%{__mkdir_p} root/var/log/php/php73/ +%{__mkdir_p} root/var/lib/php/php73/{session,tmp,opcache,wsdlcache} %install /bin/rm -rf $RPM_BUILD_ROOT @@ -148,6 +193,16 @@ perl createlinks --dir /var/lib/php/php71/tmp 'attr(0770,root,www)' \ --dir /var/lib/php/php71/opcache 'attr(0770,root,www)' \ --dir /var/lib/php/php71/wsdlcache 'attr(0770,root,www)' \ + --dir /var/log/php/php72/ 'attr(0770,root,www)' \ + --dir /var/lib/php/php72/session 'attr(0770,root,www)' \ + --dir /var/lib/php/php72/tmp 'attr(0770,root,www)' \ + --dir /var/lib/php/php72/opcache 'attr(0770,root,www)' \ + --dir /var/lib/php/php72/wsdlcache 'attr(0770,root,www)' \ + --dir /var/log/php/php73/ 'attr(0770,root,www)' \ + --dir /var/lib/php/php73/session 'attr(0770,root,www)' \ + --dir /var/lib/php/php73/tmp 'attr(0770,root,www)' \ + --dir /var/lib/php/php73/opcache 'attr(0770,root,www)' \ + --dir /var/lib/php/php73/wsdlcache 'attr(0770,root,www)' \ > %{name}-%{version}-filelist %clean @@ -163,6 +218,10 @@ rm -rf $RPM_BUILD_ROOT %preun %changelog +* Mon Dec 16 2019 Jean-Philipe Pialasse 0.1.1-2.sme +- import to mecontribs +- add php72 and php73 fix [SME: 10851] + * Thu Jul 27 2017 Daniel Berteaud - 0.1.1-1.sme - Fix closing parenthesis on prop method in httpd template