2 # - mysqlnd driver doesn't support reconnect: https://bugs.php.net/bug.php?id=52561
4 # - enable --with-fpm-systemd, but ensure it checks for sd_booted()
6 # - update imap annotations patch (needs api porting)
7 # - update imap myrights patch (needs api porting)
9 # - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
10 # - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
11 # - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
12 # - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
13 # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
17 %bcond_without alternatives # use alternatives system to select default phar and php-fpm
18 %bcond_with default_php # build this PHP as default PHP in system (disables alternatives)
20 %bcond_without embed # disable building Embedded API
21 %bcond_with gcov # Enable Code coverage reporting
22 %bcond_without kerberos5 # without Kerberos5 support
23 %bcond_with systemtap # systemtap/DTrace support
24 %bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
25 %bcond_with zts # Zend Thread Safety
26 %bcond_with debug # Zend Debug Build
28 %bcond_without apache2 # disable building Apache 2.x SAPI
29 %bcond_without cgi # disable CGI/FCGI SAPI
30 %bcond_without fpm # disable FPM SAPI
31 %bcond_without litespeed # build litespeed SAPI
32 %bcond_with milter # disable Milter SAPI
33 %bcond_without phpdbg # disable phpdbg SAPI
35 %bcond_without bcmath # without bcmath extension module
36 %bcond_without bz2 # without bz2 extension module
37 %bcond_without calendar # without calendar extension module
38 %bcond_without ctype # without ctype extension module
39 %bcond_without curl # without CURL extension module
40 %bcond_without dba # without DBA extension module
41 %bcond_without dom # without DOM extension module
42 %bcond_without enchant # without Enchant extension module
43 %bcond_without exif # without EXIF extension module
44 %bcond_without fileinfo # without fileinfo extension module
45 %bcond_without filter # without filter extension module
46 %bcond_without ftp # without FTP extension module
47 %bcond_without gd # without GD extension module
48 %bcond_without gettext # without gettext extension module
49 %bcond_without gmp # without gmp extension module
50 %bcond_without iconv # without iconv extension module
51 %bcond_without imap # without IMAP extension module
52 %bcond_without intl # without Intl extension module
53 %bcond_without json # without json extension module
54 %bcond_without ldap # without LDAP extension module
55 %bcond_without mbstring # without mbstring extension module
56 %bcond_without mhash # without mhash extension (supported by hash extension)
57 %bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
58 %bcond_without mysqlnd # without mysqlnd support in mysql related extensions
59 %bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
60 %bcond_without odbc # without ODBC extension module
61 %bcond_without opcache # without Enable Zend OPcache extension support
62 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
63 %bcond_without pcntl # without pcntl extension module
64 %bcond_without pdo # without PDO extension module
65 %bcond_without pdo_dblib # without PDO dblib extension module
66 %bcond_without pdo_firebird # without PDO Firebird extension module
67 %bcond_without pdo_mysql # without PDO MySQL extension module
68 %bcond_without pdo_oci # without PDO oci extension module
69 %bcond_without pdo_odbc # without PDO ODBC extension module
70 %bcond_without pdo_pgsql # without PDO pgsql extension module
71 %bcond_without pdo_sqlite # without PDO SQLite extension module
72 %bcond_without pgsql # without PostgreSQL extension module
73 %bcond_without phar # without Phar extension module
74 %bcond_without posix # without POSIX extension module
75 %bcond_without pspell # without pspell extension module
76 %bcond_without readline # without readline extension module
77 %bcond_without recode # without recode extension module
78 %bcond_without session # without session extension module
79 %bcond_without snmp # without SNMP extension module
80 %bcond_without sodium # without sodium extension module
81 %bcond_without sqlite2 # without SQLite extension module
82 %bcond_without sqlite3 # without SQLite3 extension module
83 %bcond_without tidy # without Tidy extension module
84 %bcond_without xmlrpc # without XML-RPC extension module
85 %bcond_without xsl # without xsl extension module
86 %bcond_without zip # without zip extension module
88 %bcond_without argon2 # argon2 password hashing
89 %bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
90 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
91 %bcond_with mm # without mm support for session storage
92 %bcond_without system_gd # system gd
93 %bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
95 %define apxs1 /usr/sbin/apxs1
96 %define apxs2 /usr/sbin/apxs
100 %undefine with_apache2
102 %undefine with_litespeed
105 %if %{with default_php}
106 %undefine with_alternatives
109 # mm is not thread safe
114 # milter requires ZTS
115 %if %{with milter} && %{without zts}
116 %undefine with_milter
120 %undefine with_pdo_odbc
124 %undefine with_pdo_pgsql
128 %undefine with_pdo_oci
131 %ifnarch %{ix86} %{x8664} x32
132 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
137 %undefine with_pdo_dblib
138 %undefine with_pdo_firebird
139 %undefine with_pdo_mysql
140 %undefine with_pdo_oci
141 %undefine with_pdo_odbc
142 %undefine with_pdo_pgsql
143 %undefine with_pdo_sqlite
146 %define subver alpha1
148 %define ver_suffix 74
149 %define php_suffix %{!?with_default_php:%{ver_suffix}}
150 Summary: PHP: Hypertext Preprocessor
151 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
152 Summary(pl.UTF-8): Język skryptowy PHP
153 Summary(pt_BR.UTF-8): A linguagem de script PHP
154 Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере
155 Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
156 Name: %{orgname}%{php_suffix}
160 # All files licensed under PHP version 3.01, except
161 # Zend is licensed under Zend
162 # TSRM is licensed under BSD
163 License: PHP 3.01 and Zend and BSD
165 #Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
166 Source0: https://downloads.php.net/~derick/php-%{version}%{subver}.tar.xz
167 # Source0-md5: 29592e9a73c0ae615c4b7e2b4761184f
169 Source2: %{orgname}-mod_php.conf
170 Source3: %{orgname}-cgi-fcgi.ini
171 Source4: %{orgname}-apache.ini
172 Source5: %{orgname}-cli.ini
173 Source10: %{orgname}-fpm.init
174 Source11: %{orgname}-fpm.logrotate
175 Source12: %{orgname}-branch.sh
176 Source13: dep-tests.sh
177 Source14: skip-tests.sh
178 Patch0: %{orgname}-shared.patch
179 Patch1: %{orgname}-pldlogo.patch
180 Patch2: %{orgname}-mail.patch
181 Patch3: %{orgname}-link-libs.patch
182 Patch4: intl-stdc++.patch
184 Patch7: %{orgname}-sapi-ini-file.patch
186 Patch9: libtool-tag.patch
187 Patch10: %{orgname}-ini.patch
189 Patch14: %{orgname}-no_pear_install.patch
190 Patch17: %{orgname}-readline.patch
191 Patch18: %{orgname}-nohttpd.patch
192 Patch21: %{orgname}-dba-link.patch
193 Patch22: %{orgname}-both-apxs.patch
194 Patch23: %{orgname}-builddir.patch
195 Patch24: %{orgname}-zlib-for-getimagesize.patch
196 Patch25: %{orgname}-stupidapache_version.patch
197 Patch27: %{orgname}-config-dir.patch
198 Patch29: %{orgname}-fcgi-graceful.patch
199 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
200 Patch34: %{orgname}-libtool.patch
201 Patch39: %{orgname}-use-prog_sendmail.patch
202 Patch41: %{orgname}-fpm-config.patch
203 Patch42: %{orgname}-fpm-shared.patch
204 Patch43: %{orgname}-silent-session-cleanup.patch
205 Patch44: %{orgname}-include_path.patch
206 Patch45: %{orgname}-imap-annotations.patch
207 Patch46: %{orgname}-imap-myrights.patch
208 Patch50: extension-shared-optional-dep.patch
209 Patch53: fix-test-run.patch
210 Patch55: bug-52078-fileinode.patch
211 Patch59: %{orgname}-systzdata.patch
212 Patch60: %{orgname}-oracle-instantclient.patch
213 Patch66: php-db.patch
214 Patch67: mysql-lib-ver-mismatch.patch
215 # https://bugs.php.net/bug.php?id=68344
216 Patch68: php-mysql-ssl-context.patch
217 Patch70: mysqlnd-ssl.patch
218 Patch71: libdb-info.patch
220 %{?with_pdo_firebase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
221 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
222 BuildRequires: autoconf >= 2.59
223 BuildRequires: automake >= 1.4d
224 BuildRequires: bison >= 3.0.0
225 BuildRequires: bzip2-devel >= 1.0.0
226 %{?with_curl:BuildRequires: curl-devel >= 7.15.5}
227 BuildRequires: cyrus-sasl-devel >= 2
228 BuildRequires: db-devel >= 4.0
229 BuildRequires: elfutils-devel
230 %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
231 %{?with_kerberos5:BuildRequires: heimdal-devel}
232 %{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
233 %{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
234 %if %{with pdo_dblib}
235 BuildRequires: freetds-devel >= 0.82
237 BuildRequires: freetype-devel >= 1:2.5.1
238 %if %{with system_gd}
239 BuildRequires: gd-devel >= 2.1
241 BuildRequires: gdbm-devel
242 BuildRequires: gmp-devel >= 4.2
243 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
244 %{?with_gcov:BuildRequires: lcov}
245 %{?with_fpm:BuildRequires: libapparmor-devel}
246 %{?with_intl:BuildRequires: libicu-devel >= 50.1}
247 BuildRequires: libjpeg-devel
248 BuildRequires: libltdl-devel >= 1.4
249 BuildRequires: libpng-devel >= 1.0.8
250 %{?with_intl:BuildRequires: libstdc++-devel}
251 %{?with_webp:BuildRequires: libwebp-devel}
252 %if "%{pld_release}" != "ac"
253 BuildRequires: libtool >= 2:2.4.6
255 BuildRequires: libtool >= 1.4.3
257 BuildRequires: libxml2-devel >= 1:2.7.6-4
258 %{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
259 %{?with_zip:BuildRequires: libzip-devel >= 1.3.1}
260 %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
261 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
262 %{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
263 %{!?with_pdo_mysql:BuildRequires: mysql-devel}
264 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
265 BuildRequires: oniguruma-devel
266 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
267 %if %{with openssl} || %{with ldap}
268 BuildRequires: openssl-devel >= 1.0.1
270 %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
271 BuildRequires: pam-devel
272 BuildRequires: pcre2-8-devel >= 10.30
273 BuildRequires: pkgconfig
274 %{?with_pgsql:BuildRequires: postgresql-devel}
275 BuildRequires: readline-devel
276 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
277 BuildRequires: rpm >= 4.4.9-56
278 BuildRequires: rpm-build >= 4.4.0
279 BuildRequires: rpmbuild(macros) >= 1.566
280 BuildRequires: sed >= 4.0
281 %if %{with sqlite3} || %{with pdo_sqlite}
282 BuildRequires: sqlite3-devel >= 3.3.9
284 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
285 BuildRequires: tar >= 1:1.22
286 %{?with_tidy:BuildRequires: tidy-devel}
287 BuildRequires: tokyocabinet-devel
288 %{?with_odbc:BuildRequires: unixODBC-devel}
289 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
291 BuildRequires: zlib-devel >= 1.2.0.4
293 BuildRequires: apache-devel >= 2.0.52-2
294 BuildRequires: apr-devel >= 1:1.0.0
295 BuildRequires: apr-util-devel >= 1:1.0.0
297 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
299 %define php_sysconfdir /etc/%{name}
300 %define php_extensiondir %{_libdir}/%{name}
301 %define _sysconfdir %{php_sysconfdir}
303 # must be in sync with source. extra check ensuring that it is so is done in %%build
304 %define php_api_version 20190529
305 %define zend_module_api %{php_api_version}
306 %define zend_extension_api 3%{zend_module_api}
307 %define php_pdo_api_version 20170320
310 %define bz2ver %{version}
311 %define enchantver %{version}
312 %define fileinfover %{version}
313 %define hashver %{version}
314 %define intlver %{version}
315 %define jsonver 1.7.0
316 %define pharver %{version}
317 %define sqlite3ver %{version}
318 %define zipver 1.15.4
319 %define phpdbgver %{version}
320 %define sodiumver %{version}
322 %define _zend_zts %{!?with_zts:0}%{?with_zts:1}
323 %define php_debug %{!?with_debug:0}%{?with_debug:1}
326 %undefine with_ccache
330 # ORACLE_HOME is required for oci8 ext to build
331 %define _preserve_env %_preserve_env_base ORACLE_HOME
335 PHP is an HTML-embedded scripting language. PHP attempts to make it
336 easy for developers to write dynamically generated web pages. PHP also
337 offers built-in database integration for several commercial and
338 non-commercial database management systems, so writing a
339 database-enabled web page with PHP is fairly simple. The most common
340 use of PHP coding is probably as a replacement for CGI scripts. The
341 mod_php module enables the Apache web server to understand and process
342 the embedded PHP language in web pages. This package contains PHP
345 %description -l fr.UTF-8
346 PHP est un langage de script embarque dans le HTM. PHP essaye de
347 rendre simple aux developpeurs d'ecrire des pages web generees
348 dynamiquement. PHP incorpore egalement une integration avec plusieurs
349 systemes de gestion de bases de donnees commerciaux et
350 non-connerciaux, qui rent facile la creation de pages web liees avec
351 des bases de donnees. L'utilisation la plus commune de PHP est
352 probablement en remplacement de scripts CGI. Le module mod_php permet
353 au serveur web Apache de comprendre et de traiter le langage PHP
354 integre dans des pages web. Ce package contient PHP version
357 %description -l pl.UTF-8
358 PHP jest językiem skryptowym, którego polecenia umieszcza się w
359 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
360 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
361 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
362 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
363 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
364 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
365 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
368 %description -l pt_BR.UTF-8
369 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
370 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
371 com algumas características únicas, específicas ao PHP. O objetivo da
372 linguagem é permitir que desenvolvedores web escrevam páginas
373 dinamicamente geradas de forma rápida.
375 %description -l ru.UTF-8
376 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
377 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
378 для работы с базами данных относительно просто. Наиболее популярное
379 использование PHP - замена для CGI скриптов.
381 %description -l uk.UTF-8
382 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
383 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
384 роботи з базами даних є доволі простим. Найбільш популярне
385 використання PHP - заміна для CGI скриптів.
387 %package -n apache-mod_%{name}
388 Summary: PHP support for Apache 2.x
389 Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
390 Group: Development/Languages/PHP
391 Requires: %{name}-common = %{epoch}:%{version}-%{release}
392 Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
393 Provides: webserver(php) = %{version}
394 Obsoletes: apache-mod_php < 4:5.3.28-7
397 %description -n apache-mod_%{name}
398 PHP support for Apache 2.x.
400 %description -n apache-mod_%{name} -l pl.UTF-8
401 Wsparcie PHP dla Apache 2.x.
403 %package -n apache-mod_%{name}-core
404 Summary: PHP DSO module for Apache 2.x
405 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
406 Group: Development/Languages/PHP
407 Requires: %{name}-common = %{epoch}:%{version}-%{release}
408 Requires: apache(modules-api) = %{apache_modules_api}
409 Requires: apache-mod_mime
411 %description -n apache-mod_%{name}-core
412 PHP as DSO module for Apache 2.x.
414 %description -n apache-mod_%{name}-core -l pl.UTF-8
415 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
418 Summary: PHP for litespeed HTTP server
419 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
420 Group: Development/Languages/PHP
421 Requires: %{name}-common = %{epoch}:%{version}-%{release}
422 Provides: php(litespeed)
423 Provides: webserver(php) = %{version}
424 Obsoletes: php-litespeed < 4:5.3.28-7
426 %description litespeed
427 PHP for litespeed HTTP server.
429 %description litespeed -l pl.UTF-8
430 PHP dla serwera HTTP litespeed.
433 Summary: PHP as CGI/FastCGI program
434 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
435 Group: Development/Languages/PHP
436 Requires: %{name}-common = %{epoch}:%{version}-%{release}
437 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
440 Provides: webserver(php) = %{version}
441 Obsoletes: php-cgi < 4:5.3.28-7
442 Obsoletes: php-fcgi < 4:5.3.0
445 PHP as CGI or FastCGI program.
447 %description cgi -l pl.UTF-8
448 PHP jako program CGI lub FastCGI.
451 Summary: PHP as CLI interpreter
452 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
453 Group: Development/Languages/PHP
454 Requires: %{name}-common = %{epoch}:%{version}-%{release}
455 Obsoletes: php-cli < 4:5.3.28-7
458 PHP as CLI interpreter.
460 %description cli -l pl.UTF-8
461 PHP jako interpreter działający z linii poleceń.
464 Summary: PHP library for embedding in applications
465 Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
467 Requires: %{name}-common = %{epoch}:%{version}-%{release}
468 Obsoletes: php-embedded < 4:5.3.28-7
470 %description embedded
471 The php-embedded package contains a library which can be embedded into
472 applications to provide PHP scripting language support.
474 %description embedded -l pl.UTF-8
475 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
476 celu obsługi PHP jako języka skryptowego.
479 Summary: /usr/bin/php symlink
480 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
481 Group: Development/Languages/PHP
482 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
483 Obsoletes: /usr/bin/php
484 Obsoletes: php-program < 4:5.3.28-7
487 Package providing /usr/bin/php symlink to PHP CLI.
489 %description program -l pl.UTF-8
490 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
493 Summary: PHP FastCGI Process Manager
494 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
495 Group: Development/Languages/PHP
496 URL: http://php-fpm.org/
497 Requires(post,preun): /sbin/chkconfig
498 Requires(postun): /usr/sbin/userdel
499 Requires(pre): /bin/id
500 Requires(pre): /usr/sbin/useradd
501 Requires: %{name}-common = %{epoch}:%{version}-%{release}
502 %{?with_alternatives:Requires: alternatives}
503 Requires: php-dirs >= 1.4-2
508 Provides: webserver(php) = %{version}
509 Obsoletes: php-fpm < 4:5.3.28-7
510 %if "%{pld_release}" != "ac"
511 Conflicts: logrotate < 3.8.0
515 PHP FastCGI Process Manager.
517 %description fpm -l pl.UTF-8
518 PHP FastCGI Process Manager - zarządca procesów FastCGI.
521 Summary: The debugging platform for PHP 5.4+
522 Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
523 Group: Development/Languages/PHP
524 Requires: %{name}-common = %{epoch}:%{version}-%{release}
525 Provides: php(phpdbg) = %{phpdbgver}
528 phpdbg - The interactive PHP debugger.
530 Implemented as a SAPI module, phpdbg can excert complete control over
531 the environment without impacting the functionality or performance of
534 phpdbg aims to be a lightweight, powerful, easy to use debugging
535 platform for PHP 5.4+
537 %description phpdbg -l pl.UTF-8
538 phpdbg - interaktywny debugger dla PHP.
540 Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
541 nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
543 Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
544 platforma diagnostyczna dla PHP 5.4+.
547 Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
548 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
549 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
550 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
552 Requires(post): sed >= 4.0
553 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
554 Requires: glibc >= 6:2.3.5
555 Requires: php-dirs >= 1.4
556 Requires: rpm-whiteout >= 1.28
558 Requires: zlib >= 1.2.0.4
559 Provides: %{name}(debug) = %{php_debug}
560 Provides: %{name}(modules_api) = %{php_api_version}
561 Provides: %{name}(thread-safety) = %{_zend_zts}
562 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
563 Provides: %{name}(zend_module_api) = %{zend_module_api}
564 Provides: %{name}-core
565 Provides: %{name}-date
566 Provides: %{name}-hash = %{epoch}:%{version}-%{release}
567 Provides: %{name}-pcre = %{epoch}:%{version}-%{release}
568 Provides: %{name}-spl = %{epoch}:%{version}-%{release}
569 Provides: %{name}-reflection
570 Provides: %{name}-standard
571 Provides: php(core) = %{version}
573 Provides: php(hash) = %{hashver}
574 Provides: php(libxml)
576 Provides: php(reflection)
578 Provides: php(standard)
579 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
580 %requires_ge_to pcre2-8 pcre2-8-devel
582 Obsoletes: php-common < 4:5.3.28-7
583 Obsoletes: php-filepro < 4:5.2.0
584 Obsoletes: php-hash < 4:5.3.28-7
585 Obsoletes: php-hwapi < 4:5.2.0
586 Obsoletes: php-hyperwave < 3:5.0.0
587 Obsoletes: php-java < 3:5.0.0
588 Obsoletes: php-mcal < 3:5.0.0
589 Obsoletes: php-pcre < 4:5.3.28-7
590 Obsoletes: php-pecl-domxml
591 Obsoletes: php-pecl-hash < %{hashver}
592 Obsoletes: php-qtdom < 3:5.0.0
593 Obsoletes: php-spl < 4:5.3.28-7
594 Conflicts: php4-common < 3:4.4.4-8
595 Conflicts: php55-common < 4:5.5.10-4
596 Conflicts: rpm < 4.4.2-0.2
599 Provides: php-mhash = %{epoch}:%{version}-%{release}
600 Obsoletes: php-mhash < 4:5.3.0
604 Common files needed by both Apache modules and CGI/CLI SAPIs.
606 %description common -l pl.UTF-8
607 Wspólne pliki dla modułu Apache'a i programu CGI.
609 %description common -l ru.UTF-8
610 Этот пакет содержит общие файлы для разных вариантов реализации PHP
611 (самодостаточной и в качестве модуля Apache).
613 %description common -l uk.UTF-8
614 Цей пакет містить спільні файли для різних варіантів реалізації PHP
615 (самодостатньої та в якості модуля Apache).
618 Summary: Files for PHP modules development
619 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
620 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
621 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
622 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
623 Group: Development/Languages/PHP
624 Requires: %{name}-common = %{epoch}:%{version}-%{release}
625 Requires: autoconf >= 2.13
627 %if "%{pld_release}" != "ac"
628 Requires: libtool >= 2:2.4.6
632 Requires: pcre2-8-devel >= 10.30
634 Provides: php-devel = %{epoch}:%{version}-%{release}
636 Obsoletes: php-pear-devel
637 Obsoletes: php4-devel
638 Obsoletes: php52-devel
639 Obsoletes: php53-devel
640 Obsoletes: php54-devel
641 Obsoletes: php55-devel
642 Obsoletes: php56-devel
643 Obsoletes: php70-devel
644 Obsoletes: php71-devel
645 Obsoletes: php73-devel
648 The php-devel package lets you compile dynamic extensions to PHP.
649 Included here is the source for the PHP extensions. Instead of
650 recompiling the whole PHP binary to add support for, say, oracle,
651 install this package and use the new self-contained extensions
652 support. For more information, read the file
653 README.SELF-CONTAINED-EXTENSIONS.
655 %description devel -l pl.UTF-8
656 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
657 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
658 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
659 samodzielnych rozszerzeniach można znaleźć w pliku
660 README.SELF-CONTAINED-EXTENSIONS.
662 %description devel -l pt_BR.UTF-8
663 Este pacote contém arquivos usados no desenvolvimento de programas ou
666 %description devel -l ru.UTF-8
667 Пакет php-devel дает возможность компилировать динамические расширения
668 PHP. Пакет включает исходный код этих расширений. Вместо повторной
669 компиляции бинарного файла PHP для добавления, например, поддержки
670 oracle, установите этот пакет для компилирования отдельных расширений.
671 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
673 %description devel -l uk.UTF-8
674 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
675 До пакету включено вихідний код для розширень. Замість повторної
676 компіляції бінарного файлу PHP для додання, наприклад, підтримки
677 oracle, встановіть цей пакет для компіляції окремих розширень.
678 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
681 Summary: bcmath extension module for PHP
682 Summary(pl.UTF-8): Moduł bcmath dla PHP
684 URL: http://php.net/manual/en/book.bc.php
685 Requires: %{name}-common = %{epoch}:%{version}-%{release}
686 Provides: php(bcmath)
687 Obsoletes: php-bcmath < 4:5.3.28-7
690 This is a dynamic shared object (DSO) for PHP that will add bc style
691 precision math functions support.
693 %description bcmath -l pl.UTF-8
694 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
695 matematycznych takich jak w programie bc.
698 Summary: Bzip2 extension module for PHP
699 Summary(pl.UTF-8): Moduł bzip2 dla PHP
701 URL: http://php.net/manual/en/book.bzip2.php
702 Requires: %{name}-common = %{epoch}:%{version}-%{release}
703 Requires: bzip2-libs >= 1.0.0
704 Provides: php(bz2) = %{bz2ver}
706 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
707 Obsoletes: php-bz2 < 4:5.3.28-7
708 Obsoletes: php-bzip2 < 4:5.2.14-3
709 Obsoletes: php-pecl-bz2 < %{bz2ver}
712 This is a dynamic shared object (DSO) for PHP that will add bzip2
713 compression support to PHP.
715 %description bz2 -l pl.UTF-8
716 Moduł PHP umożliwiający używanie kompresji bzip2.
719 Summary: Calendar extension module for PHP
720 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
722 URL: http://php.net/manual/en/book.calendar.php
723 Requires: %{name}-common = %{epoch}:%{version}-%{release}
724 Provides: php(calendar)
725 Obsoletes: php-calendar < 4:5.3.28-7
727 %description calendar
728 This is a dynamic shared object (DSO) for PHP that will add calendar
731 %description calendar -l pl.UTF-8
732 Moduł PHP dodający wsparcie dla kalendarza.
735 Summary: ctype extension module for PHP
736 Summary(pl.UTF-8): Moduł ctype dla PHP
738 URL: http://php.net/manual/en/book.ctype.php
739 Requires: %{name}-common = %{epoch}:%{version}-%{release}
741 Obsoletes: php-ctype < 4:5.3.28-7
744 This is a dynamic shared object (DSO) for PHP that will add ctype
747 %description ctype -l pl.UTF-8
748 Moduł PHP umożliwiający korzystanie z funkcji ctype.
751 Summary: curl extension module for PHP
752 Summary(pl.UTF-8): Moduł curl dla PHP
754 URL: http://php.net/manual/en/book.curl.php
755 Requires: %{name}-common = %{epoch}:%{version}-%{release}
756 Requires: curl-libs >= 7.12.0
758 Obsoletes: php-curl < 4:5.3.28-7
761 This is a dynamic shared object (DSO) for PHP that will add curl
764 %description curl -l pl.UTF-8
765 Moduł PHP umożliwiający korzystanie z biblioteki curl.
768 Summary: DBA extension module for PHP
769 Summary(pl.UTF-8): Moduł DBA dla PHP
771 URL: http://php.net/manual/en/book.dba.php
772 Requires: %{name}-common = %{epoch}:%{version}-%{release}
774 Obsoletes: php-dba < 4:5.3.28-7
775 # withdrawn module of similar functionality but different API
776 Obsoletes: php-db < 3:5.0.0
779 This is a dynamic shared object (DSO) for PHP that will add flat-file
780 databases (DBA) support.
782 %description dba -l pl.UTF-8
783 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
787 Summary: DOM extension module for PHP
788 Summary(pl.UTF-8): Moduł DOM dla PHP
790 URL: http://php.net/manual/en/book.dom.php
791 Requires: %{name}-common = %{epoch}:%{version}-%{release}
793 # it has some compatibility functions
794 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
795 Provides: php(domxml)
796 Obsoletes: php-dom < 4:5.3.28-7
797 Obsoletes: php-domxml <= 3:4.3.8-1
800 This is a dynamic shared object (DSO) for PHP that will add new DOM
803 %description dom -l pl.UTF-8
804 Moduł PHP dodający nową obsługę DOM.
807 Summary: libenchant binder
808 Summary(pl.UTF-8): dowiązania biblioteki libenchant
810 URL: http://php.net/manual/en/book.enchant.php
811 Requires: %{name}-common = %{epoch}:%{version}-%{release}
812 Provides: php(enchant) = %{enchantver}
813 Obsoletes: php-enchant < 4:5.3.28-7
814 Obsoletes: php-pecl-enchant < %{enchantver}
817 Enchant is a binder for libenchant. Libenchant provides a common API
818 for many spell libraries:
819 - aspell/pspell (intended to replace ispell)
822 - myspell (OpenOffice.org project, mozilla)
823 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
824 plugin system allows to add custom spell support.
826 %description enchant -l pl.UTF-8
827 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
828 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
829 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
832 - myspell (projekt OpenOffice.org, mozilla)
833 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
834 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
837 Summary: exif extension module for PHP
838 Summary(pl.UTF-8): Moduł exif dla PHP
840 URL: http://php.net/manual/en/book.exif.php
841 Requires: %{name}-common = %{epoch}:%{version}-%{release}
843 Obsoletes: php-exif < 4:5.3.28-7
846 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
847 support in image files.
849 %description exif -l pl.UTF-8
850 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
853 Summary: libmagic bindings
854 Summary(pl.UTF-8): Wiązania do libmagic
856 URL: http://php.net/manual/en/book.fileinfo.php
857 Requires: %{name}-common = %{epoch}:%{version}-%{release}
858 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
859 Provides: php(fileinfo) = %{fileinfover}
860 Obsoletes: php-fileinfo < 4:5.3.28-7
861 Obsoletes: php-mime_magic
862 Obsoletes: php-pecl-fileinfo < %{fileinfover}
864 %description fileinfo
865 This extension allows retrieval of information regarding vast majority
866 of file. This information may include dimensions, quality, length
869 Additionally it can also be used to retrieve the MIME type for a
870 particular file and for text files proper language encoding.
872 %description fileinfo -l pl.UTF-8
873 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
874 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
876 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
877 pliku oraz kodowania plików tekstowych.
880 Summary: Extension for safely dealing with input parameters
881 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
883 URL: http://php.net/manual/en/book.filter.php
884 Requires: %{name}-common = %{epoch}:%{version}-%{release}
885 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
886 Provides: php(filter)
887 Obsoletes: php-filter < 4:5.3.28-7
888 Obsoletes: php-pecl-filter
891 We all know that you should always check input variables, but PHP does
892 not offer really good functionality for doing this in a safe way. The
893 Input Filter extension is meant to address this issue by implementing
894 a set of filters and mechanisms that users can use to safely access
897 %description filter -l pl.UTF-8
898 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
899 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
900 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
901 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
902 mogą bezpiecznie używać do dostępu do danych.
905 Summary: FTP extension module for PHP
906 Summary(pl.UTF-8): Moduł FTP dla PHP
908 URL: http://php.net/manual/en/book.ftp.php
909 Requires: %{name}-common = %{epoch}:%{version}-%{release}
911 Obsoletes: php-ftp < 4:5.3.28-7
914 This is a dynamic shared object (DSO) for PHP that will add FTP
917 %description ftp -l pl.UTF-8
918 Moduł PHP dodający obsługę protokołu FTP.
921 Summary: GD extension module for PHP
922 Summary(pl.UTF-8): Moduł GD dla PHP
924 URL: http://php.net/manual/en/book.image.php
925 Requires: %{name}-common = %{epoch}:%{version}-%{release}
926 %if %{with system_gd}
931 Obsoletes: php-gd < 4:5.3.28-7
934 This is a dynamic shared object (DSO) for PHP that will add GD
935 support, allowing you to create and manipulate images with PHP.
937 %description gd -l pl.UTF-8
938 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
939 tworzenie i obróbkę obrazków.
942 Summary: gettext extension module for PHP
943 Summary(pl.UTF-8): Moduł gettext dla PHP
945 URL: http://php.net/manual/en/book.gettext.php
946 Requires: %{name}-common = %{epoch}:%{version}-%{release}
947 Provides: php(gettext)
948 Obsoletes: php-gettext < 4:5.3.28-7
951 This is a dynamic shared object (DSO) for PHP that will add gettext
954 %description gettext -l pl.UTF-8
955 Moduł PHP dodający obsługę lokalizacji przez gettext.
958 Summary: gmp extension module for PHP
959 Summary(pl.UTF-8): Moduł gmp dla PHP
961 URL: http://php.net/manual/en/book.gmp.php
962 Requires: %{name}-common = %{epoch}:%{version}-%{release}
965 Obsoletes: php-gmp < 4:5.3.28-7
968 This is a dynamic shared object (DSO) for PHP that will add arbitrary
969 length number support with GNU MP library.
971 %description gmp -l pl.UTF-8
972 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
973 liczbach o dowolnej długości.
976 Summary: iconv extension module for PHP
977 Summary(pl.UTF-8): Moduł iconv dla PHP
979 URL: http://php.net/manual/en/book.iconv.php
980 Requires: %{_libdir}/gconv
981 Requires: %{name}-common = %{epoch}:%{version}-%{release}
984 Obsoletes: php-iconv < 4:5.3.28-7
987 This is a dynamic shared object (DSO) for PHP that will add iconv
990 %description iconv -l pl.UTF-8
991 Moduł PHP dodający obsługę iconv.
994 Summary: IMAP extension module for PHP
995 Summary(pl.UTF-8): Moduł IMAP dla PHP
996 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
998 URL: http://php.net/manual/en/book.imap.php
999 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1000 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1001 Requires: imap-lib >= 1:2007e-2
1003 Obsoletes: php-imap < 4:5.3.28-7
1006 This is a dynamic shared object (DSO) for PHP that will add IMAP
1009 %description imap -l pl.UTF-8
1010 Moduł PHP dodający obsługę skrzynek IMAP.
1012 %description imap -l pt_BR.UTF-8
1013 Um módulo para aplicações PHP que usam IMAP.
1016 Summary: Internationalization extension (ICU wrapper)
1017 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
1019 URL: http://php.net/intl
1020 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1021 Provides: php(intl) = %{intlver}
1022 Obsoletes: php-intl < 4:5.3.28-7
1023 Obsoletes: php-pecl-intl < %{intlver}
1026 Internationalization extension (further is referred as Intl) is a
1027 wrapper for ICU library, enabling PHP programmers to perform
1028 UCA-conformant collation and date/time/number/currency formatting in
1031 %description intl -l pl.UTF-8
1032 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1033 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1034 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1038 Summary: PHP C extension for JSON serialization
1039 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
1041 URL: http://php.net/manual/en/book.json.php
1042 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1043 Provides: php(json) = %{jsonver}
1044 Obsoletes: php-json < 4:5.3.28-7
1045 Obsoletes: php-pecl-json < %{jsonver}
1048 php-json is an extremely fast PHP C extension for JSON (JavaScript
1049 Object Notation) serialisation.
1051 %description json -l pl.UTF-8
1052 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1053 (JavaScript Object Notation).
1056 Summary: LDAP extension module for PHP
1057 Summary(pl.UTF-8): Moduł LDAP dla PHP
1058 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1060 URL: http://php.net/manual/en/book.ldap.php
1061 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1063 Obsoletes: php-ldap < 4:5.3.28-7
1066 This is a dynamic shared object (DSO) for PHP that will add LDAP
1069 %description ldap -l pl.UTF-8
1070 Moduł PHP dodający obsługę LDAP.
1072 %description ldap -l pt_BR.UTF-8
1073 Um módulo para aplicações PHP que usam LDAP.
1076 Summary: mbstring extension module for PHP
1077 Summary(pl.UTF-8): Moduł mbstring dla PHP
1079 URL: http://php.net/manual/en/book.mbstring.php
1080 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1081 Provides: php(mbstring)
1082 Obsoletes: php-mbstring < 4:5.3.28-7
1084 %description mbstring
1085 This is a dynamic shared object (DSO) for PHP that will add multibyte
1088 %description mbstring -l pl.UTF-8
1089 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1092 Summary: MySQLi module for PHP
1093 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1095 URL: http://php.net/manual/en/book.mysqli.php
1096 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1097 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1098 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1099 Requires: mysql-libs >= 4.1.13
1100 Provides: php(mysqli)
1101 Obsoletes: php-mysqli < 4:5.3.28-7
1104 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1105 (Improved MySQL) support. The difference between it and mysql module
1106 is that it provides access to functionality of MySQL 4.1 and above.
1108 %description mysqli -l pl.UTF-8
1109 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1110 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1111 MySQL w wersji 4.1 i nowszych.
1114 Summary: MySQL Native Client Driver for PHP
1115 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1117 URL: http://php.net/manual/en/book.mysqlnd.php
1118 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1119 Provides: php(mysqlnd)
1120 Obsoletes: php-mysqlnd < 4:5.3.28-7
1122 %description mysqlnd
1123 MySQL Native Driver is a replacement for the MySQL Client Library
1126 Because MySQL Native Driver is written as a PHP extension, it is
1127 tightly coupled to the workings of PHP. This leads to gains in
1128 efficiency, especially when it comes to memory usage, as the driver
1129 uses the PHP memory management system. It also supports the PHP memory
1130 limit. Using MySQL Native Driver leads to comparable or better
1131 performance than using MySQL Client Library, it always ensures the
1132 most efficient use of memory. One example of the memory efficiency is
1133 the fact that when using the MySQL Client Library, each row is stored
1134 in memory twice, whereas with the MySQL Native Driver each row is only
1135 stored once in memory.
1137 %description mysqlnd -l pl.UTF-8
1138 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1139 klienckiej MySQL (libmysql).
1141 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1142 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1143 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1144 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1145 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1146 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1147 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1148 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1149 tym sterowniku - tylko raz.
1152 Summary: Oracle 8+ database module for PHP
1153 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1155 URL: http://php.net/manual/en/book.oci8.php
1156 %{?requires_php_extension}
1158 Obsoletes: php-oci8 < 4:5.3.28-7
1159 # withdrawn module of similar functionality but different API
1160 Obsoletes: php-oracle < 4:5.1.0
1163 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1164 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1166 %description oci8 -l pl.UTF-8
1167 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1168 poprzez interfejs Oracle8 Call-Interface (OCI8).
1171 Summary: ODBC extension module for PHP
1172 Summary(pl.UTF-8): Moduł ODBC dla PHP
1173 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1175 URL: http://php.net/manual/en/book.uodbc.php
1176 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1177 Requires: unixODBC >= 2.1.1-3
1179 Obsoletes: php-odbc < 4:5.3.28-7
1182 This is a dynamic shared object (DSO) for PHP that will add ODBC
1185 %description odbc -l pl.UTF-8
1186 Moduł PHP ze wsparciem dla ODBC.
1188 %description odbc -l pt_BR.UTF-8
1189 Um módulo para aplicações PHP que usam ODBC.
1192 Summary: Zend Optimizer+ - PHP code optimizer
1193 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1195 URL: https://wiki.php.net/rfc/optimizerplus
1196 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1197 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1198 Provides: php(opcache) = %{version}
1200 %description opcache
1201 The Zend OPcache provides faster PHP execution through opcode caching
1202 and optimization. It improves PHP performance by storing precompiled
1203 script bytecode in the shared memory. This eliminates the stages of
1204 reading code from the disk and compiling it on future access. In
1205 addition, it applies a few bytecode optimization patterns that make
1206 code execution faster.
1208 %description opcache -l pl.UTF-8
1209 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1210 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1211 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1212 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1213 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1214 czyniąc wykonywanie kodu szybszym.
1217 Summary: OpenSSL extension module for PHP
1218 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1220 URL: http://php.net/manual/en/book.openssl.php
1221 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1222 Provides: php(openssl)
1223 Obsoletes: php-openssl < 4:5.3.28-7
1225 %description openssl
1226 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1229 %description openssl -l pl.UTF-8
1230 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1233 Summary: Process Control extension module for PHP
1234 Summary(pl.UTF-8): Moduł Process Control dla PHP
1236 URL: http://php.net/manual/en/book.pcntl.php
1237 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1238 Provides: php(pcntl)
1239 Obsoletes: php-pcntl < 4:5.3.28-7
1242 This is a dynamic shared object (DSO) for PHP that will add process
1243 spawning and control support. It supports functions like fork(),
1244 waitpid(), signal() etc.
1246 %description pcntl -l pl.UTF-8
1247 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1248 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1251 Summary: PHP Data Objects (PDO)
1252 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1254 URL: http://php.net/manual/en/book.pdo.php
1255 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1256 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1257 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1259 Obsoletes: php-pdo < 4:5.3.28-7
1260 Obsoletes: php-pecl-PDO
1263 This is a dynamic shared object (DSO) for PHP that will add PDO
1266 %description pdo -l pl.UTF-8
1267 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1270 Summary: PHP Data Objects (PDO) FreeTDS support
1271 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1273 URL: http://php.net/manual/en/ref.pdo-dblib.php
1274 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1275 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1276 Provides: php(pdo_dblib)
1277 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1279 %description pdo-dblib
1280 This is a dynamic shared object (DSO) for PHP that will add PDO
1283 %description pdo-dblib -l pl.UTF-8
1284 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1287 %package pdo-firebird
1288 Summary: PHP Data Objects (PDO) Firebird support
1289 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1291 URL: http://php.net/manual/en/ref.pdo-firebird.php
1292 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1293 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1294 Provides: php(pdo-firebird)
1295 Provides: php(pdo_firebird)
1296 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1297 Obsoletes: php-pecl-PDO_FIREBIRD
1299 %description pdo-firebird
1300 This is a dynamic shared object (DSO) for PHP that will add PDO
1303 %description pdo-firebird -l pl.UTF-8
1304 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1308 Summary: PHP Data Objects (PDO) MySQL support
1309 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1311 URL: http://php.net/manual/en/ref.pdo-mysql.php
1312 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1313 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1314 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1315 Provides: php(pdo-mysql)
1316 Provides: php(pdo_mysql)
1317 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1318 Obsoletes: php-pecl-PDO_MYSQL
1320 %description pdo-mysql
1321 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1324 %description pdo-mysql -l pl.UTF-8
1325 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1329 Summary: PHP Data Objects (PDO) Oracle support
1330 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1332 URL: http://php.net/manual/en/ref.pdo-oci.php
1333 %{?requires_php_extension}
1334 %{?requires_php_pdo_module}
1335 Provides: php(pdo-oci)
1336 Provides: php(pdo_oci)
1337 Obsoletes: php-pdo-oci < 4:5.3.28-7
1338 Obsoletes: php-pecl-PDO_OCI
1340 %description pdo-oci
1341 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1344 %description pdo-oci -l pl.UTF-8
1345 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1349 Summary: PHP Data Objects (PDO) ODBC support
1350 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1352 URL: http://php.net/manual/en/ref.pdo-odbc.php
1353 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1354 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1355 Provides: php(pdo-odbc)
1356 Provides: php(pdo_odbc)
1357 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1358 Obsoletes: php-pecl-PDO_ODBC
1360 %description pdo-odbc
1361 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1364 %description pdo-odbc -l pl.UTF-8
1365 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1369 Summary: PHP Data Objects (PDO) PostgreSQL support
1370 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1372 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1373 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1374 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1375 Provides: php(pdo-pgsql)
1376 Provides: php(pdo_pgsql)
1377 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1378 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1380 %description pdo-pgsql
1381 This is a dynamic shared object (DSO) for PHP that will add PDO
1384 %description pdo-pgsql -l pl.UTF-8
1385 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1389 Summary: PHP Data Objects (PDO) SQLite support
1390 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1392 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1393 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1394 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1395 Provides: php(pdo-sqlite)
1396 Provides: php(pdo_sqlite)
1397 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1398 Obsoletes: php-pecl-PDO_SQLITE
1400 %description pdo-sqlite
1401 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1404 %description pdo-sqlite -l pl.UTF-8
1405 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1409 Summary: PostgreSQL database module for PHP
1410 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1412 URL: http://php.net/manual/en/book.pgsql.php
1413 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1414 Provides: php(pgsql)
1415 Obsoletes: php-pgsql < 4:5.3.28-7
1418 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1421 %description pgsql -l pl.UTF-8
1422 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1424 %description pgsql -l pt_BR.UTF-8
1425 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1428 Summary: Phar archive module for PHP
1429 Summary(pl.UTF-8): Moduł phar dla PHP
1431 URL: http://php.net/manual/en/book.phar.php
1432 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1433 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1434 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1435 %{?with_alternatives:Requires: alternatives}
1436 Suggests: %{name}-cli
1437 # zlib is required by phar program, but as phar cli is optional should the dep be too
1438 Suggests: %{name}-zlib
1439 Provides: php(phar) = %{pharver}
1440 Obsoletes: php-pecl-phar < %{pharver}
1441 Obsoletes: php-phar < 4:5.3.28-7
1442 Conflicts: php-ioncube < 4.0.9
1445 This is a dynamic shared object (DSO) for PHP that will add phar
1448 %description phar -l pl.UTF-8
1449 Moduł PHP umożliwiający dostęp do achiwów .phar.
1452 Summary: POSIX extension module for PHP
1453 Summary(pl.UTF-8): Moduł POSIX dla PHP
1455 URL: http://php.net/manual/en/book.posix.php
1456 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1457 Provides: php(posix)
1458 Obsoletes: php-posix < 4:5.3.28-7
1461 This is a dynamic shared object (DSO) for PHP that will add POSIX
1462 functions support to PHP.
1464 %description posix -l pl.UTF-8
1465 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1468 Summary: pspell extension module for PHP
1469 Summary(pl.UTF-8): Moduł pspell dla PHP
1471 URL: http://php.net/manual/en/book.pspell.php
1472 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1473 Provides: php(pspell)
1474 Obsoletes: php-pspell < 4:5.3.28-7
1477 This is a dynamic shared object (DSO) for PHP that will add pspell
1478 support to PHP. It allows to check the spelling of a word and offer
1481 %description pspell -l pl.UTF-8
1482 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1483 sprawdzanie pisowni słowa i sugerowanie poprawek.
1486 Summary: readline extension module for PHP
1487 Summary(pl.UTF-8): Moduł readline dla PHP
1489 URL: http://php.net/manual/en/book.readline.php
1490 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1491 Provides: php(readline)
1492 Obsoletes: php-readline < 4:5.3.28-7
1494 %description readline
1495 This PHP module adds support for readline functions (only for cli and
1498 %description readline -l pl.UTF-8
1499 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1502 Summary: recode extension module for PHP
1503 Summary(pl.UTF-8): Moduł recode dla PHP
1505 URL: http://php.net/manual/en/book.recode.php
1506 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1507 Requires: recode >= 3.5d-3
1508 Provides: php(recode)
1509 Obsoletes: php-recode < 4:5.3.28-7
1512 This is a dynamic shared object (DSO) for PHP that will add recode
1515 %description recode -l pl.UTF-8
1516 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1520 Summary: session extension module for PHP
1521 Summary(pl.UTF-8): Moduł session dla PHP
1523 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1524 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1525 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1527 Provides: php(session)
1528 Obsoletes: php-session < 4:5.3.28-7
1530 %description session
1531 This is a dynamic shared object (DSO) for PHP that will add session
1534 %description session -l pl.UTF-8
1535 Moduł PHP dodający obsługę sesji.
1538 Summary: Shared Memory Operations extension module for PHP
1539 Summary(pl.UTF-8): Moduł shmop dla PHP
1541 URL: http://php.net/manual/en/book.shmop.php
1542 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1543 Provides: php(shmop)
1544 Obsoletes: php-shmop < 4:5.3.28-7
1547 This is a dynamic shared object (DSO) for PHP that will add Shared
1548 Memory Operations support.
1550 %description shmop -l pl.UTF-8
1551 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1554 Summary: Simple XML extension module for PHP
1555 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1557 URL: http://php.net/manual/en/book.simplexml.php
1558 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1559 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1560 Provides: php(simplexml)
1561 Obsoletes: php-simplexml < 4:5.3.28-7
1563 %description simplexml
1564 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1567 %description simplexml -l pl.UTF-8
1568 Moduł PHP dodający obsługę prostego XML-a.
1571 Summary: SNMP extension module for PHP
1572 Summary(pl.UTF-8): Moduł SNMP dla PHP
1574 URL: http://php.net/manual/en/book.snmp.php
1575 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1576 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1577 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1579 Obsoletes: php-snmp < 4:5.3.28-7
1582 This is a dynamic shared object (DSO) for PHP that will add SNMP
1585 %description snmp -l pl.UTF-8
1586 Moduł PHP dodający obsługę SNMP.
1589 Summary: soap extension module for PHP
1590 Summary(pl.UTF-8): Moduł soap dla PHP
1592 URL: http://php.net/manual/en/book.soap.php
1593 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1595 Obsoletes: php-soap < 4:5.3.28-7
1598 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1601 %description soap -l pl.UTF-8
1602 Moduł PHP dodający obsługę SOAP/WSDL.
1605 Summary: sockets extension module for PHP
1606 Summary(pl.UTF-8): Moduł socket dla PHP
1608 URL: http://php.net/manual/en/book.sockets.php
1609 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1610 Provides: php(sockets)
1611 Obsoletes: php-sockets < 4:5.3.28-7
1613 %description sockets
1614 This is a dynamic shared object (DSO) for PHP that will add sockets
1617 %description sockets -l pl.UTF-8
1618 Moduł PHP dodający obsługę gniazdek.
1621 Summary: Wrapper for the Sodium cryptographic library
1623 URL: https://paragonie.com/book/pecl-libsodium
1624 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1625 Provides: php(sodium) = %{sodiumver}
1628 A simple, low-level PHP extension for libsodium.
1631 Summary: SQLite3 extension module for PHP
1632 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1634 URL: http://php.net/manual/en/book.sqlite3.php
1635 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1636 Provides: php(sqlite3) = %{sqlite3ver}
1637 Obsoletes: php-sqlite3 < 4:5.3.28-7
1639 %description sqlite3
1640 SQLite is a C library that implements an embeddable SQL database
1641 engine. Programs that link with the SQLite library can have SQL
1642 database access without running a separate RDBMS process.
1644 SQLite is not a client library used to connect to a big database
1645 server. SQLite is the server. The SQLite library reads and writes
1646 directly to and from the database files on disk.
1648 %description sqlite3 -l pl.UTF-8
1649 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1650 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1651 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1654 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1655 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1656 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1660 Summary: SysV msg extension module for PHP
1661 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1663 URL: http://php.net/manual/en/book.sem.php
1664 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1665 Provides: php(sysvmsg)
1666 Obsoletes: php-sysvmsg < 4:5.3.28-7
1668 %description sysvmsg
1669 This is a dynamic shared object (DSO) for PHP that will add SysV
1670 message queues support.
1672 %description sysvmsg -l pl.UTF-8
1673 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1676 Summary: SysV sem extension module for PHP
1677 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1679 URL: http://php.net/manual/en/book.sem.php
1680 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1681 Provides: php(sysvsem)
1682 Obsoletes: php-sysvsem < 4:5.3.28-7
1684 %description sysvsem
1685 This is a dynamic shared object (DSO) for PHP that will add SysV
1688 %description sysvsem -l pl.UTF-8
1689 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1692 Summary: SysV shm extension module for PHP
1693 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1695 URL: http://php.net/manual/en/book.sem.php
1696 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1697 Provides: php(sysvshm)
1698 Obsoletes: php-sysvshm < 4:5.3.28-7
1700 %description sysvshm
1701 This is a dynamic shared object (DSO) for PHP that will add SysV
1702 Shared Memory support.
1704 %description sysvshm -l pl.UTF-8
1705 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1708 Summary: Contains unit test files for PHP and extensions
1709 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1711 URL: http://qa.php.net/
1712 Requires: %{name}-cli
1713 %if "%{_rpmversion}" >= "5"
1718 This package contains unit tests for PHP and its extensions.
1720 %description tests -l pl.UTF-8
1721 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1724 Summary: Tidy extension module for PHP
1725 Summary(pl.UTF-8): Moduł Tidy dla PHP
1727 URL: http://php.net/manual/en/book.tidy.php
1728 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1731 Obsoletes: php-tidy < 4:5.3.28-7
1734 This is a dynamic shared object (DSO) for PHP that will add Tidy
1737 %description tidy -l pl.UTF-8
1738 Moduł PHP umożliwiający korzystanie z tidy.
1741 Summary: tokenizer extension module for PHP
1742 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1744 URL: http://php.net/manual/en/book.tokenizer.php
1745 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1746 Provides: php(tokenizer)
1747 Obsoletes: php-tokenizer < 4:5.3.28-7
1749 %description tokenizer
1750 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1753 %description tokenizer -l pl.UTF-8
1754 Moduł PHP dodający obsługę tokenizera do PHP.
1757 Summary: XML extension module for PHP
1758 Summary(pl.UTF-8): Moduł XML dla PHP
1760 URL: http://php.net/manual/en/book.xml.php
1761 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1763 Obsoletes: php-xml < 4:5.3.28-7
1766 This is a dynamic shared object (DSO) for PHP that will add XML
1767 support. This extension lets you create XML parsers and then define
1768 handlers for different XML events.
1770 %description xml -l pl.UTF-8
1771 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1772 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1773 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1776 Summary: XML Reader extension module for PHP
1777 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1779 URL: http://php.net/manual/en/book.xmlreader.php
1780 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1781 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1782 Provides: php(xmlreader)
1783 Obsoletes: php-xmlreader < 4:5.3.28-7
1785 %description xmlreader
1786 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1787 support. The XMLReader extension is an XML Pull parser. The reader
1788 acts as a cursor going forward on the document stream and stopping at
1789 each node on the way.
1791 %description xmlreader -l pl.UTF-8
1792 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1793 działa jako kursor przechodzący przez strumień dokumentu i
1794 zatrzymujący się na każdym węźle po drodze.
1797 Summary: xmlrpc extension module for PHP
1798 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1800 URL: http://php.net/manual/en/book.xmlrpc.php
1801 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1802 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1803 Provides: php(xmlrpc)
1804 Obsoletes: php-xmlrpc < 4:5.3.28-7
1807 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1810 %description xmlrpc -l pl.UTF-8
1811 Moduł PHP dodający obsługę XMLRPC.
1814 Summary: Fast, non-cached, forward-only means to write XML data
1815 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1817 URL: http://php.net/manual/en/book.xmlwriter.php
1818 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1819 Provides: php(xmlwriter)
1820 Obsoletes: php-pecl-xmlwriter
1821 Obsoletes: php-xmlwriter < 4:5.3.28-7
1823 %description xmlwriter
1824 This extension wraps the libxml xmlWriter API. Represents a writer
1825 that provides a non-cached, forward-only means of generating streams
1826 or files containing XML data.
1828 %description xmlwriter -l pl.UTF-8
1829 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1830 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1831 plików zawierających dane XML.
1834 Summary: xsl extension module for PHP
1835 Summary(pl.UTF-8): Moduł xsl dla PHP
1837 URL: http://php.net/manual/en/book.xsl.php
1838 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1839 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1840 Requires: libxslt >= 1.1.0
1842 Obsoletes: php-xsl < 4:5.3.28-7
1843 # actually not true, functionality is similar, but API differs
1844 Obsoletes: php-xslt <= 3:4.3.8-1
1847 This is a dynamic shared object (DSO) for PHP that will add new XSL
1848 support (using libxslt).
1850 %description xsl -l pl.UTF-8
1851 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1854 Summary: Zip management extension
1855 Summary(pl.UTF-8): Zarządzanie archiwami zip
1857 URL: http://php.net/manual/en/book.zip.php
1858 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1859 Requires: libzip >= 1.3.1
1860 Provides: php(zip) = %{zipver}
1861 Obsoletes: php-pecl-zip < %{zipver}
1862 Obsoletes: php-zip < 4:5.3.28-7
1865 Zip is an extension to create, modify and read zip files.
1867 %description zip -l pl.UTF-8
1868 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1869 odczyt archiwów zip.
1872 Summary: Zlib extension module for PHP
1873 Summary(pl.UTF-8): Moduł zlib dla PHP
1875 URL: http://php.net/manual/en/book.zlib.php
1876 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1878 Obsoletes: php-zlib < 4:5.3.28-7
1881 This is a dynamic shared object (DSO) for PHP that will add zlib
1882 compression support to PHP.
1884 %description zlib -l pl.UTF-8
1885 Moduł PHP umożliwiający używanie kompresji zlib.
1888 %setup -q -n %{orgname}-%{version}%{?subver}
1889 cp -p php.ini-production php.ini
1897 %{?with_milter:%patch8 -p1}
1911 %if "%{pld_release}" != "ac"
1919 #%patch45 -p1 # imap annotations. fixme
1920 #%patch46 -p1 # imap myrights. fixme
1924 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
1926 %patch59 -p1 -b .systzdata
1927 %if %{with instantclient}
1928 %patch60 -p1 -b .instantclient
1932 #%patch68 -p1 DROP or update to 7.0 APIs
1936 %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1938 # cleanup backups after patching
1939 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1941 # com_dotnet is Win32-only
1942 %{__rm} -r ext/com_dotnet
1944 # conflict seems to be resolved by recode patches
1945 %{__rm} ext/recode/config9.m4
1947 # remove all bundled libraries not to link with them accidentally
1948 #%{__rm} -r ext/bcmath/libbcmath
1949 #%{__rm} -r ext/date/lib
1950 #%{__rm} -r ext/fileinfo/libmagic
1951 #%{__rm} -r ext/dba/libcdb
1952 #%{__rm} -r ext/dba/libflatfile
1953 #%{__rm} -r ext/dba/libinifile
1954 #%{__rm} -r ext/gd/libgd
1955 #%{__rm} -r ext/mbstring/libmbfl
1956 %{__rm} -r ext/pcre/pcre2lib
1957 #%{__rm} -r ext/soap/interop
1958 %{__rm} -r ext/xmlrpc/libxmlrpc
1959 #%{__rm} -r ext/zip/lib
1960 %{__rm} ext/date/lib/timezonedb.h
1962 cp -pf Zend/LICENSE{,.Zend}
1963 install -p %{SOURCE13} dep-tests.sh
1966 sed -i -e 's#-fvisibility=hidden##g' configure*
1968 # disable broken tests
1969 # says just "Terminated" twice and fails
1970 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1972 # really dumb test, executable binary name is .libs/ something when building
1973 # https://bugs.php.net/bug.php?id=54514
1974 %{__mv} tests/basic/bug54514.phpt{,.disable}
1976 # breaks whole testsuite unexpectedly:
1977 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1978 # probably broken as zlib is built as shared
1979 %{__mv} ext/soap/tests/server019.phpt{,disable}
1980 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1981 %{__mv} ext/soap/tests/server020.phpt{,disable}
1983 # runs out of memory and kills carme vserver
1984 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1985 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1987 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1988 %{__rm} ext/standard/tests/file/statpage.phpt
1990 # idiotic test, it will fail if somebody else makes space on disk or if disk
1991 # space is not yet allocated (xfs). report upstream to advice bogus test is
1992 # probably pointless.
1993 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1996 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1997 %{__rm} -r ext/pdo_sqlite/tests
1998 %{__rm} -r ext/sqlite3/tests
2001 # ----- Manage known as failed test -------
2002 # affected by systzdata patch
2003 %{__rm} ext/date/tests/timezone_location_get.phpt
2004 %{__rm} ext/date/tests/timezone_version_get.phpt
2005 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2006 # Should be skipped but fails sometime
2007 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2009 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2010 # causes stack exhausion
2011 %{__rm} Zend/tests/bug54268.phpt
2012 %{__rm} Zend/tests/bug68412.phpt
2014 # avoid issues when two builds run simultaneously
2016 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2020 # no point testing stuff that is knowingly broken
2021 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
2033 sh -xe %{_sourcedir}/skip-tests.sh
2037 local define="$1" filename="$2"
2038 awk -vdefine="$define" '/#define/ && $2 == define {print $3}' "$filename" | xargs
2041 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2042 if [ $API != %{php_api_version} ]; then
2043 echo "Set %%define php_api_version to $API and re-run."
2047 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2048 if [ $API != %{zend_module_api} ]; then
2049 echo "Set %%define zend_module_api to $API and re-run."
2053 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2054 if [ $API != %{zend_extension_api} ]; then
2055 echo "Set %%define zend_extension_api to $API and re-run."
2059 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2060 if [ $API != %{php_pdo_api_version} ]; then
2061 echo "Set %%define php_pdo_api_version to $API and re-run."
2065 # Check for some extension version
2066 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
2067 if test "$ver" != "PHP_VERSION"; then
2068 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2069 : Update the fileinfover macro and rebuild.
2072 ver=$(get_version PHP_PHAR_VERSION ext/phar/php_phar.h)
2073 if test "$ver" != "PHP_VERSION"; then
2074 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2075 : Update the pharver macro and rebuild.
2078 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
2079 if test "$ver" != "PHP_VERSION"; then
2080 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2081 : Update the sqlite3ver macro and rebuild.
2084 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
2085 if test "$ver" != "PHP_VERSION"; then
2088 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2089 if test "$ver" != "%{zipver}"; then
2090 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2091 : Update the zipver macro and rebuild.
2094 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2095 if test "$ver" != "%{jsonver}"; then
2096 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2097 : Update the jsonver macro and rebuild.
2100 ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
2101 if test "$ver" != "PHP_VERSION"; then
2102 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2103 : Update the phpdbgver macro and rebuild.
2106 ver=$(get_version PHP_BZ2_VERSION ext/bz2/php_bz2.h)
2107 if test "$ver" != "PHP_VERSION"; then
2108 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2109 : Update the bz2ver macro and rebuild.
2112 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
2113 if test "$ver" != "PHP_VERSION"; then
2116 ver=$(get_version PHP_HASH_VERSION ext/hash/php_hash.h)
2117 if test "$ver" != "PHP_VERSION"; then
2118 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2119 : Update the hashver macro and rebuild.
2122 ver=$(get_version PHP_INTL_VERSION ext/intl/php_intl.h)
2123 if test "$ver" != "PHP_VERSION"; then
2124 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2125 : Update the intlver macro and rebuild.
2129 export EXTENSION_DIR="%{php_extensiondir}"
2131 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2132 # includes the PEAR directory even though pear is packaged separately.
2133 export PEAR_INSTALLDIR=%{php_pear_dir}
2135 # configure once (for faster debugging purposes)
2136 if [ ! -f _built-conf ]; then
2137 # now remove Makefile copies
2138 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
2140 # Force use of system libtool:
2141 mv build/libtool.m4 build/libtool.m4.saved
2142 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2146 cp -f /usr/share/automake/config.* .
2150 export PROG_SENDMAIL="/usr/lib/sendmail"
2151 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2152 -I%{_includedir}/xmlrpc-epi"
2154 # This should be detected by configure and set there,
2155 # but looks like the build system is hosed on 7.3
2156 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2157 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2160 # icu 59+ C++ API requires C++ >= 11
2161 CXXFLAGS="$CXXFLAGS -std=c++11"
2169 %if %{with litespeed}
2188 for sapi in $sapis; do
2190 # skip if already configured (for faster debugging purposes)
2191 [ -f Makefile.$sapi ] && continue
2196 sapi_args='--enable-cgi'
2199 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
2202 sapi_args='--enable-fpm'
2205 sapi_args='--enable-embed'
2208 ver=$(rpm -q --qf '%{V}' apache-devel)
2209 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
2212 sapi_args='--enable-litespeed'
2215 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2218 sapi_args='--with-milter'
2223 EXTRA_LDFLAGS="%{rpmldflags}" \
2228 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2229 --cache-file=config.cache \
2231 --with-libdir=%{_lib} \
2232 --with-config-file-path=%{_sysconfdir} \
2233 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2234 --with-system-tzdata \
2235 %{?with_argon2:--with-password-argon2} \
2236 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2237 %{?with_zts:--enable-maintainer-zts} \
2238 --enable-inline-optimization \
2239 %{__enable_disable bcmath bcmath shared} \
2240 %{__enable_disable calendar calendar shared} \
2241 %{__enable_disable ctype ctype shared} \
2242 %{__enable_disable dba dba shared} \
2243 %{__enable_disable dom dom shared} \
2244 %{?with_systemtap:--enable-dtrace} \
2245 %{__enable_disable exif exif shared} \
2246 %{__enable_disable fileinfo fileinfo shared} \
2247 %{__enable_disable ftp ftp shared} \
2248 %{?with_intl:--enable-intl=shared} \
2250 %{__enable_disable mbstring mbstring shared,all} \
2252 %{__enable_disable pcntl pcntl shared} \
2253 %{__enable_disable pdo pdo shared} \
2254 %{__enable_disable json json shared} \
2255 --enable-xmlwriter=shared \
2257 --with-fpm-user=http \
2258 --with-fpm-group=http \
2260 %if %{with pdo_dblib}
2261 --with-pdo-dblib=shared \
2263 %if %{with pdo_firebird}
2264 --with-pdo-firebird=shared,/usr \
2266 %{?with_mhash:--with-mhash=yes} \
2267 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2268 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2269 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2270 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2271 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2272 %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2273 %{?with_webp:--with-webp-dir=/usr --with-webp} \
2274 --without-libexpat-dir \
2275 %{__enable_disable posix posix shared} \
2277 %{__enable_disable session session shared} \
2278 --enable-shmop=shared \
2279 --enable-simplexml=shared \
2280 --enable-sysvmsg=shared \
2281 --enable-sysvsem=shared \
2282 --enable-sysvshm=shared \
2283 --enable-soap=shared \
2284 --enable-sockets=shared \
2285 %{__with_without sodium sodium shared} \
2286 --enable-tokenizer=shared \
2287 --enable-xml=shared \
2288 --enable-xmlreader=shared \
2289 %{__with_without bz2 bz2 shared} \
2290 %{__with_without curl curl shared} \
2292 %{__with_without iconv iconv shared} \
2293 %{?with_enchant:--with-enchant=shared,/usr} \
2294 --with-freetype-dir=shared \
2295 %{__with_without gettext gettext shared} \
2296 %{__enable_disable gd gd shared%{?with_system_gd:,/usr}} \
2297 %{?with_system_gd:--with-external-gd} \
2299 %{__with_without gmp gmp shared} \
2300 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2301 --with-jpeg-dir=/usr \
2302 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2303 %{?with_mm:--with-mm} \
2304 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2305 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2306 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2307 %{__enable_disable opcache opcache shared} \
2308 %{?with_openssl:--with-openssl=shared} \
2309 %{?with_kerberos5:--with-kerberos} \
2311 %{__with_without pcre pcre-regex /usr} \
2312 %{?with_pcre:--with-external-pcre} \
2313 %{__enable_disable filter filter shared} \
2314 %{__with_without pgsql pgsql shared,/usr} \
2315 %{__enable_disable phar phar shared} \
2316 --with-png-dir=/usr \
2317 %{?with_pspell:--with-pspell=shared} \
2318 %{__with_without readline readline shared} \
2319 %{?with_recode:--with-recode=shared} \
2320 %{?with_snmp:--with-snmp=shared} \
2321 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2322 %{__with_without sqlite3 sqlite3 shared,/usr} \
2323 %{?with_tidy:--with-tidy=shared} \
2324 %{?with_odbc:--with-unixODBC=shared,/usr} \
2325 %{__with_without xmlrpc xmlrpc shared,/usr} \
2326 %{?with_xsl:--with-xsl=shared} \
2327 --with-zlib=shared \
2328 --with-zlib-dir=shared,/usr \
2329 %{?with_zip:--with-zip=shared,/usr} \
2332 cp -f Makefile Makefile.$sapi
2333 cp -f main/php_config.h php_config.h.$sapi
2334 cp -f config.log config.log.$sapi
2337 # as we build each SAPI in own make, adjust php-config.in forehead
2338 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2339 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2341 # must make libphp_common first, so modules can link against it.
2342 cp -af php_config.h.cli main/php_config.h
2343 cp -af Makefile.cli Makefile
2344 %{__make} libphp_common.la
2345 # hack: MYSQLND_SHARED_LIBADD not initialized
2346 %{__make} build-modules \
2347 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2350 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
2353 %if %{with litespeed}
2354 %{__make} -f Makefile.litespeed litespeed
2358 %{__make} -f Makefile.embed libphp7.la
2362 # PHP_READLINE_LIBS is empty, so force readline here
2363 %{__make} -f Makefile.phpdbg phpdbg \
2364 PHPDBG_EXTRA_LIBS=-lreadline
2368 %{__make} -f Makefile.milter milter
2373 cp -pf php_config.h.cgi-fcgi main/php_config.h
2374 %{__make} -f Makefile.cgi-fcgi
2375 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2380 cp -pf php_config.h.fpm main/php_config.h
2381 %{__make} -f Makefile.fpm
2382 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2386 cp -pf php_config.h.cli main/php_config.h
2387 %{__make} -f Makefile.cli
2388 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2390 # check for stupid xml parse breakage where < and > just get lost in parse result
2391 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x><</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2393 # Generate stub .ini files for each extension
2396 generate_inifiles() {
2397 for so in modules/*.so; do
2398 mod=$(basename $so .so)
2400 # opcache.so is zend extension
2401 nm $so | grep -q zend_extension_entry && ext=zend_extension
2403 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2404 [ "$mod" = "session" ] && conf="Session.ini"
2405 # mysqlnd needs to be loaded before mysqli,pdo_mysqli
2406 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2408 cat > conf.d/$conf <<-EOF
2409 ; Enable $mod $ext module
2415 cp -p %{_sourcedir}/opcache.ini conf.d
2417 # Check that the module inner-dependencies are intact
2418 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2419 if grep -v OK dep-tests.log; then
2420 echo >&2 "The results above were not expected"
2426 cp -pf php_config.h.cli main/php_config.h
2427 cp -pf Makefile.cli Makefile
2429 # you really don't want to package result of gcov build
2433 cat <<'EOF' > run-tests.sh
2435 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2436 export SKIP_ONLINE_TESTS=1
2437 unset TZ LANG LC_ALL || :
2439 EXTENSION_DIR=modules \
2440 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2441 RUN_TESTS_SETTINGS="-q $*"
2443 chmod +x run-tests.sh
2446 # Run tests, using the CLI SAPI
2447 cp -pf php_config.h.cli main/php_config.h
2448 cp -pf Makefile.cli Makefile
2450 ./run-tests.sh -w failed.log -s tests.log || {
2453 # collect failed tests into cleanup script used in prep.
2454 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2455 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2456 >> %{_sourcedir}/skip-tests.sh
2458 # if on builders, dump test log
2459 tty -q || cat tests.log
2461 test ! -s failed.log
2467 rm -rf $RPM_BUILD_ROOT
2468 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2469 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2470 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2471 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2473 cp -pf php_config.h.cli main/php_config.h
2474 cp -pf Makefile.cli Makefile
2476 phpbuilddir=%{_libdir}/%{name}/build \
2477 INSTALL_ROOT=$RPM_BUILD_ROOT
2479 %if %{without default_php}
2480 # version the .phar files
2481 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2482 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2484 %if %{with alternatives}
2486 %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2487 touch $RPM_BUILD_ROOT%{_bindir}/phar
2488 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2492 v=$(echo %{version} | cut -d. -f1-2)
2494 # install Apache2 DSO module
2496 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
2497 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so
2498 ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2501 # install litespeed sapi
2502 %if %{with litespeed}
2503 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2507 %{__make} -f Makefile.phpdbg install-phpdbg \
2508 INSTALL="libtool --mode=install install -p" \
2509 INSTALL_ROOT=$RPM_BUILD_ROOT
2511 %if %{without default_php}
2512 # version the phpdbg files
2513 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2514 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2519 %{__make} -f Makefile.milter install-milter \
2520 INSTALL_ROOT=$RPM_BUILD_ROOT
2523 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2528 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2529 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2530 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2535 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2536 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2537 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2538 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2539 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2540 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2541 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2542 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2543 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2544 %if "%{pld_release}" == "ac"
2545 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2548 %if %{with alternatives}
2549 # touch for ghost for alternatives
2550 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2554 s#/usr/lib/php#%{php_extensiondir}#
2555 s#/etc/php/#%{_sysconfdir}/#
2556 s#@processname@#%{name}-fpm#g
2557 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2560 # install Embedded API
2562 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2563 # install-sapi installs to wrong dir, so just do it all manually
2564 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2565 install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}
2566 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2570 # versioned suffix is always installed
2571 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2572 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2573 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2574 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2576 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2577 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2580 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2581 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2582 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la
2585 # ensure that paths are correct for current php version and arch
2586 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2588 s#/usr/lib/php#%{php_extensiondir}#
2589 s#/etc/php#%{_sysconfdir}#
2592 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2593 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2595 # per SAPI ini directories
2596 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2599 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2601 # use system automake and {lib,sh}tool
2602 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2603 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2604 for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2605 f=%{_aclocaldir}/$fn
2606 test -f $f || continue
2607 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2609 for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2610 f=/usr/share/libtool/$fn
2611 test -f $f || continue
2612 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2615 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2617 # for php-pecl-mailparse
2618 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2619 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2622 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2623 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2624 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2626 # fix install paths, avoid evil rpaths
2627 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2629 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2631 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2634 rm -rf $RPM_BUILD_ROOT
2636 %post -n apache-mod_%{name}
2637 if [ "$1" = "1" ]; then
2638 %service -q httpd restart
2641 %postun -n apache-mod_%{name}
2642 if [ "$1" = "0" ]; then
2643 %service -q httpd restart
2647 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2650 /sbin/chkconfig --add %{name}-fpm
2651 %service %{name}-fpm restart
2652 %if %{with alternatives}
2653 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
2657 if [ "$1" = "0" ]; then
2658 %service %{name}-fpm stop
2659 /sbin/chkconfig --del %{name}-fpm
2660 %if %{with alternatives}
2661 update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
2666 if [ "$1" = "0" ]; then
2670 %post embedded -p /sbin/ldconfig
2671 %postun embedded -p /sbin/ldconfig
2674 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2675 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2677 . /etc/sysconfig/timezone
2678 if [ "$TIMEZONE" ]; then
2679 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2683 # minimizing apache restarts logics. we restart webserver:
2685 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2686 # 2. first install of extension (post: $1 = 1)
2687 # 2. uninstall of extension (postun: $1 == 0)
2689 # the strict internal deps between extensions (and apache modules) and
2690 # common package are very important for all this to work.
2692 # restart webserver at the end of transaction
2693 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2694 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2696 %triggerpostun common -- php-common < 4:5.3.28-7
2697 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2698 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2699 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2700 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2701 test -f "$f" || continue
2705 test "$dn" = "$fn" && dn=
2707 nf=%{_sysconfdir}/$dn/$fn
2708 test -f "$nf" || continue
2709 cp -vfb $nf{,.rpmnew}
2712 s#%{_libdir}/php#%{_libdir}/%{name}#
2713 s#/etc/php#%{_sysconfdir}#
2717 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2718 # switch to browscap package if the ini file has original value
2719 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2720 # disable browscap, if optional package not present
2721 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2722 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2725 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2726 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2728 # common macros called at extension post/postun scriptlet
2730 if [ "$1" = "1" ]; then \
2731 %php_webserver_restart \
2735 %define ext_postun \
2736 if [ "$1" = "0" ]; then \
2737 %php_webserver_restart \
2741 %define extension_scripts() \
2749 # extension scripts defines
2750 %extension_scripts bcmath
2751 %extension_scripts bz2
2752 %extension_scripts calendar
2753 %extension_scripts ctype
2754 %extension_scripts curl
2755 %extension_scripts dba
2756 %extension_scripts dom
2757 %extension_scripts enchant
2758 %extension_scripts exif
2759 %extension_scripts fileinfo
2760 %extension_scripts filter
2761 %extension_scripts ftp
2762 %extension_scripts gd
2763 %extension_scripts gettext
2764 %extension_scripts gmp
2765 %extension_scripts iconv
2766 %extension_scripts imap
2767 %extension_scripts intl
2768 %extension_scripts json
2769 %extension_scripts ldap
2770 %extension_scripts mbstring
2771 %extension_scripts mysqli
2772 %extension_scripts mysqlnd
2773 %extension_scripts oci8
2774 %extension_scripts odbc
2775 %extension_scripts opcache
2776 %extension_scripts openssl
2777 %extension_scripts pdo
2778 %extension_scripts pdo-dblib
2779 %extension_scripts pdo-firebird
2780 %extension_scripts pdo-oci
2781 %extension_scripts pdo-mysql
2782 %extension_scripts pdo-odbc
2783 %extension_scripts pdo-pgsql
2784 %extension_scripts pdo-sqlite
2785 %extension_scripts pgsql
2786 %extension_scripts pcntl
2787 %extension_scripts posix
2788 %extension_scripts pspell
2789 %extension_scripts recode
2790 %extension_scripts session
2791 %extension_scripts shmop
2792 %extension_scripts simplexml
2793 %extension_scripts snmp
2794 %extension_scripts soap
2795 %extension_scripts sockets
2796 %extension_scripts sodium
2797 %extension_scripts sqlite3
2798 %extension_scripts sysvmsg
2799 %extension_scripts sysvsem
2800 %extension_scripts sysvshm
2801 %extension_scripts tidy
2802 %extension_scripts tokenizer
2803 %extension_scripts xml
2804 %extension_scripts xmlreader
2805 %extension_scripts xmlrpc
2806 %extension_scripts xmlwriter
2807 %extension_scripts xsl
2808 %extension_scripts zip
2809 %extension_scripts zlib
2813 %if %{with alternatives}
2814 update-alternatives \
2815 --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
2816 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
2821 %if %{with alternatives}
2822 if [ $1 -eq 0 ]; then
2823 update-alternatives --remove phar %{_bindir}/phar || :
2828 %files -n apache-mod_%{name}
2829 %defattr(644,root,root,755)
2830 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2831 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2833 %files -n apache-mod_%{name}-core
2834 %defattr(644,root,root,755)
2835 %dir %{_sysconfdir}/apache2handler.d
2836 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2837 %attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so
2840 %if %{with litespeed}
2842 %defattr(644,root,root,755)
2843 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2848 %defattr(644,root,root,755)
2849 %dir %{_sysconfdir}/cgi-fcgi.d
2850 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2851 %attr(755,root,root) %{_bindir}/%{name}.cgi
2852 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2857 %defattr(644,root,root,755)
2858 %attr(755,root,root) %{_libdir}/libphp7.so
2862 %defattr(644,root,root,755)
2863 %dir %{_sysconfdir}/cli.d
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2865 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
2866 %{_mandir}/man1/php%{ver_suffix}.1*
2869 %defattr(644,root,root,755)
2870 %attr(755,root,root) %{_bindir}/php
2871 %{_mandir}/man1/php.1*
2875 %defattr(644,root,root,755)
2876 %doc sapi/fpm/{CREDITS,LICENSE}
2877 %dir %{_sysconfdir}/php-fpm.d
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2880 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2881 %if %{with alternatives}
2882 %ghost %{_sbindir}/php-fpm
2884 %{_mandir}/man8/%{name}-fpm.8*
2885 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2886 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2891 %defattr(644,root,root,755)
2892 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2893 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2898 %defattr(644,root,root,755)
2899 %attr(755,root,root) %{_bindir}/php-milter
2903 %defattr(644,root,root,755)
2904 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2906 %dir %{_sysconfdir}/conf.d
2907 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2908 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2909 %dir %{php_extensiondir}
2911 %doc ext/session/mod_files.sh
2914 %defattr(644,root,root,755)
2915 %doc CODING_STANDARDS.md docs/*.md
2916 %attr(755,root,root) %{_bindir}/ext_skel.php
2917 %attr(755,root,root) %{_bindir}/php-config
2918 %attr(755,root,root) %{_bindir}/phpize
2919 %attr(755,root,root) %{_libdir}/libphp_common.so
2920 %{_libdir}/libphp_common.la
2922 %{_libdir}/%{name}/build
2923 %{_mandir}/man1/php-config.1*
2924 %{_mandir}/man1/phpize.1*
2928 %defattr(644,root,root,755)
2929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2930 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2935 %defattr(644,root,root,755)
2936 %doc ext/bz2/CREDITS
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2938 %attr(755,root,root) %{php_extensiondir}/bz2.so
2941 %if %{with calendar}
2943 %defattr(644,root,root,755)
2944 %doc ext/calendar/CREDITS
2945 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2946 %attr(755,root,root) %{php_extensiondir}/calendar.so
2951 %defattr(644,root,root,755)
2952 %doc ext/calendar/CREDITS
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2954 %attr(755,root,root) %{php_extensiondir}/ctype.so
2959 %defattr(644,root,root,755)
2960 %doc ext/curl/CREDITS
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2962 %attr(755,root,root) %{php_extensiondir}/curl.so
2967 %defattr(644,root,root,755)
2968 %doc ext/dba/CREDITS
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2970 %attr(755,root,root) %{php_extensiondir}/dba.so
2975 %defattr(644,root,root,755)
2976 %doc ext/dom/CREDITS
2977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2978 %attr(755,root,root) %{php_extensiondir}/dom.so
2983 %defattr(644,root,root,755)
2984 %doc ext/enchant/CREDITS
2985 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
2986 %attr(755,root,root) %{php_extensiondir}/enchant.so
2991 %defattr(644,root,root,755)
2992 %doc ext/exif/CREDITS
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2994 %attr(755,root,root) %{php_extensiondir}/exif.so
2997 %if %{with fileinfo}
2999 %defattr(644,root,root,755)
3000 %doc ext/fileinfo/CREDITS
3001 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3002 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
3007 %defattr(644,root,root,755)
3008 %doc ext/filter/CREDITS
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3010 %attr(755,root,root) %{php_extensiondir}/filter.so
3015 %defattr(644,root,root,755)
3016 %doc ext/ftp/CREDITS
3017 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3018 %attr(755,root,root) %{php_extensiondir}/ftp.so
3023 %defattr(644,root,root,755)
3025 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3026 %attr(755,root,root) %{php_extensiondir}/gd.so
3031 %defattr(644,root,root,755)
3032 %doc ext/gettext/CREDITS
3033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3034 %attr(755,root,root) %{php_extensiondir}/gettext.so
3039 %defattr(644,root,root,755)
3040 %doc ext/gmp/CREDITS
3041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3042 %attr(755,root,root) %{php_extensiondir}/gmp.so
3047 %defattr(644,root,root,755)
3048 %doc ext/iconv/CREDITS
3049 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3050 %attr(755,root,root) %{php_extensiondir}/iconv.so
3055 %defattr(644,root,root,755)
3056 %doc ext/imap/CREDITS
3057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3058 %attr(755,root,root) %{php_extensiondir}/imap.so
3063 %defattr(644,root,root,755)
3064 %doc ext/intl/CREDITS
3065 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3066 %attr(755,root,root) %{php_extensiondir}/intl.so
3071 %defattr(644,root,root,755)
3072 %doc ext/json/CREDITS
3073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3074 %attr(755,root,root) %{php_extensiondir}/json.so
3079 %defattr(644,root,root,755)
3080 %doc ext/ldap/CREDITS
3081 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3082 %attr(755,root,root) %{php_extensiondir}/ldap.so
3085 %if %{with mbstring}
3087 %defattr(644,root,root,755)
3088 %doc ext/mbstring/CREDITS
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3090 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3095 %defattr(644,root,root,755)
3096 %doc ext/mysqli/CREDITS
3097 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3098 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3103 %defattr(644,root,root,755)
3104 %doc ext/mysqlnd/CREDITS
3105 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3106 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3111 %defattr(644,root,root,755)
3112 %doc ext/oci8/{CREDITS,README}
3113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3114 %attr(755,root,root) %{php_extensiondir}/oci8.so
3119 %defattr(644,root,root,755)
3120 %doc ext/odbc/CREDITS
3121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3122 %attr(755,root,root) %{php_extensiondir}/odbc.so
3127 %defattr(644,root,root,755)
3128 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3129 %attr(755,root,root) %{php_extensiondir}/opcache.so
3134 %defattr(644,root,root,755)
3135 %doc ext/openssl/CREDITS
3136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3137 %attr(755,root,root) %{php_extensiondir}/openssl.so
3142 %defattr(644,root,root,755)
3143 %doc ext/pcntl/CREDITS
3144 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3145 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3150 %defattr(644,root,root,755)
3151 %doc ext/pdo/CREDITS
3152 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3153 %attr(755,root,root) %{php_extensiondir}/pdo.so
3156 %if %{with pdo_dblib}
3158 %defattr(644,root,root,755)
3159 %doc ext/pdo_dblib/CREDITS
3160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3161 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3164 %if %{with pdo_firebird}
3166 %defattr(644,root,root,755)
3167 %doc ext/pdo_firebird/CREDITS
3168 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3169 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3172 %if %{with pdo_mysql}
3174 %defattr(644,root,root,755)
3175 %doc ext/pdo_mysql/CREDITS
3176 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3177 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3182 %defattr(644,root,root,755)
3183 %doc ext/pdo_oci/CREDITS
3184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3185 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3188 %if %{with pdo_odbc}
3190 %defattr(644,root,root,755)
3191 %doc ext/pdo_odbc/CREDITS
3192 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3193 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3196 %if %{with pdo_pgsql}
3198 %defattr(644,root,root,755)
3199 %doc ext/pdo_pgsql/CREDITS
3200 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3201 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3204 %if %{with pdo_sqlite}
3206 %defattr(644,root,root,755)
3207 %doc ext/pdo_sqlite/CREDITS
3208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3209 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3214 %defattr(644,root,root,755)
3215 %doc ext/pgsql/CREDITS
3216 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3217 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3222 %defattr(644,root,root,755)
3223 %doc ext/phar/CREDITS
3224 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3225 %attr(755,root,root) %{php_extensiondir}/phar.so
3226 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3227 %{_mandir}/man1/phar%{php_suffix}.1*
3228 %{_mandir}/man1/phar.phar.1*
3229 %if %{with alternatives}
3230 %ghost %{_bindir}/phar
3231 %ghost %{_mandir}/man1/phar.1
3233 %attr(755,root,root) %{_bindir}/phar
3239 %defattr(644,root,root,755)
3240 %doc ext/posix/CREDITS
3241 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3242 %attr(755,root,root) %{php_extensiondir}/posix.so
3247 %defattr(644,root,root,755)
3248 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3249 %attr(755,root,root) %{php_extensiondir}/pspell.so
3252 %if %{with readline}
3254 %defattr(644,root,root,755)
3255 %doc ext/readline/CREDITS
3256 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3257 %attr(755,root,root) %{php_extensiondir}/readline.so
3262 %defattr(644,root,root,755)
3263 %doc ext/recode/CREDITS
3264 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3265 %attr(755,root,root) %{php_extensiondir}/recode.so
3270 %defattr(644,root,root,755)
3271 %doc ext/session/CREDITS
3272 %doc ext/session/mod_files.sh
3273 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3274 %attr(755,root,root) %{php_extensiondir}/session.so
3278 %defattr(644,root,root,755)
3279 %doc ext/shmop/CREDITS
3280 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3281 %attr(755,root,root) %{php_extensiondir}/shmop.so
3284 %defattr(644,root,root,755)
3285 %doc ext/simplexml/CREDITS
3286 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3287 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3291 %defattr(644,root,root,755)
3292 %doc ext/snmp/CREDITS
3293 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3294 %attr(755,root,root) %{php_extensiondir}/snmp.so
3298 %defattr(644,root,root,755)
3299 %doc ext/soap/CREDITS
3300 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3301 %attr(755,root,root) %{php_extensiondir}/soap.so
3304 %defattr(644,root,root,755)
3305 %doc ext/sockets/CREDITS
3306 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3307 %attr(755,root,root) %{php_extensiondir}/sockets.so
3311 %defattr(644,root,root,755)
3312 %doc ext/sodium/{README.md,CREDITS}
3313 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sodium.ini
3314 %attr(755,root,root) %{php_extensiondir}/sodium.so
3319 %defattr(644,root,root,755)
3320 %doc ext/sqlite3/CREDITS
3321 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3322 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3326 %defattr(644,root,root,755)
3327 %doc ext/sysvmsg/CREDITS
3328 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3329 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3332 %defattr(644,root,root,755)
3333 %doc ext/sysvsem/CREDITS
3334 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3335 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3338 %defattr(644,root,root,755)
3339 %doc ext/sysvshm/CREDITS
3340 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3341 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3344 %defattr(644,root,root,755)
3345 %dir %{php_data_dir}/tests
3346 %dir %{php_data_dir}/tests/php
3347 %{php_data_dir}/tests/php/basic
3348 %{php_data_dir}/tests/php/classes
3349 %{php_data_dir}/tests/php/func
3350 %{php_data_dir}/tests/php/lang
3351 %{php_data_dir}/tests/php/output
3352 %{php_data_dir}/tests/php/run-test
3353 %{php_data_dir}/tests/php/security
3354 %{php_data_dir}/tests/php/strings
3355 %{php_data_dir}/tests/php/quicktester.inc
3356 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3360 %defattr(644,root,root,755)
3361 %doc ext/tidy/CREDITS
3362 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3363 %attr(755,root,root) %{php_extensiondir}/tidy.so
3367 %defattr(644,root,root,755)
3368 %doc ext/tokenizer/CREDITS
3369 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3370 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3373 %defattr(644,root,root,755)
3374 %doc ext/xml/CREDITS
3375 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3376 %attr(755,root,root) %{php_extensiondir}/xml.so
3379 %defattr(644,root,root,755)
3380 %doc ext/xmlreader/CREDITS
3381 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3382 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3386 %defattr(644,root,root,755)
3387 %doc ext/xmlrpc/CREDITS
3388 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3389 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3393 %defattr(644,root,root,755)
3394 %doc ext/xmlwriter/CREDITS
3395 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3396 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3400 %defattr(644,root,root,755)
3401 %doc ext/xsl/CREDITS
3402 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3403 %attr(755,root,root) %{php_extensiondir}/xsl.so
3408 %defattr(644,root,root,755)
3409 %doc ext/zip/CREDITS
3410 %doc ext/zip/examples
3411 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3412 %attr(755,root,root) %{php_extensiondir}/zip.so
3416 %defattr(644,root,root,755)
3417 %doc ext/zlib/CREDITS
3418 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3419 %attr(755,root,root) %{php_extensiondir}/zlib.so