/[packages]/cauldron/php/current/SPECS/php.spec
ViewVC logotype

Contents of /cauldron/php/current/SPECS/php.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30