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 # - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
7 # - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
8 # - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
9 # - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
10 # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
14 %bcond_without alternatives # use alternatives system to select default phar and php-fpm
15 %bcond_with default_php # build this PHP as default PHP in system (disables alternatives)
17 %bcond_without embed # disable building Embedded API
18 %bcond_with gcov # Enable Code coverage reporting
19 %bcond_without kerberos5 # without Kerberos5 support
20 %bcond_with systemtap # systemtap/DTrace support
21 %bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
22 %bcond_with zts # Zend Thread Safety
23 %bcond_with debug # Zend Debug Build
25 %bcond_without apache2 # disable building Apache 2.x SAPI
26 %bcond_without cgi # disable CGI/FCGI SAPI
27 %bcond_without fpm # disable FPM SAPI
28 %bcond_without litespeed # build litespeed SAPI
29 %bcond_with milter # disable Milter SAPI
30 %bcond_without phpdbg # disable phpdbg SAPI
32 %bcond_without bcmath # without bcmath extension module
33 %bcond_without bz2 # without bz2 extension module
34 %bcond_without calendar # without calendar extension module
35 %bcond_without ctype # without ctype extension module
36 %bcond_without curl # without CURL extension module
37 %bcond_without dba # without DBA extension module
38 %bcond_without dom # without DOM extension module
39 %bcond_without enchant # without Enchant extension module
40 %bcond_without exif # without EXIF extension module
41 %bcond_without ffi # without FFI extension module
42 %bcond_without fileinfo # without fileinfo extension module
43 %bcond_without filter # without filter extension module
44 %bcond_without ftp # without FTP extension module
45 %bcond_without gd # without GD extension module
46 %bcond_without gettext # without gettext extension module
47 %bcond_without gmp # without gmp extension module
48 %bcond_without iconv # without iconv extension module
49 %bcond_without imap # without IMAP extension module
50 %bcond_without intl # without Intl extension module
51 %bcond_without json # without json extension module
52 %bcond_without ldap # without LDAP extension module
53 %bcond_without mbstring # without mbstring extension module
54 %bcond_without mhash # without mhash extension (supported by hash extension)
55 %bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
56 %bcond_without mysqlnd # without mysqlnd support in mysql related extensions
57 %bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
58 %bcond_without odbc # without ODBC extension module
59 %bcond_without opcache # without Enable Zend OPcache extension support
60 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
61 %bcond_without pcntl # without pcntl extension module
62 %bcond_without pdo # without PDO extension module
63 %bcond_without pdo_dblib # without PDO dblib extension module
64 %bcond_without pdo_firebird # without PDO Firebird extension module
65 %bcond_without pdo_mysql # without PDO MySQL extension module
66 %bcond_without pdo_oci # without PDO oci extension module
67 %bcond_without pdo_odbc # without PDO ODBC extension module
68 %bcond_without pdo_pgsql # without PDO pgsql extension module
69 %bcond_without pdo_sqlite # without PDO SQLite extension module
70 %bcond_without pgsql # without PostgreSQL extension module
71 %bcond_without phar # without Phar extension module
72 %bcond_without posix # without POSIX extension module
73 %bcond_without pspell # without pspell extension module
74 %bcond_without readline # without readline extension module
75 %bcond_without recode # without recode extension module
76 %bcond_without session # without session extension module
77 %bcond_without snmp # without SNMP extension module
78 %bcond_without sodium # without sodium extension module
79 %bcond_without sqlite2 # without SQLite extension module
80 %bcond_without sqlite3 # without SQLite3 extension module
81 %bcond_without tidy # without Tidy extension module
82 %bcond_without xmlrpc # without XML-RPC extension module
83 %bcond_without xsl # without xsl extension module
84 %bcond_without zip # without zip extension module
86 %bcond_without argon2 # argon2 password hashing
87 %bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
88 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
89 %bcond_with mm # without mm support for session storage
90 %bcond_without system_gd # system gd
91 %bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
93 %define apxs1 /usr/sbin/apxs1
94 %define apxs2 /usr/sbin/apxs
98 %undefine with_apache2
100 %undefine with_litespeed
103 %if %{with default_php}
104 %undefine with_alternatives
107 # mm is not thread safe
112 # milter requires ZTS
113 %if %{with milter} && %{without zts}
114 %undefine with_milter
118 %undefine with_pdo_odbc
122 %undefine with_pdo_pgsql
126 %undefine with_pdo_oci
129 %ifnarch %{ix86} %{x8664} x32
130 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
135 %undefine with_pdo_dblib
136 %undefine with_pdo_firebird
137 %undefine with_pdo_mysql
138 %undefine with_pdo_oci
139 %undefine with_pdo_odbc
140 %undefine with_pdo_pgsql
141 %undefine with_pdo_sqlite
144 %define subver alpha1
147 %define ver_suffix 74
148 %define php_suffix %{!?with_default_php:%{ver_suffix}}
149 Summary: PHP: Hypertext Preprocessor
150 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
151 Summary(pl.UTF-8): Język skryptowy PHP
152 Summary(pt_BR.UTF-8): A linguagem de script PHP
153 Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере
154 Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
155 Name: %{orgname}%{php_suffix}
157 Release: 1.%{subver}.%{rel}
159 # All files licensed under PHP version 3.01, except
160 # Zend is licensed under Zend
161 # TSRM is licensed under BSD
162 License: PHP 3.01 and Zend and BSD
164 #Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
165 Source0: https://downloads.php.net/~derick/php-%{version}%{subver}.tar.xz
166 # Source0-md5: 29592e9a73c0ae615c4b7e2b4761184f
168 Source2: %{orgname}-mod_php.conf
169 Source3: %{orgname}-cgi-fcgi.ini
170 Source4: %{orgname}-apache.ini
171 Source5: %{orgname}-cli.ini
172 Source10: %{orgname}-fpm.init
173 Source11: %{orgname}-fpm.logrotate
174 Source12: %{orgname}-branch.sh
175 Source13: dep-tests.sh
176 Source14: skip-tests.sh
177 Patch0: %{orgname}-shared.patch
178 Patch1: %{orgname}-pldlogo.patch
179 Patch2: %{orgname}-mail.patch
180 Patch3: %{orgname}-link-libs.patch
181 Patch4: intl-stdc++.patch
182 Patch7: %{orgname}-sapi-ini-file.patch
184 Patch9: libtool-tag.patch
185 Patch10: %{orgname}-ini.patch
187 Patch14: %{orgname}-no_pear_install.patch
188 Patch17: %{orgname}-readline.patch
189 Patch18: %{orgname}-nohttpd.patch
190 Patch21: %{orgname}-dba-link.patch
191 Patch22: %{orgname}-both-apxs.patch
192 Patch23: %{orgname}-builddir.patch
193 Patch24: %{orgname}-zlib-for-getimagesize.patch
194 Patch25: %{orgname}-stupidapache_version.patch
195 Patch27: %{orgname}-config-dir.patch
196 Patch29: %{orgname}-fcgi-graceful.patch
197 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
198 Patch39: %{orgname}-use-prog_sendmail.patch
199 Patch41: %{orgname}-fpm-config.patch
200 Patch42: %{orgname}-fpm-shared.patch
201 Patch43: %{orgname}-silent-session-cleanup.patch
202 Patch44: %{orgname}-include_path.patch
203 Patch50: extension-shared-optional-dep.patch
204 Patch53: fix-test-run.patch
205 Patch55: bug-52078-fileinode.patch
206 Patch59: %{orgname}-systzdata.patch
207 Patch60: %{orgname}-oracle-instantclient.patch
208 Patch66: php-db.patch
209 Patch67: mysql-lib-ver-mismatch.patch
210 # https://bugs.php.net/bug.php?id=68344
211 Patch68: php-mysql-ssl-context.patch
212 Patch70: mysqlnd-ssl.patch
213 Patch71: libdb-info.patch
215 %{?with_pdo_firebird:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
216 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
217 BuildRequires: autoconf >= 2.59
218 BuildRequires: automake >= 1.4d
219 BuildRequires: bison >= 3.0.0
220 BuildRequires: bzip2-devel >= 1.0.0
221 %{?with_curl:BuildRequires: curl-devel >= 7.15.5}
222 BuildRequires: cyrus-sasl-devel >= 2
223 BuildRequires: db-devel >= 4.0
224 BuildRequires: elfutils-devel
225 %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
226 %{?with_kerberos5:BuildRequires: heimdal-devel}
227 %{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
228 %{?with_ffi:BuildRequires: libffi-devel}
229 %{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
230 %if %{with pdo_dblib}
231 BuildRequires: freetds-devel >= 0.82
233 BuildRequires: freetype-devel >= 1:2.5.1
234 %if %{with system_gd}
235 BuildRequires: gd-devel >= 2.1
237 BuildRequires: gdbm-devel
238 BuildRequires: gmp-devel >= 4.2
239 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
240 %{?with_gcov:BuildRequires: lcov}
241 %{?with_fpm:BuildRequires: libapparmor-devel}
242 %{?with_intl:BuildRequires: libicu-devel >= 50.1}
243 BuildRequires: libjpeg-devel
244 BuildRequires: libltdl-devel >= 1.4
245 BuildRequires: libpng-devel >= 1.0.8
246 %{?with_intl:BuildRequires: libstdc++-devel}
247 BuildRequires: libtool >= 2:2.4.6
248 %{?with_webp:BuildRequires: libwebp-devel}
249 BuildRequires: libxml2-devel >= 1:2.7.6-4
250 %{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
251 %{?with_zip:BuildRequires: libzip-devel >= 1.3.1}
252 %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
253 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
254 %{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
255 %{!?with_pdo_mysql:BuildRequires: mysql-devel}
256 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
257 BuildRequires: oniguruma-devel
258 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
259 %if %{with openssl} || %{with ldap}
260 BuildRequires: openssl-devel >= 1.0.1
262 %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
263 BuildRequires: pam-devel
264 BuildRequires: pcre2-8-devel >= 10.30
265 BuildRequires: pkgconfig
266 %{?with_pgsql:BuildRequires: postgresql-devel}
267 BuildRequires: readline-devel
268 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
269 BuildRequires: rpm >= 4.4.9-56
270 BuildRequires: rpm-build >= 4.4.0
271 BuildRequires: rpmbuild(macros) >= 1.566
272 BuildRequires: sed >= 4.0
273 %if %{with sqlite3} || %{with pdo_sqlite}
274 BuildRequires: sqlite3-devel >= 3.3.9
276 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
277 BuildRequires: tar >= 1:1.22
278 %{?with_tidy:BuildRequires: tidy-devel}
279 BuildRequires: tokyocabinet-devel
280 %{?with_odbc:BuildRequires: unixODBC-devel}
281 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
283 BuildRequires: zlib-devel >= 1.2.0.4
285 BuildRequires: apache-devel >= 2.0.52-2
286 BuildRequires: apr-devel >= 1:1.0.0
287 BuildRequires: apr-util-devel >= 1:1.0.0
289 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
291 %define php_sysconfdir /etc/%{name}
292 %define php_extensiondir %{_libdir}/%{name}
293 %define _sysconfdir %{php_sysconfdir}
295 # must be in sync with source. extra check ensuring that it is so is done in %%build
296 %define php_api_version 20190529
297 %define zend_module_api %{php_api_version}
298 %define zend_extension_api 3%{zend_module_api}
299 %define php_pdo_api_version 20170320
302 %define bz2ver %{version}
303 %define enchantver %{version}
304 %define fileinfover %{version}
305 %define hashver %{version}
306 %define intlver %{version}
307 %define jsonver 1.7.0
308 %define pharver %{version}
309 %define sqlite3ver %{version}
310 %define zipver 1.15.4
311 %define phpdbgver %{version}
312 %define sodiumver %{version}
314 %define _zend_zts %{!?with_zts:0}%{?with_zts:1}
315 %define php_debug %{!?with_debug:0}%{?with_debug:1}
318 %undefine with_ccache
322 # ORACLE_HOME is required for oci8 ext to build
323 %define _preserve_env %_preserve_env_base ORACLE_HOME
327 PHP is an HTML-embedded scripting language. PHP attempts to make it
328 easy for developers to write dynamically generated web pages. PHP also
329 offers built-in database integration for several commercial and
330 non-commercial database management systems, so writing a
331 database-enabled web page with PHP is fairly simple. The most common
332 use of PHP coding is probably as a replacement for CGI scripts. The
333 mod_php module enables the Apache web server to understand and process
334 the embedded PHP language in web pages. This package contains PHP
337 %description -l fr.UTF-8
338 PHP est un langage de script embarque dans le HTM. PHP essaye de
339 rendre simple aux developpeurs d'ecrire des pages web generees
340 dynamiquement. PHP incorpore egalement une integration avec plusieurs
341 systemes de gestion de bases de donnees commerciaux et
342 non-connerciaux, qui rent facile la creation de pages web liees avec
343 des bases de donnees. L'utilisation la plus commune de PHP est
344 probablement en remplacement de scripts CGI. Le module mod_php permet
345 au serveur web Apache de comprendre et de traiter le langage PHP
346 integre dans des pages web. Ce package contient PHP version
349 %description -l pl.UTF-8
350 PHP jest językiem skryptowym, którego polecenia umieszcza się w
351 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
352 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
353 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
354 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
355 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
356 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
357 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
360 %description -l pt_BR.UTF-8
361 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
362 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
363 com algumas características únicas, específicas ao PHP. O objetivo da
364 linguagem é permitir que desenvolvedores web escrevam páginas
365 dinamicamente geradas de forma rápida.
367 %description -l ru.UTF-8
368 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
369 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
370 для работы с базами данных относительно просто. Наиболее популярное
371 использование PHP - замена для CGI скриптов.
373 %description -l uk.UTF-8
374 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
375 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
376 роботи з базами даних є доволі простим. Найбільш популярне
377 використання PHP - заміна для CGI скриптів.
379 %package -n apache-mod_%{name}
380 Summary: PHP support for Apache 2.x
381 Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
382 Group: Development/Languages/PHP
383 Requires: %{name}-common = %{epoch}:%{version}-%{release}
384 Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
385 Provides: webserver(php) = %{version}
386 Obsoletes: apache-mod_php < 4:5.3.28-7
389 %description -n apache-mod_%{name}
390 PHP support for Apache 2.x.
392 %description -n apache-mod_%{name} -l pl.UTF-8
393 Wsparcie PHP dla Apache 2.x.
395 %package -n apache-mod_%{name}-core
396 Summary: PHP DSO module for Apache 2.x
397 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
398 Group: Development/Languages/PHP
399 Requires: %{name}-common = %{epoch}:%{version}-%{release}
400 Requires: apache(modules-api) = %{apache_modules_api}
401 Requires: apache-mod_mime
403 %description -n apache-mod_%{name}-core
404 PHP as DSO module for Apache 2.x.
406 %description -n apache-mod_%{name}-core -l pl.UTF-8
407 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
410 Summary: PHP for litespeed HTTP server
411 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
412 Group: Development/Languages/PHP
413 Requires: %{name}-common = %{epoch}:%{version}-%{release}
414 Provides: php(litespeed)
415 Provides: webserver(php) = %{version}
416 Obsoletes: php-litespeed < 4:5.3.28-7
418 %description litespeed
419 PHP for litespeed HTTP server.
421 %description litespeed -l pl.UTF-8
422 PHP dla serwera HTTP litespeed.
425 Summary: PHP as CGI/FastCGI program
426 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
427 Group: Development/Languages/PHP
428 Requires: %{name}-common = %{epoch}:%{version}-%{release}
429 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
432 Provides: webserver(php) = %{version}
433 Obsoletes: php-cgi < 4:5.3.28-7
434 Obsoletes: php-fcgi < 4:5.3.0
437 PHP as CGI or FastCGI program.
439 %description cgi -l pl.UTF-8
440 PHP jako program CGI lub FastCGI.
443 Summary: PHP as CLI interpreter
444 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
445 Group: Development/Languages/PHP
446 Requires: %{name}-common = %{epoch}:%{version}-%{release}
447 Obsoletes: php-cli < 4:5.3.28-7
450 PHP as CLI interpreter.
452 %description cli -l pl.UTF-8
453 PHP jako interpreter działający z linii poleceń.
456 Summary: PHP library for embedding in applications
457 Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
459 Requires: %{name}-common = %{epoch}:%{version}-%{release}
460 Obsoletes: php-embedded < 4:5.3.28-7
462 %description embedded
463 The php-embedded package contains a library which can be embedded into
464 applications to provide PHP scripting language support.
466 %description embedded -l pl.UTF-8
467 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
468 celu obsługi PHP jako języka skryptowego.
471 Summary: /usr/bin/php symlink
472 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
473 Group: Development/Languages/PHP
474 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
475 Obsoletes: /usr/bin/php
476 Obsoletes: php-program < 4:5.3.28-7
479 Package providing /usr/bin/php symlink to PHP CLI.
481 %description program -l pl.UTF-8
482 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
485 Summary: PHP FastCGI Process Manager
486 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
487 Group: Development/Languages/PHP
488 URL: http://php-fpm.org/
489 Requires(post,preun): /sbin/chkconfig
490 Requires(postun): /usr/sbin/userdel
491 Requires(pre): /bin/id
492 Requires(pre): /usr/sbin/useradd
493 Requires: %{name}-common = %{epoch}:%{version}-%{release}
494 %{?with_alternatives:Requires: alternatives}
495 Requires: php-dirs >= 1.4-2
500 Provides: webserver(php) = %{version}
501 Obsoletes: php-fpm < 4:5.3.28-7
502 %if "%{pld_release}" != "ac"
503 Conflicts: logrotate < 3.8.0
507 PHP FastCGI Process Manager.
509 %description fpm -l pl.UTF-8
510 PHP FastCGI Process Manager - zarządca procesów FastCGI.
513 Summary: The debugging platform for PHP 5.4+
514 Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
515 Group: Development/Languages/PHP
516 Requires: %{name}-common = %{epoch}:%{version}-%{release}
517 Provides: php(phpdbg) = %{phpdbgver}
520 phpdbg - The interactive PHP debugger.
522 Implemented as a SAPI module, phpdbg can excert complete control over
523 the environment without impacting the functionality or performance of
526 phpdbg aims to be a lightweight, powerful, easy to use debugging
527 platform for PHP 5.4+
529 %description phpdbg -l pl.UTF-8
530 phpdbg - interaktywny debugger dla PHP.
532 Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
533 nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
535 Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
536 platforma diagnostyczna dla PHP 5.4+.
539 Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
540 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
541 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
542 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
544 Requires(post): sed >= 4.0
545 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
546 Requires: glibc >= 6:2.3.5
547 Requires: php-dirs >= 1.4
548 Requires: rpm-whiteout >= 1.28
550 Requires: zlib >= 1.2.0.4
551 Provides: %{name}(debug) = %{php_debug}
552 Provides: %{name}(modules_api) = %{php_api_version}
553 Provides: %{name}(thread-safety) = %{_zend_zts}
554 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
555 Provides: %{name}(zend_module_api) = %{zend_module_api}
556 Provides: %{name}-core
557 Provides: %{name}-date
558 Provides: %{name}-hash = %{epoch}:%{version}-%{release}
559 Provides: %{name}-pcre = %{epoch}:%{version}-%{release}
560 Provides: %{name}-reflection
561 Provides: %{name}-spl = %{epoch}:%{version}-%{release}
562 Provides: %{name}-standard
563 Provides: php(core) = %{version}
565 Provides: php(hash) = %{hashver}
566 Provides: php(libxml)
568 Provides: php(reflection)
570 Provides: php(standard)
571 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
572 %requires_ge_to pcre2-8 pcre2-8-devel
574 Obsoletes: php-common < 4:5.3.28-7
575 Obsoletes: php-filepro < 4:5.2.0
576 Obsoletes: php-hash < 4:5.3.28-7
577 Obsoletes: php-hwapi < 4:5.2.0
578 Obsoletes: php-hyperwave < 3:5.0.0
579 Obsoletes: php-java < 3:5.0.0
580 Obsoletes: php-mcal < 3:5.0.0
581 Obsoletes: php-pcre < 4:5.3.28-7
582 Obsoletes: php-pecl-domxml
583 Obsoletes: php-pecl-hash < %{hashver}
584 Obsoletes: php-qtdom < 3:5.0.0
585 Obsoletes: php-spl < 4:5.3.28-7
586 Conflicts: php4-common < 3:4.4.4-8
587 Conflicts: php55-common < 4:5.5.10-4
588 Conflicts: rpm < 4.4.2-0.2
591 Provides: php-mhash = %{epoch}:%{version}-%{release}
592 Obsoletes: php-mhash < 4:5.3.0
596 Common files needed by both Apache modules and CGI/CLI SAPIs.
598 %description common -l pl.UTF-8
599 Wspólne pliki dla modułu Apache'a i programu CGI.
601 %description common -l ru.UTF-8
602 Этот пакет содержит общие файлы для разных вариантов реализации PHP
603 (самодостаточной и в качестве модуля Apache).
605 %description common -l uk.UTF-8
606 Цей пакет містить спільні файли для різних варіантів реалізації PHP
607 (самодостатньої та в якості модуля Apache).
610 Summary: Files for PHP modules development
611 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
612 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
613 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
614 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
615 Group: Development/Languages/PHP
616 Requires: %{name}-common = %{epoch}:%{version}-%{release}
617 Requires: autoconf >= 2.59
618 Requires: automake >= 1.4d
619 Requires: libtool >= 2:2.4.6
620 Requires: pcre2-8-devel >= 10.30
622 Provides: php-devel = %{epoch}:%{version}-%{release}
624 Obsoletes: php-pear-devel
625 Obsoletes: php4-devel
626 Obsoletes: php52-devel
627 Obsoletes: php53-devel
628 Obsoletes: php54-devel
629 Obsoletes: php55-devel
630 Obsoletes: php56-devel
631 Obsoletes: php70-devel
632 Obsoletes: php71-devel
633 Obsoletes: php73-devel
636 The php-devel package lets you compile dynamic extensions to PHP.
637 Included here is the source for the PHP extensions. Instead of
638 recompiling the whole PHP binary to add support for, say, oracle,
639 install this package and use the new self-contained extensions
640 support. For more information, read the file
641 README.SELF-CONTAINED-EXTENSIONS.
643 %description devel -l pl.UTF-8
644 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
645 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
646 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
647 samodzielnych rozszerzeniach można znaleźć w pliku
648 README.SELF-CONTAINED-EXTENSIONS.
650 %description devel -l pt_BR.UTF-8
651 Este pacote contém arquivos usados no desenvolvimento de programas ou
654 %description devel -l ru.UTF-8
655 Пакет php-devel дает возможность компилировать динамические расширения
656 PHP. Пакет включает исходный код этих расширений. Вместо повторной
657 компиляции бинарного файла PHP для добавления, например, поддержки
658 oracle, установите этот пакет для компилирования отдельных расширений.
659 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
661 %description devel -l uk.UTF-8
662 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
663 До пакету включено вихідний код для розширень. Замість повторної
664 компіляції бінарного файлу PHP для додання, наприклад, підтримки
665 oracle, встановіть цей пакет для компіляції окремих розширень.
666 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
669 Summary: bcmath extension module for PHP
670 Summary(pl.UTF-8): Moduł bcmath dla PHP
672 URL: http://php.net/manual/en/book.bc.php
673 Requires: %{name}-common = %{epoch}:%{version}-%{release}
674 Provides: php(bcmath)
675 Obsoletes: php-bcmath < 4:5.3.28-7
678 This is a dynamic shared object (DSO) for PHP that will add bc style
679 precision math functions support.
681 %description bcmath -l pl.UTF-8
682 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
683 matematycznych takich jak w programie bc.
686 Summary: Bzip2 extension module for PHP
687 Summary(pl.UTF-8): Moduł bzip2 dla PHP
689 URL: http://php.net/manual/en/book.bzip2.php
690 Requires: %{name}-common = %{epoch}:%{version}-%{release}
691 Requires: bzip2-libs >= 1.0.0
692 Provides: php(bz2) = %{bz2ver}
694 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
695 Obsoletes: php-bz2 < 4:5.3.28-7
696 Obsoletes: php-bzip2 < 4:5.2.14-3
697 Obsoletes: php-pecl-bz2 < %{bz2ver}
700 This is a dynamic shared object (DSO) for PHP that will add bzip2
701 compression support to PHP.
703 %description bz2 -l pl.UTF-8
704 Moduł PHP umożliwiający używanie kompresji bzip2.
707 Summary: Calendar extension module for PHP
708 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
710 URL: http://php.net/manual/en/book.calendar.php
711 Requires: %{name}-common = %{epoch}:%{version}-%{release}
712 Provides: php(calendar)
713 Obsoletes: php-calendar < 4:5.3.28-7
715 %description calendar
716 This is a dynamic shared object (DSO) for PHP that will add calendar
719 %description calendar -l pl.UTF-8
720 Moduł PHP dodający wsparcie dla kalendarza.
723 Summary: ctype extension module for PHP
724 Summary(pl.UTF-8): Moduł ctype dla PHP
726 URL: http://php.net/manual/en/book.ctype.php
727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
729 Obsoletes: php-ctype < 4:5.3.28-7
732 This is a dynamic shared object (DSO) for PHP that will add ctype
735 %description ctype -l pl.UTF-8
736 Moduł PHP umożliwiający korzystanie z funkcji ctype.
739 Summary: curl extension module for PHP
740 Summary(pl.UTF-8): Moduł curl dla PHP
742 URL: http://php.net/manual/en/book.curl.php
743 Requires: %{name}-common = %{epoch}:%{version}-%{release}
744 Requires: curl-libs >= 7.12.0
746 Obsoletes: php-curl < 4:5.3.28-7
749 This is a dynamic shared object (DSO) for PHP that will add curl
752 %description curl -l pl.UTF-8
753 Moduł PHP umożliwiający korzystanie z biblioteki curl.
756 Summary: DBA extension module for PHP
757 Summary(pl.UTF-8): Moduł DBA dla PHP
759 URL: http://php.net/manual/en/book.dba.php
760 Requires: %{name}-common = %{epoch}:%{version}-%{release}
762 Obsoletes: php-dba < 4:5.3.28-7
763 # withdrawn module of similar functionality but different API
764 Obsoletes: php-db < 3:5.0.0
767 This is a dynamic shared object (DSO) for PHP that will add flat-file
768 databases (DBA) support.
770 %description dba -l pl.UTF-8
771 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
775 Summary: DOM extension module for PHP
776 Summary(pl.UTF-8): Moduł DOM dla PHP
778 URL: http://php.net/manual/en/book.dom.php
779 Requires: %{name}-common = %{epoch}:%{version}-%{release}
781 # it has some compatibility functions
782 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
783 Provides: php(domxml)
784 Obsoletes: php-dom < 4:5.3.28-7
785 Obsoletes: php-domxml <= 3:4.3.8-1
788 This is a dynamic shared object (DSO) for PHP that will add new DOM
791 %description dom -l pl.UTF-8
792 Moduł PHP dodający nową obsługę DOM.
795 Summary: libenchant binder
796 Summary(pl.UTF-8): dowiązania biblioteki libenchant
798 URL: http://php.net/manual/en/book.enchant.php
799 Requires: %{name}-common = %{epoch}:%{version}-%{release}
800 Provides: php(enchant) = %{enchantver}
801 Obsoletes: php-enchant < 4:5.3.28-7
802 Obsoletes: php-pecl-enchant < %{enchantver}
805 Enchant is a binder for libenchant. Libenchant provides a common API
806 for many spell libraries:
807 - aspell/pspell (intended to replace ispell)
810 - myspell (OpenOffice.org project, mozilla)
811 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
812 plugin system allows to add custom spell support.
814 %description enchant -l pl.UTF-8
815 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
816 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
817 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
820 - myspell (projekt OpenOffice.org, mozilla)
821 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
822 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
825 Summary: exif extension module for PHP
826 Summary(pl.UTF-8): Moduł exif dla PHP
828 URL: http://php.net/manual/en/book.exif.php
829 Requires: %{name}-common = %{epoch}:%{version}-%{release}
831 Obsoletes: php-exif < 4:5.3.28-7
834 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
835 support in image files.
837 %description exif -l pl.UTF-8
838 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
841 Summary: %{modname} - Foreign Function Interface
843 URL: https://www.php.net/manual/en/book.ffi.php
844 Requires: %{name}-common = %{epoch}:%{version}-%{release}
845 Provides: php(ffi) = %{version}
848 FFI is a multi-platform extension for PHP that allows you to bind to
849 functions from arbitrary shared libraries and call them.
852 Summary: libmagic bindings
853 Summary(pl.UTF-8): Wiązania do libmagic
855 URL: http://php.net/manual/en/book.fileinfo.php
856 Requires: %{name}-common = %{epoch}:%{version}-%{release}
857 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
858 Provides: php(fileinfo) = %{fileinfover}
859 Obsoletes: php-fileinfo < 4:5.3.28-7
860 Obsoletes: php-mime_magic
861 Obsoletes: php-pecl-fileinfo < %{fileinfover}
863 %description fileinfo
864 This extension allows retrieval of information regarding vast majority
865 of file. This information may include dimensions, quality, length
868 Additionally it can also be used to retrieve the MIME type for a
869 particular file and for text files proper language encoding.
871 %description fileinfo -l pl.UTF-8
872 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
873 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
875 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
876 pliku oraz kodowania plików tekstowych.
879 Summary: Extension for safely dealing with input parameters
880 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
882 URL: http://php.net/manual/en/book.filter.php
883 Requires: %{name}-common = %{epoch}:%{version}-%{release}
884 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
885 Provides: php(filter)
886 Obsoletes: php-filter < 4:5.3.28-7
887 Obsoletes: php-pecl-filter
890 We all know that you should always check input variables, but PHP does
891 not offer really good functionality for doing this in a safe way. The
892 Input Filter extension is meant to address this issue by implementing
893 a set of filters and mechanisms that users can use to safely access
896 %description filter -l pl.UTF-8
897 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
898 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
899 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
900 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
901 mogą bezpiecznie używać do dostępu do danych.
904 Summary: FTP extension module for PHP
905 Summary(pl.UTF-8): Moduł FTP dla PHP
907 URL: http://php.net/manual/en/book.ftp.php
908 Requires: %{name}-common = %{epoch}:%{version}-%{release}
910 Obsoletes: php-ftp < 4:5.3.28-7
913 This is a dynamic shared object (DSO) for PHP that will add FTP
916 %description ftp -l pl.UTF-8
917 Moduł PHP dodający obsługę protokołu FTP.
920 Summary: GD extension module for PHP
921 Summary(pl.UTF-8): Moduł GD dla PHP
923 URL: http://php.net/manual/en/book.image.php
924 Requires: %{name}-common = %{epoch}:%{version}-%{release}
925 %if %{with system_gd}
930 Obsoletes: php-gd < 4:5.3.28-7
933 This is a dynamic shared object (DSO) for PHP that will add GD
934 support, allowing you to create and manipulate images with PHP.
936 %description gd -l pl.UTF-8
937 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
938 tworzenie i obróbkę obrazków.
941 Summary: gettext extension module for PHP
942 Summary(pl.UTF-8): Moduł gettext dla PHP
944 URL: http://php.net/manual/en/book.gettext.php
945 Requires: %{name}-common = %{epoch}:%{version}-%{release}
946 Provides: php(gettext)
947 Obsoletes: php-gettext < 4:5.3.28-7
950 This is a dynamic shared object (DSO) for PHP that will add gettext
953 %description gettext -l pl.UTF-8
954 Moduł PHP dodający obsługę lokalizacji przez gettext.
957 Summary: gmp extension module for PHP
958 Summary(pl.UTF-8): Moduł gmp dla PHP
960 URL: http://php.net/manual/en/book.gmp.php
961 Requires: %{name}-common = %{epoch}:%{version}-%{release}
964 Obsoletes: php-gmp < 4:5.3.28-7
967 This is a dynamic shared object (DSO) for PHP that will add arbitrary
968 length number support with GNU MP library.
970 %description gmp -l pl.UTF-8
971 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
972 liczbach o dowolnej długości.
975 Summary: iconv extension module for PHP
976 Summary(pl.UTF-8): Moduł iconv dla PHP
978 URL: http://php.net/manual/en/book.iconv.php
979 Requires: %{_libdir}/gconv
980 Requires: %{name}-common = %{epoch}:%{version}-%{release}
983 Obsoletes: php-iconv < 4:5.3.28-7
986 This is a dynamic shared object (DSO) for PHP that will add iconv
989 %description iconv -l pl.UTF-8
990 Moduł PHP dodający obsługę iconv.
993 Summary: IMAP extension module for PHP
994 Summary(pl.UTF-8): Moduł IMAP dla PHP
995 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
997 URL: http://php.net/manual/en/book.imap.php
998 Requires: %{name}-common = %{epoch}:%{version}-%{release}
999 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1000 Requires: imap-lib >= 1:2007e-2
1002 Obsoletes: php-imap < 4:5.3.28-7
1005 This is a dynamic shared object (DSO) for PHP that will add IMAP
1008 %description imap -l pl.UTF-8
1009 Moduł PHP dodający obsługę skrzynek IMAP.
1011 %description imap -l pt_BR.UTF-8
1012 Um módulo para aplicações PHP que usam IMAP.
1015 Summary: Internationalization extension (ICU wrapper)
1016 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
1018 URL: http://php.net/intl
1019 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1020 Provides: php(intl) = %{intlver}
1021 Obsoletes: php-intl < 4:5.3.28-7
1022 Obsoletes: php-pecl-intl < %{intlver}
1025 Internationalization extension (further is referred as Intl) is a
1026 wrapper for ICU library, enabling PHP programmers to perform
1027 UCA-conformant collation and date/time/number/currency formatting in
1030 %description intl -l pl.UTF-8
1031 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1032 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1033 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1037 Summary: PHP C extension for JSON serialization
1038 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
1040 URL: http://php.net/manual/en/book.json.php
1041 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1042 Provides: php(json) = %{jsonver}
1043 Obsoletes: php-json < 4:5.3.28-7
1044 Obsoletes: php-pecl-json < %{jsonver}
1047 php-json is an extremely fast PHP C extension for JSON (JavaScript
1048 Object Notation) serialisation.
1050 %description json -l pl.UTF-8
1051 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1052 (JavaScript Object Notation).
1055 Summary: LDAP extension module for PHP
1056 Summary(pl.UTF-8): Moduł LDAP dla PHP
1057 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1059 URL: http://php.net/manual/en/book.ldap.php
1060 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1062 Obsoletes: php-ldap < 4:5.3.28-7
1065 This is a dynamic shared object (DSO) for PHP that will add LDAP
1068 %description ldap -l pl.UTF-8
1069 Moduł PHP dodający obsługę LDAP.
1071 %description ldap -l pt_BR.UTF-8
1072 Um módulo para aplicações PHP que usam LDAP.
1075 Summary: mbstring extension module for PHP
1076 Summary(pl.UTF-8): Moduł mbstring dla PHP
1078 URL: http://php.net/manual/en/book.mbstring.php
1079 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1080 Provides: php(mbstring)
1081 Obsoletes: php-mbstring < 4:5.3.28-7
1083 %description mbstring
1084 This is a dynamic shared object (DSO) for PHP that will add multibyte
1087 %description mbstring -l pl.UTF-8
1088 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1091 Summary: MySQLi module for PHP
1092 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1094 URL: http://php.net/manual/en/book.mysqli.php
1095 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1096 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1097 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1098 Requires: mysql-libs >= 4.1.13
1099 Provides: php(mysqli)
1100 Obsoletes: php-mysqli < 4:5.3.28-7
1103 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1104 (Improved MySQL) support. The difference between it and mysql module
1105 is that it provides access to functionality of MySQL 4.1 and above.
1107 %description mysqli -l pl.UTF-8
1108 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1109 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1110 MySQL w wersji 4.1 i nowszych.
1113 Summary: MySQL Native Client Driver for PHP
1114 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1116 URL: http://php.net/manual/en/book.mysqlnd.php
1117 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1118 Provides: php(mysqlnd)
1119 Obsoletes: php-mysqlnd < 4:5.3.28-7
1121 %description mysqlnd
1122 MySQL Native Driver is a replacement for the MySQL Client Library
1125 Because MySQL Native Driver is written as a PHP extension, it is
1126 tightly coupled to the workings of PHP. This leads to gains in
1127 efficiency, especially when it comes to memory usage, as the driver
1128 uses the PHP memory management system. It also supports the PHP memory
1129 limit. Using MySQL Native Driver leads to comparable or better
1130 performance than using MySQL Client Library, it always ensures the
1131 most efficient use of memory. One example of the memory efficiency is
1132 the fact that when using the MySQL Client Library, each row is stored
1133 in memory twice, whereas with the MySQL Native Driver each row is only
1134 stored once in memory.
1136 %description mysqlnd -l pl.UTF-8
1137 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1138 klienckiej MySQL (libmysql).
1140 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1141 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1142 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1143 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1144 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1145 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1146 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1147 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1148 tym sterowniku - tylko raz.
1151 Summary: Oracle 8+ database module for PHP
1152 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1154 URL: http://php.net/manual/en/book.oci8.php
1155 %{?requires_php_extension}
1157 Obsoletes: php-oci8 < 4:5.3.28-7
1158 # withdrawn module of similar functionality but different API
1159 Obsoletes: php-oracle < 4:5.1.0
1162 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1163 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1165 %description oci8 -l pl.UTF-8
1166 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1167 poprzez interfejs Oracle8 Call-Interface (OCI8).
1170 Summary: ODBC extension module for PHP
1171 Summary(pl.UTF-8): Moduł ODBC dla PHP
1172 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1174 URL: http://php.net/manual/en/book.uodbc.php
1175 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1176 Requires: unixODBC >= 2.1.1-3
1178 Obsoletes: php-odbc < 4:5.3.28-7
1181 This is a dynamic shared object (DSO) for PHP that will add ODBC
1184 %description odbc -l pl.UTF-8
1185 Moduł PHP ze wsparciem dla ODBC.
1187 %description odbc -l pt_BR.UTF-8
1188 Um módulo para aplicações PHP que usam ODBC.
1191 Summary: Zend Optimizer+ - PHP code optimizer
1192 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1194 URL: https://wiki.php.net/rfc/optimizerplus
1195 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1196 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1197 Provides: php(opcache) = %{version}
1199 %description opcache
1200 The Zend OPcache provides faster PHP execution through opcode caching
1201 and optimization. It improves PHP performance by storing precompiled
1202 script bytecode in the shared memory. This eliminates the stages of
1203 reading code from the disk and compiling it on future access. In
1204 addition, it applies a few bytecode optimization patterns that make
1205 code execution faster.
1207 %description opcache -l pl.UTF-8
1208 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1209 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1210 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1211 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1212 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1213 czyniąc wykonywanie kodu szybszym.
1216 Summary: OpenSSL extension module for PHP
1217 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1219 URL: http://php.net/manual/en/book.openssl.php
1220 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1221 Provides: php(openssl)
1222 Obsoletes: php-openssl < 4:5.3.28-7
1224 %description openssl
1225 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1228 %description openssl -l pl.UTF-8
1229 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1232 Summary: Process Control extension module for PHP
1233 Summary(pl.UTF-8): Moduł Process Control dla PHP
1235 URL: http://php.net/manual/en/book.pcntl.php
1236 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1237 Provides: php(pcntl)
1238 Obsoletes: php-pcntl < 4:5.3.28-7
1241 This is a dynamic shared object (DSO) for PHP that will add process
1242 spawning and control support. It supports functions like fork(),
1243 waitpid(), signal() etc.
1245 %description pcntl -l pl.UTF-8
1246 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1247 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1250 Summary: PHP Data Objects (PDO)
1251 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1253 URL: http://php.net/manual/en/book.pdo.php
1254 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1255 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1256 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1258 Obsoletes: php-pdo < 4:5.3.28-7
1259 Obsoletes: php-pecl-PDO
1262 This is a dynamic shared object (DSO) for PHP that will add PDO
1265 %description pdo -l pl.UTF-8
1266 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1269 Summary: PHP Data Objects (PDO) FreeTDS support
1270 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1272 URL: http://php.net/manual/en/ref.pdo-dblib.php
1273 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1274 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1275 Provides: php(pdo_dblib)
1276 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1278 %description pdo-dblib
1279 This is a dynamic shared object (DSO) for PHP that will add PDO
1282 %description pdo-dblib -l pl.UTF-8
1283 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1286 %package pdo-firebird
1287 Summary: PHP Data Objects (PDO) Firebird support
1288 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1290 URL: http://php.net/manual/en/ref.pdo-firebird.php
1291 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1292 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1293 Provides: php(pdo-firebird)
1294 Provides: php(pdo_firebird)
1295 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1296 Obsoletes: php-pecl-PDO_FIREBIRD
1298 %description pdo-firebird
1299 This is a dynamic shared object (DSO) for PHP that will add PDO
1302 %description pdo-firebird -l pl.UTF-8
1303 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1307 Summary: PHP Data Objects (PDO) MySQL support
1308 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1310 URL: http://php.net/manual/en/ref.pdo-mysql.php
1311 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1312 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1313 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1314 Provides: php(pdo-mysql)
1315 Provides: php(pdo_mysql)
1316 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1317 Obsoletes: php-pecl-PDO_MYSQL
1319 %description pdo-mysql
1320 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1323 %description pdo-mysql -l pl.UTF-8
1324 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1328 Summary: PHP Data Objects (PDO) Oracle support
1329 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1331 URL: http://php.net/manual/en/ref.pdo-oci.php
1332 %{?requires_php_extension}
1333 %{?requires_php_pdo_module}
1334 Provides: php(pdo-oci)
1335 Provides: php(pdo_oci)
1336 Obsoletes: php-pdo-oci < 4:5.3.28-7
1337 Obsoletes: php-pecl-PDO_OCI
1339 %description pdo-oci
1340 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1343 %description pdo-oci -l pl.UTF-8
1344 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1348 Summary: PHP Data Objects (PDO) ODBC support
1349 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1351 URL: http://php.net/manual/en/ref.pdo-odbc.php
1352 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1353 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1354 Provides: php(pdo-odbc)
1355 Provides: php(pdo_odbc)
1356 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1357 Obsoletes: php-pecl-PDO_ODBC
1359 %description pdo-odbc
1360 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1363 %description pdo-odbc -l pl.UTF-8
1364 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1368 Summary: PHP Data Objects (PDO) PostgreSQL support
1369 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1371 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1372 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1373 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1374 Provides: php(pdo-pgsql)
1375 Provides: php(pdo_pgsql)
1376 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1377 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1379 %description pdo-pgsql
1380 This is a dynamic shared object (DSO) for PHP that will add PDO
1383 %description pdo-pgsql -l pl.UTF-8
1384 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1388 Summary: PHP Data Objects (PDO) SQLite support
1389 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1391 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1392 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1393 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1394 Provides: php(pdo-sqlite)
1395 Provides: php(pdo_sqlite)
1396 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1397 Obsoletes: php-pecl-PDO_SQLITE
1399 %description pdo-sqlite
1400 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1403 %description pdo-sqlite -l pl.UTF-8
1404 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1408 Summary: PostgreSQL database module for PHP
1409 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1411 URL: http://php.net/manual/en/book.pgsql.php
1412 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1413 Provides: php(pgsql)
1414 Obsoletes: php-pgsql < 4:5.3.28-7
1417 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1420 %description pgsql -l pl.UTF-8
1421 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1423 %description pgsql -l pt_BR.UTF-8
1424 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1427 Summary: Phar archive module for PHP
1428 Summary(pl.UTF-8): Moduł phar dla PHP
1430 URL: http://php.net/manual/en/book.phar.php
1431 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1432 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1433 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1434 %{?with_alternatives:Requires: alternatives}
1435 Suggests: %{name}-cli
1436 # zlib is required by phar program, but as phar cli is optional should the dep be too
1437 Suggests: %{name}-zlib
1438 Provides: php(phar) = %{pharver}
1439 Obsoletes: php-pecl-phar < %{pharver}
1440 Obsoletes: php-phar < 4:5.3.28-7
1441 Conflicts: php-ioncube < 4.0.9
1444 This is a dynamic shared object (DSO) for PHP that will add phar
1447 %description phar -l pl.UTF-8
1448 Moduł PHP umożliwiający dostęp do achiwów .phar.
1451 Summary: POSIX extension module for PHP
1452 Summary(pl.UTF-8): Moduł POSIX dla PHP
1454 URL: http://php.net/manual/en/book.posix.php
1455 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1456 Provides: php(posix)
1457 Obsoletes: php-posix < 4:5.3.28-7
1460 This is a dynamic shared object (DSO) for PHP that will add POSIX
1461 functions support to PHP.
1463 %description posix -l pl.UTF-8
1464 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1467 Summary: pspell extension module for PHP
1468 Summary(pl.UTF-8): Moduł pspell dla PHP
1470 URL: http://php.net/manual/en/book.pspell.php
1471 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1472 Provides: php(pspell)
1473 Obsoletes: php-pspell < 4:5.3.28-7
1476 This is a dynamic shared object (DSO) for PHP that will add pspell
1477 support to PHP. It allows to check the spelling of a word and offer
1480 %description pspell -l pl.UTF-8
1481 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1482 sprawdzanie pisowni słowa i sugerowanie poprawek.
1485 Summary: readline extension module for PHP
1486 Summary(pl.UTF-8): Moduł readline dla PHP
1488 URL: http://php.net/manual/en/book.readline.php
1489 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1490 Provides: php(readline)
1491 Obsoletes: php-readline < 4:5.3.28-7
1493 %description readline
1494 This PHP module adds support for readline functions (only for cli and
1497 %description readline -l pl.UTF-8
1498 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1501 Summary: recode extension module for PHP
1502 Summary(pl.UTF-8): Moduł recode dla PHP
1504 URL: http://php.net/manual/en/book.recode.php
1505 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1506 Requires: recode >= 3.5d-3
1507 Provides: php(recode)
1508 Obsoletes: php-recode < 4:5.3.28-7
1511 This is a dynamic shared object (DSO) for PHP that will add recode
1514 %description recode -l pl.UTF-8
1515 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1519 Summary: session extension module for PHP
1520 Summary(pl.UTF-8): Moduł session dla PHP
1522 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1523 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1524 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1526 Provides: php(session)
1527 Obsoletes: php-session < 4:5.3.28-7
1529 %description session
1530 This is a dynamic shared object (DSO) for PHP that will add session
1533 %description session -l pl.UTF-8
1534 Moduł PHP dodający obsługę sesji.
1537 Summary: Shared Memory Operations extension module for PHP
1538 Summary(pl.UTF-8): Moduł shmop dla PHP
1540 URL: http://php.net/manual/en/book.shmop.php
1541 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1542 Provides: php(shmop)
1543 Obsoletes: php-shmop < 4:5.3.28-7
1546 This is a dynamic shared object (DSO) for PHP that will add Shared
1547 Memory Operations support.
1549 %description shmop -l pl.UTF-8
1550 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1553 Summary: Simple XML extension module for PHP
1554 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1556 URL: http://php.net/manual/en/book.simplexml.php
1557 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1558 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1559 Provides: php(simplexml)
1560 Obsoletes: php-simplexml < 4:5.3.28-7
1562 %description simplexml
1563 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1566 %description simplexml -l pl.UTF-8
1567 Moduł PHP dodający obsługę prostego XML-a.
1570 Summary: SNMP extension module for PHP
1571 Summary(pl.UTF-8): Moduł SNMP dla PHP
1573 URL: http://php.net/manual/en/book.snmp.php
1574 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1575 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1576 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1578 Obsoletes: php-snmp < 4:5.3.28-7
1581 This is a dynamic shared object (DSO) for PHP that will add SNMP
1584 %description snmp -l pl.UTF-8
1585 Moduł PHP dodający obsługę SNMP.
1588 Summary: soap extension module for PHP
1589 Summary(pl.UTF-8): Moduł soap dla PHP
1591 URL: http://php.net/manual/en/book.soap.php
1592 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1594 Obsoletes: php-soap < 4:5.3.28-7
1597 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1600 %description soap -l pl.UTF-8
1601 Moduł PHP dodający obsługę SOAP/WSDL.
1604 Summary: sockets extension module for PHP
1605 Summary(pl.UTF-8): Moduł socket dla PHP
1607 URL: http://php.net/manual/en/book.sockets.php
1608 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1609 Provides: php(sockets)
1610 Obsoletes: php-sockets < 4:5.3.28-7
1612 %description sockets
1613 This is a dynamic shared object (DSO) for PHP that will add sockets
1616 %description sockets -l pl.UTF-8
1617 Moduł PHP dodający obsługę gniazdek.
1620 Summary: Wrapper for the Sodium cryptographic library
1622 URL: https://paragonie.com/book/pecl-libsodium
1623 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1624 Provides: php(sodium) = %{sodiumver}
1627 A simple, low-level PHP extension for libsodium.
1630 Summary: SQLite3 extension module for PHP
1631 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1633 URL: http://php.net/manual/en/book.sqlite3.php
1634 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1635 Provides: php(sqlite3) = %{sqlite3ver}
1636 Obsoletes: php-sqlite3 < 4:5.3.28-7
1638 %description sqlite3
1639 SQLite is a C library that implements an embeddable SQL database
1640 engine. Programs that link with the SQLite library can have SQL
1641 database access without running a separate RDBMS process.
1643 SQLite is not a client library used to connect to a big database
1644 server. SQLite is the server. The SQLite library reads and writes
1645 directly to and from the database files on disk.
1647 %description sqlite3 -l pl.UTF-8
1648 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1649 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1650 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1653 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1654 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1655 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1659 Summary: SysV msg extension module for PHP
1660 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1662 URL: http://php.net/manual/en/book.sem.php
1663 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1664 Provides: php(sysvmsg)
1665 Obsoletes: php-sysvmsg < 4:5.3.28-7
1667 %description sysvmsg
1668 This is a dynamic shared object (DSO) for PHP that will add SysV
1669 message queues support.
1671 %description sysvmsg -l pl.UTF-8
1672 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1675 Summary: SysV sem extension module for PHP
1676 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1678 URL: http://php.net/manual/en/book.sem.php
1679 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1680 Provides: php(sysvsem)
1681 Obsoletes: php-sysvsem < 4:5.3.28-7
1683 %description sysvsem
1684 This is a dynamic shared object (DSO) for PHP that will add SysV
1687 %description sysvsem -l pl.UTF-8
1688 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1691 Summary: SysV shm extension module for PHP
1692 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1694 URL: http://php.net/manual/en/book.sem.php
1695 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1696 Provides: php(sysvshm)
1697 Obsoletes: php-sysvshm < 4:5.3.28-7
1699 %description sysvshm
1700 This is a dynamic shared object (DSO) for PHP that will add SysV
1701 Shared Memory support.
1703 %description sysvshm -l pl.UTF-8
1704 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1707 Summary: Contains unit test files for PHP and extensions
1708 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1710 URL: http://qa.php.net/
1711 Requires: %{name}-cli
1712 %if "%{_rpmversion}" >= "5"
1717 This package contains unit tests for PHP and its extensions.
1719 %description tests -l pl.UTF-8
1720 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1723 Summary: Tidy extension module for PHP
1724 Summary(pl.UTF-8): Moduł Tidy dla PHP
1726 URL: http://php.net/manual/en/book.tidy.php
1727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1730 Obsoletes: php-tidy < 4:5.3.28-7
1733 This is a dynamic shared object (DSO) for PHP that will add Tidy
1736 %description tidy -l pl.UTF-8
1737 Moduł PHP umożliwiający korzystanie z tidy.
1740 Summary: tokenizer extension module for PHP
1741 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1743 URL: http://php.net/manual/en/book.tokenizer.php
1744 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1745 Provides: php(tokenizer)
1746 Obsoletes: php-tokenizer < 4:5.3.28-7
1748 %description tokenizer
1749 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1752 %description tokenizer -l pl.UTF-8
1753 Moduł PHP dodający obsługę tokenizera do PHP.
1756 Summary: XML extension module for PHP
1757 Summary(pl.UTF-8): Moduł XML dla PHP
1759 URL: http://php.net/manual/en/book.xml.php
1760 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1762 Obsoletes: php-xml < 4:5.3.28-7
1765 This is a dynamic shared object (DSO) for PHP that will add XML
1766 support. This extension lets you create XML parsers and then define
1767 handlers for different XML events.
1769 %description xml -l pl.UTF-8
1770 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1771 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1772 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1775 Summary: XML Reader extension module for PHP
1776 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1778 URL: http://php.net/manual/en/book.xmlreader.php
1779 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1780 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1781 Provides: php(xmlreader)
1782 Obsoletes: php-xmlreader < 4:5.3.28-7
1784 %description xmlreader
1785 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1786 support. The XMLReader extension is an XML Pull parser. The reader
1787 acts as a cursor going forward on the document stream and stopping at
1788 each node on the way.
1790 %description xmlreader -l pl.UTF-8
1791 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1792 działa jako kursor przechodzący przez strumień dokumentu i
1793 zatrzymujący się na każdym węźle po drodze.
1796 Summary: xmlrpc extension module for PHP
1797 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1799 URL: http://php.net/manual/en/book.xmlrpc.php
1800 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1801 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1802 Provides: php(xmlrpc)
1803 Obsoletes: php-xmlrpc < 4:5.3.28-7
1806 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1809 %description xmlrpc -l pl.UTF-8
1810 Moduł PHP dodający obsługę XMLRPC.
1813 Summary: Fast, non-cached, forward-only means to write XML data
1814 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1816 URL: http://php.net/manual/en/book.xmlwriter.php
1817 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1818 Provides: php(xmlwriter)
1819 Obsoletes: php-pecl-xmlwriter
1820 Obsoletes: php-xmlwriter < 4:5.3.28-7
1822 %description xmlwriter
1823 This extension wraps the libxml xmlWriter API. Represents a writer
1824 that provides a non-cached, forward-only means of generating streams
1825 or files containing XML data.
1827 %description xmlwriter -l pl.UTF-8
1828 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1829 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1830 plików zawierających dane XML.
1833 Summary: xsl extension module for PHP
1834 Summary(pl.UTF-8): Moduł xsl dla PHP
1836 URL: http://php.net/manual/en/book.xsl.php
1837 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1838 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1839 Requires: libxslt >= 1.1.0
1841 Obsoletes: php-xsl < 4:5.3.28-7
1842 # actually not true, functionality is similar, but API differs
1843 Obsoletes: php-xslt <= 3:4.3.8-1
1846 This is a dynamic shared object (DSO) for PHP that will add new XSL
1847 support (using libxslt).
1849 %description xsl -l pl.UTF-8
1850 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1853 Summary: Zip management extension
1854 Summary(pl.UTF-8): Zarządzanie archiwami zip
1856 URL: http://php.net/manual/en/book.zip.php
1857 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1858 Requires: libzip >= 1.3.1
1859 Provides: php(zip) = %{zipver}
1860 Obsoletes: php-pecl-zip < %{zipver}
1861 Obsoletes: php-zip < 4:5.3.28-7
1864 Zip is an extension to create, modify and read zip files.
1866 %description zip -l pl.UTF-8
1867 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1868 odczyt archiwów zip.
1871 Summary: Zlib extension module for PHP
1872 Summary(pl.UTF-8): Moduł zlib dla PHP
1874 URL: http://php.net/manual/en/book.zlib.php
1875 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1877 Obsoletes: php-zlib < 4:5.3.28-7
1880 This is a dynamic shared object (DSO) for PHP that will add zlib
1881 compression support to PHP.
1883 %description zlib -l pl.UTF-8
1884 Moduł PHP umożliwiający używanie kompresji zlib.
1887 %setup -q -n %{orgname}-%{version}%{?subver}
1888 cp -p php.ini-production php.ini
1896 %{?with_milter:%patch8 -p1}
1918 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
1920 %patch59 -p1 -b .systzdata
1921 %if %{with instantclient}
1922 %patch60 -p1 -b .instantclient
1926 #%patch68 -p1 DROP or update to 7.0 APIs
1930 %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1932 # cleanup backups after patching
1933 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1935 # com_dotnet is Win32-only
1936 %{__rm} -r ext/com_dotnet
1938 # conflict seems to be resolved by recode patches
1939 %{__rm} ext/recode/config9.m4
1941 # remove all bundled libraries not to link with them accidentally
1942 #%{__rm} -r ext/bcmath/libbcmath
1943 #%{__rm} -r ext/date/lib
1944 #%{__rm} -r ext/fileinfo/libmagic
1945 #%{__rm} -r ext/dba/libcdb
1946 #%{__rm} -r ext/dba/libflatfile
1947 #%{__rm} -r ext/dba/libinifile
1948 #%{__rm} -r ext/gd/libgd
1949 #%{__rm} -r ext/mbstring/libmbfl
1950 #%{__rm} -r ext/pcre/pcre2lib
1951 #%{__rm} -r ext/soap/interop
1952 %{__rm} -r ext/xmlrpc/libxmlrpc
1953 #%{__rm} -r ext/zip/lib
1954 %{__rm} ext/date/lib/timezonedb.h
1956 cp -pf Zend/LICENSE{,.Zend}
1957 install -p %{SOURCE13} dep-tests.sh
1960 sed -i -e 's#-fvisibility=hidden##g' configure*
1962 # disable broken tests
1963 # says just "Terminated" twice and fails
1964 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1966 # really dumb test, executable binary name is .libs/ something when building
1967 # https://bugs.php.net/bug.php?id=54514
1968 %{__mv} tests/basic/bug54514.phpt{,.disable}
1970 # breaks whole testsuite unexpectedly:
1971 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1972 # probably broken as zlib is built as shared
1973 %{__mv} ext/soap/tests/server019.phpt{,disable}
1974 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1975 %{__mv} ext/soap/tests/server020.phpt{,disable}
1977 # runs out of memory and kills carme vserver
1978 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1979 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1981 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1982 %{__rm} ext/standard/tests/file/statpage.phpt
1984 # idiotic test, it will fail if somebody else makes space on disk or if disk
1985 # space is not yet allocated (xfs). report upstream to advice bogus test is
1986 # probably pointless.
1987 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1990 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1991 %{__rm} -r ext/pdo_sqlite/tests
1992 %{__rm} -r ext/sqlite3/tests
1995 # ----- Manage known as failed test -------
1996 # affected by systzdata patch
1997 %{__rm} ext/date/tests/timezone_location_get.phpt
1998 %{__rm} ext/date/tests/timezone_version_get.phpt
1999 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2000 # Should be skipped but fails sometime
2001 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2003 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2004 # causes stack exhausion
2005 %{__rm} Zend/tests/bug54268.phpt
2006 %{__rm} Zend/tests/bug68412.phpt
2008 # avoid issues when two builds run simultaneously
2010 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2014 # no point testing stuff that is knowingly broken
2015 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
2027 sh -xe %{_sourcedir}/skip-tests.sh
2031 local define="$1" filename="$2"
2032 awk -vdefine="$define" '/#define/ && $2 == define {print $3}' "$filename" | xargs
2035 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2036 if [ $API != %{php_api_version} ]; then
2037 echo "Set %%define php_api_version to $API and re-run."
2041 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2042 if [ $API != %{zend_module_api} ]; then
2043 echo "Set %%define zend_module_api to $API and re-run."
2047 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2048 if [ $API != %{zend_extension_api} ]; then
2049 echo "Set %%define zend_extension_api to $API and re-run."
2053 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2054 if [ $API != %{php_pdo_api_version} ]; then
2055 echo "Set %%define php_pdo_api_version to $API and re-run."
2059 # Check for some extension version
2060 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
2061 if test "$ver" != "PHP_VERSION"; then
2062 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2063 : Update the fileinfover macro and rebuild.
2066 ver=$(get_version PHP_PHAR_VERSION ext/phar/php_phar.h)
2067 if test "$ver" != "PHP_VERSION"; then
2068 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2069 : Update the pharver macro and rebuild.
2072 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
2073 if test "$ver" != "PHP_VERSION"; then
2074 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2075 : Update the sqlite3ver macro and rebuild.
2078 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
2079 if test "$ver" != "PHP_VERSION"; then
2082 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2083 if test "$ver" != "%{zipver}"; then
2084 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2085 : Update the zipver macro and rebuild.
2088 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2089 if test "$ver" != "%{jsonver}"; then
2090 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2091 : Update the jsonver macro and rebuild.
2094 ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
2095 if test "$ver" != "PHP_VERSION"; then
2096 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2097 : Update the phpdbgver macro and rebuild.
2100 ver=$(get_version PHP_BZ2_VERSION ext/bz2/php_bz2.h)
2101 if test "$ver" != "PHP_VERSION"; then
2102 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2103 : Update the bz2ver macro and rebuild.
2106 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
2107 if test "$ver" != "PHP_VERSION"; then
2110 ver=$(get_version PHP_HASH_VERSION ext/hash/php_hash.h)
2111 if test "$ver" != "PHP_VERSION"; then
2112 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2113 : Update the hashver macro and rebuild.
2116 ver=$(get_version PHP_INTL_VERSION ext/intl/php_intl.h)
2117 if test "$ver" != "PHP_VERSION"; then
2118 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2119 : Update the intlver macro and rebuild.
2123 export EXTENSION_DIR="%{php_extensiondir}"
2125 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2126 # includes the PEAR directory even though pear is packaged separately.
2127 export PEAR_INSTALLDIR=%{php_pear_dir}
2129 # configure once (for faster debugging purposes)
2130 if [ ! -f _built-conf ]; then
2131 # now remove Makefile copies
2132 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
2134 # Force use of system libtool:
2135 mv build/libtool.m4 build/libtool.m4.saved
2136 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2140 cp -f /usr/share/automake/config.* .
2144 export PROG_SENDMAIL="/usr/lib/sendmail"
2145 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2146 -I%{_includedir}/xmlrpc-epi"
2148 # This should be detected by configure and set there,
2149 # but looks like the build system is hosed on 7.3
2150 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2151 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2154 # icu 59+ C++ API requires C++ >= 11
2155 CXXFLAGS="$CXXFLAGS -std=c++11"
2163 %if %{with litespeed}
2182 for sapi in $sapis; do
2184 # skip if already configured (for faster debugging purposes)
2185 [ -f Makefile.$sapi ] && continue
2190 sapi_args='--enable-cgi'
2193 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
2196 sapi_args='--enable-fpm'
2199 sapi_args='--enable-embed'
2202 ver=$(rpm -q --qf '%{V}' apache-devel)
2203 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
2206 sapi_args='--enable-litespeed'
2209 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2212 sapi_args='--with-milter'
2217 EXTRA_LDFLAGS="%{rpmldflags}" \
2222 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2223 --cache-file=config.cache \
2225 --with-libdir=%{_lib} \
2226 --with-config-file-path=%{_sysconfdir} \
2227 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2228 --with-system-tzdata \
2229 %{?with_argon2:--with-password-argon2} \
2230 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2231 %{?with_zts:--enable-maintainer-zts} \
2232 --enable-inline-optimization \
2233 %{__enable_disable bcmath bcmath shared} \
2234 %{__enable_disable calendar calendar shared} \
2235 %{__enable_disable ctype ctype shared} \
2236 %{__enable_disable dba dba shared} \
2237 %{__enable_disable dom dom shared} \
2238 %{?with_systemtap:--enable-dtrace} \
2239 %{__enable_disable exif exif shared} \
2240 %{__enable_disable fileinfo fileinfo shared} \
2241 %{__enable_disable ftp ftp shared} \
2242 %{?with_intl:--enable-intl=shared} \
2244 %{__enable_disable mbstring mbstring shared,all} \
2246 %{__enable_disable pcntl pcntl shared} \
2247 %{__enable_disable pdo pdo shared} \
2248 %{__enable_disable json json shared} \
2249 --enable-xmlwriter=shared \
2251 --with-fpm-user=http \
2252 --with-fpm-group=http \
2254 %if %{with pdo_dblib}
2255 --with-pdo-dblib=shared \
2257 %if %{with pdo_firebird}
2258 --with-pdo-firebird=shared \
2260 %{?with_mhash:--with-mhash=yes} \
2261 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2262 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2263 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2264 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2265 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2266 %{?with_pdo_sqlite:--with-pdo-sqlite=shared} \
2267 %{?with_webp:--with-webp} \
2268 %{__enable_disable posix posix shared} \
2270 %{__enable_disable session session shared} \
2271 --enable-shmop=shared \
2272 --enable-simplexml=shared \
2273 --enable-sysvmsg=shared \
2274 --enable-sysvsem=shared \
2275 --enable-sysvshm=shared \
2276 --enable-soap=shared \
2277 --enable-sockets=shared \
2278 %{__with_without sodium sodium shared} \
2279 --enable-tokenizer=shared \
2280 --enable-xml=shared \
2281 --enable-xmlreader=shared \
2282 %{__with_without bz2 bz2 shared} \
2283 %{__with_without curl curl shared} \
2285 %{__with_without iconv iconv shared} \
2286 %{?with_enchant:--with-enchant=shared} \
2288 %{__with_without gettext gettext shared} \
2289 %{__enable_disable gd gd shared} \
2290 %{?with_system_gd:--with-external-gd} \
2292 %{__with_without gmp gmp shared} \
2293 %{__with_without ffi ffi shared} \
2294 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2296 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2297 %{?with_mm:--with-mm} \
2298 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2299 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2300 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2301 %{__enable_disable opcache opcache shared} \
2302 %{?with_openssl:--with-openssl=shared} \
2303 %{?with_kerberos5:--with-kerberos} \
2305 %{?with_pcre:--with-external-pcre} \
2306 %{__enable_disable filter filter shared} \
2307 %{__with_without pgsql pgsql shared} \
2308 %{__enable_disable phar phar shared} \
2309 %{?with_pspell:--with-pspell=shared} \
2310 %{__with_without readline readline shared} \
2311 %{?with_recode:--with-recode=shared} \
2312 %{?with_snmp:--with-snmp=shared} \
2313 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2314 %{__with_without sqlite3 sqlite3 shared} \
2315 %{?with_tidy:--with-tidy=shared} \
2316 %{?with_odbc:--with-unixODBC=shared} \
2317 %{__with_without xmlrpc xmlrpc shared,/usr} \
2318 %{?with_xsl:--with-xsl=shared} \
2319 --with-zlib=shared \
2320 %{?with_zip:--with-zip=shared} \
2323 cp -f Makefile Makefile.$sapi
2324 cp -f main/php_config.h php_config.h.$sapi
2325 cp -f config.log config.log.$sapi
2328 # as we build each SAPI in own make, adjust php-config.in forehead
2329 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2330 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2332 # must make libphp_common first, so modules can link against it.
2333 cp -af php_config.h.cli main/php_config.h
2334 cp -af Makefile.cli Makefile
2335 %{__make} libphp_common.la
2336 # hack: MYSQLND_SHARED_LIBADD not initialized
2337 %{__make} build-modules \
2338 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2341 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
2344 %if %{with litespeed}
2345 %{__make} -f Makefile.litespeed litespeed
2349 %{__make} -f Makefile.embed libphp7.la
2353 # PHP_READLINE_LIBS is empty, so force readline here
2354 %{__make} -f Makefile.phpdbg phpdbg \
2355 PHPDBG_EXTRA_LIBS=-lreadline
2359 %{__make} -f Makefile.milter milter
2364 cp -pf php_config.h.cgi-fcgi main/php_config.h
2365 %{__make} -f Makefile.cgi-fcgi
2366 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2371 cp -pf php_config.h.fpm main/php_config.h
2372 %{__make} -f Makefile.fpm
2373 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2377 cp -pf php_config.h.cli main/php_config.h
2378 %{__make} -f Makefile.cli
2379 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2381 # check for stupid xml parse breakage where < and > just get lost in parse result
2382 ./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"]));'
2384 # Generate stub .ini files for each extension
2387 generate_inifiles() {
2388 for so in modules/*.so; do
2389 mod=$(basename $so .so)
2391 # opcache.so is zend extension
2392 nm $so | grep -q zend_extension_entry && ext=zend_extension
2394 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2395 [ "$mod" = "session" ] && conf="Session.ini"
2396 # mysqlnd needs to be loaded before mysqli,pdo_mysqli
2397 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2399 cat > conf.d/$conf <<-EOF
2400 ; Enable $mod $ext module
2406 cp -p %{_sourcedir}/opcache.ini conf.d
2408 # Check that the module inner-dependencies are intact
2409 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2410 if grep -v OK dep-tests.log; then
2411 echo >&2 "The results above were not expected"
2417 cp -pf php_config.h.cli main/php_config.h
2418 cp -pf Makefile.cli Makefile
2420 # you really don't want to package result of gcov build
2424 cat <<'EOF' > run-tests.sh
2426 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2427 export SKIP_ONLINE_TESTS=1
2428 unset TZ LANG LC_ALL || :
2430 EXTENSION_DIR=modules \
2431 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2432 RUN_TESTS_SETTINGS="-q $*"
2434 chmod +x run-tests.sh
2437 # Run tests, using the CLI SAPI
2438 cp -pf php_config.h.cli main/php_config.h
2439 cp -pf Makefile.cli Makefile
2441 ./run-tests.sh -w failed.log -s tests.log || {
2444 # collect failed tests into cleanup script used in prep.
2445 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2446 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2447 >> %{_sourcedir}/skip-tests.sh
2449 # if on builders, dump test log
2450 tty -q || cat tests.log
2452 test ! -s failed.log
2458 rm -rf $RPM_BUILD_ROOT
2459 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2460 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2461 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2462 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2464 cp -pf php_config.h.cli main/php_config.h
2465 cp -pf Makefile.cli Makefile
2467 phpbuilddir=%{_libdir}/%{name}/build \
2468 INSTALL_ROOT=$RPM_BUILD_ROOT
2470 %if %{without default_php}
2471 # version the .phar files
2472 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2473 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2475 %if %{with alternatives}
2477 %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2478 touch $RPM_BUILD_ROOT%{_bindir}/phar
2479 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2483 v=$(echo %{version} | cut -d. -f1-2)
2485 # install Apache2 DSO module
2487 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
2488 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so
2489 ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2492 # install litespeed sapi
2493 %if %{with litespeed}
2494 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2498 %{__make} -f Makefile.phpdbg install-phpdbg \
2499 INSTALL="libtool --mode=install install -p" \
2500 INSTALL_ROOT=$RPM_BUILD_ROOT
2502 %if %{without default_php}
2503 # version the phpdbg files
2504 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2505 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2510 %{__make} -f Makefile.milter install-milter \
2511 INSTALL_ROOT=$RPM_BUILD_ROOT
2514 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2519 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2520 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2521 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2526 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2527 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2528 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2529 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2530 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2531 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2532 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2533 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2534 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2535 %if "%{pld_release}" == "ac"
2536 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2539 %if %{with alternatives}
2540 # touch for ghost for alternatives
2541 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2545 s#/usr/lib/php#%{php_extensiondir}#
2546 s#/etc/php/#%{_sysconfdir}/#
2547 s#@processname@#%{name}-fpm#g
2548 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2551 # install Embedded API
2553 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2554 # install-sapi installs to wrong dir, so just do it all manually
2555 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2556 install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}
2557 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2561 # versioned suffix is always installed
2562 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2563 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2564 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2565 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2567 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2568 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2571 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2572 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2573 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la
2576 # ensure that paths are correct for current php version and arch
2577 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2579 s#/usr/lib/php#%{php_extensiondir}#
2580 s#/etc/php#%{_sysconfdir}#
2583 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2584 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2586 # per SAPI ini directories
2587 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2590 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2592 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2594 # for php-pecl-mailparse
2595 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2596 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2599 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2600 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2601 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2603 # fix install paths, avoid evil rpaths
2604 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2606 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2609 rm -rf $RPM_BUILD_ROOT
2611 %post -n apache-mod_%{name}
2612 if [ "$1" = "1" ]; then
2613 %service -q httpd restart
2616 %postun -n apache-mod_%{name}
2617 if [ "$1" = "0" ]; then
2618 %service -q httpd restart
2622 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2625 /sbin/chkconfig --add %{name}-fpm
2626 %service %{name}-fpm restart
2627 %if %{with alternatives}
2628 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
2632 if [ "$1" = "0" ]; then
2633 %service %{name}-fpm stop
2634 /sbin/chkconfig --del %{name}-fpm
2635 %if %{with alternatives}
2636 update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
2641 if [ "$1" = "0" ]; then
2645 %post embedded -p /sbin/ldconfig
2646 %postun embedded -p /sbin/ldconfig
2649 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2650 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2652 . /etc/sysconfig/timezone
2653 if [ "$TIMEZONE" ]; then
2654 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2658 # minimizing apache restarts logics. we restart webserver:
2660 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2661 # 2. first install of extension (post: $1 = 1)
2662 # 2. uninstall of extension (postun: $1 == 0)
2664 # the strict internal deps between extensions (and apache modules) and
2665 # common package are very important for all this to work.
2667 # restart webserver at the end of transaction
2668 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2669 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2671 %triggerpostun common -- php-common < 4:5.3.28-7
2672 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2673 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2674 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2675 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2676 test -f "$f" || continue
2680 test "$dn" = "$fn" && dn=
2682 nf=%{_sysconfdir}/$dn/$fn
2683 test -f "$nf" || continue
2684 cp -vfb $nf{,.rpmnew}
2687 s#%{_libdir}/php#%{_libdir}/%{name}#
2688 s#/etc/php#%{_sysconfdir}#
2692 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2693 # switch to browscap package if the ini file has original value
2694 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2695 # disable browscap, if optional package not present
2696 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2697 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2700 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2701 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2703 # common macros called at extension post/postun scriptlet
2705 if [ "$1" = "1" ]; then \
2706 %php_webserver_restart \
2710 %define ext_postun \
2711 if [ "$1" = "0" ]; then \
2712 %php_webserver_restart \
2716 %define extension_scripts() \
2724 # extension scripts defines
2725 %extension_scripts bcmath
2726 %extension_scripts bz2
2727 %extension_scripts calendar
2728 %extension_scripts ctype
2729 %extension_scripts curl
2730 %extension_scripts dba
2731 %extension_scripts dom
2732 %extension_scripts enchant
2733 %extension_scripts exif
2734 %extension_scripts ffi
2735 %extension_scripts fileinfo
2736 %extension_scripts filter
2737 %extension_scripts ftp
2738 %extension_scripts gd
2739 %extension_scripts gettext
2740 %extension_scripts gmp
2741 %extension_scripts iconv
2742 %extension_scripts imap
2743 %extension_scripts intl
2744 %extension_scripts json
2745 %extension_scripts ldap
2746 %extension_scripts mbstring
2747 %extension_scripts mysqli
2748 %extension_scripts mysqlnd
2749 %extension_scripts oci8
2750 %extension_scripts odbc
2751 %extension_scripts opcache
2752 %extension_scripts openssl
2753 %extension_scripts pcntl
2754 %extension_scripts pdo
2755 %extension_scripts pdo-dblib
2756 %extension_scripts pdo-firebird
2757 %extension_scripts pdo-mysql
2758 %extension_scripts pdo-oci
2759 %extension_scripts pdo-odbc
2760 %extension_scripts pdo-pgsql
2761 %extension_scripts pdo-sqlite
2762 %extension_scripts pgsql
2763 %extension_scripts posix
2764 %extension_scripts pspell
2765 %extension_scripts recode
2766 %extension_scripts session
2767 %extension_scripts shmop
2768 %extension_scripts simplexml
2769 %extension_scripts snmp
2770 %extension_scripts soap
2771 %extension_scripts sockets
2772 %extension_scripts sodium
2773 %extension_scripts sqlite3
2774 %extension_scripts sysvmsg
2775 %extension_scripts sysvsem
2776 %extension_scripts sysvshm
2777 %extension_scripts tidy
2778 %extension_scripts tokenizer
2779 %extension_scripts xml
2780 %extension_scripts xmlreader
2781 %extension_scripts xmlrpc
2782 %extension_scripts xmlwriter
2783 %extension_scripts xsl
2784 %extension_scripts zip
2785 %extension_scripts zlib
2789 %if %{with alternatives}
2790 update-alternatives \
2791 --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
2792 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
2797 %if %{with alternatives}
2798 if [ $1 -eq 0 ]; then
2799 update-alternatives --remove phar %{_bindir}/phar || :
2804 %files -n apache-mod_%{name}
2805 %defattr(644,root,root,755)
2806 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2807 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2809 %files -n apache-mod_%{name}-core
2810 %defattr(644,root,root,755)
2811 %dir %{_sysconfdir}/apache2handler.d
2812 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2813 %attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so
2816 %if %{with litespeed}
2818 %defattr(644,root,root,755)
2819 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2824 %defattr(644,root,root,755)
2825 %dir %{_sysconfdir}/cgi-fcgi.d
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2827 %attr(755,root,root) %{_bindir}/%{name}.cgi
2828 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2833 %defattr(644,root,root,755)
2834 %attr(755,root,root) %{_libdir}/libphp7.so
2838 %defattr(644,root,root,755)
2839 %dir %{_sysconfdir}/cli.d
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2841 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
2842 %{_mandir}/man1/php%{ver_suffix}.1*
2845 %defattr(644,root,root,755)
2846 %attr(755,root,root) %{_bindir}/php
2847 %{_mandir}/man1/php.1*
2851 %defattr(644,root,root,755)
2852 %doc sapi/fpm/{CREDITS,LICENSE}
2853 %dir %{_sysconfdir}/php-fpm.d
2854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2856 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2857 %if %{with alternatives}
2858 %ghost %{_sbindir}/php-fpm
2860 %{_mandir}/man8/%{name}-fpm.8*
2861 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2862 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2867 %defattr(644,root,root,755)
2868 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2869 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2874 %defattr(644,root,root,755)
2875 %attr(755,root,root) %{_bindir}/php-milter
2879 %defattr(644,root,root,755)
2880 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2882 %dir %{_sysconfdir}/conf.d
2883 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2884 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2885 %dir %{php_extensiondir}
2887 %doc ext/session/mod_files.sh
2890 %defattr(644,root,root,755)
2891 %doc CODING_STANDARDS.md docs/*.md
2892 %attr(755,root,root) %{_bindir}/ext_skel.php
2893 %attr(755,root,root) %{_bindir}/php-config
2894 %attr(755,root,root) %{_bindir}/phpize
2895 %attr(755,root,root) %{_libdir}/libphp_common.so
2896 %{_libdir}/libphp_common.la
2898 %{_libdir}/%{name}/build
2899 %{_mandir}/man1/php-config.1*
2900 %{_mandir}/man1/phpize.1*
2904 %defattr(644,root,root,755)
2905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2906 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2911 %defattr(644,root,root,755)
2912 %doc ext/bz2/CREDITS
2913 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2914 %attr(755,root,root) %{php_extensiondir}/bz2.so
2917 %if %{with calendar}
2919 %defattr(644,root,root,755)
2920 %doc ext/calendar/CREDITS
2921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2922 %attr(755,root,root) %{php_extensiondir}/calendar.so
2927 %defattr(644,root,root,755)
2928 %doc ext/calendar/CREDITS
2929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2930 %attr(755,root,root) %{php_extensiondir}/ctype.so
2935 %defattr(644,root,root,755)
2936 %doc ext/curl/CREDITS
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2938 %attr(755,root,root) %{php_extensiondir}/curl.so
2943 %defattr(644,root,root,755)
2944 %doc ext/dba/CREDITS
2945 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2946 %attr(755,root,root) %{php_extensiondir}/dba.so
2951 %defattr(644,root,root,755)
2952 %doc ext/dom/CREDITS
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2954 %attr(755,root,root) %{php_extensiondir}/dom.so
2959 %defattr(644,root,root,755)
2960 %doc ext/enchant/CREDITS
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
2962 %attr(755,root,root) %{php_extensiondir}/enchant.so
2967 %defattr(644,root,root,755)
2968 %doc ext/exif/CREDITS
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2970 %attr(755,root,root) %{php_extensiondir}/exif.so
2975 %defattr(644,root,root,755)
2976 %doc ext/ffi/CREDITS
2977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ffi.ini
2978 %attr(755,root,root) %{php_extensiondir}/ffi.so
2981 %if %{with fileinfo}
2983 %defattr(644,root,root,755)
2984 %doc ext/fileinfo/CREDITS
2985 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2986 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2991 %defattr(644,root,root,755)
2992 %doc ext/filter/CREDITS
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2994 %attr(755,root,root) %{php_extensiondir}/filter.so
2999 %defattr(644,root,root,755)
3000 %doc ext/ftp/CREDITS
3001 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3002 %attr(755,root,root) %{php_extensiondir}/ftp.so
3007 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3010 %attr(755,root,root) %{php_extensiondir}/gd.so
3015 %defattr(644,root,root,755)
3016 %doc ext/gettext/CREDITS
3017 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3018 %attr(755,root,root) %{php_extensiondir}/gettext.so
3023 %defattr(644,root,root,755)
3024 %doc ext/gmp/CREDITS
3025 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3026 %attr(755,root,root) %{php_extensiondir}/gmp.so
3031 %defattr(644,root,root,755)
3032 %doc ext/iconv/CREDITS
3033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3034 %attr(755,root,root) %{php_extensiondir}/iconv.so
3039 %defattr(644,root,root,755)
3040 %doc ext/imap/CREDITS
3041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3042 %attr(755,root,root) %{php_extensiondir}/imap.so
3047 %defattr(644,root,root,755)
3048 %doc ext/intl/CREDITS
3049 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3050 %attr(755,root,root) %{php_extensiondir}/intl.so
3055 %defattr(644,root,root,755)
3056 %doc ext/json/CREDITS
3057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3058 %attr(755,root,root) %{php_extensiondir}/json.so
3063 %defattr(644,root,root,755)
3064 %doc ext/ldap/CREDITS
3065 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3066 %attr(755,root,root) %{php_extensiondir}/ldap.so
3069 %if %{with mbstring}
3071 %defattr(644,root,root,755)
3072 %doc ext/mbstring/CREDITS
3073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3074 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3079 %defattr(644,root,root,755)
3080 %doc ext/mysqli/CREDITS
3081 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3082 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3087 %defattr(644,root,root,755)
3088 %doc ext/mysqlnd/CREDITS
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3090 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3095 %defattr(644,root,root,755)
3096 %doc ext/oci8/{CREDITS,README}
3097 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3098 %attr(755,root,root) %{php_extensiondir}/oci8.so
3103 %defattr(644,root,root,755)
3104 %doc ext/odbc/CREDITS
3105 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3106 %attr(755,root,root) %{php_extensiondir}/odbc.so
3111 %defattr(644,root,root,755)
3112 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3113 %attr(755,root,root) %{php_extensiondir}/opcache.so
3118 %defattr(644,root,root,755)
3119 %doc ext/openssl/CREDITS
3120 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3121 %attr(755,root,root) %{php_extensiondir}/openssl.so
3126 %defattr(644,root,root,755)
3127 %doc ext/pcntl/CREDITS
3128 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3129 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3134 %defattr(644,root,root,755)
3135 %doc ext/pdo/CREDITS
3136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3137 %attr(755,root,root) %{php_extensiondir}/pdo.so
3140 %if %{with pdo_dblib}
3142 %defattr(644,root,root,755)
3143 %doc ext/pdo_dblib/CREDITS
3144 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3145 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3148 %if %{with pdo_firebird}
3150 %defattr(644,root,root,755)
3151 %doc ext/pdo_firebird/CREDITS
3152 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3153 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3156 %if %{with pdo_mysql}
3158 %defattr(644,root,root,755)
3159 %doc ext/pdo_mysql/CREDITS
3160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3161 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3166 %defattr(644,root,root,755)
3167 %doc ext/pdo_oci/CREDITS
3168 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3169 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3172 %if %{with pdo_odbc}
3174 %defattr(644,root,root,755)
3175 %doc ext/pdo_odbc/CREDITS
3176 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3177 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3180 %if %{with pdo_pgsql}
3182 %defattr(644,root,root,755)
3183 %doc ext/pdo_pgsql/CREDITS
3184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3185 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3188 %if %{with pdo_sqlite}
3190 %defattr(644,root,root,755)
3191 %doc ext/pdo_sqlite/CREDITS
3192 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3193 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3198 %defattr(644,root,root,755)
3199 %doc ext/pgsql/CREDITS
3200 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3201 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3206 %defattr(644,root,root,755)
3207 %doc ext/phar/CREDITS
3208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3209 %attr(755,root,root) %{php_extensiondir}/phar.so
3210 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3211 %{_mandir}/man1/phar%{php_suffix}.1*
3212 %{_mandir}/man1/phar.phar.1*
3213 %if %{with alternatives}
3214 %ghost %{_bindir}/phar
3215 %ghost %{_mandir}/man1/phar.1
3217 %attr(755,root,root) %{_bindir}/phar
3223 %defattr(644,root,root,755)
3224 %doc ext/posix/CREDITS
3225 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3226 %attr(755,root,root) %{php_extensiondir}/posix.so
3231 %defattr(644,root,root,755)
3232 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3233 %attr(755,root,root) %{php_extensiondir}/pspell.so
3236 %if %{with readline}
3238 %defattr(644,root,root,755)
3239 %doc ext/readline/CREDITS
3240 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3241 %attr(755,root,root) %{php_extensiondir}/readline.so
3246 %defattr(644,root,root,755)
3247 %doc ext/recode/CREDITS
3248 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3249 %attr(755,root,root) %{php_extensiondir}/recode.so
3254 %defattr(644,root,root,755)
3255 %doc ext/session/CREDITS
3256 %doc ext/session/mod_files.sh
3257 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3258 %attr(755,root,root) %{php_extensiondir}/session.so
3262 %defattr(644,root,root,755)
3263 %doc ext/shmop/CREDITS
3264 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3265 %attr(755,root,root) %{php_extensiondir}/shmop.so
3268 %defattr(644,root,root,755)
3269 %doc ext/simplexml/CREDITS
3270 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3271 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3275 %defattr(644,root,root,755)
3276 %doc ext/snmp/CREDITS
3277 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3278 %attr(755,root,root) %{php_extensiondir}/snmp.so
3282 %defattr(644,root,root,755)
3283 %doc ext/soap/CREDITS
3284 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3285 %attr(755,root,root) %{php_extensiondir}/soap.so
3288 %defattr(644,root,root,755)
3289 %doc ext/sockets/CREDITS
3290 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3291 %attr(755,root,root) %{php_extensiondir}/sockets.so
3295 %defattr(644,root,root,755)
3296 %doc ext/sodium/{README.md,CREDITS}
3297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sodium.ini
3298 %attr(755,root,root) %{php_extensiondir}/sodium.so
3303 %defattr(644,root,root,755)
3304 %doc ext/sqlite3/CREDITS
3305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3306 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3310 %defattr(644,root,root,755)
3311 %doc ext/sysvmsg/CREDITS
3312 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3313 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3316 %defattr(644,root,root,755)
3317 %doc ext/sysvsem/CREDITS
3318 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3319 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3322 %defattr(644,root,root,755)
3323 %doc ext/sysvshm/CREDITS
3324 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3325 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3328 %defattr(644,root,root,755)
3329 %dir %{php_data_dir}/tests
3330 %dir %{php_data_dir}/tests/php
3331 %{php_data_dir}/tests/php/basic
3332 %{php_data_dir}/tests/php/classes
3333 %{php_data_dir}/tests/php/func
3334 %{php_data_dir}/tests/php/lang
3335 %{php_data_dir}/tests/php/output
3336 %{php_data_dir}/tests/php/run-test
3337 %{php_data_dir}/tests/php/security
3338 %{php_data_dir}/tests/php/strings
3339 %{php_data_dir}/tests/php/quicktester.inc
3340 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3344 %defattr(644,root,root,755)
3345 %doc ext/tidy/CREDITS
3346 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3347 %attr(755,root,root) %{php_extensiondir}/tidy.so
3351 %defattr(644,root,root,755)
3352 %doc ext/tokenizer/CREDITS
3353 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3354 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3357 %defattr(644,root,root,755)
3358 %doc ext/xml/CREDITS
3359 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3360 %attr(755,root,root) %{php_extensiondir}/xml.so
3363 %defattr(644,root,root,755)
3364 %doc ext/xmlreader/CREDITS
3365 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3366 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3370 %defattr(644,root,root,755)
3371 %doc ext/xmlrpc/CREDITS
3372 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3373 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3377 %defattr(644,root,root,755)
3378 %doc ext/xmlwriter/CREDITS
3379 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3380 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3384 %defattr(644,root,root,755)
3385 %doc ext/xsl/CREDITS
3386 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3387 %attr(755,root,root) %{php_extensiondir}/xsl.so
3392 %defattr(644,root,root,755)
3393 %doc ext/zip/CREDITS
3394 %doc ext/zip/examples
3395 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3396 %attr(755,root,root) %{php_extensiondir}/zip.so
3400 %defattr(644,root,root,755)
3401 %doc ext/zlib/CREDITS
3402 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3403 %attr(755,root,root) %{php_extensiondir}/zlib.so