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.
52 lines
1013 B
52 lines
1013 B
8 years ago
|
%define version 0.0.1
|
||
|
%define release 0.beta1
|
||
|
%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: php56-fpm
|
||
|
|
||
|
%description
|
||
|
Manage PHP FPM pools, and switch between PHP versions easily
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{version}
|
||
|
|
||
|
%build
|
||
|
perl createlinks
|
||
|
|
||
|
%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 \
|
||
|
> %{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
|