From d24cc6073537d99c9732003df02b33d0ec2caf27 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Sat, 23 Mar 2024 17:40:16 -0400 Subject: [PATCH] * Sat Mar 23 2024 Jean-Philippe Pialasse 11.0.0-3.sme - drop support for php < 7.2 [SME: 12521] --- .gitattributes | 1 + smeserver-php-11.0.0.tar.xz | 3 + smeserver-php.spec | 120 ++++-------------------------------- 3 files changed, 17 insertions(+), 107 deletions(-) create mode 100644 .gitattributes create mode 100644 smeserver-php-11.0.0.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1177240 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/smeserver-php-11.0.0.tar.xz b/smeserver-php-11.0.0.tar.xz new file mode 100644 index 0000000..d19b310 --- /dev/null +++ b/smeserver-php-11.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56ad9e212a141226a613129ea7e4c58e19aec59842f1e33cb5546a383d1b7a3b +size 17344 diff --git a/smeserver-php.spec b/smeserver-php.spec index d6a87f7..cb645df 100644 --- a/smeserver-php.spec +++ b/smeserver-php.spec @@ -1,5 +1,5 @@ %define version 11.0.0 -%define release 2 +%define release 3 %define name smeserver-php %global debug_package %{nil} @@ -19,15 +19,13 @@ Requires: smeserver-base >= 5.6.0 Provides: e-smith-php = %{version}-%{release} Obsoletes: e-smith-php < %{version} Provides: smeserver-webapps-common -Provides: php(language) = 7.0 -Provides: php(language) = 7.1 -Provides: php(language) = 7.2 -Provides: php(language) = 7.3 -Provides: php(language) = 7.4 -Provides: php(language) = 8.0 -Provides: php(language) = 8.1 -Provides: php(language) = 8.2 -Provides: php(language) = 8.3 +#Provides: php(language) = 7.2 +#Provides: php(language) = 7.3 +#Provides: php(language) = 7.4 +#Provides: php(language) = 8.0 +#Provides: php(language) = 8.1 +#Provides: php(language) = 8.2 +#Provides: php(language) = 8.3 Requires: tmpwatch Requires: logrotate @@ -51,91 +49,6 @@ Requires: php-pear Requires: php-process Requires: php-snmp - -# PHP 5.5 -Requires: php55-php-cli -Requires: php55-php-ldap -Requires: php55-php-imap -Requires: php55-php-gd -Requires: php55-php-xml -Requires: php55-php-xmlrpc -Requires: php55-php-soap -Requires: php55-php-opcache -Requires: php55-php-fpm -Requires: php55-php-mbstring -Requires: php55-php-mysql -Requires: php55-php-json -Requires: php55-php-bcmath -Requires: php55-php-intl -Requires: php55-php-mcrypt -Requires: php55-php-pear -Requires: php55-php-process -Requires: php55-php-snmp -Requires: php55-php, php55-php-enchant , php55-php-pdo php55-php-tidy , php55-php-mysqlnd php55-php-pecl-zip - -# PHP 5.6 -Requires: php56-php-cli -Requires: php56-php-ldap -Requires: php56-php-imap -Requires: php56-php-gd -Requires: php56-php-xml -Requires: php56-php-xmlrpc -Requires: php56-php-soap -Requires: php56-php-opcache -Requires: php56-php-fpm -Requires: php56-php-mbstring -Requires: php56-php-mysql -Requires: php56-php-json -Requires: php56-php-bcmath -Requires: php56-php-intl -Requires: php56-php-mcrypt -Requires: php56-php-pear -Requires: php56-php-process -Requires: php56-php-snmp -Requires: php56-php, php56-php-enchant , php56-php-pdo php56-php-tidy , php56-php-mysqlnd php56-php-pecl-zip - -# PHP 7.0 -Requires: php70-php-cli -Requires: php70-php-ldap -Requires: php70-php-imap -Requires: php70-php-gd -Requires: php70-php-xml -Requires: php70-php-xmlrpc -Requires: php70-php-soap -Requires: php70-php-opcache -Requires: php70-php-fpm -Requires: php70-php-mbstring -Requires: php70-php-mysql -Requires: php70-php-json -Requires: php70-php-bcmath -Requires: php70-php-intl -Requires: php70-php-mcrypt -Requires: php70-php-pear -Requires: php70-php-process -Requires: php70-php-snmp -Requires: php70-php, php70-php-enchant , php70-php-pdo php70-php-tidy , php70-php-mysqlnd php70-php-pecl-zip - -# PHP 7.1 -Requires: php71-php-cli -Requires: php71-php-ldap -Requires: php71-php-imap -Requires: php71-php-gd -Requires: php71-php-xml -Requires: php71-php-xmlrpc -Requires: php71-php-soap -Requires: php71-php-opcache -Requires: php71-php-fpm -Requires: php71-php-mbstring -Requires: php71-php-mysql -Requires: php71-php-json -Requires: php71-php-bcmath -Requires: php71-php-intl -Requires: php71-php-mcrypt -Requires: php71-php-pear -Requires: php71-php-process -Requires: php71-php-snmp -Requires: php71-php, php71-php-enchant , php71-php-pdo php71-php-tidy , php71-php-mysqlnd php71-php-pecl-zip - # PHP 7.2 Requires: php72-php-cli Requires: php72-php-ldap @@ -296,7 +209,7 @@ echo "[Install]" > root/usr/lib/systemd/system/php-fpm.service.d/51koozali.conf echo "WantedBy=sme-server.target" >> root/usr/lib/systemd/system/php-fpm.service.d/51koozali.conf %{__mkdir_p} root/etc/e-smith/templates.metadata/etc/logrotate.d/ -for phpver in "55" "56" "70" "71" "72" "73" "74" "80" "81" "82" "83"; do +for phpver in "72" "73" "74" "80" "81" "82" "83"; do #needed folder %{__mkdir_p} root/var/log/php/php$phpver/ %{__mkdir_p} root/var/lib/php/php$phpver/{session,tmp,opcache,wsdlcache} @@ -321,16 +234,6 @@ echo "WantedBy=sme-server.target" >> root/usr/lib/systemd/system/php$phpver-php- done -#to add a new php version -#php5* -for phpver in "55" ; do -#cp php56 metadata -mkdir -p root/etc/e-smith/templates.metadata/opt/remi/php$phpver -cp -a root/etc/e-smith/templates.metadata/opt/remi/php56/* root/etc/e-smith/templates.metadata/opt/remi/php$phpver -#sed inplace -find root/etc/e-smith/templates.metadata/opt/remi/php$phpver -type f -print0 | xargs -0 sed -i 's/56/'$phpver'/g' -done - # php7* for phpver in "72" "73" "74" "80" "81" "82" "83"; do #cp ph70 metada @@ -359,7 +262,7 @@ done --dir /var/lib/php/php/tmp 'attr(0770,root,www)' \ --dir /var/lib/php/php/opcache 'attr(0770,root,www)' \ --dir /var/lib/php/php/wsdlcache 'attr(0770,root,www)' \ -`for phpver in "54" "55" "56" "70" "71" "72" "73" "74" "80" "81" "82" "83"; do echo -n "--dir /var/log/php/php$phpver attr(0770,root,www) --dir /var/lib/php/php$phpver/session attr(0770,root,www) --dir /var/lib/php/php$phpver/tmp attr(0770,root,www) --dir /var/lib/php/php$phpver/opcache attr(0770,root,www) --dir /var/lib/php/php$phpver/wsdlcache attr(0770,root,www) ";done ` \ +`for phpver in "72" "73" "74" "80" "81" "82" "83"; do echo -n "--dir /var/log/php/php$phpver attr(0770,root,www) --dir /var/lib/php/php$phpver/session attr(0770,root,www) --dir /var/lib/php/php$phpver/tmp attr(0770,root,www) --dir /var/lib/php/php$phpver/opcache attr(0770,root,www) --dir /var/lib/php/php$phpver/wsdlcache attr(0770,root,www) ";done ` \ > %{name}-%{version}-filelist @@ -378,6 +281,9 @@ rm -rf $RPM_BUILD_ROOT %preun %changelog +* Sat Mar 23 2024 Jean-Philippe Pialasse 11.0.0-3.sme +- drop support for php < 7.2 [SME: 12521] + * Sat Mar 23 2024 Brian Read 11.0.0-2.sme - Change Requires: e-smith- to Requires:smeserver-