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