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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30