From 77ffc47f4c839c76a6d8610a8f65eea95e218175 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 4 Jul 2017 23:13:13 +0200 Subject: [PATCH] Add php56 deps and create needed directories --- smeserver-php-fpm.spec | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/smeserver-php-fpm.spec b/smeserver-php-fpm.spec index fc4cc07..eb311c9 100644 --- a/smeserver-php-fpm.spec +++ b/smeserver-php-fpm.spec @@ -1,5 +1,5 @@ %define version 0.0.1 -%define release 0.beta1 +%define release 0.beta4 %define name smeserver-php-fpm @@ -16,7 +16,25 @@ BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-base >= 5.6.0 -Requires: php56-fpm +Requires: mod_proxy_fcgi +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 %description Manage PHP FPM pools, and switch between PHP versions easily @@ -26,12 +44,19 @@ Manage PHP FPM pools, and switch between PHP versions easily %build perl createlinks +%{__mkdir_p} root/var/log/php/php56/ +%{__mkdir_p} root/var/lib/php/php56/{session,tmp,opcache,wsdlcache} %install /bin/rm -rf $RPM_BUILD_ROOT (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --dir /var/log/php/php56/ 'attr(root,www,0770)' \ + --dir /var/lib/php/php56/session 'attr(root,www,0770)' \ + --dir /var/lib/php/php56/tmp 'attr(root,www,0770)' \ + --dir /var/lib/php/php56/opcache 'attr(root,www,0770)' \ + --dir /var/lib/php/php56/wsdlcache 'attr(root,www,0770)' \ > %{name}-%{version}-filelist %clean