/[smecontribs]/rpms/smeserver-php-fpm/contribs9/smeserver-php-fpm.spec
ViewVC logotype

Annotation of /rpms/smeserver-php-fpm/contribs9/smeserver-php-fpm.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Mon Jan 27 18:31:32 2020 UTC (4 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-php-fpm-0_1_1-4_el6_sme, HEAD
Changes since 1.3: +10 -7 lines
* Mon Jan 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.1-4.sme
- fix wrong permission on log folders [SME: 10563]

1 jpp 1.1 %define version 0.1.1
2 jpp 1.4 %define release 4
3 jpp 1.1 %define name smeserver-php-fpm
4    
5    
6     Summary: PHP FPM pools on SME Server
7     Name: %{name}
8     Version: %{version}
9     Release: %{release}%{?dist}
10     License: MIT
11     Group: Applications/System
12     Source: %{name}-%{version}.tar.gz
13 jpp 1.2 Patch0: smeserver-php-fpm-0.1.1.bz10851-php72php73.patch
14 jpp 1.1
15     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16     BuildArch: x86_64
17     BuildRequires: e-smith-devtools
18    
19     Requires: e-smith-base >= 5.6.0
20    
21     # On el7 we can use mod_proxy_fcgi instead
22     %if 0%{?rhel} <= 7
23     Requires: mod_fastcgi
24     %endif
25    
26     Requires: tmpwatch
27     Requires: logrotate
28    
29     # Stock PHP
30     Requires: php-cli
31     Requires: php-ldap
32     Requires: php-imap
33     Requires: php-gd
34     Requires: php-xml
35     Requires: php-xmlrpc
36     Requires: php-soap
37     Requires: php-opcache
38     Requires: php-fpm
39     Requires: php-mbstring
40     Requires: php-mysql
41     Requires: php-json
42     Requires: php-bcmath
43     Requires: php-intl
44     Requires: php-mcrypt
45     Requires: php-pear
46     Requires: php-process
47     Requires: php-snmp
48    
49     # PHP 5.6
50     Requires: php56-php-cli
51     Requires: php56-php-ldap
52     Requires: php56-php-imap
53     Requires: php56-php-gd
54     Requires: php56-php-xml
55     Requires: php56-php-xmlrpc
56     Requires: php56-php-soap
57     Requires: php56-php-opcache
58     Requires: php56-php-fpm
59     Requires: php56-php-mbstring
60     Requires: php56-php-mysql
61     Requires: php56-php-json
62     Requires: php56-php-bcmath
63     Requires: php56-php-intl
64     Requires: php56-php-mcrypt
65     Requires: php56-php-pear
66     Requires: php56-php-process
67     Requires: php56-php-snmp
68    
69     # PHP 7.0
70     Requires: php70-php-cli
71     Requires: php70-php-ldap
72     Requires: php70-php-imap
73     Requires: php70-php-gd
74     Requires: php70-php-xml
75     Requires: php70-php-xmlrpc
76     Requires: php70-php-soap
77     Requires: php70-php-opcache
78     Requires: php70-php-fpm
79     Requires: php70-php-mbstring
80     Requires: php70-php-mysql
81     Requires: php70-php-json
82     Requires: php70-php-bcmath
83     Requires: php70-php-intl
84     Requires: php70-php-mcrypt
85     Requires: php70-php-pear
86     Requires: php70-php-process
87     Requires: php70-php-snmp
88    
89     # PHP 7.1
90     Requires: php71-php-cli
91     Requires: php71-php-ldap
92     Requires: php71-php-imap
93     Requires: php71-php-gd
94     Requires: php71-php-xml
95     Requires: php71-php-xmlrpc
96     Requires: php71-php-soap
97     Requires: php71-php-opcache
98     Requires: php71-php-fpm
99     Requires: php71-php-mbstring
100     Requires: php71-php-mysql
101     Requires: php71-php-json
102     Requires: php71-php-bcmath
103     Requires: php71-php-intl
104     Requires: php71-php-mcrypt
105     Requires: php71-php-pear
106     Requires: php71-php-process
107     Requires: php71-php-snmp
108    
109 jpp 1.2 # PHP 7.2
110     Requires: php72-php-cli
111     Requires: php72-php-ldap
112     Requires: php72-php-imap
113     Requires: php72-php-gd
114     Requires: php72-php-xml
115     Requires: php72-php-xmlrpc
116     Requires: php72-php-soap
117     Requires: php72-php-opcache
118     Requires: php72-php-fpm
119     Requires: php72-php-mbstring
120     Requires: php72-php-mysql
121     Requires: php72-php-json
122     Requires: php72-php-bcmath
123     Requires: php72-php-intl
124     Requires: php72-php-mcrypt
125     Requires: php72-php-pear
126     Requires: php72-php-process
127     Requires: php72-php-snmp
128    
129     # PHP 7.3
130     Requires: php73-php-cli
131     Requires: php73-php-ldap
132     Requires: php73-php-imap
133     Requires: php73-php-gd
134     Requires: php73-php-xml
135     Requires: php73-php-xmlrpc
136     Requires: php73-php-soap
137     Requires: php73-php-opcache
138     Requires: php73-php-fpm
139     Requires: php73-php-mbstring
140     Requires: php73-php-mysql
141     Requires: php73-php-json
142     Requires: php73-php-bcmath
143     Requires: php73-php-intl
144     Requires: php73-php-mcrypt
145     Requires: php73-php-pear
146     Requires: php73-php-process
147     Requires: php73-php-snmp
148 jpp 1.1 %description
149     Manage PHP FPM pools, and switch between PHP versions easily
150    
151     %prep
152     %setup -q -n %{name}-%{version}
153 jpp 1.2 %patch0 -p1
154 jpp 1.1
155     %build
156     perl createlinks
157     %{__mkdir_p} root/var/www/php-cgi-bin/
158     %{__mkdir_p} root/var/log/php/php/
159     %{__mkdir_p} root/var/lib/php/php/{session,tmp,opcache,wsdlcache}
160     %{__mkdir_p} root/var/log/php/php56/
161     %{__mkdir_p} root/var/lib/php/php56/{session,tmp,opcache,wsdlcache}
162     %{__mkdir_p} root/var/log/php/php70/
163     %{__mkdir_p} root/var/lib/php/php70/{session,tmp,opcache,wsdlcache}
164     %{__mkdir_p} root/var/log/php/php71/
165     %{__mkdir_p} root/var/lib/php/php71/{session,tmp,opcache,wsdlcache}
166 jpp 1.2 %{__mkdir_p} root/var/log/php/php72/
167     %{__mkdir_p} root/var/lib/php/php72/{session,tmp,opcache,wsdlcache}
168     %{__mkdir_p} root/var/log/php/php73/
169     %{__mkdir_p} root/var/lib/php/php73/{session,tmp,opcache,wsdlcache}
170 jpp 1.1
171     %install
172     /bin/rm -rf $RPM_BUILD_ROOT
173     (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
174     /bin/rm -f %{name}-%{version}-filelist
175     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
176 jpp 1.4 --dir /var/log/php/php 'attr(0770,root,www)' \
177 jpp 1.1 --dir /var/lib/php/php/session 'attr(0770,root,www)' \
178     --dir /var/lib/php/php/tmp 'attr(0770,root,www)' \
179     --dir /var/lib/php/php/opcache 'attr(0770,root,www)' \
180     --dir /var/lib/php/php/wsdlcache 'attr(0770,root,www)' \
181 jpp 1.4 --dir /var/log/php/php56 'attr(0770,root,www)' \
182 jpp 1.1 --dir /var/lib/php/php56/session 'attr(0770,root,www)' \
183     --dir /var/lib/php/php56/tmp 'attr(0770,root,www)' \
184     --dir /var/lib/php/php56/opcache 'attr(0770,root,www)' \
185     --dir /var/lib/php/php56/wsdlcache 'attr(0770,root,www)' \
186 jpp 1.4 --dir /var/log/php/php70 'attr(0770,root,www)' \
187 jpp 1.1 --dir /var/lib/php/php70/session 'attr(0770,root,www)' \
188     --dir /var/lib/php/php70/tmp 'attr(0770,root,www)' \
189     --dir /var/lib/php/php70/opcache 'attr(0770,root,www)' \
190     --dir /var/lib/php/php70/wsdlcache 'attr(0770,root,www)' \
191 jpp 1.4 --dir /var/log/php/php71 'attr(0770,root,www)' \
192 jpp 1.1 --dir /var/lib/php/php71/session 'attr(0770,root,www)' \
193     --dir /var/lib/php/php71/tmp 'attr(0770,root,www)' \
194     --dir /var/lib/php/php71/opcache 'attr(0770,root,www)' \
195     --dir /var/lib/php/php71/wsdlcache 'attr(0770,root,www)' \
196 jpp 1.4 --dir /var/log/php/php72 'attr(0770,root,www)' \
197 jpp 1.2 --dir /var/lib/php/php72/session 'attr(0770,root,www)' \
198     --dir /var/lib/php/php72/tmp 'attr(0770,root,www)' \
199     --dir /var/lib/php/php72/opcache 'attr(0770,root,www)' \
200     --dir /var/lib/php/php72/wsdlcache 'attr(0770,root,www)' \
201 jpp 1.4 --dir /var/log/php/php73 'attr(0770,root,www)' \
202 jpp 1.2 --dir /var/lib/php/php73/session 'attr(0770,root,www)' \
203     --dir /var/lib/php/php73/tmp 'attr(0770,root,www)' \
204     --dir /var/lib/php/php73/opcache 'attr(0770,root,www)' \
205     --dir /var/lib/php/php73/wsdlcache 'attr(0770,root,www)' \
206 jpp 1.1 > %{name}-%{version}-filelist
207    
208     %clean
209     rm -rf $RPM_BUILD_ROOT
210    
211     %files -f %{name}-%{version}-filelist
212     %defattr(-,root,root)
213    
214     %pre
215    
216     %post
217    
218     %preun
219    
220     %changelog
221 jpp 1.4 * Mon Jan 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.1-4.sme
222     - fix wrong permission on log folders [SME: 10563]
223    
224 jpp 1.3 * Mon Dec 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.1-3.sme
225 jpp 1.2 - import to mecontribs
226     - add php72 and php73 fix [SME: 10851]
227    
228 jpp 1.1 * Thu Jul 27 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1.sme
229     - Fix closing parenthesis on prop method in httpd template
230    
231     * Wed Jul 26 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme
232     - Initial release

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed