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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30