1 |
%define _disable_ld_no_undefined 1 |
2 |
|
3 |
%define mod_name mod_php |
4 |
|
5 |
%define build_test 0 |
6 |
%{?_with_test: %{expand: %%global build_test 1}} |
7 |
%{?_without_test: %{expand: %%global build_test 0}} |
8 |
|
9 |
%define build_libmagic 0 |
10 |
%{?_with_libmagic: %{expand: %%global build_libmagic 1}} |
11 |
%{?_without_libmagic: %{expand: %%global build_libmagic 0}} |
12 |
|
13 |
%global __requires_exclude BEGIN|mkinstalldirs|pear\\(|/usr/bin/tclsh |
14 |
|
15 |
%define php_common_major 8 |
16 |
%define php_common_sub 0 |
17 |
%define libname %mklibname php %{php_common_major} |
18 |
|
19 |
# enforce versioned postgresql dependencies because of multiple version |
20 |
# availability in the distribution |
21 |
%define postgresql_version %(pg_config &>/dev/null && pg_config 2>/dev/null | awk '/^VERSION/ { print $4 }' | sed -re 's/rc[0-9]+$//'|| echo 0) |
22 |
|
23 |
%define sapi fpm cgi cli apxs |
24 |
#define sapi cli fpm cgi embed apxs |
25 |
|
26 |
%define _RC %nil |
27 |
|
28 |
Summary: The PHP scripting language |
29 |
Name: php |
30 |
Epoch: 3 |
31 |
Version: %{php_common_major}.%{php_common_sub}.2 |
32 |
Release: %mkrel 1 |
33 |
Source0: http://fr2.php.net/distributions/php-%{version}.tar.xz |
34 |
Group: Development/PHP |
35 |
License: PHP License |
36 |
URL: http://www.php.net |
37 |
Source1: php-test-ini |
38 |
Source2: maxlifetime |
39 |
Source3: php.crond |
40 |
Source4: php-fpm.service |
41 |
Source5: php-fpm.sysconf |
42 |
Source6: php-fpm.logrotate |
43 |
# S7 comes from ext/fileinfo/create_data_file.php but could be removed someday |
44 |
Source7: create_data_file.php |
45 |
# ini based on production version |
46 |
Source8: php-ini |
47 |
Source9: php-fpm-tmpfiles.conf |
48 |
Source10: 10_php-fpm.conf |
49 |
Source11: php.ini-production-orig |
50 |
Source12: php.ini-development-orig |
51 |
Source13: 70_mod_php.conf |
52 |
|
53 |
# nginx files |
54 |
Source20: nginx-fpm.conf |
55 |
Source21: nginx-php.conf |
56 |
|
57 |
#automatic adding does not work on build server |
58 |
Source101: 05_assertion.ini |
59 |
Source102: 05_date.ini |
60 |
Source103: 05_mail.ini |
61 |
Source104: 05_pcre.ini |
62 |
Source105: 10_bz2.ini |
63 |
Source106: 11_calendar.ini |
64 |
Source107: 12_ctype.ini |
65 |
Source108: 13_curl.ini |
66 |
Source109: 14_dba.ini |
67 |
Source1010: 18_dom.ini |
68 |
Source1011: 19_exif.ini |
69 |
Source1012: 21_openssl.ini |
70 |
Source1013: 21_zlib.ini |
71 |
Source1014: 22_ftp.ini |
72 |
Source1015: 23_gd.ini |
73 |
Source1016: 24_gettext.ini |
74 |
Source1017: 25_gmp.ini |
75 |
Source1018: 26_iconv.ini |
76 |
Source1019: 27_imap.ini |
77 |
Source1020: 27_intl.ini |
78 |
Source1021: 28_ldap.ini |
79 |
Source1022: 29_mbstring.ini |
80 |
Source1023: 32_fileinfo.ini |
81 |
Source1024: 33_mysqlnd.ini |
82 |
Source1025: 37_mysqli.ini |
83 |
Source1026: 38_enchant.ini |
84 |
Source1027: 39_odbc.ini |
85 |
Source1028: 40_pcntl.ini |
86 |
Source1030: 42_pgsql.ini |
87 |
Source1031: 43_posix.ini |
88 |
Source1032: 45_readline.ini |
89 |
Source1034: 47_session.ini |
90 |
Source1035: 48_shmop.ini |
91 |
Source1036: 50_snmp.ini |
92 |
Source1037: 51_soap.ini |
93 |
Source1038: 52_sockets.ini |
94 |
Source1040: 56_sysvmsg.ini |
95 |
Source1041: 57_sysvsem.ini |
96 |
Source1042: 58_sysvshm.ini |
97 |
Source1043: 59_tidy.ini |
98 |
Source1044: 60_tokenizer.ini |
99 |
Source1048: 63_xmlreader.ini |
100 |
Source1049: 63_xsl.ini |
101 |
Source1050: 64_xmlwriter.ini |
102 |
Source1051: 66_bcmath.ini |
103 |
Source1052: 70_pdo.ini |
104 |
Source1053: 71_pdo_dblib.ini |
105 |
Source1054: 73_pdo_mysql.ini |
106 |
Source1055: 75_pdo_odbc.ini |
107 |
Source1056: 76_pdo_pgsql.ini |
108 |
Source1057: 77_pdo_sqlite.ini |
109 |
Source1058: 78_pdo_firebird.ini |
110 |
Source1059: 78_sqlite3.ini |
111 |
Source1060: 81_filter.ini |
112 |
Source1062: 83_zip.ini |
113 |
Source1063: 84_phar.ini |
114 |
Source1064: 99_opcache.ini |
115 |
Source1065: 85_sodium.ini |
116 |
Source1066: 98_ffi.ini |
117 |
#Patch1: php-shared.diff |
118 |
Patch2: php-7.1-mga_php.ini.diff |
119 |
Patch5: php-phpbuilddir.diff |
120 |
Patch11: php-7.0.2RC1-libdb.diff |
121 |
##################################################################### |
122 |
# Stolen from PLD |
123 |
Patch22: php-dba-link.patch |
124 |
Patch23: php-zlib-for-getimagesize.patch |
125 |
#(spuhler) taken from Mandriva |
126 |
#Patch29: php-7.0.0RC5-fpm-0.6.5-shared.diff |
127 |
Patch30: php-7.0.0RC5-fpm-0.6.5-mdv_conf.diff |
128 |
##################################################################### |
129 |
# stolen from debian |
130 |
Patch50: php-session.save_path.diff |
131 |
##################################################################### |
132 |
# Stolen from fedora |
133 |
# Functional changes |
134 |
#Patch115: php-dlopen.diff |
135 |
#why do we want to have them public? |
136 |
Patch226: php-no-fvisibility_hidden_fix.diff |
137 |
Patch229: php-7.0.2RC1-session.use_strict_mode.diff |
138 |
|
139 |
BuildRequires: apache-devel >= 2.2 |
140 |
BuildRequires: autoconf |
141 |
BuildRequires: automake |
142 |
BuildRequires: bison |
143 |
BuildRequires: byacc |
144 |
BuildRequires: bzip2-devel |
145 |
BuildRequires: c-client-devel >= 2007 |
146 |
BuildRequires: db-devel |
147 |
BuildRequires: elfutils-devel |
148 |
BuildRequires: file |
149 |
BuildRequires: flex |
150 |
BuildRequires: freetds-devel >= 0.63 |
151 |
BuildRequires: freetype2-devel |
152 |
BuildRequires: gdbm-devel |
153 |
BuildRequires: gettext-devel |
154 |
BuildRequires: gmp-devel |
155 |
BuildRequires: gpm-devel |
156 |
BuildRequires: icu-devel >= 49.0 |
157 |
BuildRequires: lemon |
158 |
BuildRequires: libldap-devel |
159 |
BuildRequires: libtool |
160 |
BuildRequires: libtool-devel |
161 |
BuildRequires: mbfl-devel >= 1.2.0-2 |
162 |
BuildRequires: mercurial |
163 |
BuildRequires: mhash-devel |
164 |
BuildRequires: mysql-devel |
165 |
BuildRequires: net-snmp-devel |
166 |
BuildRequires: net-snmp-mibs |
167 |
BuildRequires: openssl |
168 |
BuildRequires: pam-devel |
169 |
BuildRequires: pkgconfig(enchant-2) |
170 |
BuildRequires: pkgconfig(fbclient) |
171 |
BuildRequires: pkgconfig(gdlib) >= 2.1 |
172 |
BuildRequires: pkgconfig(libcurl) >= 7.9.8 |
173 |
BuildRequires: pkgconfig(libedit) |
174 |
BuildRequires: pkgconfig(libjpeg) |
175 |
BuildRequires: pkgconfig(libpcre2-posix) >= 10.30 |
176 |
BuildRequires: pkgconfig(libpng) |
177 |
BuildRequires: pkgconfig(libsasl2) |
178 |
BuildRequires: pkgconfig(libsodium) |
179 |
BuildRequires: pkgconfig(libwebp) >= 0.4 |
180 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.6 |
181 |
BuildRequires: pkgconfig(libxslt) >= 1.1.0 |
182 |
BuildRequires: pkgconfig(libzip) >= 0.10.1 |
183 |
BuildRequires: pkgconfig(ncurses) |
184 |
BuildRequires: pkgconfig(oniguruma) >= 5.9.2 |
185 |
BuildRequires: pkgconfig(openssl) |
186 |
BuildRequires: pkgconfig(sqlite3) |
187 |
BuildRequires: pkgconfig(systemd) |
188 |
BuildRequires: pkgconfig(x11) |
189 |
BuildRequires: pkgconfig(xpm) |
190 |
BuildRequires: postgresql-devel |
191 |
BuildRequires: re2c >= 0.13.4 |
192 |
BuildRequires: readline-devel |
193 |
BuildRequires: tidy-devel |
194 |
BuildRequires: unixODBC-devel >= 2.2.1 |
195 |
%if %{build_libmagic} |
196 |
BuildRequires: file-devel >= 5.14 |
197 |
%endif |
198 |
|
199 |
%description |
200 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
201 |
integration for several commercial and non-commercial database management |
202 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
203 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
204 |
|
205 |
%package ini |
206 |
Summary: INI files for PHP |
207 |
Group: Development/PHP |
208 |
Provides: php-common = %{epoch}:%{php_common_major}.%{php_common_sub} |
209 |
Provides: php-hash = %{epoch}:%{version} |
210 |
Provides: php-json = %{epoch}:%{version} |
211 |
Provides: php-pcre = %{epoch}:%{version} |
212 |
Provides: php-simplexml = %{epoch}:%{version} |
213 |
Provides: php-xml = %{epoch}:%{version} |
214 |
#TODO are theses really required ? |
215 |
# no, but removing them gives a bugstorm, so please don't. |
216 |
Requires: php = %{epoch}:%{version} |
217 |
Requires: php-openssl = %{epoch}:%{version} |
218 |
Requires: php-sysvsem = %{epoch}:%{version} |
219 |
Requires: php-sysvshm = %{epoch}:%{version} |
220 |
Requires: php-zlib = %{epoch}:%{version} |
221 |
Suggests: php-filter = %{epoch}:%{version} |
222 |
Suggests: php-gettext = %{epoch}:%{version} |
223 |
Suggests: php-posix = %{epoch}:%{version} |
224 |
Suggests: php-xmlreader = %{epoch}:%{version} |
225 |
Suggests: php-xmlwriter = %{epoch}:%{version} |
226 |
Obsoletes: %{libname} < %{epoch}:8.0.1 |
227 |
Obsoletes: php-amf < 0.9.3 |
228 |
Obsoletes: php-apacheaccessor < 1.0.2 |
229 |
Obsoletes: php-apm < 2.1.3 |
230 |
Obsoletes: php-auth_nds < 2.2.6 |
231 |
Obsoletes: php-awl < 0.54 |
232 |
Obsoletes: php-bbcode < 1.0.4 |
233 |
Obsoletes: php-bloomy < 0.1.1 |
234 |
Obsoletes: php-braille < 0.1.2 |
235 |
Obsoletes: php-cairo < 0.3.3 |
236 |
Obsoletes: php-cairo_wrapper < 0.2.5 |
237 |
Obsoletes: php-cyrus < 1.1 |
238 |
Obsoletes: php-dav < 1.3 |
239 |
Obsoletes: php-dbx < 1.1.3 |
240 |
Obsoletes: php-docblock < 7.0.0 |
241 |
Obsoletes: php-doublemetaphone < 1.0.2 |
242 |
Obsoletes: php-ecasound < 7.0.0 |
243 |
Obsoletes: php-esmtp < 7.0.0 |
244 |
Obsoletes: php-fam < 5.0.2 |
245 |
Obsoletes: php-gearman < 1.1.3 |
246 |
Obsoletes: php-geoip < 1.1.2 |
247 |
Obsoletes: php-gnutls < 0.4 |
248 |
Obsoletes: php-hash < 7.0.0 |
249 |
Obsoletes: php-haru < 1.0.5 |
250 |
Obsoletes: php-hidef < 0.1.14 |
251 |
Obsoletes: php-htscanner < 1.0.2 |
252 |
Obsoletes: php-http < 3.2.4 |
253 |
Obsoletes: php-id3 < 0.3 |
254 |
Obsoletes: php-inclued < 0.1.4 |
255 |
Obsoletes: php-interbase < 7.0.0 |
256 |
Obsoletes: php-json < 8.0.0 |
257 |
Obsoletes: php-layersmenu < 3.3.0 |
258 |
Obsoletes: php-libevent < 0.1.1 |
259 |
Obsoletes: php-magickwand < 1.0.9.3 |
260 |
Obsoletes: php-mailparse < 3.0.2 |
261 |
Obsoletes: php-mcal < 0.6-51 |
262 |
Obsoletes: php-mdbtools < 7.0.0 |
263 |
Obsoletes: php-ming < 7.0.0 |
264 |
Obsoletes: php-mongo < 1.6.14 |
265 |
Obsoletes: php-mssql < 7.0.0 |
266 |
Obsoletes: php-netools < 7.0.0 |
267 |
Obsoletes: php-newt < 1.3.0 |
268 |
Obsoletes: php-oggvorbis < 0.3 |
269 |
Obsoletes: php-optimizer < 7.0.0 |
270 |
Obsoletes: php-pam < 7.0.0 |
271 |
Obsoletes: php-pear-Date_Holidays < 0.22 |
272 |
Obsoletes: php-pear-Horde < 7.0.0 |
273 |
Obsoletes: php-pear-PHP_Parser < 7.0.0 |
274 |
Obsoletes: php-pear-PHP_Parser_DocblockParser < 7.0.0 |
275 |
Obsoletes: php-pinba < 7.0.0 |
276 |
Obsoletes: php-pluf < 7.0.0 |
277 |
Obsoletes: php-proctitle < 0.1.2 |
278 |
Obsoletes: php-propro < 2.1.1 |
279 |
Obsoletes: php-rar < 4.0.0 |
280 |
Obsoletes: php-recode < 7.0.0 |
281 |
Obsoletes: php-redland <= 1.0.17 |
282 |
Obsoletes: php-sasl < 7.0.0 |
283 |
Obsoletes: php-suhosin < %{epoch}:7.0.0 |
284 |
Obsoletes: php-swish < 7.0.0 |
285 |
Obsoletes: php-sybase_ct < 7.0.0 |
286 |
Obsoletes: php-symfony-YAML < 7.0.0 |
287 |
Obsoletes: php-syslog-ng < 7.0.0 |
288 |
Obsoletes: php-tclink < %{epoch}:7.0.0 |
289 |
Obsoletes: php-timezonedb < %{epoch}:7.0.0 |
290 |
Obsoletes: php-trace < 1.0.2 |
291 |
Obsoletes: php-trader < 0.4.2 |
292 |
Obsoletes: php-txforward < 7.0.0 |
293 |
Obsoletes: php-uploadprogress < 7.0.0 |
294 |
Obsoletes: php-vld < 0.17.1 |
295 |
Obsoletes: php-wbxml < 7.0.0 |
296 |
Obsoletes: php-wddx < 7.0.0 |
297 |
Obsoletes: php-xdiff <= 2.0.1 |
298 |
Obsoletes: php-xml < %{epoch}:7.0.0 |
299 |
Obsoletes: php-xmlrpc < %{epoch}:8.0.1 |
300 |
Obsoletes: php-yaz < 1.2.4 |
301 |
Obsoletes: php-yrmcds < %{epoch}:7.0.0 |
302 |
Obsoletes: php-ZendFramework < 2.0.0 |
303 |
|
304 |
%description ini |
305 |
The php-ini package contains the ini file required for PHP. |
306 |
|
307 |
|
308 |
%package -n apache-mod_php |
309 |
Summary: The PHP HTML-embedded scripting language for use with apache |
310 |
Group: System/Servers |
311 |
Requires(pre): rpm-helper |
312 |
Requires(postun): rpm-helper |
313 |
Requires: apache >= 2.2 |
314 |
#add all common requirements to the lib as a central |
315 |
Requires: php-ini >= %{epoch}:%{version} |
316 |
Requires: php-session = %{epoch}:%{version} |
317 |
# php is not fully thread safe |
318 |
# http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 |
319 |
# http://stackoverflow.com/questions/681081/is-php-thread-safe |
320 |
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
321 |
Conflicts: php-fpm-apache |
322 |
Epoch: %{epoch} |
323 |
|
324 |
%description -n apache-mod_php |
325 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
326 |
integration for several commercial and non-commercial database management |
327 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
328 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
329 |
|
330 |
This package contains the PHP apache module. |
331 |
|
332 |
%package cli |
333 |
Summary: PHP CLI interface |
334 |
Group: Development/PHP |
335 |
URL: http://www.php.net/cli |
336 |
#add all common requirements to the lib as a central |
337 |
Requires: php-ini >= %{epoch}:%{version} |
338 |
Provides: php = %{epoch}:%{version} |
339 |
Provides: /usr/bin/php |
340 |
|
341 |
%description cli |
342 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
343 |
integration for several commercial and non-commercial database management |
344 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
345 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
346 |
|
347 |
This package contains a command-line (CLI) version of php. If you need apache |
348 |
module support, you also need to install the apache-mod_php package. |
349 |
|
350 |
%package cgi |
351 |
Summary: PHP CGI interface |
352 |
Group: Development/PHP |
353 |
#add all common requirements to the lib as a central |
354 |
Requires: php-ini >= %{epoch}:%{version} |
355 |
Requires: webserver |
356 |
Requires: php-session = %{epoch}:%{version} |
357 |
Provides: php = %{epoch}:%{version} |
358 |
Provides: php-fcgi = %{epoch}:%{version}-%{release} |
359 |
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
360 |
# because of a added compat softlink |
361 |
Obsoletes: php-fcgi < %{epoch}:%{version}-%{release} |
362 |
|
363 |
%description cgi |
364 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
365 |
integration for several commercial and non-commercial database management |
366 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
367 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
368 |
|
369 |
This package contains a standalone (CGI) version of php with FastCGI support. |
370 |
If you need apache module support, you also need to install the apache-mod_php |
371 |
package. |
372 |
|
373 |
%package devel |
374 |
Summary: Development package for PHP |
375 |
Group: Development/C |
376 |
Requires: php-ini >= %{epoch}:%{version} |
377 |
Requires: autoconf |
378 |
Requires: automake |
379 |
Requires: bison |
380 |
Requires: byacc |
381 |
Requires: chrpath |
382 |
Requires: dos2unix |
383 |
Requires: flex |
384 |
Requires: libtool |
385 |
Requires: libxml2-devel >= 2.6 |
386 |
Requires: libxslt-devel >= 1.1.0 |
387 |
Requires: openssl >= 0.9.8 |
388 |
Requires: openssl-devel >= 0.9.8 |
389 |
Requires: pam-devel |
390 |
Requires: pcre-devel >= 6.6 |
391 |
Requires: pkgconfig(libpcre2-posix) |
392 |
Requires: re2c >= 0.9.11 |
393 |
Requires: tcl |
394 |
|
395 |
%description devel |
396 |
The php-devel package lets you compile dynamic extensions to PHP. Included |
397 |
here is the source for the php extensions. Instead of recompiling the whole php |
398 |
binary to add support for, say, oracle, install this package and use the new |
399 |
self-contained extensions support. |
400 |
|
401 |
%package openssl |
402 |
Summary: OpenSSL extension module for PHP |
403 |
Group: Development/PHP |
404 |
URL: http://www.php.net/openssl |
405 |
Requires: php-ini >= %{epoch}:%{version} |
406 |
|
407 |
%description openssl |
408 |
This is a dynamic shared object (DSO) for PHP that will add OpenSSL support. |
409 |
|
410 |
%package zlib |
411 |
Summary: Zlib extension module for PHP |
412 |
Group: Development/PHP |
413 |
URL: http://www.php.net/zlib |
414 |
Requires: php-ini >= %{epoch}:%{version} |
415 |
|
416 |
%description zlib |
417 |
This is a dynamic shared object (DSO) for PHP that will add zlib compression |
418 |
support to PHP. |
419 |
|
420 |
%package doc |
421 |
Summary: Documentation for PHP |
422 |
Group: Development/PHP |
423 |
BuildArch: noarch |
424 |
|
425 |
%description doc |
426 |
Documentation for php. |
427 |
|
428 |
%package bcmath |
429 |
Summary: The bcmath module for PHP |
430 |
Group: Development/PHP |
431 |
URL: http://www.php.net/bcmath |
432 |
Requires: php-ini >= %{epoch}:%{version} |
433 |
|
434 |
%description bcmath |
435 |
This is a dynamic shared object (DSO) for PHP that will add bc style precision |
436 |
math functions support. |
437 |
|
438 |
For arbitrary precision mathematics PHP offers the Binary Calculator which |
439 |
supports numbers of any size and precision, represented as strings. |
440 |
|
441 |
%package bz2 |
442 |
Summary: Bzip2 extension module for PHP |
443 |
Group: Development/PHP |
444 |
URL: http://www.php.net/bzip2 |
445 |
Requires: php-ini >= %{epoch}:%{version} |
446 |
|
447 |
%description bz2 |
448 |
This is a dynamic shared object (DSO) for PHP that will add bzip2 compression |
449 |
support to PHP. |
450 |
|
451 |
The bzip2 functions are used to transparently read and write bzip2 (.bz2) |
452 |
compressed files. |
453 |
|
454 |
%package calendar |
455 |
Summary: Calendar extension module for PHP |
456 |
Group: Development/PHP |
457 |
URL: http://www.php.net/calendar |
458 |
Requires: php-ini >= %{epoch}:%{version} |
459 |
|
460 |
%description calendar |
461 |
This is a dynamic shared object (DSO) for PHP that will add calendar support. |
462 |
|
463 |
The calendar extension presents a series of functions to simplify converting |
464 |
between different calendar formats. The intermediary or standard it is based on |
465 |
is the Julian Day Count. The Julian Day Count is a count of days starting from |
466 |
January 1st, 4713 B.C. To convert between calendar systems, you must first |
467 |
convert to Julian Day Count, then to the calendar system of your choice. Julian |
468 |
Day Count is very different from the Julian Calendar! For more information on |
469 |
Julian Day Count, visit http://www.hermetic.ch/cal_stud/jdn.htm. For more |
470 |
information on calendar systems visit |
471 |
http://www.boogle.com/info/cal-overview.html. Excerpts from this page are |
472 |
included in these instructions, and are in quotes. |
473 |
|
474 |
%package ctype |
475 |
Summary: Ctype extension module for PHP |
476 |
Group: Development/PHP |
477 |
URL: http://www.php.net/ctype |
478 |
Requires: php-ini >= %{epoch}:%{version} |
479 |
|
480 |
%description ctype |
481 |
This is a dynamic shared object (DSO) for PHP that will add ctype support. |
482 |
|
483 |
The functions provided by this extension check whether a character or string |
484 |
falls into a certain character class according to the current locale (see also |
485 |
setlocale()). |
486 |
|
487 |
%package curl |
488 |
Summary: Curl extension module for PHP |
489 |
Group: Development/PHP |
490 |
URL: http://www.php.net/curl |
491 |
Requires: php-ini >= %{epoch}:%{version} |
492 |
|
493 |
%description curl |
494 |
This is a dynamic shared object (DSO) for PHP that will add curl support. |
495 |
|
496 |
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to |
497 |
connect and communicate to many different types of servers with many different |
498 |
types of protocols. libcurl currently supports the http, https, ftp, gopher, |
499 |
telnet, dict, file, and ldap protocols. libcurl also supports HTTPS |
500 |
certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with |
501 |
PHP's ftp extension), HTTP form based upload, proxies, cookies, and |
502 |
user+password authentication. |
503 |
|
504 |
%package dba |
505 |
Summary: DBA extension module for PHP |
506 |
Group: Development/PHP |
507 |
URL: http://www.php.net/dba |
508 |
Requires: php-ini >= %{epoch}:%{version} |
509 |
|
510 |
%description dba |
511 |
This is a dynamic shared object (DSO) for PHP that will add flat-file databases |
512 |
(DBA) support. |
513 |
|
514 |
These functions build the foundation for accessing Berkeley DB style databases. |
515 |
|
516 |
This is a general abstraction layer for several file-based databases. As such, |
517 |
functionality is limited to a common subset of features supported by modern |
518 |
databases such as Sleepycat Software's DB2. (This is not to be confused with |
519 |
IBM's DB2 software, which is supported through the ODBC functions.) |
520 |
|
521 |
%package dom |
522 |
Summary: Dom extension module for PHP |
523 |
Group: Development/PHP |
524 |
URL: http://www.php.net/dom |
525 |
Requires: php-ini >= %{epoch}:%{version} |
526 |
|
527 |
%description dom |
528 |
This is a dynamic shared object (DSO) for PHP that will add dom support. |
529 |
|
530 |
The DOM extension is the replacement for the DOM XML extension from PHP 4. The |
531 |
extension still contains many old functions, but they should no longer be used. |
532 |
In particular, functions that are not object-oriented should be avoided. |
533 |
|
534 |
The extension allows you to operate on an XML document with the DOM API. |
535 |
|
536 |
%package enchant |
537 |
Summary: Libenchant binder, support near all spelling tools |
538 |
Group: Development/PHP |
539 |
URL: http://www.php.net/ |
540 |
Requires: php-ini >= %{epoch}:%{version} |
541 |
|
542 |
%description enchant |
543 |
Enchant is a binder for libenchant. Libenchant provides a common API for many |
544 |
spell libraries: |
545 |
|
546 |
- aspell/pspell (intended to replace ispell) |
547 |
- hspell (hebrew) |
548 |
- ispell |
549 |
- hunspell (OpenOffice project, mozilla) |
550 |
- uspell (primarily Yiddish, Hebrew, and Eastern European languages) |
551 |
A plugin system allows to add custom spell support. |
552 |
see www.abisource.com/enchant/ |
553 |
|
554 |
%package exif |
555 |
Summary: EXIF extension module for PHP |
556 |
Group: Development/PHP |
557 |
URL: http://www.php.net/exif |
558 |
Requires: php-ini >= %{epoch}:%{version} |
559 |
Requires: php-mbstring = %{epoch}:%{version} |
560 |
|
561 |
%description exif |
562 |
This is a dynamic shared object (DSO) for PHP that will add EXIF tags support |
563 |
in image files. |
564 |
|
565 |
With the exif extension you are able to work with image meta data. For example, |
566 |
you may use exif functions to read meta data of pictures taken from digital |
567 |
cameras by working with information stored in the headers of the JPEG and TIFF |
568 |
images. |
569 |
|
570 |
%package fileinfo |
571 |
Summary: Fileinfo extension module for PHP |
572 |
Group: Development/PHP |
573 |
URL: http://www.php.net/fileinfo |
574 |
Requires: php-ini >= %{epoch}:%{version} |
575 |
|
576 |
%description fileinfo |
577 |
This extension allows retrieval of information regarding vast majority of file. |
578 |
This information may include dimensions, quality, length etc... |
579 |
|
580 |
Additionally it can also be used to retrieve the mime type for a particular |
581 |
file and for text files proper language encoding. |
582 |
|
583 |
%package filter |
584 |
Summary: Extension for safely dealing with input parameters |
585 |
Group: Development/PHP |
586 |
URL: http://www.php.net/filter |
587 |
Requires: php-ini >= %{epoch}:%{version} |
588 |
|
589 |
%description filter |
590 |
The Input Filter extension is meant to address this issue by implementing a set |
591 |
of filters and mechanisms that users can use to safely access their input data. |
592 |
|
593 |
%package ftp |
594 |
Summary: FTP extension module for PHP |
595 |
Group: Development/PHP |
596 |
URL: http://www.php.net/ftp |
597 |
Requires: php-ini >= %{epoch}:%{version} |
598 |
|
599 |
%description ftp |
600 |
This is a dynamic shared object (DSO) for PHP that will add FTP support. |
601 |
|
602 |
The functions in this extension implement client access to file servers |
603 |
speaking the File Transfer Protocol (FTP) as defined in |
604 |
http://www.faqs.org/rfcs/rfc959. This extension is meant for detailed access to |
605 |
an FTP server providing a wide range of control to the executing script. If you |
606 |
only wish to read from or write to a file on an FTP server, consider using the |
607 |
ftp:// wrapper with the filesystem functions which provide a simpler and more |
608 |
intuitive interface. |
609 |
|
610 |
%package gd |
611 |
Summary: GD extension module for PHP |
612 |
Group: Development/PHP |
613 |
URL: http://www.php.net/gd |
614 |
Requires: php-ini >= %{epoch}:%{version} |
615 |
Provides: php-gd-bundled = %{epoch}:%{version} |
616 |
|
617 |
%description gd |
618 |
This is a dynamic shared object (DSO) for PHP that will add GD support, |
619 |
allowing you to create and manipulate images with PHP using the gd library. |
620 |
|
621 |
PHP is not limited to creating just HTML output. It can also be used to create |
622 |
and manipulate image files in a variety of different image formats, including |
623 |
gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image |
624 |
streams directly to a browser. You will need to compile PHP with the GD library |
625 |
of image functions for this to work. GD and PHP may also require other |
626 |
libraries, depending on which image formats you want to work with. |
627 |
|
628 |
You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF, |
629 |
TIFF and JPEG2000 images. |
630 |
|
631 |
%package gettext |
632 |
Summary: Gettext extension module for PHP |
633 |
Group: Development/PHP |
634 |
URL: http://www.php.net/gettext |
635 |
Requires: php-ini >= %{epoch}:%{version} |
636 |
|
637 |
%description gettext |
638 |
This is a dynamic shared object (DSO) for PHP that will add gettext support. |
639 |
|
640 |
The gettext functions implement an NLS (Native Language Support) API which can |
641 |
be used to internationalize your PHP applications. Please see the gettext |
642 |
documentation for your system for a thorough explanation of these functions or |
643 |
view the docs at http://www.gnu.org/software/gettext/manual/gettext.html. |
644 |
|
645 |
%package gmp |
646 |
Summary: Gmp extension module for PHP |
647 |
Group: Development/PHP |
648 |
URL: http://www.php.net/gmp |
649 |
Requires: php-ini >= %{epoch}:%{version} |
650 |
|
651 |
%description gmp |
652 |
This is a dynamic shared object (DSO) for PHP that will add arbitrary length |
653 |
number support using the GNU MP library. |
654 |
|
655 |
%package iconv |
656 |
Summary: Iconv extension module for PHP |
657 |
Group: Development/PHP |
658 |
URL: http://www.php.net/iconv |
659 |
Requires: php-ini >= %{epoch}:%{version} |
660 |
|
661 |
%description iconv |
662 |
This is a dynamic shared object (DSO) for PHP that will add iconv support. |
663 |
|
664 |
This module contains an interface to iconv character set conversion facility. |
665 |
With this module, you can turn a string represented by a local character set |
666 |
into the one represented by another character set, which may be the Unicode |
667 |
character set. Supported character sets depend on the iconv implementation of |
668 |
your system. Note that the iconv function on some systems may not work as you |
669 |
expect. In such case, it'd be a good idea to install the GNU libiconv library. |
670 |
It will most likely end up with more consistent results. |
671 |
|
672 |
%package imap |
673 |
Summary: IMAP extension module for PHP |
674 |
Group: Development/PHP |
675 |
URL: http://www.php.net/iamp |
676 |
Requires: php-ini >= %{epoch}:%{version} |
677 |
|
678 |
%description imap |
679 |
This is a dynamic shared object (DSO) for PHP that will add IMAP support. |
680 |
|
681 |
These functions are not limited to the IMAP protocol, despite their name. The |
682 |
underlying c-client library also supports NNTP, POP3 and local mailbox access |
683 |
methods. |
684 |
|
685 |
%package intl |
686 |
Summary: Internationalization extension module for PHP |
687 |
Group: Development/PHP |
688 |
URL: http://www.php.net/intl |
689 |
Requires: php-ini >= %{epoch}:%{version} |
690 |
|
691 |
%description intl |
692 |
This is a dynamic shared object (DSO) for PHP that will add |
693 |
Internationalization support. |
694 |
|
695 |
Internationalization extension implements ICU library functionality in PHP. |
696 |
|
697 |
%package ldap |
698 |
Summary: LDAP extension module for PHP |
699 |
Group: Development/PHP |
700 |
URL: http://www.php.net/ldap |
701 |
Requires: php-ini >= %{epoch}:%{version} |
702 |
|
703 |
|
704 |
%description ldap |
705 |
This is a dynamic shared object (DSO) for PHP that will add LDAP support. |
706 |
|
707 |
LDAP is the Lightweight Directory Access Protocol, and is a protocol used to |
708 |
access "Directory Servers". The Directory is a special kind of database that |
709 |
holds information in a tree structure. |
710 |
|
711 |
The concept is similar to your hard disk directory structure, except that in |
712 |
this context, the root directory is "The world" and the first level |
713 |
subdirectories are "countries". Lower levels of the directory structure contain |
714 |
entries for companies, organisations or places, while yet lower still we find |
715 |
directory entries for people, and perhaps equipment or documents. |
716 |
|
717 |
%package mbstring |
718 |
Summary: MBstring extension module for PHP |
719 |
Group: Development/PHP |
720 |
URL: http://www.php.net/mbstring |
721 |
Requires: php-ini >= %{epoch}:%{version} |
722 |
|
723 |
|
724 |
%description mbstring |
725 |
This is a dynamic shared object (DSO) for PHP that will add multibyte string |
726 |
support. |
727 |
|
728 |
mbstring provides multibyte specific string functions that help you deal with |
729 |
multibyte encodings in PHP. In addition to that, mbstring handles character |
730 |
encoding conversion between the possible encoding pairs. mbstring is designed |
731 |
to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte |
732 |
encodings for convenience. |
733 |
|
734 |
%package mysqli |
735 |
Summary: MySQL database module for PHP |
736 |
Group: Development/PHP |
737 |
URL: http://www.php.net/mysqli |
738 |
Requires: php-ini >= %{epoch}:%{version} |
739 |
|
740 |
Requires: %{name}-mysqlnd = %{epoch}:%{version} |
741 |
|
742 |
%description mysqli |
743 |
This is a dynamic shared object (DSO) for PHP that will add MySQL database |
744 |
support. |
745 |
|
746 |
The mysqli extension allows you to access the functionality provided by MySQL |
747 |
4.1 and above. It is an improved version of the older PHP MySQL driver, |
748 |
offering various benefits. The developers of the PHP programming language |
749 |
recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer |
750 |
(takes advantage of new functionality) |
751 |
|
752 |
More information about the MySQL Database server can be found at |
753 |
http://www.mysql.com/ |
754 |
|
755 |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
756 |
|
757 |
Documentation for MySQLi can be found at http://www.php.net/manual/en/mysqli.overview.php. |
758 |
|
759 |
%package mysqlnd |
760 |
Summary: MySQL native database module for PHP |
761 |
Group: Development/PHP |
762 |
URL: http://www.php.net/mysqlnd |
763 |
Requires: php-ini >= %{epoch}:%{version} |
764 |
|
765 |
Provides: php-mysql = %{epoch}:%{version}-%{release} |
766 |
|
767 |
%description mysqlnd |
768 |
This is a dynamic shared object (DSO) for PHP that will add MySQL native |
769 |
database support. |
770 |
|
771 |
These functions allow you to access MySQL database servers. More information |
772 |
about MySQL can be found at http://www.mysql.com/. |
773 |
|
774 |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
775 |
|
776 |
%package odbc |
777 |
Summary: ODBC extension module for PHP |
778 |
Group: Development/PHP |
779 |
URL: http://www.php.net/odbc |
780 |
Requires: php-ini >= %{epoch}:%{version} |
781 |
|
782 |
|
783 |
%description odbc |
784 |
This is a dynamic shared object (DSO) for PHP that will add ODBC support. |
785 |
|
786 |
In addition to normal ODBC support, the Unified ODBC functions in PHP allow you |
787 |
to access several databases that have borrowed the semantics of the ODBC API to |
788 |
implement their own API. Instead of maintaining multiple database drivers that |
789 |
were all nearly identical, these drivers have been unified into a single set of |
790 |
ODBC functions. |
791 |
|
792 |
%package opcache |
793 |
Summary: Zend OPcache for PHP |
794 |
Group: Development/PHP |
795 |
URL: http://www.php.net/opcache |
796 |
Requires: php-ini >= %{epoch}:%{version} |
797 |
|
798 |
Obsoletes: php-xcache < 3.2.1 |
799 |
Obsoletes: php-xcache-admin < 3.2.1 |
800 |
|
801 |
%description opcache |
802 |
This is a dynamic shared object (DSO) for PHP that will add OPcache support. |
803 |
|
804 |
The Zend OPcache provides faster PHP execution through opcode caching and |
805 |
optimization. It improves PHP performance by storing precompiled script |
806 |
bytecode in the shared memory. This eliminates the stages of reading code from |
807 |
the disk and compiling it on future access. In addition, it applies a few |
808 |
bytecode optimization patterns that make code execution faster. |
809 |
|
810 |
%package pcntl |
811 |
Summary: Process Control extension module for PHP |
812 |
Group: Development/PHP |
813 |
URL: http://www.php.net/pcntl |
814 |
Requires: php-ini >= %{epoch}:%{version} |
815 |
|
816 |
|
817 |
%description pcntl |
818 |
This is a dynamic shared object (DSO) for PHP that will add process spawning |
819 |
and control support. It supports functions like fork(), waitpid(), signal() |
820 |
etc. |
821 |
|
822 |
Process Control support in PHP implements the Unix style of process creation, |
823 |
program execution, signal handling and process termination. Process Control |
824 |
should not be enabled within a webserver environment and unexpected results may |
825 |
happen if any Process Control functions are used within a webserver |
826 |
environment. |
827 |
|
828 |
%package pdo |
829 |
Summary: PHP Data Objects Interface |
830 |
Group: Development/PHP |
831 |
URL: http://www.php.net/pdo |
832 |
Requires: php-ini >= %{epoch}:%{version} |
833 |
|
834 |
|
835 |
%description pdo |
836 |
PDO provides a uniform data access interface, sporting advanced features such |
837 |
as prepared statements and bound parameters. PDO drivers are dynamically |
838 |
loadable and may be developed independently from the core, but still accessed |
839 |
using the same API. |
840 |
|
841 |
Read the documentation at http://www.php.net/pdo for more information. |
842 |
|
843 |
%package pdo_dblib |
844 |
Summary: Sybase Interface driver for PDO |
845 |
Group: Development/PHP |
846 |
URL: http://www.php.net/pdo_dblib |
847 |
Requires: freetds >= 0.63 |
848 |
Requires: php-pdo = %{epoch}:%{version} |
849 |
Requires: php-ini >= %{epoch}:%{version} |
850 |
|
851 |
|
852 |
%description pdo_dblib |
853 |
PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to |
854 |
enable access from PHP to Microsoft SQL Server and Sybase databases through the |
855 |
FreeTDS libary. |
856 |
|
857 |
%package pdo_firebird |
858 |
Summary: Firebird/InterBase driver for PDO |
859 |
Group: Development/PHP |
860 |
URL: http://www.php.net/pdo_firebird |
861 |
Requires: php-pdo = %{epoch}:%{version} |
862 |
Requires: php-ini >= %{epoch}:%{version} |
863 |
|
864 |
|
865 |
%description pdo_firebird |
866 |
PDO_Firebird is a driver that implements the PHP Data Objects (PDO) interface to |
867 |
enable access from PHP to Firebird databases. |
868 |
|
869 |
%package pdo_mysql |
870 |
Summary: MySQL Interface driver for PDO |
871 |
Group: Development/PHP |
872 |
URL: http://www.php.net/pdo_mysql |
873 |
Requires: php-pdo = %{epoch}:%{version} |
874 |
Requires: php-ini >= %{epoch}:%{version} |
875 |
|
876 |
Requires: %{name}-mysqlnd = %{epoch}:%{version} |
877 |
|
878 |
%description pdo_mysql |
879 |
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to |
880 |
enable access from PHP to MySQL 3.x, 4.x and 5.x databases. |
881 |
|
882 |
PDO_MYSQL will take advantage of native prepared statement support present in |
883 |
MySQL 4.1 and higher. If you're using an older version of the mysql client |
884 |
libraries, PDO will emulate them for you. |
885 |
|
886 |
Please note that this build does NOT support compression protocol because it |
887 |
is built with MySQL Native Driver (mysqlnd). |
888 |
|
889 |
%package pdo_odbc |
890 |
Summary: ODBC v3 Interface driver for PDO |
891 |
Group: Development/PHP |
892 |
URL: http://www.php.net/pdo_odbc |
893 |
Requires: php-pdo = %{epoch}:%{version} |
894 |
Requires: php-ini >= %{epoch}:%{version} |
895 |
|
896 |
|
897 |
%description pdo_odbc |
898 |
PDO_ODBC is a driver that implements the PHP Data Objects (PDO) interface to |
899 |
enable access from PHP to databases through ODBC drivers or through the IBM DB2 |
900 |
Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three |
901 |
different "flavours" of database drivers: |
902 |
|
903 |
- ibm-db2 - Supports access to IBM DB2 Universal Database, Cloudscape, and |
904 |
Apache Derby servers through the free DB2 client. ibm-db2 is not |
905 |
supported in Mageia. |
906 |
|
907 |
- unixODBC - Supports access to database servers through the unixODBC driver |
908 |
manager and the database's own ODBC drivers. |
909 |
|
910 |
- generic - Offers a compile option for ODBC driver managers that are not |
911 |
explicitly supported by PDO_ODBC. |
912 |
|
913 |
%package pdo_pgsql |
914 |
Summary: PostgreSQL interface driver for PDO |
915 |
Group: Development/PHP |
916 |
URL: http://www.php.net/pdo_pgsql |
917 |
Requires: php-pdo = %{epoch}:%{version} |
918 |
Requires: php-ini >= %{epoch}:%{version} |
919 |
|
920 |
Requires: postgresql-libs >= %{postgresql_version} |
921 |
|
922 |
%description pdo_pgsql |
923 |
PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to |
924 |
enable access from PHP to PostgreSQL databases. |
925 |
|
926 |
%package pdo_sqlite |
927 |
Summary: SQLite v3 Interface driver for PDO |
928 |
Group: Development/PHP |
929 |
URL: http://www.php.net/pdo_sqlite |
930 |
Requires: php-pdo = %{epoch}:%{version} |
931 |
Requires: php-ini >= %{epoch}:%{version} |
932 |
|
933 |
|
934 |
%description pdo_sqlite |
935 |
PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to |
936 |
enable access to SQLite 3 databases. |
937 |
|
938 |
This extension provides an SQLite v3 driver for PDO. SQLite V3 is NOT |
939 |
compatible with the bundled SQLite 2 in PHP 5, but is a significant step |
940 |
forwards, featuring complete utf-8 support, native support for blobs, native |
941 |
support for prepared statements with bound parameters and improved concurrency. |
942 |
|
943 |
%package pgsql |
944 |
Summary: PostgreSQL database module for PHP |
945 |
Group: Development/PHP |
946 |
URL: http://www.php.net/pgsql |
947 |
Requires: php-ini >= %{epoch}:%{version} |
948 |
|
949 |
Requires: postgresql-libs >= %{postgresql_version} |
950 |
|
951 |
%description pgsql |
952 |
This is a dynamic shared object (DSO) for PHP that will add PostgreSQL database |
953 |
support. |
954 |
|
955 |
PostgreSQL database is Open Source product and available without cost. |
956 |
Postgres, developed originally in the UC Berkeley Computer Science Department, |
957 |
pioneered many of the object-relational concepts now becoming available in some |
958 |
commercial databases. It provides SQL92/SQL99 language support, transactions, |
959 |
referential integrity, stored procedures and type extensibility. PostgreSQL is |
960 |
an open source descendant of this original Berkeley code. |
961 |
|
962 |
%package phar |
963 |
Summary: Allows running of complete applications out of .phar files |
964 |
Group: Development/PHP |
965 |
URL: http://www.php.net/phar |
966 |
Requires: php-ini >= %{epoch}:%{version} |
967 |
|
968 |
Requires: php-bz2 |
969 |
|
970 |
%description phar |
971 |
This is the extension version of PEAR's PHP_Archive package. Support for |
972 |
zlib, bz2 and crc32 is achieved without any dependency other than the external |
973 |
zlib or bz2 extension. |
974 |
|
975 |
.phar files can be read using the phar stream, or with the Phar class. If the |
976 |
SPL extension is available, a Phar object can be used as an array to iterate |
977 |
over a phar's contents or to read files directly from the phar. |
978 |
|
979 |
Phar archives can be created using the streams API or with the Phar class, if |
980 |
the phar.readonly ini variable is set to false. |
981 |
|
982 |
Full support for MD5 and SHA1 signatures is possible. Signatures can be |
983 |
required if the ini variable phar.require_hash is set to true. When PECL |
984 |
extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as |
985 |
well. |
986 |
|
987 |
%package posix |
988 |
Summary: POSIX extension module for PHP |
989 |
Group: Development/PHP |
990 |
URL: http://www.php.net/posix |
991 |
Requires: php-ini >= %{epoch}:%{version} |
992 |
|
993 |
|
994 |
%description posix |
995 |
This is a dynamic shared object (DSO) for PHP that will add POSIX functions |
996 |
support to PHP. |
997 |
|
998 |
This module contains an interface to those functions defined in the IEEE 1003.1 |
999 |
(POSIX.1) standards document which are not accessible through other means. |
1000 |
POSIX.1 for example defined the open(), read(), write() and close() functions, |
1001 |
too, which traditionally have been part of PHP 3 for a long time. Some more |
1002 |
system specific functions have not been available before, though, and this |
1003 |
module tries to remedy this by providing easy access to these functions. |
1004 |
|
1005 |
%package readline |
1006 |
Summary: Readline extension module for PHP |
1007 |
Group: Development/PHP |
1008 |
URL: http://www.php.net/readline |
1009 |
Requires: php-ini >= %{epoch}:%{version} |
1010 |
|
1011 |
|
1012 |
%description readline |
1013 |
This PHP module adds support for readline functions (only for cli and cgi |
1014 |
SAPIs). |
1015 |
|
1016 |
The readline() functions implement an interface to the GNU Readline library. |
1017 |
These are functions that provide editable command lines. An example being the |
1018 |
way Bash allows you to use the arrow keys to insert characters or scroll |
1019 |
through command history. Because of the interactive nature of this library, it |
1020 |
will be of little use for writing Web applications, but may be useful when |
1021 |
writing scripts used from a command line. |
1022 |
|
1023 |
%package session |
1024 |
Summary: Session extension module for PHP |
1025 |
Group: Development/PHP |
1026 |
URL: http://www.php.net/session |
1027 |
Requires(pre): rpm-helper |
1028 |
Requires(postun): rpm-helper |
1029 |
Requires: php-ini >= %{epoch}:%{version} |
1030 |
Requires: webserver |
1031 |
|
1032 |
%description session |
1033 |
This is a dynamic shared object (DSO) for PHP that will add session support. |
1034 |
|
1035 |
Session support in PHP consists of a way to preserve certain data across |
1036 |
subsequent accesses. This enables you to build more customized applications and |
1037 |
increase the appeal of your web site. |
1038 |
|
1039 |
A visitor accessing your web site is assigned a unique id, the so-called |
1040 |
session id. This is either stored in a cookie on the user side or is propagated |
1041 |
in the URL. |
1042 |
|
1043 |
%package shmop |
1044 |
Summary: Shared Memory Operations extension module for PHP |
1045 |
Group: Development/PHP |
1046 |
URL: http://www.php.net/shmop |
1047 |
Requires: php-ini >= %{epoch}:%{version} |
1048 |
|
1049 |
|
1050 |
%description shmop |
1051 |
This is a dynamic shared object (DSO) for PHP that will add Shared Memory |
1052 |
Operations support. |
1053 |
|
1054 |
Shmop is an easy to use set of functions that allows PHP to read, write, create |
1055 |
and delete Unix shared memory segments. |
1056 |
|
1057 |
%package snmp |
1058 |
Summary: NET-SNMP extension module for PHP |
1059 |
Group: Development/PHP |
1060 |
URL: http://www.php.net/snmp |
1061 |
Requires: net-snmp-mibs |
1062 |
Requires: php-ini >= %{epoch}:%{version} |
1063 |
|
1064 |
|
1065 |
%description snmp |
1066 |
This is a dynamic shared object (DSO) for PHP that will add SNMP support using |
1067 |
the NET-SNMP libraries. |
1068 |
|
1069 |
In order to use the SNMP functions you need to install the NET-SNMP package. |
1070 |
|
1071 |
%package soap |
1072 |
Summary: Soap extension module for PHP |
1073 |
Group: Development/PHP |
1074 |
URL: http://www.php.net/soap |
1075 |
Requires: php-ini >= %{epoch}:%{version} |
1076 |
|
1077 |
|
1078 |
%description soap |
1079 |
This is a dynamic shared object (DSO) for PHP that will add soap support. |
1080 |
|
1081 |
The SOAP extension can be used to write SOAP Servers and Clients. It supports |
1082 |
subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications. |
1083 |
|
1084 |
%package sockets |
1085 |
Summary: Sockets extension module for PHP |
1086 |
Group: Development/PHP |
1087 |
URL: http://www.php.net/sockets |
1088 |
Requires: php-ini >= %{epoch}:%{version} |
1089 |
|
1090 |
|
1091 |
%description sockets |
1092 |
This is a dynamic shared object (DSO) for PHP that will add sockets support. |
1093 |
|
1094 |
The socket extension implements a low-level interface to the socket |
1095 |
communication functions based on the popular BSD sockets, providing the |
1096 |
possibility to act as a socket server as well as a client. |
1097 |
|
1098 |
%package sodium |
1099 |
Summary: Wrapper for the Sodium cryptographic library |
1100 |
Group: Development/PHP |
1101 |
URL: http://php.net/manual/en/book.sodium.php |
1102 |
Requires: php-ini >= %{epoch}:%{version} |
1103 |
|
1104 |
|
1105 |
%description sodium |
1106 |
This is a dynamic shared object (DSO) for PHP that will add libsodium support. |
1107 |
|
1108 |
%package sqlite3 |
1109 |
Summary: SQLite database bindings for PHP |
1110 |
Group: Development/PHP |
1111 |
URL: http://www.php.net/sqlite3 |
1112 |
Requires: php-pdo = %{epoch}:%{version} |
1113 |
Requires: php = %{epoch}:%{version} |
1114 |
Obsoletes: php-sqlite < 4:1.0.4 |
1115 |
|
1116 |
%description sqlite3 |
1117 |
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a |
1118 |
C library that implements an embeddable SQL database engine. Programs that link |
1119 |
with the SQLite library can have SQL database access without running a separate |
1120 |
RDBMS process. |
1121 |
|
1122 |
SQLite is not a client library used to connect to a big database server. SQLite |
1123 |
is the server. The SQLite library reads and writes directly to and from the |
1124 |
database files on disk. |
1125 |
|
1126 |
%package sysvmsg |
1127 |
Summary: SysV msg extension module for PHP |
1128 |
Group: Development/PHP |
1129 |
URL: http://www.php.net/sem |
1130 |
Requires: php-ini >= %{epoch}:%{version} |
1131 |
|
1132 |
|
1133 |
%description sysvmsg |
1134 |
This is a dynamic shared object (DSO) for PHP that will add SysV message queues |
1135 |
support. |
1136 |
|
1137 |
%package sysvsem |
1138 |
Summary: SysV sem extension module for PHP |
1139 |
Group: Development/PHP |
1140 |
URL: http://www.php.net/sem |
1141 |
Requires: php-ini >= %{epoch}:%{version} |
1142 |
|
1143 |
|
1144 |
%description sysvsem |
1145 |
This is a dynamic shared object (DSO) for PHP that will add SysV semaphores |
1146 |
support. |
1147 |
|
1148 |
%package sysvshm |
1149 |
Summary: SysV shm extension module for PHP |
1150 |
Group: Development/PHP |
1151 |
URL: http://www.php.net/sem |
1152 |
Requires: php-ini >= %{epoch}:%{version} |
1153 |
|
1154 |
|
1155 |
%description sysvshm |
1156 |
This is a dynamic shared object (DSO) for PHP that will add SysV Shared Memory |
1157 |
support. |
1158 |
|
1159 |
%package tidy |
1160 |
Summary: Tidy HTML Repairing and Parsing for PHP |
1161 |
Group: Development/PHP |
1162 |
URL: http://www.php.net/tidy |
1163 |
Requires: php-ini >= %{epoch}:%{version} |
1164 |
|
1165 |
|
1166 |
%description tidy |
1167 |
Tidy is a binding for the Tidy HTML clean and repair utility which allows you |
1168 |
to not only clean and otherwise manipluate HTML documents, but also traverse |
1169 |
the document tree using the Zend Engine 2 OO semantics. |
1170 |
|
1171 |
%package tokenizer |
1172 |
Summary: Tokenizer extension module for PHP |
1173 |
Group: Development/PHP |
1174 |
URL: http://www.php.net/tokenizer |
1175 |
Requires: php-ini >= %{epoch}:%{version} |
1176 |
|
1177 |
|
1178 |
%description tokenizer |
1179 |
This is a dynamic shared object (DSO) for PHP that will add Tokenizer support. |
1180 |
|
1181 |
The tokenizer functions provide an interface to the PHP tokenizer embedded in |
1182 |
the Zend Engine. Using these functions you may write your own PHP source |
1183 |
analyzing or modification tools without having to deal with the language |
1184 |
specification at the lexical level. |
1185 |
|
1186 |
%package xmlreader |
1187 |
Summary: Xmlreader extension module for PHP |
1188 |
Group: Development/PHP |
1189 |
URL: http://www.php.net/xmlreader |
1190 |
Requires: php-dom = %{epoch}:%{version} |
1191 |
Requires: php-ini >= %{epoch}:%{version} |
1192 |
|
1193 |
|
1194 |
%description xmlreader |
1195 |
XMLReader represents a reader that provides non-cached, forward-only access to |
1196 |
XML data. It is based upon the xmlTextReader api from libxml |
1197 |
|
1198 |
%package xmlwriter |
1199 |
Summary: Provides fast, non-cached, forward-only means to write XML data |
1200 |
Group: Development/PHP |
1201 |
URL: http://www.php.net/xmlwriter |
1202 |
Requires: php-ini >= %{epoch}:%{version} |
1203 |
|
1204 |
|
1205 |
%description xmlwriter |
1206 |
This extension wraps the libxml xmlWriter API. Represents a writer that |
1207 |
provides a non-cached, forward-only means of generating streams or files |
1208 |
containing XML data. |
1209 |
|
1210 |
%package xsl |
1211 |
Summary: Xsl extension module for PHP |
1212 |
Group: Development/PHP |
1213 |
URL: http://www.php.net/xsl |
1214 |
Requires: php-ini >= %{epoch}:%{version} |
1215 |
|
1216 |
|
1217 |
%description xsl |
1218 |
This is a dynamic shared object (DSO) for PHP that will add xsl support. |
1219 |
|
1220 |
The XSL extension implements the XSL standard, performing XSLT transformations |
1221 |
using the libxslt library |
1222 |
|
1223 |
%package zip |
1224 |
Summary: A zip management extension for PHP |
1225 |
Group: Development/PHP |
1226 |
URL: http://www.php.net/zip |
1227 |
Requires: php-ini >= %{epoch}:%{version} |
1228 |
|
1229 |
|
1230 |
%description zip |
1231 |
This is a dynamic shared object (DSO) for PHP that will add zip support to |
1232 |
create and read zip files using the libzip library. |
1233 |
|
1234 |
%package fpm |
1235 |
Summary: PHP FastCGI Process Manager |
1236 |
Group: Development/PHP |
1237 |
Requires(post): systemd >= %{systemd_required_version} |
1238 |
Requires(post): rpm-helper |
1239 |
Requires(preun): rpm-helper |
1240 |
Requires(pre): rpm-helper |
1241 |
Requires(postun): rpm-helper |
1242 |
#add all common requirements to the lib as a central |
1243 |
Requires: php-ini >= %{epoch}:%{version} |
1244 |
Requires: php-session = %{epoch}:%{version} |
1245 |
Requires: webserver |
1246 |
Provides: php = %{epoch}:%{version} |
1247 |
Suggests: php-fpm-apache |
1248 |
|
1249 |
%description fpm |
1250 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
1251 |
integration for several commercial and non-commercial database management |
1252 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
1253 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
1254 |
|
1255 |
This package contains the FastCGI Process Manager. |
1256 |
|
1257 |
%package fpm-apache |
1258 |
Summary: PHP FastCGI Process Manager config for apache |
1259 |
Group: Development/PHP |
1260 |
Requires: php-fpm |
1261 |
Requires: apache >= 2.2 |
1262 |
Requires: apache-mod_proxy |
1263 |
Conflicts: apache-mod_php |
1264 |
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
1265 |
|
1266 |
%description fpm-apache |
1267 |
This provides the configuration files to use php-fpm with apache. |
1268 |
|
1269 |
%package fpm-nginx |
1270 |
Summary: PHP FastCGI Process Manager config for nginx |
1271 |
Group: Development/PHP |
1272 |
Requires: php-fpm |
1273 |
Requires: nginx |
1274 |
Provides: php-webinterface = %{epoch}:%{version}-%{release} |
1275 |
|
1276 |
%description fpm-nginx |
1277 |
This provides the configuration files to use php-fpm with apache. |
1278 |
|
1279 |
%package -n phpdbg |
1280 |
Summary: The interactive PHP debugger |
1281 |
Group: Development/PHP |
1282 |
Requires: php-ini >= %{epoch}:%{version} |
1283 |
|
1284 |
Requires: php = %{epoch}:%{version} |
1285 |
|
1286 |
%description -n phpdbg |
1287 |
PHP is an HTML-embeddable scripting language. PHP offers built-in database |
1288 |
integration for several commercial and non-commercial database management |
1289 |
systems, so writing a database-enabled script with PHP is fairly simple. The |
1290 |
most common use of PHP coding is probably as a replacement for CGI scripts. |
1291 |
|
1292 |
This package contains the The interactive PHP debugger. |
1293 |
|
1294 |
Implemented as a SAPI module, phpdbg can excert complete control over the |
1295 |
environment without impacting the functionality or performance of your code. |
1296 |
|
1297 |
phpdbg aims to be a lightweight, powerful, easy to use debugging platform for |
1298 |
PHP5.4+ |
1299 |
|
1300 |
%prep |
1301 |
|
1302 |
%autosetup -S hg -n php-%{version}%{_RC} |
1303 |
|
1304 |
cp %{SOURCE1} php-test.ini |
1305 |
cp %{SOURCE4} php-fpm.service |
1306 |
cp %{SOURCE5} php-fpm.sysconf |
1307 |
cp %{SOURCE6} php-fpm.logrotate |
1308 |
cp %{SOURCE7} create_data_file.php |
1309 |
|
1310 |
# Change perms otherwise rpm would get fooled while finding requires |
1311 |
find -name "*.inc" | xargs chmod 644 |
1312 |
find -name "*.php*" | xargs chmod 644 |
1313 |
find -name "*README*" | xargs chmod 644 |
1314 |
|
1315 |
mkdir -p php-devel/extensions |
1316 |
mkdir -p php-devel/sapi |
1317 |
|
1318 |
# Install test files in php-devel |
1319 |
cp -a tests php-devel |
1320 |
|
1321 |
cp -dpR ext/* php-devel/extensions/ |
1322 |
rm -f php-devel/extensions/informix/stub.c |
1323 |
rm -f php-devel/extensions/standard/.deps |
1324 |
rm -f php-devel/extensions/skeleton/EXPERIMENTAL |
1325 |
|
1326 |
# SAPI |
1327 |
cp -dpR sapi/* php-devel/sapi/ |
1328 |
rm -f php-devel/sapi/thttpd/stub.c |
1329 |
rm -f php-devel/sapi/cgi/php.sym |
1330 |
rm -f php-devel/sapi/fastcgi/php.sym |
1331 |
rm -f php-devel/sapi/pi3web/php.sym |
1332 |
|
1333 |
# cleanup |
1334 |
find php-devel -name "*.droplet" | xargs rm -f |
1335 |
|
1336 |
# don't ship MS Windows source |
1337 |
rm -rf php-devel/extensions/com_dotnet |
1338 |
|
1339 |
# likewise with these: |
1340 |
find php-devel -name "*.dsp" | xargs rm -f |
1341 |
find php-devel -name "*.mak" | xargs rm -f |
1342 |
find php-devel -name "*.w32" | xargs rm |
1343 |
|
1344 |
# make sure using system libs |
1345 |
rm -rf ext/pcre/pcrelib |
1346 |
rm -rf ext/pdo_sqlite/sqlite |
1347 |
|
1348 |
%build |
1349 |
%serverbuild |
1350 |
|
1351 |
export CFLAGS="${CFLAGS} -O3 -fno-strict-aliasing -fvisibility=default" |
1352 |
export LDFLAGS="%{ldflags} -O3 -lz" |
1353 |
export CXXFLAGS="${CXXFLAGS} -O3 -fvisibility=default -fvisibility-inlines-hidden" |
1354 |
|
1355 |
cat > php-devel/buildext <<EOF |
1356 |
#!/bin/bash |
1357 |
gcc -Wall -fPIC -shared $CFLAGS \\ |
1358 |
-I. \`%{_bindir}/php-config --includes\` \\ |
1359 |
-I%{_includedir}/libxml2 \\ |
1360 |
-I%{_includedir}/freetype \\ |
1361 |
-I%{_includedir}/openssl \\ |
1362 |
-I%{_usrsrc}/php-devel/ext \\ |
1363 |
-I%{_includedir}/\$1 \\ |
1364 |
\$4 \$2 -o \$1.so \$3 -lc |
1365 |
EOF |
1366 |
|
1367 |
chmod 755 php-devel/buildext |
1368 |
|
1369 |
#export PHP_AUTOCONF=autoconf-2.13 |
1370 |
rm -f configure |
1371 |
rm -rf autom4te.cache |
1372 |
./buildconf --force |
1373 |
|
1374 |
# Do this patch with a perl hack... |
1375 |
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh |
1376 |
|
1377 |
export oldstyleextdir=yes |
1378 |
export EXTENSION_DIR="%{_libdir}/php/extensions" |
1379 |
export PROG_SENDMAIL="%{_sbindir}/sendmail" |
1380 |
export GD_SHARED_LIBADD="$GD_SHARED_LIBADD -lm" |
1381 |
export ENCHANT_CFLAGS=`pkgconf --cflags enchant-2` |
1382 |
export ENCHANT_LIBS=`pkgconf --libs enchant-2` |
1383 |
|
1384 |
# never use "--disable-rpath", it does the opposite |
1385 |
|
1386 |
# Configure php |
1387 |
./configure \ |
1388 |
--enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd \ |
1389 |
--enable-cli \ |
1390 |
--with-apxs2=%{_httpd_apxs} --enable-zts \ |
1391 |
--with-pic \ |
1392 |
--build=%{_build} \ |
1393 |
--prefix=%{_prefix} \ |
1394 |
--exec-prefix=%{_prefix} \ |
1395 |
--bindir=%{_bindir} \ |
1396 |
--sbindir=%{_sbindir} \ |
1397 |
--sysconfdir=%{_sysconfdir} \ |
1398 |
--datadir=%{_datadir} \ |
1399 |
--includedir=%{_includedir} \ |
1400 |
--libdir=%{_libdir} \ |
1401 |
--libexecdir=%{_libexecdir} \ |
1402 |
--localstatedir=/var/lib \ |
1403 |
--mandir=%{_mandir} \ |
1404 |
--enable-shared=yes \ |
1405 |
--enable-static=no \ |
1406 |
--disable-debug \ |
1407 |
--enable-bcmath=shared \ |
1408 |
--enable-calendar=shared \ |
1409 |
--enable-ctype=shared \ |
1410 |
--enable-dba=shared \ |
1411 |
--enable-dom=shared,%{_prefix} \ |
1412 |
--enable-exif=shared \ |
1413 |
--enable-fileinfo=shared \ |
1414 |
--enable-filter=shared \ |
1415 |
--enable-ftp=shared \ |
1416 |
--enable-gd=shared \ |
1417 |
--enable-intl=shared \ |
1418 |
--enable-mbregex \ |
1419 |
--enable-mbstring=shared,%{_prefix} \ |
1420 |
--enable-mysqlnd=shared,%{_bindir}/mysql_config \ |
1421 |
--enable-opcache=shared \ |
1422 |
--enable-pcntl=shared \ |
1423 |
--enable-pdo=shared,%{_prefix} \ |
1424 |
--enable-phar=shared \ |
1425 |
--enable-phpdbg \ |
1426 |
--enable-phpdbg-webhelper \ |
1427 |
--enable-posix=shared \ |
1428 |
--enable-session=shared,%{_prefix} \ |
1429 |
--enable-shmop=shared,%{_prefix} \ |
1430 |
--enable-simplexml \ |
1431 |
--enable-soap=shared,%{_prefix} \ |
1432 |
--enable-sockets=shared,%{_prefix} \ |
1433 |
--enable-sysvmsg=shared,%{_prefix} \ |
1434 |
--enable-sysvsem=shared,%{_prefix} \ |
1435 |
--enable-sysvshm=shared,%{_prefix} \ |
1436 |
--enable-tokenizer=shared,%{_prefix} \ |
1437 |
--enable-xmlreader=shared,%{_prefix} \ |
1438 |
--enable-xmlwriter=shared,%{_prefix} \ |
1439 |
--with-zip=shared \ |
1440 |
--with-bz2=shared,%{_prefix} \ |
1441 |
--with-cdb \ |
1442 |
--with-config-file-path=%{_sysconfdir} \ |
1443 |
--with-config-file-scan-dir=%{_sysconfdir}/php.d \ |
1444 |
--with-curl=shared,%{_prefix} \ |
1445 |
--with-db4 \ |
1446 |
--with-enchant=shared,%{_prefix} \ |
1447 |
--with-freetype=%{_prefix} \ |
1448 |
--with-gdbm \ |
1449 |
--with-external-gd=shared,%{_prefix} \ |
1450 |
--with-gettext=shared,%{_prefix} \ |
1451 |
--with-gmp=shared,%{_prefix} \ |
1452 |
--with-iconv=shared \ |
1453 |
--with-imap=shared,%{_prefix} \ |
1454 |
--with-imap-ssl=%{_prefix} \ |
1455 |
--with-jpeg=%{_prefix} \ |
1456 |
--with-ldap-sasl \ |
1457 |
--with-ldap=shared,%{_prefix} \ |
1458 |
--with-libdir=%{_lib} \ |
1459 |
--with-mhash=shared,%{_prefix} \ |
1460 |
--with-mysqli=shared,mysqlnd \ |
1461 |
--with-mysql-sock=/var/lib/mysql/mysql.sock \ |
1462 |
--with-openssl-dir=%{_prefix} \ |
1463 |
--with-openssl=shared,%{_prefix} \ |
1464 |
--without-pear \ |
1465 |
--with-external-pcre=%{_prefix} \ |
1466 |
--with-pcre-jit \ |
1467 |
--with-pdo-dblib=shared,%{_prefix} \ |
1468 |
--with-pdo-firebird=shared,%{_libdir}/firebird \ |
1469 |
--with-pdo-mysql=shared,mysqlnd \ |
1470 |
--with-pdo-odbc=shared,unixODBC,%{_prefix} \ |
1471 |
--with-pdo-pgsql=shared,%{_prefix} \ |
1472 |
--with-pdo-sqlite=shared,%{_prefix} \ |
1473 |
--with-pgsql=shared,%{_prefix} \ |
1474 |
--with-readline=shared,%{_prefix} \ |
1475 |
--with-snmp=shared,%{_prefix} \ |
1476 |
--with-sodium=shared,%{_prefix} \ |
1477 |
--with-sqlite3=shared,%{_prefix} \ |
1478 |
--with-system-ciphers \ |
1479 |
--with-tidy=shared,%{_prefix} \ |
1480 |
--with-unixODBC=shared,%{_prefix} \ |
1481 |
--with-webp=%{_prefix} \ |
1482 |
--with-xpm=%{_prefix}/X11R6 \ |
1483 |
--with-xsl=shared,%{_prefix} \ |
1484 |
--with-zlib=shared,%{_prefix} \ |
1485 |
--with-zlib-dir=%{_prefix} |
1486 |
|
1487 |
%make_build |
1488 |
|
1489 |
%if %{build_libmagic} |
1490 |
# keep in sync with latest system magic, the next best thing when system libmagic can't be used... |
1491 |
sapi/cli/php create_data_file.php %{_datadir}/misc/magic.mgc > ext/fileinfo/data_file.c |
1492 |
rm -rf ext/fileinfo/.libs ext/fileinfo/*.lo ext/fileinfo/*.la modules/fileinfo.so modules/fileinfo.la |
1493 |
cp -p ext/fileinfo/data_file.c php-devel/extensions/fileinfo/data_file.c |
1494 |
%make_build |
1495 |
%endif |
1496 |
|
1497 |
%install |
1498 |
|
1499 |
install -d %{buildroot}%{_libdir} |
1500 |
install -d %{buildroot}%{_bindir} |
1501 |
install -d %{buildroot}%{_sysconfdir}/php.d |
1502 |
install -d %{buildroot}%{_libdir}/php/extensions |
1503 |
install -d %{buildroot}%{_usrsrc}/php-devel |
1504 |
install -d %{buildroot}%{_mandir}/man1 |
1505 |
install -d %{buildroot}%{_sysconfdir}/cron.d |
1506 |
install -d %{buildroot}/var/lib/php |
1507 |
install -d %{buildroot}%{_datadir}/php |
1508 |
|
1509 |
make install \ |
1510 |
INSTALL_ROOT=%{buildroot} \ |
1511 |
INSTALL_IT="\$(LIBTOOL) --mode=install install libphp.la %{buildroot}%{_libdir}/" |
1512 |
|
1513 |
#clean |
1514 |
rm -f %{buildroot}%{_sysconfdir}/php-fpm.conf.default \ |
1515 |
%{buildroot}%{_sysconfdir}/php-fpm.d/www.conf.default \ |
1516 |
%{buildroot}%{_datadir}/fpm/status.html |
1517 |
|
1518 |
|
1519 |
# borked autopoo |
1520 |
rm -f %{buildroot}%{_bindir}/php %{buildroot}%{_bindir}/php-cgi %{buildroot}%{_bindir}/phpdbg |
1521 |
./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php |
1522 |
./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi |
1523 |
./libtool --silent --mode=install install sapi/phpdbg/phpdbg %{buildroot}%{_bindir}/phpdbg |
1524 |
|
1525 |
# compat php-fcgi symlink |
1526 |
ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi |
1527 |
|
1528 |
cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/ |
1529 |
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/ |
1530 |
install -m0644 main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/ |
1531 |
|
1532 |
install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/ |
1533 |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
1534 |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
1535 |
|
1536 |
# fpm |
1537 |
install -d %{buildroot}%{_unitdir} |
1538 |
install -d %{buildroot}%{_sysconfdir}/logrotate.d |
1539 |
install -d %{buildroot}%{_sysconfdir}/sysconfig |
1540 |
install -d %{buildroot}%{_sysconfdir}/php-fpm.d |
1541 |
install -d %{buildroot}%{_sbindir} |
1542 |
install -d %{buildroot}%{_mandir}/man8 |
1543 |
install -d %{buildroot}/var/lib/php-fpm |
1544 |
install -d %{buildroot}/var/log/php-fpm |
1545 |
install -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/php-fpm.conf |
1546 |
# a small bug here... |
1547 |
echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf |
1548 |
install -m0644 sapi/fpm/www.conf %{buildroot}%{_sysconfdir}/php-fpm.d/ |
1549 |
|
1550 |
./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm |
1551 |
install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/ |
1552 |
install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/ |
1553 |
install -m0644 php-fpm.service %{buildroot}%{_unitdir}/php-fpm.service |
1554 |
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
1555 |
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
1556 |
install -d %{buildroot}%{_httpd_moddir} |
1557 |
install -d %{buildroot}%{_httpd_modconfdir} |
1558 |
install -m0644 %{SOURCE10} %{buildroot}%{_httpd_modconfdir}/ |
1559 |
install -m0644 %{SOURCE13} %{buildroot}%{_httpd_modconfdir}/ |
1560 |
|
1561 |
# Nginx configuration |
1562 |
|
1563 |
install -D -m 644 %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/conf.d/php-fpm.conf |
1564 |
install -D -m 644 %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/php.conf |
1565 |
|
1566 |
# adjust a bit |
1567 |
perl -pi -e "s|^pid.*|pid = /run/php-fpm/php-fpm.pid|g" %{buildroot}%{_sysconfdir}/php-fpm.conf |
1568 |
|
1569 |
ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext |
1570 |
mv %{buildroot}%{_libdir}/libphp.so %{buildroot}%{_httpd_moddir}/%{mod_name}.so |
1571 |
|
1572 |
# extensions |
1573 |
install -m0644 %{_sourcedir}/*.ini %{buildroot}%{_sysconfdir}/php.d/ |
1574 |
install -m0755 %{SOURCE2} %{buildroot}%{_libdir}/php/maxlifetime |
1575 |
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.d/php |
1576 |
install -m0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/php.ini |
1577 |
install -m0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini |
1578 |
|
1579 |
# lib64 hack |
1580 |
perl -pi -e "s|/usr/lib/|%{_libdir}/|" \ |
1581 |
%{buildroot}%{_sysconfdir}/cron.d/php \ |
1582 |
%{buildroot}%{_sysconfdir}/php.ini \ |
1583 |
%{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini \ |
1584 |
php.ini-production \ |
1585 |
php.ini-development |
1586 |
|
1587 |
# install doc manually in _docdir/php, rather than _docdir/php-doc |
1588 |
install -d -m 755 %{buildroot}%{_docdir}/php |
1589 |
install -m 644 \ |
1590 |
CODING_STANDARDS.md EXTENSIONS LICENSE NEWS \ |
1591 |
php.ini-production php.ini-development \ |
1592 |
README.md README.REDIST.BINS UPGRADING UPGRADING.INTERNALS \ |
1593 |
%{buildroot}%{_docdir}/php |
1594 |
|
1595 |
# fix docs |
1596 |
cp Zend/LICENSE Zend/ZEND_LICENSE |
1597 |
cp ext/openssl/CREDITS CREDITS.openssl |
1598 |
cp ext/spl/CREDITS CREDITS.spl |
1599 |
cp ext/libxml/CREDITS CREDITS.libxml |
1600 |
cp ext/zlib/CREDITS CREDITS.zlib |
1601 |
|
1602 |
# cgi docs |
1603 |
cp sapi/cgi/CREDITS CREDITS.cgi |
1604 |
|
1605 |
# cli docs |
1606 |
cp sapi/cli/CREDITS CREDITS.cli |
1607 |
|
1608 |
# phar fixes |
1609 |
if [ -L %{buildroot}%{_bindir}/phar ]; then |
1610 |
rm -f %{buildroot}%{_bindir}/phar |
1611 |
mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar |
1612 |
fi |
1613 |
|
1614 |
# house cleaning |
1615 |
rm -f %{buildroot}%{_bindir}/pear |
1616 |
rm -f %{buildroot}%{_libdir}/*.*a |
1617 |
|
1618 |
# php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL |
1619 |
find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 -exec rm -f {} \; |
1620 |
|
1621 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/build-defs.h |
1622 |
|
1623 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/php_config.h |
1624 |
|
1625 |
%check |
1626 |
%if %{build_test} |
1627 |
# do a make test |
1628 |
export NO_INTERACTION=1 |
1629 |
export PHPRC="." |
1630 |
export REPORT_EXIT_STATUS=2 |
1631 |
export TEST_PHP_DETAILED=0 |
1632 |
export TEST_PHP_ERROR_STYLE=EMACS |
1633 |
#export TEST_PHP_LOG_FORMAT=LESODC |
1634 |
export PHP_INI_SCAN_DIR=/dev/null |
1635 |
|
1636 |
# FAILING TESTS: |
1637 |
# unknown errors with ext/date/tests/oo_002.phpt probably because of php-5.2.5-systzdata.patch |
1638 |
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not) |
1639 |
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt |
1640 |
# unknown errors with ext/standard/tests/strings/setlocale_* |
1641 |
disable_tests="ext/date/tests/oo_002.phpt \ |
1642 |
ext/standard/tests/file/bug22414.phpt \ |
1643 |
ext/standard/tests/general_functions/phpinfo.phpt \ |
1644 |
ext/standard/tests/strings/setlocale_basic1.phpt \ |
1645 |
ext/standard/tests/strings/setlocale_basic2.phpt \ |
1646 |
ext/standard/tests/strings/setlocale_basic3.phpt \ |
1647 |
ext/standard/tests/strings/setlocale_variation1.phpt \ |
1648 |
ext/standard/tests/strings/setlocale_variation3.phpt \ |
1649 |
ext/standard/tests/strings/setlocale_variation4.phpt \ |
1650 |
ext/standard/tests/strings/setlocale_variation5.phpt" |
1651 |
|
1652 |
[[ -n "$disable_tests" ]] && \ |
1653 |
for f in $disable_tests; do |
1654 |
[[ -f "$f" ]] && mv $f $f.disabled |
1655 |
done |
1656 |
|
1657 |
TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php |
1658 |
%endif |
1659 |
|
1660 |
|
1661 |
|
1662 |
%post fpm |
1663 |
%_tmpfilescreate php-fpm |
1664 |
%_post_service php-fpm |
1665 |
|
1666 |
%preun fpm |
1667 |
%_preun_service php-fpm |
1668 |
|
1669 |
# rpm filetrigger to reload httpd when installing/removing php extensions |
1670 |
%transfiletriggerin -- %{_libdir}/php/extensions/ |
1671 |
systemctl reload-or-try-restart httpd.service || : |
1672 |
|
1673 |
%files doc |
1674 |
%doc LICENSE NEWS Zend/ZEND_LICENSE |
1675 |
%doc php.ini-production php.ini-development |
1676 |
%doc CREDITS.libxml CREDITS.zlib |
1677 |
|
1678 |
%files ini |
1679 |
%{_docdir}/php |
1680 |
%config(noreplace) %{_sysconfdir}/php.ini |
1681 |
%config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini |
1682 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE102}) |
1683 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE103}) |
1684 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE104}) |
1685 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE101}) |
1686 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1066}) |
1687 |
%dir %{_sysconfdir}/php.d |
1688 |
%dir %{_libdir}/php |
1689 |
%dir %{_datadir}/php |
1690 |
%dir %{_libdir}/php/extensions |
1691 |
|
1692 |
%files -n apache-mod_php |
1693 |
%config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE13}) |
1694 |
%{_httpd_moddir}/mod_php.so |
1695 |
|
1696 |
%files cli |
1697 |
%doc CREDITS.cli |
1698 |
%{_bindir}/php |
1699 |
%{_mandir}/man1/php.1* |
1700 |
|
1701 |
%files cgi |
1702 |
%doc CREDITS.cgi |
1703 |
%{_bindir}/php-cgi |
1704 |
%{_bindir}/php-fcgi |
1705 |
%{_mandir}/man1/php-cgi.1* |
1706 |
|
1707 |
%files devel |
1708 |
%doc CODING_STANDARDS.md EXTENSIONS |
1709 |
%doc Zend/ZEND_* |
1710 |
%{_bindir}/php-config |
1711 |
%{_bindir}/phpize |
1712 |
%{_libdir}/php/build |
1713 |
%{_usrsrc}/php-devel |
1714 |
%{multiarch_includedir}/php/main/build-defs.h |
1715 |
%{multiarch_includedir}/php/main/php_config.h |
1716 |
%{_includedir}/php |
1717 |
%{_mandir}/man1/php-config.1* |
1718 |
%{_mandir}/man1/phpize.1* |
1719 |
|
1720 |
%files openssl |
1721 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1012}) |
1722 |
%{_libdir}/php/extensions/openssl.so |
1723 |
|
1724 |
%files zlib |
1725 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1013}) |
1726 |
%{_libdir}/php/extensions/zlib.so |
1727 |
|
1728 |
%files bcmath |
1729 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1051}) |
1730 |
%{_libdir}/php/extensions/bcmath.so |
1731 |
|
1732 |
%files bz2 |
1733 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE105}) |
1734 |
%{_libdir}/php/extensions/bz2.so |
1735 |
|
1736 |
%files calendar |
1737 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE106}) |
1738 |
%{_libdir}/php/extensions/calendar.so |
1739 |
|
1740 |
%files ctype |
1741 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE107}) |
1742 |
%{_libdir}/php/extensions/ctype.so |
1743 |
|
1744 |
%files curl |
1745 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE108}) |
1746 |
%{_libdir}/php/extensions/curl.so |
1747 |
|
1748 |
%files dba |
1749 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE109}) |
1750 |
%{_libdir}/php/extensions/dba.so |
1751 |
|
1752 |
%files dom |
1753 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1010}) |
1754 |
%{_libdir}/php/extensions/dom.so |
1755 |
|
1756 |
%files enchant |
1757 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1026}) |
1758 |
%{_libdir}/php/extensions/enchant.so |
1759 |
|
1760 |
%files exif |
1761 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1011}) |
1762 |
%{_libdir}/php/extensions/exif.so |
1763 |
|
1764 |
%files fileinfo |
1765 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1023}) |
1766 |
%{_libdir}/php/extensions/fileinfo.so |
1767 |
|
1768 |
%files filter |
1769 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1060}) |
1770 |
%{_libdir}/php/extensions/filter.so |
1771 |
|
1772 |
%files ftp |
1773 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1014}) |
1774 |
%{_libdir}/php/extensions/ftp.so |
1775 |
|
1776 |
%files gd |
1777 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1015}) |
1778 |
%{_libdir}/php/extensions/gd.so |
1779 |
|
1780 |
%files gettext |
1781 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1016}) |
1782 |
%{_libdir}/php/extensions/gettext.so |
1783 |
|
1784 |
%files gmp |
1785 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1017}) |
1786 |
%{_libdir}/php/extensions/gmp.so |
1787 |
|
1788 |
%files iconv |
1789 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1018}) |
1790 |
%{_libdir}/php/extensions/iconv.so |
1791 |
|
1792 |
%files imap |
1793 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1019}) |
1794 |
%{_libdir}/php/extensions/imap.so |
1795 |
|
1796 |
%files intl |
1797 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1020}) |
1798 |
%{_libdir}/php/extensions/intl.so |
1799 |
|
1800 |
%files ldap |
1801 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1021}) |
1802 |
%{_libdir}/php/extensions/ldap.so |
1803 |
|
1804 |
%files mbstring |
1805 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1022}) |
1806 |
%{_libdir}/php/extensions/mbstring.so |
1807 |
|
1808 |
%files mysqli |
1809 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1025}) |
1810 |
%{_libdir}/php/extensions/mysqli.so |
1811 |
|
1812 |
%files mysqlnd |
1813 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1024}) |
1814 |
%{_libdir}/php/extensions/mysqlnd.so |
1815 |
|
1816 |
%files odbc |
1817 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1027}) |
1818 |
%{_libdir}/php/extensions/odbc.so |
1819 |
|
1820 |
%files opcache |
1821 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1064}) |
1822 |
%{_libdir}/php/extensions/opcache.so |
1823 |
|
1824 |
%files pcntl |
1825 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1028}) |
1826 |
%{_libdir}/php/extensions/pcntl.so |
1827 |
|
1828 |
%files pdo |
1829 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1052}) |
1830 |
%{_libdir}/php/extensions/pdo.so |
1831 |
|
1832 |
%files pdo_dblib |
1833 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1053}) |
1834 |
%{_libdir}/php/extensions/pdo_dblib.so |
1835 |
|
1836 |
%files pdo_firebird |
1837 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1058}) |
1838 |
%{_libdir}/php/extensions/pdo_firebird.so |
1839 |
|
1840 |
%files pdo_mysql |
1841 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1054}) |
1842 |
%{_libdir}/php/extensions/pdo_mysql.so |
1843 |
|
1844 |
%files pdo_odbc |
1845 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1055}) |
1846 |
%{_libdir}/php/extensions/pdo_odbc.so |
1847 |
|
1848 |
%files pdo_pgsql |
1849 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1056}) |
1850 |
%{_libdir}/php/extensions/pdo_pgsql.so |
1851 |
|
1852 |
%files pdo_sqlite |
1853 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1057}) |
1854 |
%{_libdir}/php/extensions/pdo_sqlite.so |
1855 |
|
1856 |
%files pgsql |
1857 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1030}) |
1858 |
%{_libdir}/php/extensions/pgsql.so |
1859 |
|
1860 |
%files phar |
1861 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1063}) |
1862 |
%{_libdir}/php/extensions/phar.so |
1863 |
%{_bindir}/phar |
1864 |
%{_mandir}/man1/phar.1* |
1865 |
%{_mandir}/man1/phar.phar.1* |
1866 |
|
1867 |
%files posix |
1868 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1031}) |
1869 |
%{_libdir}/php/extensions/posix.so |
1870 |
|
1871 |
%files readline |
1872 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1032}) |
1873 |
%{_libdir}/php/extensions/readline.so |
1874 |
|
1875 |
%files session |
1876 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1034}) |
1877 |
%config(noreplace) %{_sysconfdir}/cron.d/php |
1878 |
%{_libdir}/php/extensions/session.so |
1879 |
%{_libdir}/php/maxlifetime |
1880 |
%attr(01733,apache,apache) %dir /var/lib/php |
1881 |
|
1882 |
%files shmop |
1883 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1035}) |
1884 |
%{_libdir}/php/extensions/shmop.so |
1885 |
|
1886 |
%files snmp |
1887 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1036}) |
1888 |
%{_libdir}/php/extensions/snmp.so |
1889 |
|
1890 |
%files soap |
1891 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1037}) |
1892 |
%{_libdir}/php/extensions/soap.so |
1893 |
|
1894 |
%files sockets |
1895 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1038}) |
1896 |
%{_libdir}/php/extensions/sockets.so |
1897 |
|
1898 |
%files sodium |
1899 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1065}) |
1900 |
%{_libdir}/php/extensions/sodium.so |
1901 |
|
1902 |
%files sqlite3 |
1903 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1059}) |
1904 |
%{_libdir}/php/extensions/sqlite3.so |
1905 |
|
1906 |
%files sysvmsg |
1907 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1040}) |
1908 |
%{_libdir}/php/extensions/sysvmsg.so |
1909 |
|
1910 |
%files sysvsem |
1911 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1041}) |
1912 |
%{_libdir}/php/extensions/sysvsem.so |
1913 |
|
1914 |
%files sysvshm |
1915 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1042}) |
1916 |
%{_libdir}/php/extensions/sysvshm.so |
1917 |
|
1918 |
%files tidy |
1919 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1043}) |
1920 |
%{_libdir}/php/extensions/tidy.so |
1921 |
|
1922 |
%files tokenizer |
1923 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1044}) |
1924 |
%{_libdir}/php/extensions/tokenizer.so |
1925 |
|
1926 |
%files xmlreader |
1927 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1048}) |
1928 |
%{_libdir}/php/extensions/xmlreader.so |
1929 |
|
1930 |
%files xmlwriter |
1931 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1050}) |
1932 |
%{_libdir}/php/extensions/xmlwriter.so |
1933 |
|
1934 |
%files xsl |
1935 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1049}) |
1936 |
%{_libdir}/php/extensions/xsl.so |
1937 |
|
1938 |
%files zip |
1939 |
%config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1062}) |
1940 |
%{_libdir}/php/extensions/zip.so |
1941 |
|
1942 |
%files fpm |
1943 |
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html |
1944 |
%{_unitdir}/php-fpm.service |
1945 |
%config(noreplace) %{_sysconfdir}/php-fpm.conf |
1946 |
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
1947 |
%{_sysconfdir}/logrotate.d/php-fpm |
1948 |
%dir %{_sysconfdir}/php-fpm.d |
1949 |
%config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf |
1950 |
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf |
1951 |
%{_sbindir}/php-fpm |
1952 |
%{_mandir}/man8/php-fpm.8* |
1953 |
%attr(0711,apache,apache) %dir /var/lib/php-fpm |
1954 |
%attr(0711,apache,apache) %dir /var/log/php-fpm |
1955 |
%{_tmpfilesdir}/php-fpm.conf |
1956 |
|
1957 |
%files fpm-apache |
1958 |
%config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE10}) |
1959 |
|
1960 |
%files fpm-nginx |
1961 |
%config(noreplace) %{_sysconfdir}/nginx/conf.d/php-fpm.conf |
1962 |
%config(noreplace) %{_sysconfdir}/nginx/default.d/php.conf |
1963 |
|
1964 |
%files -n phpdbg |
1965 |
%doc sapi/phpdbg/CREDITS |
1966 |
%doc sapi/phpdbg/*.php |
1967 |
%{_bindir}/phpdbg |
1968 |
%{_mandir}/man1/phpdbg.1* |