PHP FPM integration on SME Server. Let you run several versions of PHP (using SCL from Remi's repo) at the same time
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.8 KiB
76 lines
1.8 KiB
%define version 0.0.1
|
|
%define release 0.beta4
|
|
%define name smeserver-php-fpm
|
|
|
|
|
|
Summary: PHP FPM pools on SME Server
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}%{?dist}
|
|
License: MIT
|
|
Group: Applications/System
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
|
|
BuildArchitectures: noarch
|
|
BuildRequires: e-smith-devtools
|
|
|
|
Requires: e-smith-base >= 5.6.0
|
|
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
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%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
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
%defattr(-,root,root)
|
|
|
|
%pre
|
|
|
|
%post
|
|
|
|
%preun
|
|
|
|
%changelog
|
|
* Sun Jul 2 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1-1.sme
|
|
- Initial release
|
|
|