Add php56 deps and create needed directories

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent 3cff192c10
commit 77ffc47f4c
  1. 29
      smeserver-php-fpm.spec

@ -1,5 +1,5 @@
%define version 0.0.1 %define version 0.0.1
%define release 0.beta1 %define release 0.beta4
%define name smeserver-php-fpm %define name smeserver-php-fpm
@ -16,7 +16,25 @@ BuildArchitectures: noarch
BuildRequires: e-smith-devtools BuildRequires: e-smith-devtools
Requires: e-smith-base >= 5.6.0 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 %description
Manage PHP FPM pools, and switch between PHP versions easily 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 %build
perl createlinks perl createlinks
%{__mkdir_p} root/var/log/php/php56/
%{__mkdir_p} root/var/lib/php/php56/{session,tmp,opcache,wsdlcache}
%install %install
/bin/rm -rf $RPM_BUILD_ROOT /bin/rm -rf $RPM_BUILD_ROOT
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist /bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ /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 > %{name}-%{version}-filelist
%clean %clean

Loading…
Cancel
Save