/[packages]/updates/8/php/current/SPECS/php.spec
ViewVC logotype

Contents of /updates/8/php/current/SPECS/php.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30