/[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 1455643 - (show annotations) (download)
Thu Oct 24 14:45:23 2019 UTC (4 years, 6 months ago) by mokraemer
Original Path: cauldron/php/current/SPECS/php.spec
File size: 70181 byte(s)
new version 7.3.11
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.11
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: 70_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 Obsoletes: php-pinba
377 Obsoletes: php-yrmcds
378
379 %description -n %{libname}
380 This package provides the common files to run with different implementations of
381 PHP. You need this package if you install the php standalone package or a
382 webserver with php support (ie: apache-mod_php).
383
384 %package devel
385 Summary: Development package for PHP
386 Group: Development/C
387 Requires: %{libname} >= %{epoch}:%{version}
388 Requires: autoconf automake libtool
389 Requires: bison
390 Requires: byacc
391 Requires: chrpath
392 Requires: dos2unix
393 Requires: flex
394 Requires: libxml2-devel >= 2.6
395 Requires: libxslt-devel >= 1.1.0
396 Requires: openssl >= 0.9.8
397 Requires: openssl-devel >= 0.9.8
398 Requires: pam-devel
399 Requires: pcre-devel >= 6.6
400 Requires: re2c >= 0.9.11
401 Requires: tcl
402
403 %description devel
404 The php-devel package lets you compile dynamic extensions to PHP. Included
405 here is the source for the php extensions. Instead of recompiling the whole php
406 binary to add support for, say, oracle, install this package and use the new
407 self-contained extensions support. For more information, read the file
408 SELF-CONTAINED-EXTENSIONS.
409
410 %package openssl
411 Summary: OpenSSL extension module for PHP
412 Group: Development/PHP
413 URL: http://www.php.net/openssl
414 Requires: %{libname} >= %{epoch}:%{version}
415
416 %description openssl
417 This is a dynamic shared object (DSO) for PHP that will add OpenSSL support.
418
419 %package zlib
420 Summary: Zlib extension module for PHP
421 Group: Development/PHP
422 URL: http://www.php.net/zlib
423 Requires: %{libname} >= %{epoch}:%{version}
424
425 %description zlib
426 This is a dynamic shared object (DSO) for PHP that will add zlib compression
427 support to PHP.
428
429 %package doc
430 Summary: Documentation for PHP
431 Group: Development/PHP
432 BuildArch: noarch
433
434 %description doc
435 Documentation for php.
436
437 %package bcmath
438 Summary: The bcmath module for PHP
439 Group: Development/PHP
440 URL: http://www.php.net/bcmath
441 Requires: %{libname} >= %{epoch}:%{version}
442
443 %description bcmath
444 This is a dynamic shared object (DSO) for PHP that will add bc style precision
445 math functions support.
446
447 For arbitrary precision mathematics PHP offers the Binary Calculator which
448 supports numbers of any size and precision, represented as strings.
449
450 %package bz2
451 Summary: Bzip2 extension module for PHP
452 Group: Development/PHP
453 URL: http://www.php.net/bzip2
454 Requires: %{libname} >= %{epoch}:%{version}
455
456 %description bz2
457 This is a dynamic shared object (DSO) for PHP that will add bzip2 compression
458 support to PHP.
459
460 The bzip2 functions are used to transparently read and write bzip2 (.bz2)
461 compressed files.
462
463 %package calendar
464 Summary: Calendar extension module for PHP
465 Group: Development/PHP
466 URL: http://www.php.net/calendar
467 Requires: %{libname} >= %{epoch}:%{version}
468
469 %description calendar
470 This is a dynamic shared object (DSO) for PHP that will add calendar support.
471
472 The calendar extension presents a series of functions to simplify converting
473 between different calendar formats. The intermediary or standard it is based on
474 is the Julian Day Count. The Julian Day Count is a count of days starting from
475 January 1st, 4713 B.C. To convert between calendar systems, you must first
476 convert to Julian Day Count, then to the calendar system of your choice. Julian
477 Day Count is very different from the Julian Calendar! For more information on
478 Julian Day Count, visit http://www.hermetic.ch/cal_stud/jdn.htm. For more
479 information on calendar systems visit
480 http://www.boogle.com/info/cal-overview.html. Excerpts from this page are
481 included in these instructions, and are in quotes.
482
483 %package ctype
484 Summary: Ctype extension module for PHP
485 Group: Development/PHP
486 URL: http://www.php.net/ctype
487 Requires: %{libname} >= %{epoch}:%{version}
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: http://www.php.net/curl
500 Requires: %{libname} >= %{epoch}:%{version}
501
502 %description curl
503 This is a dynamic shared object (DSO) for PHP that will add curl support.
504
505 PHP supports libcurl, a library created by Daniel Stenberg, that allows you to
506 connect and communicate to many different types of servers with many different
507 types of protocols. libcurl currently supports the http, https, ftp, gopher,
508 telnet, dict, file, and ldap protocols. libcurl also supports HTTPS
509 certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with
510 PHP's ftp extension), HTTP form based upload, proxies, cookies, and
511 user+password authentication.
512
513 %package dba
514 Summary: DBA extension module for PHP
515 Group: Development/PHP
516 URL: http://www.php.net/dba
517 Requires: %{libname} >= %{epoch}:%{version}
518
519 %description dba
520 This is a dynamic shared object (DSO) for PHP that will add flat-file databases
521 (DBA) support.
522
523 These functions build the foundation for accessing Berkeley DB style databases.
524
525 This is a general abstraction layer for several file-based databases. As such,
526 functionality is limited to a common subset of features supported by modern
527 databases such as Sleepycat Software's DB2. (This is not to be confused with
528 IBM's DB2 software, which is supported through the ODBC functions.)
529
530 %package dom
531 Summary: Dom extension module for PHP
532 Group: Development/PHP
533 URL: http://www.php.net/dom
534 Requires: %{libname} >= %{epoch}:%{version}
535
536 %description dom
537 This is a dynamic shared object (DSO) for PHP that will add dom support.
538
539 The DOM extension is the replacement for the DOM XML extension from PHP 4. The
540 extension still contains many old functions, but they should no longer be used.
541 In particular, functions that are not object-oriented should be avoided.
542
543 The extension allows you to operate on an XML document with the DOM API.
544
545 %package enchant
546 Summary: Libenchant binder, support near all spelling tools
547 Group: Development/PHP
548 URL: http://www.php.net/
549 Requires: %{libname} >= %{epoch}:%{version}
550
551 %description enchant
552 Enchant is a binder for libenchant. Libenchant provides a common API for many
553 spell libraries:
554
555 - aspell/pspell (intended to replace ispell)
556 - hspell (hebrew)
557 - ispell
558 - hunspell (OpenOffice project, mozilla)
559 - uspell (primarily Yiddish, Hebrew, and Eastern European languages)
560 A plugin system allows to add custom spell support.
561 see www.abisource.com/enchant/
562
563 %package exif
564 Summary: EXIF extension module for PHP
565 Group: Development/PHP
566 URL: http://www.php.net/exif
567 Requires: %{libname} >= %{epoch}:%{version}
568 Requires: php-mbstring >= %{epoch}:%{version}
569
570 %description exif
571 This is a dynamic shared object (DSO) for PHP that will add EXIF tags support
572 in image files.
573
574 With the exif extension you are able to work with image meta data. For example,
575 you may use exif functions to read meta data of pictures taken from digital
576 cameras by working with information stored in the headers of the JPEG and TIFF
577 images.
578
579 %package fileinfo
580 Summary: Fileinfo extension module for PHP
581 Group: Development/PHP
582 URL: http://www.php.net/fileinfo
583 Requires: %{libname} >= %{epoch}:%{version}
584
585 %description fileinfo
586 This extension allows retrieval of information regarding vast majority of file.
587 This information may include dimensions, quality, length etc...
588
589 Additionally it can also be used to retrieve the mime type for a particular
590 file and for text files proper language encoding.
591
592 %package filter
593 Summary: Extension for safely dealing with input parameters
594 Group: Development/PHP
595 URL: http://www.php.net/filter
596 Requires: %{libname} >= %{epoch}:%{version}
597
598 %description filter
599 The Input Filter extension is meant to address this issue by implementing a set
600 of filters and mechanisms that users can use to safely access their input data.
601
602 %package ftp
603 Summary: FTP extension module for PHP
604 Group: Development/PHP
605 URL: http://www.php.net/ftp
606 Requires: %{libname} >= %{epoch}:%{version}
607
608 %description ftp
609 This is a dynamic shared object (DSO) for PHP that will add FTP support.
610
611 The functions in this extension implement client access to file servers
612 speaking the File Transfer Protocol (FTP) as defined in
613 http://www.faqs.org/rfcs/rfc959. This extension is meant for detailed access to
614 an FTP server providing a wide range of control to the executing script. If you
615 only wish to read from or write to a file on an FTP server, consider using the
616 ftp:// wrapper with the filesystem functions which provide a simpler and more
617 intuitive interface.
618
619 %package gd
620 Summary: GD extension module for PHP
621 Group: Development/PHP
622 URL: http://www.php.net/gd
623 Requires: %{libname} >= %{epoch}:%{version}
624 Provides: php-gd-bundled = %{epoch}:%{version}
625
626 %description gd
627 This is a dynamic shared object (DSO) for PHP that will add GD support,
628 allowing you to create and manipulate images with PHP using the gd library.
629
630 PHP is not limited to creating just HTML output. It can also be used to create
631 and manipulate image files in a variety of different image formats, including
632 gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image
633 streams directly to a browser. You will need to compile PHP with the GD library
634 of image functions for this to work. GD and PHP may also require other
635 libraries, depending on which image formats you want to work with.
636
637 You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF,
638 TIFF and JPEG2000 images.
639
640 %package gettext
641 Summary: Gettext extension module for PHP
642 Group: Development/PHP
643 URL: http://www.php.net/gettext
644 Requires: %{libname} >= %{epoch}:%{version}
645
646 %description gettext
647 This is a dynamic shared object (DSO) for PHP that will add gettext support.
648
649 The gettext functions implement an NLS (Native Language Support) API which can
650 be used to internationalize your PHP applications. Please see the gettext
651 documentation for your system for a thorough explanation of these functions or
652 view the docs at http://www.gnu.org/software/gettext/manual/gettext.html.
653
654 %package gmp
655 Summary: Gmp extension module for PHP
656 Group: Development/PHP
657 URL: http://www.php.net/gmp
658 Requires: %{libname} >= %{epoch}:%{version}
659
660 %description gmp
661 This is a dynamic shared object (DSO) for PHP that will add arbitrary length
662 number support using the GNU MP library.
663
664 %package hash
665 Summary: HASH Message Digest Framework
666 Group: Development/PHP
667 URL: http://www.php.net/hash
668 Requires: %{libname} >= %{epoch}:%{version}
669
670 %description hash
671 Native implementations of common message digest algorithms using a generic
672 factory method.
673
674 Message Digest (hash) engine. Allows direct or incremental processing of
675 arbitrary length messages using a variety of hashing algorithms.
676
677 %package iconv
678 Summary: Iconv extension module for PHP
679 Group: Development/PHP
680 URL: http://www.php.net/iconv
681 Requires: %{libname} >= %{epoch}:%{version}
682
683 %description iconv
684 This is a dynamic shared object (DSO) for PHP that will add iconv support.
685
686 This module contains an interface to iconv character set conversion facility.
687 With this module, you can turn a string represented by a local character set
688 into the one represented by another character set, which may be the Unicode
689 character set. Supported character sets depend on the iconv implementation of
690 your system. Note that the iconv function on some systems may not work as you
691 expect. In such case, it'd be a good idea to install the GNU libiconv library.
692 It will most likely end up with more consistent results.
693
694 %package imap
695 Summary: IMAP extension module for PHP
696 Group: Development/PHP
697 URL: http://www.php.net/iamp
698 Requires: %{libname} >= %{epoch}:%{version}
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 interbase
708 Summary: Interbase/Firebird database module for PHP
709 Group: Development/PHP
710 URL: http://www.php.net/ibase
711 Requires: %{libname} >= %{epoch}:%{version}
712 Provides: php-firebird = %{epoch}:%{version}
713
714 %description interbase
715 This is a dynamic shared object (DSO) for PHP that will add Firebird
716 database support.
717
718 %package intl
719 Summary: Internationalization extension module for PHP
720 Group: Development/PHP
721 URL: http://www.php.net/intl
722 Requires: %{libname} >= %{epoch}:%{version}
723
724 %description intl
725 This is a dynamic shared object (DSO) for PHP that will add
726 Internationalization support.
727
728 Internationalization extension implements ICU library functionality in PHP.
729
730 %package json
731 Summary: JavaScript Object Notation
732 Group: Development/PHP
733 URL: http://www.php.net/json
734 Requires: %{libname} >= %{epoch}:%{version}
735
736 %description json
737 Support for JSON (JavaScript Object Notation) serialization.
738
739 %package ldap
740 Summary: LDAP extension module for PHP
741 Group: Development/PHP
742 URL: http://www.php.net/ldap
743 Requires: %{libname} >= %{epoch}:%{version}
744
745 %description ldap
746 This is a dynamic shared object (DSO) for PHP that will add LDAP support.
747
748 LDAP is the Lightweight Directory Access Protocol, and is a protocol used to
749 access "Directory Servers". The Directory is a special kind of database that
750 holds information in a tree structure.
751
752 The concept is similar to your hard disk directory structure, except that in
753 this context, the root directory is "The world" and the first level
754 subdirectories are "countries". Lower levels of the directory structure contain
755 entries for companies, organisations or places, while yet lower still we find
756 directory entries for people, and perhaps equipment or documents.
757
758 %package mbstring
759 Summary: MBstring extension module for PHP
760 Group: Development/PHP
761 URL: http://www.php.net/mbstring
762 Requires: %{libname} >= %{epoch}:%{version}
763
764 %description mbstring
765 This is a dynamic shared object (DSO) for PHP that will add multibyte string
766 support.
767
768 mbstring provides multibyte specific string functions that help you deal with
769 multibyte encodings in PHP. In addition to that, mbstring handles character
770 encoding conversion between the possible encoding pairs. mbstring is designed
771 to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte
772 encodings for convenience.
773
774 %package mysqli
775 Summary: MySQL database module for PHP
776 Group: Development/PHP
777 URL: http://www.php.net/mysqli
778 Requires: %{libname} >= %{epoch}:%{version}
779 Requires: %{name}-mysqlnd = %{epoch}:%{version}
780
781 %description mysqli
782 This is a dynamic shared object (DSO) for PHP that will add MySQL database
783 support.
784
785 The mysqli extension allows you to access the functionality provided by MySQL
786 4.1 and above. It is an improved version of the older PHP MySQL driver,
787 offering various benefits. The developers of the PHP programming language
788 recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer
789 (takes advantage of new functionality)
790
791 More information about the MySQL Database server can be found at
792 http://www.mysql.com/
793
794 Documentation for MySQL can be found at http://dev.mysql.com/doc/.
795
796 Documentation for MySQLi can be found at http://www.php.net/manual/en/mysqli.overview.php.
797
798 %package mysqlnd
799 Summary: MySQL native database module for PHP
800 Group: Development/PHP
801 URL: http://www.php.net/mysqlnd
802 Requires: %{libname} >= %{epoch}:%{version}
803 Requires: php-hash
804 Provides: php-mysql = %{epoch}:%{version}-%{release}
805 Obsoletes: php-mysql < 7.0
806
807 %description mysqlnd
808 This is a dynamic shared object (DSO) for PHP that will add MySQL native
809 database support.
810
811 These functions allow you to access MySQL database servers. More information
812 about MySQL can be found at http://www.mysql.com/.
813
814 Documentation for MySQL can be found at http://dev.mysql.com/doc/.
815
816 %package odbc
817 Summary: ODBC extension module for PHP
818 Group: Development/PHP
819 URL: http://www.php.net/odbc
820 Requires: %{libname} >= %{epoch}:%{version}
821
822 %description odbc
823 This is a dynamic shared object (DSO) for PHP that will add ODBC support.
824
825 In addition to normal ODBC support, the Unified ODBC functions in PHP allow you
826 to access several databases that have borrowed the semantics of the ODBC API to
827 implement their own API. Instead of maintaining multiple database drivers that
828 were all nearly identical, these drivers have been unified into a single set of
829 ODBC functions.
830
831 %package opcache
832 Summary: Zend OPcache for PHP
833 Group: Development/PHP
834 URL: http://www.php.net/opcache
835 Requires: %{libname} >= %{epoch}:%{version}
836 Obsoletes: php-xcache < 3.2.1
837 Obsoletes: php-xcache-admin < 3.2.1
838
839 %description opcache
840 This is a dynamic shared object (DSO) for PHP that will add OPcache support.
841
842 The Zend OPcache provides faster PHP execution through opcode caching and
843 optimization. It improves PHP performance by storing precompiled script
844 bytecode in the shared memory. This eliminates the stages of reading code from
845 the disk and compiling it on future access. In addition, it applies a few
846 bytecode optimization patterns that make code execution faster.
847
848 %package pcntl
849 Summary: Process Control extension module for PHP
850 Group: Development/PHP
851 URL: http://www.php.net/pcntl
852 Requires: %{libname} >= %{epoch}:%{version}
853
854 %description pcntl
855 This is a dynamic shared object (DSO) for PHP that will add process spawning
856 and control support. It supports functions like fork(), waitpid(), signal()
857 etc.
858
859 Process Control support in PHP implements the Unix style of process creation,
860 program execution, signal handling and process termination. Process Control
861 should not be enabled within a webserver environment and unexpected results may
862 happen if any Process Control functions are used within a webserver
863 environment.
864
865 %package pdo
866 Summary: PHP Data Objects Interface
867 Group: Development/PHP
868 URL: http://www.php.net/pdo
869 Requires: %{libname} >= %{epoch}:%{version}
870
871 %description pdo
872 PDO provides a uniform data access interface, sporting advanced features such
873 as prepared statements and bound parameters. PDO drivers are dynamically
874 loadable and may be developed independently from the core, but still accessed
875 using the same API.
876
877 Read the documentation at http://www.php.net/pdo for more information.
878
879 %package pdo_dblib
880 Summary: Sybase Interface driver for PDO
881 Group: Development/PHP
882 URL: http://www.php.net/pdo_dblib
883 Requires: freetds >= 0.63
884 Requires: php-pdo >= %{epoch}:%{version}
885 Requires: %{libname} >= %{epoch}:%{version}
886
887 %description pdo_dblib
888 PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to
889 enable access from PHP to Microsoft SQL Server and Sybase databases through the
890 FreeTDS libary.
891
892 %package pdo_firebird
893 Summary: Firebird/InterBase driver for PDO
894 Group: Development/PHP
895 URL: http://www.php.net/pdo_firebird
896 Requires: php-pdo >= %{epoch}:%{version}
897 Requires: %{libname} >= %{epoch}:%{version}
898
899 %description pdo_firebird
900 PDO_Firebird is a driver that implements the PHP Data Objects (PDO) interface to
901 enable access from PHP to Firebird databases.
902
903 %package pdo_mysql
904 Summary: MySQL Interface driver for PDO
905 Group: Development/PHP
906 URL: http://www.php.net/pdo_mysql
907 Requires: php-pdo >= %{epoch}:%{version}
908 Requires: %{libname} >= %{epoch}:%{version}
909 Requires: %{name}-mysqlnd = %{epoch}:%{version}
910
911 %description pdo_mysql
912 PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to
913 enable access from PHP to MySQL 3.x, 4.x and 5.x databases.
914
915 PDO_MYSQL will take advantage of native prepared statement support present in
916 MySQL 4.1 and higher. If you're using an older version of the mysql client
917 libraries, PDO will emulate them for you.
918
919 Please note that this build does NOT support compression protocol because it
920 is built with MySQL Native Driver (mysqlnd).
921
922 %package pdo_odbc
923 Summary: ODBC v3 Interface driver for PDO
924 Group: Development/PHP
925 URL: http://www.php.net/pdo_odbc
926 Requires: php-pdo >= %{epoch}:%{version}
927 Requires: %{libname} >= %{epoch}:%{version}
928
929 %description pdo_odbc
930 PDO_ODBC is a driver that implements the PHP Data Objects (PDO) interface to
931 enable access from PHP to databases through ODBC drivers or through the IBM DB2
932 Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three
933 different "flavours" of database drivers:
934
935 o ibm-db2 - Supports access to IBM DB2 Universal Database, Cloudscape, and
936 Apache Derby servers through the free DB2 client. ibm-db2 is not
937 supported in Mageia.
938
939 o unixODBC - Supports access to database servers through the unixODBC driver
940 manager and the database's own ODBC drivers.
941
942 o generic - Offers a compile option for ODBC driver managers that are not
943 explicitly supported by PDO_ODBC.
944
945 %package pdo_pgsql
946 Summary: PostgreSQL interface driver for PDO
947 Group: Development/PHP
948 URL: http://www.php.net/pdo_pgsql
949 Requires: php-pdo >= %{epoch}:%{version}
950 Requires: %{libname} >= %{epoch}:%{version}
951 Requires: postgresql-libs >= %{postgresql_version}
952
953 %description pdo_pgsql
954 PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to
955 enable access from PHP to PostgreSQL databases.
956
957 %package pdo_sqlite
958 Summary: SQLite v3 Interface driver for PDO
959 Group: Development/PHP
960 URL: http://www.php.net/pdo_sqlite
961 Requires: php-pdo >= %{epoch}:%{version}
962 Requires: %{libname} >= %{epoch}:%{version}
963
964 %description pdo_sqlite
965 PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to
966 enable access to SQLite 3 databases.
967
968 This extension provides an SQLite v3 driver for PDO. SQLite V3 is NOT
969 compatible with the bundled SQLite 2 in PHP 5, but is a significant step
970 forwards, featuring complete utf-8 support, native support for blobs, native
971 support for prepared statements with bound parameters and improved concurrency.
972
973 %package pgsql
974 Summary: PostgreSQL database module for PHP
975 Group: Development/PHP
976 URL: http://www.php.net/pgsql
977 Requires: %{libname} >= %{epoch}:%{version}
978 Requires: postgresql-libs >= %{postgresql_version}
979
980 %description pgsql
981 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL database
982 support.
983
984 PostgreSQL database is Open Source product and available without cost.
985 Postgres, developed originally in the UC Berkeley Computer Science Department,
986 pioneered many of the object-relational concepts now becoming available in some
987 commercial databases. It provides SQL92/SQL99 language support, transactions,
988 referential integrity, stored procedures and type extensibility. PostgreSQL is
989 an open source descendant of this original Berkeley code.
990
991 %package phar
992 Summary: Allows running of complete applications out of .phar files
993 Group: Development/PHP
994 URL: http://www.php.net/phar
995 Requires: %{libname} >= %{epoch}:%{version}
996 Requires: php-bz2
997 Requires: php-hash
998
999 %description phar
1000 This is the extension version of PEAR's PHP_Archive package. Support for
1001 zlib, bz2 and crc32 is achieved without any dependency other than the external
1002 zlib or bz2 extension.
1003
1004 .phar files can be read using the phar stream, or with the Phar class. If the
1005 SPL extension is available, a Phar object can be used as an array to iterate
1006 over a phar's contents or to read files directly from the phar.
1007
1008 Phar archives can be created using the streams API or with the Phar class, if
1009 the phar.readonly ini variable is set to false.
1010
1011 Full support for MD5 and SHA1 signatures is possible. Signatures can be
1012 required if the ini variable phar.require_hash is set to true. When PECL
1013 extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as
1014 well.
1015
1016 %package posix
1017 Summary: POSIX extension module for PHP
1018 Group: Development/PHP
1019 URL: http://www.php.net/posix
1020 Requires: %{libname} >= %{epoch}:%{version}
1021
1022 %description posix
1023 This is a dynamic shared object (DSO) for PHP that will add POSIX functions
1024 support to PHP.
1025
1026 This module contains an interface to those functions defined in the IEEE 1003.1
1027 (POSIX.1) standards document which are not accessible through other means.
1028 POSIX.1 for example defined the open(), read(), write() and close() functions,
1029 too, which traditionally have been part of PHP 3 for a long time. Some more
1030 system specific functions have not been available before, though, and this
1031 module tries to remedy this by providing easy access to these functions.
1032
1033 %package readline
1034 Summary: Readline extension module for PHP
1035 Group: Development/PHP
1036 URL: http://www.php.net/readline
1037 Requires: %{libname} >= %{epoch}:%{version}
1038
1039 %description readline
1040 This PHP module adds support for readline functions (only for cli and cgi
1041 SAPIs).
1042
1043 The readline() functions implement an interface to the GNU Readline library.
1044 These are functions that provide editable command lines. An example being the
1045 way Bash allows you to use the arrow keys to insert characters or scroll
1046 through command history. Because of the interactive nature of this library, it
1047 will be of little use for writing Web applications, but may be useful when
1048 writing scripts used from a command line.
1049
1050 %package recode
1051 Summary: Recode extension module for PHP
1052 Group: Development/PHP
1053 URL: http://www.php.net/recode
1054 Requires: %{libname} >= %{epoch}:%{version}
1055
1056 %description recode
1057 This is a dynamic shared object (DSO) for PHP that will add recode support
1058 using the recode library.
1059
1060 This module contains an interface to the GNU Recode library. The GNU Recode
1061 library converts files between various coded character sets and surface
1062 encodings. When this cannot be achieved exactly, it may get rid of the
1063 offending characters or fall back on approximations. The library recognises or
1064 produces nearly 150 different character sets and is able to convert files
1065 between almost any pair. Most RFC 1345 character sets are supported.
1066
1067 %package session
1068 Summary: Session extension module for PHP
1069 Group: Development/PHP
1070 URL: http://www.php.net/session
1071 Requires(pre): rpm-helper
1072 Requires(postun): rpm-helper
1073 Requires: %{libname} >= %{epoch}:%{version}
1074 Requires: webserver-base
1075
1076 %description session
1077 This is a dynamic shared object (DSO) for PHP that will add session support.
1078
1079 Session support in PHP consists of a way to preserve certain data across
1080 subsequent accesses. This enables you to build more customized applications and
1081 increase the appeal of your web site.
1082
1083 A visitor accessing your web site is assigned a unique id, the so-called
1084 session id. This is either stored in a cookie on the user side or is propagated
1085 in the URL.
1086
1087 %package shmop
1088 Summary: Shared Memory Operations extension module for PHP
1089 Group: Development/PHP
1090 URL: http://www.php.net/shmop
1091 Requires: %{libname} >= %{epoch}:%{version}
1092
1093 %description shmop
1094 This is a dynamic shared object (DSO) for PHP that will add Shared Memory
1095 Operations support.
1096
1097 Shmop is an easy to use set of functions that allows PHP to read, write, create
1098 and delete Unix shared memory segments.
1099
1100 %package snmp
1101 Summary: NET-SNMP extension module for PHP
1102 Group: Development/PHP
1103 URL: http://www.php.net/snmp
1104 Requires: net-snmp-mibs
1105 Requires: %{libname} >= %{epoch}:%{version}
1106
1107 %description snmp
1108 This is a dynamic shared object (DSO) for PHP that will add SNMP support using
1109 the NET-SNMP libraries.
1110
1111 In order to use the SNMP functions you need to install the NET-SNMP package.
1112
1113 %package soap
1114 Summary: Soap extension module for PHP
1115 Group: Development/PHP
1116 URL: http://www.php.net/soap
1117 Requires: %{libname} >= %{epoch}:%{version}
1118
1119 %description soap
1120 This is a dynamic shared object (DSO) for PHP that will add soap support.
1121
1122 The SOAP extension can be used to write SOAP Servers and Clients. It supports
1123 subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications.
1124
1125 %package sockets
1126 Summary: Sockets extension module for PHP
1127 Group: Development/PHP
1128 URL: http://www.php.net/sockets
1129 Requires: %{libname} >= %{epoch}:%{version}
1130
1131 %description sockets
1132 This is a dynamic shared object (DSO) for PHP that will add sockets support.
1133
1134 The socket extension implements a low-level interface to the socket
1135 communication functions based on the popular BSD sockets, providing the
1136 possibility to act as a socket server as well as a client.
1137
1138 %package sodium
1139 Summary: Wrapper for the Sodium cryptographic library
1140 Group: Development/PHP
1141 URL: http://php.net/manual/en/book.sodium.php
1142 Requires: %{libname} >= %{epoch}:%{version}
1143
1144 %description sodium
1145 This is a dynamic shared object (DSO) for PHP that will add libsodium support.
1146
1147 %package sqlite3
1148 Summary: SQLite database bindings for PHP
1149 Group: Development/PHP
1150 URL: http://www.php.net/sqlite3
1151 Requires: php-pdo >= %{epoch}:%{version}
1152 Requires: %{libname} >= %{epoch}:%{version}
1153 Obsoletes: php-sqlite < 4:1.0.4
1154
1155 %description sqlite3
1156 This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a
1157 C library that implements an embeddable SQL database engine. Programs that link
1158 with the SQLite library can have SQL database access without running a separate
1159 RDBMS process.
1160
1161 SQLite is not a client library used to connect to a big database server. SQLite
1162 is the server. The SQLite library reads and writes directly to and from the
1163 database files on disk.
1164
1165 %package sysvmsg
1166 Summary: SysV msg extension module for PHP
1167 Group: Development/PHP
1168 URL: http://www.php.net/sem
1169 Requires: %{libname} >= %{epoch}:%{version}
1170
1171 %description sysvmsg
1172 This is a dynamic shared object (DSO) for PHP that will add SysV message queues
1173 support.
1174
1175 %package sysvsem
1176 Summary: SysV sem extension module for PHP
1177 Group: Development/PHP
1178 URL: http://www.php.net/sem
1179 Requires: %{libname} >= %{epoch}:%{version}
1180
1181 %description sysvsem
1182 This is a dynamic shared object (DSO) for PHP that will add SysV semaphores
1183 support.
1184
1185 %package sysvshm
1186 Summary: SysV shm extension module for PHP
1187 Group: Development/PHP
1188 URL: http://www.php.net/sem
1189 Requires: %{libname} >= %{epoch}:%{version}
1190
1191 %description sysvshm
1192 This is a dynamic shared object (DSO) for PHP that will add SysV Shared Memory
1193 support.
1194
1195 %package tidy
1196 Summary: Tidy HTML Repairing and Parsing for PHP
1197 Group: Development/PHP
1198 URL: http://www.php.net/tidy
1199 Requires: %{libname} >= %{epoch}:%{version}
1200
1201 %description tidy
1202 Tidy is a binding for the Tidy HTML clean and repair utility which allows you
1203 to not only clean and otherwise manipluate HTML documents, but also traverse
1204 the document tree using the Zend Engine 2 OO semantics.
1205
1206 %package tokenizer
1207 Summary: Tokenizer extension module for PHP
1208 Group: Development/PHP
1209 URL: http://www.php.net/tokenizer
1210 Requires: %{libname} >= %{epoch}:%{version}
1211
1212 %description tokenizer
1213 This is a dynamic shared object (DSO) for PHP that will add Tokenizer support.
1214
1215 The tokenizer functions provide an interface to the PHP tokenizer embedded in
1216 the Zend Engine. Using these functions you may write your own PHP source
1217 analyzing or modification tools without having to deal with the language
1218 specification at the lexical level.
1219
1220 %package xml
1221 Summary: XML extension module for PHP
1222 Group: Development/PHP
1223 URL: http://www.php.net/xml
1224 Requires: %{libname} >= %{epoch}:%{version}
1225
1226 %description xml
1227 This is a dynamic shared object (DSO) for PHP that will add XML support. This
1228 extension lets you create XML parsers and then define handlers for different
1229 XML events.
1230
1231 %package xmlreader
1232 Summary: Xmlreader extension module for PHP
1233 Group: Development/PHP
1234 URL: http://www.php.net/xmlreader
1235 Requires: php-dom >= %{epoch}:%{version}
1236 Requires: %{libname} >= %{epoch}:%{version}
1237
1238 %description xmlreader
1239 XMLReader represents a reader that provides non-cached, forward-only access to
1240 XML data. It is based upon the xmlTextReader api from libxml
1241
1242 %package xmlrpc
1243 Summary: Xmlrpc extension module for PHP
1244 Group: Development/PHP
1245 URL: http://www.php.net/xmlrpc
1246 Requires: %{libname} >= %{epoch}:%{version}
1247
1248 %description xmlrpc
1249 This is a dynamic shared object (DSO) for PHP that will add XMLRPC support.
1250
1251 These functions can be used to write XML-RPC servers and clients. You can find
1252 more information about XML-RPC at http://www.xmlrpc.com/, and more
1253 documentation on this extension and its functions at
1254 http://xmlrpc-epi.sourceforge.net/.
1255
1256 %package xmlwriter
1257 Summary: Provides fast, non-cached, forward-only means to write XML data
1258 Group: Development/PHP
1259 URL: http://www.php.net/xmlwriter
1260 Requires: %{libname} >= %{epoch}:%{version}
1261
1262 %description xmlwriter
1263 This extension wraps the libxml xmlWriter API. Represents a writer that
1264 provides a non-cached, forward-only means of generating streams or files
1265 containing XML data.
1266
1267 %package xsl
1268 Summary: Xsl extension module for PHP
1269 Group: Development/PHP
1270 URL: http://www.php.net/xsl
1271 Requires: %{libname} >= %{epoch}:%{version}
1272
1273 %description xsl
1274 This is a dynamic shared object (DSO) for PHP that will add xsl support.
1275
1276 The XSL extension implements the XSL standard, performing XSLT transformations
1277 using the libxslt library
1278
1279 %package wddx
1280 Summary: WDDX serialization functions
1281 Group: Development/PHP
1282 URL: http://www.php.net/wddx
1283 Requires: php-xml
1284 Requires: %{libname} >= %{epoch}:%{version}
1285
1286 %description wddx
1287 This is a dynamic shared object (DSO) that adds wddx support to PHP.
1288
1289 These functions are intended for work with WDDX (http://www.openwddx.org/)
1290
1291 %package zip
1292 Summary: A zip management extension for PHP
1293 Group: Development/PHP
1294 URL: http://www.php.net/zip
1295 Requires: %{libname} >= %{epoch}:%{version}
1296
1297 %description zip
1298 This is a dynamic shared object (DSO) for PHP that will add zip support to
1299 create and read zip files using the libzip library.
1300
1301 %package fpm
1302 Summary: PHP FastCGI Process Manager
1303 Group: Development/PHP
1304 Requires(post): systemd >= %{systemd_required_version}
1305 Requires(post): rpm-helper
1306 Requires(preun): rpm-helper
1307 Requires(pre): rpm-helper
1308 Requires(postun): rpm-helper
1309 #add all common requirements to the lib as a central
1310 Requires: %{libname} >= %{epoch}:%{version}
1311 Requires: webserver-base
1312 Provides: php-webinterface = %{epoch}:%{version}-%{release}
1313 Provides: php = %{epoch}:%{version}
1314
1315 %description fpm
1316 PHP is an HTML-embeddable scripting language. PHP offers built-in database
1317 integration for several commercial and non-commercial database management
1318 systems, so writing a database-enabled script with PHP is fairly simple. The
1319 most common use of PHP coding is probably as a replacement for CGI scripts.
1320
1321 This package contains the FastCGI Process Manager. You must also install
1322 %{libname}.
1323
1324 %package -n phpdbg
1325 Summary: The interactive PHP debugger
1326 Group: Development/PHP
1327 Requires: %{libname} >= %{epoch}:%{version}
1328 Requires: php >= %{epoch}:%{version}
1329
1330 %description -n phpdbg
1331 PHP is an HTML-embeddable scripting language. PHP offers built-in database
1332 integration for several commercial and non-commercial database management
1333 systems, so writing a database-enabled script with PHP is fairly simple. The
1334 most common use of PHP coding is probably as a replacement for CGI scripts.
1335
1336 This package contains the The interactive PHP debugger. You must also install
1337 %{libname}.
1338
1339 Implemented as a SAPI module, phpdbg can excert complete control over the
1340 environment without impacting the functionality or performance of your code.
1341
1342 phpdbg aims to be a lightweight, powerful, easy to use debugging platform for
1343 PHP5.4+
1344
1345 %prep
1346
1347 %autosetup -S hg -n php-%{version}%{_RC}
1348
1349 mv sapi/apache2handler/mod_php%{php_common_major}.c sapi/apache2handler/mod_php.c
1350
1351 cp %{SOURCE1} php-test.ini
1352 cp %{SOURCE4} php-fpm.service
1353 cp %{SOURCE5} php-fpm.sysconf
1354 cp %{SOURCE6} php-fpm.logrotate
1355 cp %{SOURCE7} create_data_file.php
1356 cp %{SOURCE10} 20-php-fpm.conf
1357
1358 # nuke bogus checks becuase i fixed this years ago in our recode package
1359 rm -f ext/recode/config9.m4
1360
1361 # Change perms otherwise rpm would get fooled while finding requires
1362 find -name "*.inc" | xargs chmod 644
1363 find -name "*.php*" | xargs chmod 644
1364 find -name "*README*" | xargs chmod 644
1365
1366 mkdir -p php-devel/extensions
1367 mkdir -p php-devel/sapi
1368
1369 # Install test files in php-devel
1370 cp -a tests php-devel
1371
1372 cp -dpR ext/* php-devel/extensions/
1373 rm -f php-devel/extensions/informix/stub.c
1374 rm -f php-devel/extensions/standard/.deps
1375 rm -f php-devel/extensions/skeleton/EXPERIMENTAL
1376
1377 # SAPI
1378 cp -dpR sapi/* php-devel/sapi/
1379 rm -f php-devel/sapi/thttpd/stub.c
1380 rm -f php-devel/sapi/cgi/php.sym
1381 rm -f php-devel/sapi/fastcgi/php.sym
1382 rm -f php-devel/sapi/pi3web/php.sym
1383
1384 # cleanup
1385 find php-devel -name "*.droplet" | xargs rm -f
1386
1387 # don't ship MS Windows source
1388 rm -rf php-devel/extensions/com_dotnet
1389
1390 # likewise with these:
1391 find php-devel -name "*.dsp" | xargs rm -f
1392 find php-devel -name "*.mak" | xargs rm -f
1393 find php-devel -name "*.w32" | xargs rm
1394
1395 # make sure using system libs
1396 rm -rf ext/pcre/pcrelib
1397 rm -rf ext/pdo_sqlite/sqlite
1398 rm -rf ext/xmlrpc/libxmlrpc
1399
1400 %build
1401 %serverbuild
1402
1403 export CFLAGS="${CFLAGS} -O3 -fno-strict-aliasing -fvisibility=default"
1404 export LDFLAGS="%{ldflags} -O3"
1405 export CXXFLAGS="${CXXFLAGS} -O3 -fvisibility=default -fvisibility-inlines-hidden"
1406
1407 cat > php-devel/buildext <<EOF
1408 #!/bin/bash
1409 gcc -Wall -fPIC -shared $CFLAGS \\
1410 -I. \`%{_bindir}/php-config --includes\` \\
1411 -I%{_includedir}/libxml2 \\
1412 -I%{_includedir}/freetype \\
1413 -I%{_includedir}/openssl \\
1414 -I%{_usrsrc}/php-devel/ext \\
1415 -I%{_includedir}/\$1 \\
1416 \$4 \$2 -o \$1.so \$3 -lc
1417 EOF
1418
1419 chmod 755 php-devel/buildext
1420
1421 #export PHP_AUTOCONF=autoconf-2.13
1422 rm -f configure
1423 rm -rf autom4te.cache
1424 ./buildconf --force
1425
1426 # Do this patch with a perl hack...
1427 perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
1428
1429 export oldstyleextdir=yes
1430 export EXTENSION_DIR="%{_libdir}/php/extensions"
1431 export PROG_SENDMAIL="%{_sbindir}/sendmail"
1432 export GD_SHARED_LIBADD="$GD_SHARED_LIBADD -lm"
1433
1434 # never use "--disable-rpath", it does the opposite
1435
1436 # Configure php
1437 for i in fpm cgi cli apxs; do
1438 ./configure \
1439 `[ $i = fpm ] && echo --disable-cli --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd` \
1440 `[ $i = cgi ] && echo --disable-cli` \
1441 `[ $i = cli ] && echo --disable-cgi --enable-cli` \
1442 `[ $i = apxs ] && echo --with-apxs2=%{_httpd_apxs}` \
1443 --with-pic \
1444 --build=%{_build} \
1445 --prefix=%{_prefix} \
1446 --exec-prefix=%{_prefix} \
1447 --bindir=%{_bindir} \
1448 --sbindir=%{_sbindir} \
1449 --sysconfdir=%{_sysconfdir} \
1450 --datadir=%{_datadir} \
1451 --includedir=%{_includedir} \
1452 --libdir=%{_libdir} \
1453 --libexecdir=%{_libexecdir} \
1454 --localstatedir=/var/lib \
1455 --mandir=%{_mandir} \
1456 --enable-shared=yes \
1457 --enable-static=no \
1458 --disable-debug \
1459 --enable-bcmath=shared \
1460 --enable-calendar=shared \
1461 --enable-ctype=shared \
1462 --enable-dba=shared \
1463 --enable-dom=shared,%{_prefix} \
1464 --enable-exif=shared \
1465 --enable-fileinfo=shared \
1466 --enable-filter=shared \
1467 --enable-ftp=shared \
1468 --enable-gd-native-ttf \
1469 --enable-hash=shared,%{_prefix} \
1470 --enable-inline-optimization \
1471 --enable-intl=shared \
1472 --enable-json=shared \
1473 --enable-libxml=%{_prefix} \
1474 --enable-mbregex \
1475 --enable-mbstring=shared,%{_prefix} \
1476 --enable-mysqlnd=shared,%{_bindir}/mysql_config \
1477 --enable-opcache=shared \
1478 --enable-pcntl=shared \
1479 --enable-pdo=shared,%{_prefix} \
1480 --enable-phar=shared \
1481 --enable-phpdbg \
1482 --enable-phpdbg-webhelper \
1483 --enable-posix=shared \
1484 --enable-session=shared,%{_prefix} \
1485 --enable-shmop=shared,%{_prefix} \
1486 --enable-simplexml \
1487 --enable-soap=shared,%{_prefix} \
1488 --enable-sockets=shared,%{_prefix} \
1489 --enable-sysvmsg=shared,%{_prefix} \
1490 --enable-sysvsem=shared,%{_prefix} \
1491 --enable-sysvshm=shared,%{_prefix} \
1492 --enable-tokenizer=shared,%{_prefix} \
1493 --enable-wddx=shared \
1494 --enable-xmlreader=shared,%{_prefix} \
1495 --enable-xml=shared,%{_prefix} \
1496 --enable-xmlwriter=shared,%{_prefix} \
1497 --enable-zip=shared \
1498 --with-bz2=shared,%{_prefix} \
1499 --with-cdb \
1500 --with-config-file-path=%{_sysconfdir} \
1501 --with-config-file-scan-dir=%{_sysconfdir}/php.d \
1502 --with-curl=shared,%{_prefix} \
1503 --with-db4 \
1504 --with-enchant=shared,%{_prefix} \
1505 --with-freetype-dir=%{_prefix} \
1506 --with-gdbm \
1507 --with-gd=shared,%{_prefix} \
1508 --with-gettext=shared,%{_prefix} \
1509 --with-gmp=shared,%{_prefix} \
1510 --with-iconv=shared \
1511 --with-icu-dir=%{_prefix} \
1512 --with-imap=shared,%{_prefix} \
1513 --with-imap-ssl=%{_prefix} \
1514 --with-interbase=shared,%{_libdir}/firebird \
1515 --with-jpeg-dir=%{_prefix} \
1516 --with-ldap-sasl=%{_prefix} \
1517 --with-ldap=shared,%{_prefix} \
1518 --with-libdir=%{_lib} \
1519 --with-libjson \
1520 --with-libmbfl=%{_prefix} \
1521 --with-libxml-dir=%{_prefix} \
1522 --with-libzip=%{_prefix} \
1523 --with-mysqli=shared,mysqlnd \
1524 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1525 --with-onig=%{_prefix} \
1526 --with-openssl-dir=%{_prefix} \
1527 --with-openssl=shared,%{_prefix} \
1528 --without-curlwrappers \
1529 --without-pear \
1530 --with-pcre-dir=%{_prefix} \
1531 --with-pcre-regex=%{_prefix} \
1532 --with-pdo-dblib=shared,%{_prefix} \
1533 --with-pdo-firebird=shared,%{_libdir}/firebird \
1534 --with-pdo-mysql=shared,mysqlnd \
1535 --with-pdo-odbc=shared,unixODBC,%{_prefix} \
1536 --with-pdo-pgsql=shared,%{_prefix} \
1537 --with-pdo-sqlite=shared,%{_prefix} \
1538 --with-pgsql=shared,%{_prefix} \
1539 --with-png-dir=%{_prefix} \
1540 --with-readline=shared,%{_prefix} \
1541 --with-recode=shared,%{_prefix} \
1542 --with-snmp=shared,%{_prefix} \
1543 --with-sodium=shared,%{_prefix} \
1544 --with-sqlite3=shared,%{_prefix} \
1545 --with-system-ciphers \
1546 --with-tidy=shared,%{_prefix} \
1547 --with-unixODBC=shared,%{_prefix} \
1548 --with-webp-dir=%{_prefix} \
1549 --with-xmlrpc=shared,%{_prefix} \
1550 --with-xpm-dir=%{_prefix}/X11R6 \
1551 --with-xsl=shared,%{_prefix} \
1552 --with-zlib=shared,%{_prefix}
1553
1554 cp -f Makefile Makefile.$i
1555
1556 # left for debugging purposes
1557 cp -f main/php_config.h php_config.h.$i
1558
1559 # when all else failed...
1560 #perl -pi -e "s|-prefer-non-pic -static||g" Makefile.$i
1561
1562 done
1563
1564 %make_build
1565
1566 %if %{build_libmagic}
1567 # keep in sync with latest system magic, the next best thing when system libmagic can't be used...
1568 sapi/cli/php create_data_file.php %{_datadir}/misc/magic.mgc > ext/fileinfo/data_file.c
1569 rm -rf ext/fileinfo/.libs ext/fileinfo/*.lo ext/fileinfo/*.la modules/fileinfo.so modules/fileinfo.la
1570 cp -p ext/fileinfo/data_file.c php-devel/extensions/fileinfo/data_file.c
1571 %make_build
1572 %endif
1573
1574 # make php-cgi
1575 cp -af php_config.h.cgi main/php_config.h
1576 make -f Makefile.cgi sapi/cgi/php-cgi
1577 cp -af php_config.h.apxs main/php_config.h
1578
1579 # make php-fpm
1580 cp -af php_config.h.fpm main/php_config.h
1581 make -f Makefile.fpm sapi/fpm/php-fpm
1582 cp -af php_config.h.apxs main/php_config.h
1583
1584 %install
1585
1586 install -d %{buildroot}%{_libdir}
1587 install -d %{buildroot}%{_bindir}
1588 install -d %{buildroot}%{_sysconfdir}/php.d
1589 install -d %{buildroot}%{_libdir}/php/extensions
1590 install -d %{buildroot}%{_usrsrc}/php-devel
1591 install -d %{buildroot}%{_mandir}/man1
1592 install -d %{buildroot}%{_sysconfdir}/cron.d
1593 install -d %{buildroot}/var/lib/php
1594 install -d %{buildroot}%{_datadir}/php
1595
1596 make -f Makefile.apxs install \
1597 INSTALL_ROOT=%{buildroot} \
1598 INSTALL_IT="\$(LIBTOOL) --mode=install install libphp%{php_common_major}_common.la %{buildroot}%{_libdir}/"
1599
1600 # borked autopoo
1601 rm -f %{buildroot}%{_bindir}/php %{buildroot}%{_bindir}/php-cgi %{buildroot}%{_bindir}/phpdbg
1602 ./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php
1603 ./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi
1604 ./libtool --silent --mode=install install sapi/phpdbg/phpdbg %{buildroot}%{_bindir}/phpdbg
1605
1606 # compat php-fcgi symlink
1607 ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi
1608
1609 cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/
1610 install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/
1611 install -m0644 main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/
1612
1613 install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/
1614 install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/
1615 install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/
1616
1617 # fpm
1618 install -d %{buildroot}%{_unitdir}
1619 install -d %{buildroot}%{_sysconfdir}/logrotate.d
1620 install -d %{buildroot}%{_sysconfdir}/sysconfig
1621 install -d %{buildroot}%{_sysconfdir}/php-fpm.d
1622 install -d %{buildroot}%{_sbindir}
1623 install -d %{buildroot}%{_mandir}/man8
1624 install -d %{buildroot}/var/lib/php-fpm
1625 install -d %{buildroot}/var/log/php-fpm
1626 install -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/php-fpm.conf
1627 # a small bug here...
1628 echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf
1629 install -m0644 sapi/fpm/www.conf %{buildroot}%{_sysconfdir}/php-fpm.d/
1630
1631 ./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm
1632 install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/
1633 install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/
1634 install -m0644 php-fpm.service %{buildroot}%{_unitdir}/php-fpm.service
1635 install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm
1636 install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm
1637 install -d %{buildroot}%{_httpd_modconfdir}
1638 install -m0644 20-php-fpm.conf %{buildroot}%{_httpd_modconfdir}/20-php-fpm.conf
1639
1640 # adjust a bit
1641 perl -pi -e "s|^pid.*|pid = /run/php-fpm/php-fpm.pid|g" %{buildroot}%{_sysconfdir}/php-fpm.conf
1642
1643 ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext
1644
1645 install -d %{buildroot}%{_httpd_moddir}
1646 install -d %{buildroot}%{_httpd_modconfdir}
1647
1648 install -m0755 .libs/libphp%{php_common_major}.so %{buildroot}%{_httpd_moddir}/%{mod_name}.so
1649
1650 cat > %{buildroot}%{_httpd_modconfdir}/%{load_order}_%{mod_name}.conf <<EOF
1651 LoadModule php_module modules/%{mod_name}.so
1652
1653 AddType application/x-httpd-php .php
1654 AddType application/x-httpd-php .phtml
1655 AddType application/x-httpd-php-source .phps
1656
1657 DirectoryIndex index.php index.phtml
1658 EOF
1659
1660 # extensions
1661 install -m0644 %{_sourcedir}/*.ini %{buildroot}%{_sysconfdir}/php.d/
1662 install -m0755 %{SOURCE2} %{buildroot}%{_libdir}/php/maxlifetime
1663 install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.d/php
1664 install -m0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/php.ini
1665 install -m0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini
1666
1667 # lib64 hack
1668 perl -pi -e "s|/usr/lib/|%{_libdir}/|" \
1669 %{buildroot}%{_sysconfdir}/cron.d/php \
1670 %{buildroot}%{_sysconfdir}/php.ini \
1671 %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini \
1672 php.ini-production \
1673 php.ini-development
1674
1675 # install doc manually in _docdir/php, rather than _docdir/php-doc
1676 install -d -m 755 %{buildroot}%{_docdir}/php
1677 install -m 644 \
1678 CREDITS INSTALL LICENSE NEWS \
1679 php.ini-production php.ini-development \
1680 README.EXT_SKEL \
1681 README.input_filter README.PARAMETER_PARSING_API README.STREAMS \
1682 %{buildroot}%{_docdir}/php
1683
1684 # fix docs
1685 cp Zend/LICENSE Zend/ZEND_LICENSE
1686 cp README.SELF-CONTAINED-EXTENSIONS SELF-CONTAINED-EXTENSIONS
1687 cp ext/openssl/README README.openssl
1688 cp ext/spl/README README.spl
1689 cp ext/libxml/CREDITS CREDITS.libxml
1690 cp ext/zlib/CREDITS CREDITS.zlib
1691
1692 # cgi docs
1693 cp sapi/cgi/CREDITS CREDITS.cgi
1694 cp sapi/cgi/README.FastCGI README.fcgi
1695
1696 # cli docs
1697 cp sapi/cli/CREDITS CREDITS.cli
1698 cp sapi/cli/README README.cli
1699
1700 # phar fixes
1701 if [ -L %{buildroot}%{_bindir}/phar ]; then
1702 rm -f %{buildroot}%{_bindir}/phar
1703 mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar
1704 fi
1705
1706 # house cleaning
1707 rm -f %{buildroot}%{_bindir}/pear
1708 rm -f %{buildroot}%{_libdir}/*.*a
1709
1710 # php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL
1711 find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 -exec rm -f {} \;
1712
1713 %multiarch_includes %{buildroot}%{_includedir}/php/main/build-defs.h
1714
1715 %multiarch_includes %{buildroot}%{_includedir}/php/main/php_config.h
1716
1717 %check
1718 %if %{build_test}
1719 # do a make test
1720 export NO_INTERACTION=1
1721 export PHPRC="."
1722 export REPORT_EXIT_STATUS=2
1723 export TEST_PHP_DETAILED=0
1724 export TEST_PHP_ERROR_STYLE=EMACS
1725 export TEST_PHP_LOG_FORMAT=LEODC
1726 export PHP_INI_SCAN_DIR=/dev/null
1727
1728 # FAILING TESTS:
1729 # unknown errors with ext/date/tests/oo_002.phpt probably because of php-5.2.5-systzdata.patch
1730 # http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not)
1731 # unknown errors with ext/standard/tests/general_functions/phpinfo.phpt
1732 # unknown errors with ext/standard/tests/strings/setlocale_*
1733 disable_tests="ext/date/tests/oo_002.phpt \
1734 ext/standard/tests/file/bug22414.phpt \
1735 ext/standard/tests/general_functions/phpinfo.phpt \
1736 ext/standard/tests/strings/setlocale_basic1.phpt \
1737 ext/standard/tests/strings/setlocale_basic2.phpt \
1738 ext/standard/tests/strings/setlocale_basic3.phpt \
1739 ext/standard/tests/strings/setlocale_variation1.phpt \
1740 ext/standard/tests/strings/setlocale_variation3.phpt \
1741 ext/standard/tests/strings/setlocale_variation4.phpt \
1742 ext/standard/tests/strings/setlocale_variation5.phpt"
1743
1744 [[ -n "$disable_tests" ]] && \
1745 for f in $disable_tests; do
1746 [[ -f "$f" ]] && mv $f $f.disabled
1747 done
1748
1749 TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php
1750 %endif
1751
1752
1753
1754 %post fpm
1755 %_tmpfilescreate php-fpm
1756 %_post_service php-fpm
1757
1758 %preun fpm
1759 %_preun_service php-fpm
1760
1761 # rpm filetrigger to reload httpd when installing/removing php extensions
1762 %transfiletriggerin -- %{_libdir}/php/extensions/
1763 systemctl reload-or-try-restart httpd.service || :
1764
1765 %files doc
1766 %doc CREDITS INSTALL LICENSE NEWS Zend/ZEND_LICENSE
1767 %doc php.ini-production php.ini-development
1768 %doc README.openssl README.spl CREDITS.libxml CREDITS.zlib
1769 %doc README.EXT_SKEL README.input_filter
1770 %doc README.PARAMETER_PARSING_API README.STREAMS
1771
1772 %files ini
1773 %{_docdir}/php
1774 %config(noreplace) %{_sysconfdir}/php.ini
1775 %config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini
1776 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE102})
1777 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE103})
1778 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE104})
1779 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE101})
1780 %dir %{_sysconfdir}/php.d
1781 %dir %{_libdir}/php
1782 %dir %{_datadir}/php
1783 %dir %{_libdir}/php/extensions
1784
1785 %files -n apache-mod_php
1786 %config(noreplace) %{_httpd_modconfdir}/*.conf
1787 %{_httpd_moddir}/mod_php.so
1788
1789 %files -n %{libname}
1790 %{_libdir}/libphp%{php_common_major}_common.so.%{php_common_major}*
1791
1792 %files cli
1793 %doc CREDITS.cli README.cli
1794 %{_bindir}/php
1795 %{_mandir}/man1/php.1*
1796
1797 %files cgi
1798 %doc CREDITS.cgi README.fcgi
1799 %{_bindir}/php-cgi
1800 %{_bindir}/php-fcgi
1801 %{_mandir}/man1/php-cgi.1*
1802
1803 %files devel
1804 %doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* EXTENSIONS
1805 %doc Zend/ZEND_*
1806 %{_bindir}/php-config
1807 %{_bindir}/phpize
1808 %{_libdir}/libphp%{php_common_major}_common.so
1809 %{_libdir}/php/build
1810 %{_usrsrc}/php-devel
1811 %{multiarch_includedir}/php/main/build-defs.h
1812 %{multiarch_includedir}/php/main/php_config.h
1813 %{_includedir}/php
1814 %{_mandir}/man1/php-config.1*
1815 %{_mandir}/man1/phpize.1*
1816
1817 %files openssl
1818 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1012})
1819 %{_libdir}/php/extensions/openssl.so
1820
1821 %files zlib
1822 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1013})
1823 %{_libdir}/php/extensions/zlib.so
1824
1825 %files bcmath
1826 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1051})
1827 %{_libdir}/php/extensions/bcmath.so
1828
1829 %files bz2
1830 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE105})
1831 %{_libdir}/php/extensions/bz2.so
1832
1833 %files calendar
1834 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE106})
1835 %{_libdir}/php/extensions/calendar.so
1836
1837 %files ctype
1838 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE107})
1839 %{_libdir}/php/extensions/ctype.so
1840
1841 %files curl
1842 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE108})
1843 %{_libdir}/php/extensions/curl.so
1844
1845 %files dba
1846 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE109})
1847 %{_libdir}/php/extensions/dba.so
1848
1849 %files dom
1850 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1010})
1851 %{_libdir}/php/extensions/dom.so
1852
1853 %files enchant
1854 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1026})
1855 %{_libdir}/php/extensions/enchant.so
1856
1857 %files exif
1858 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1011})
1859 %{_libdir}/php/extensions/exif.so
1860
1861 %files fileinfo
1862 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1023})
1863 %{_libdir}/php/extensions/fileinfo.so
1864
1865 %files filter
1866 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1060})
1867 %{_libdir}/php/extensions/filter.so
1868
1869 %files ftp
1870 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1014})
1871 %{_libdir}/php/extensions/ftp.so
1872
1873 %files gd
1874 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1015})
1875 %{_libdir}/php/extensions/gd.so
1876
1877 %files gettext
1878 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1016})
1879 %{_libdir}/php/extensions/gettext.so
1880
1881 %files gmp
1882 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1017})
1883 %{_libdir}/php/extensions/gmp.so
1884
1885 %files hash
1886 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1039})
1887 %{_libdir}/php/extensions/hash.so
1888
1889 %files iconv
1890 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1018})
1891 %{_libdir}/php/extensions/iconv.so
1892
1893 %files imap
1894 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1019})
1895 %{_libdir}/php/extensions/imap.so
1896
1897 %files interbase
1898 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1029})
1899 %{_libdir}/php/extensions/interbase.so
1900
1901 %files intl
1902 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1020})
1903 %{_libdir}/php/extensions/intl.so
1904
1905 %files json
1906 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1061})
1907 %{_libdir}/php/extensions/json.so
1908
1909 %files ldap
1910 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1021})
1911 %{_libdir}/php/extensions/ldap.so
1912
1913 %files mbstring
1914 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1022})
1915 %{_libdir}/php/extensions/mbstring.so
1916
1917 %files mysqli
1918 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1025})
1919 %{_libdir}/php/extensions/mysqli.so
1920
1921 %files mysqlnd
1922 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1024})
1923 %{_libdir}/php/extensions/mysqlnd.so
1924
1925 %files odbc
1926 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1027})
1927 %{_libdir}/php/extensions/odbc.so
1928
1929 %files opcache
1930 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1064})
1931 %{_libdir}/php/extensions/opcache.so
1932
1933 %files pcntl
1934 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1028})
1935 %{_libdir}/php/extensions/pcntl.so
1936
1937 %files pdo
1938 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1052})
1939 %{_libdir}/php/extensions/pdo.so
1940
1941 %files pdo_dblib
1942 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1053})
1943 %{_libdir}/php/extensions/pdo_dblib.so
1944
1945 %files pdo_firebird
1946 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1058})
1947 %{_libdir}/php/extensions/pdo_firebird.so
1948
1949 %files pdo_mysql
1950 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1054})
1951 %{_libdir}/php/extensions/pdo_mysql.so
1952
1953 %files pdo_odbc
1954 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1055})
1955 %{_libdir}/php/extensions/pdo_odbc.so
1956
1957 %files pdo_pgsql
1958 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1056})
1959 %{_libdir}/php/extensions/pdo_pgsql.so
1960
1961 %files pdo_sqlite
1962 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1057})
1963 %{_libdir}/php/extensions/pdo_sqlite.so
1964
1965 %files pgsql
1966 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1030})
1967 %{_libdir}/php/extensions/pgsql.so
1968
1969 %files phar
1970 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1063})
1971 %{_libdir}/php/extensions/phar.so
1972 %{_bindir}/phar
1973 %{_mandir}/man1/phar.1*
1974 %{_mandir}/man1/phar.phar.1*
1975
1976 %files posix
1977 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1031})
1978 %{_libdir}/php/extensions/posix.so
1979
1980 %files readline
1981 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1032})
1982 %{_libdir}/php/extensions/readline.so
1983
1984 %files recode
1985 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1033})
1986 %{_libdir}/php/extensions/recode.so
1987
1988 %files session
1989 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1034})
1990 %config(noreplace) %{_sysconfdir}/cron.d/php
1991 %{_libdir}/php/extensions/session.so
1992 %{_libdir}/php/maxlifetime
1993 %attr(01733,apache,apache) %dir /var/lib/php
1994
1995 %files shmop
1996 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1035})
1997 %{_libdir}/php/extensions/shmop.so
1998
1999 %files snmp
2000 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1036})
2001 %{_libdir}/php/extensions/snmp.so
2002
2003 %files soap
2004 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1037})
2005 %{_libdir}/php/extensions/soap.so
2006
2007 %files sockets
2008 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1038})
2009 %{_libdir}/php/extensions/sockets.so
2010
2011 %files sodium
2012 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1065})
2013 %{_libdir}/php/extensions/sodium.so
2014
2015 %files sqlite3
2016 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1059})
2017 %{_libdir}/php/extensions/sqlite3.so
2018
2019 %files sysvmsg
2020 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1040})
2021 %{_libdir}/php/extensions/sysvmsg.so
2022
2023 %files sysvsem
2024 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1041})
2025 %{_libdir}/php/extensions/sysvsem.so
2026
2027 %files sysvshm
2028 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1042})
2029 %{_libdir}/php/extensions/sysvshm.so
2030
2031 %files tidy
2032 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1043})
2033 %{_libdir}/php/extensions/tidy.so
2034
2035 %files tokenizer
2036 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1044})
2037 %{_libdir}/php/extensions/tokenizer.so
2038
2039 %files xml
2040 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1045})
2041 %{_libdir}/php/extensions/xml.so
2042
2043 %files xmlreader
2044 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1048})
2045 %{_libdir}/php/extensions/xmlreader.so
2046
2047 %files xmlrpc
2048 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1046})
2049 %{_libdir}/php/extensions/xmlrpc.so
2050
2051 %files xmlwriter
2052 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1050})
2053 %{_libdir}/php/extensions/xmlwriter.so
2054
2055 %files xsl
2056 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1049})
2057 %{_libdir}/php/extensions/xsl.so
2058
2059 %files wddx
2060 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1047})
2061 %{_libdir}/php/extensions/wddx.so
2062
2063 %files zip
2064 %config(noreplace) %{_sysconfdir}/php.d/%(basename %{SOURCE1062})
2065 %{_libdir}/php/extensions/zip.so
2066
2067 %files fpm
2068 %doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html
2069 %{_unitdir}/php-fpm.service
2070 %config(noreplace) %{_httpd_modconfdir}/20-php-fpm.conf
2071 %config(noreplace) %{_sysconfdir}/php-fpm.conf
2072 %config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
2073 %{_sysconfdir}/logrotate.d/php-fpm
2074 %dir %{_sysconfdir}/php-fpm.d
2075 %config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf
2076 %config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
2077 %{_sbindir}/php-fpm
2078 %{_mandir}/man8/php-fpm.8*
2079 %attr(0711,apache,apache) %dir /var/lib/php-fpm
2080 %attr(0711,apache,apache) %dir /var/log/php-fpm
2081 %{_tmpfilesdir}/php-fpm.conf
2082
2083 %files -n phpdbg
2084 %doc sapi/phpdbg/CREDITS sapi/phpdbg/Changelog.md sapi/phpdbg/README.md
2085 %doc sapi/phpdbg/*.php
2086 %{_bindir}/phpdbg
2087 %{_mandir}/man1/phpdbg.1*

  ViewVC Help
Powered by ViewVC 1.1.30