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