3 %bcond_without embed # disable building Embedded API
4 %bcond_with gcov # Enable Code coverage reporting
5 %bcond_without kerberos5 # without Kerberos5 support
6 %bcond_with systemtap # systemtap/DTrace support
7 %bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
8 %bcond_with zts # Zend Thread Safety
9 %bcond_with debug # Zend Debug Build
11 %bcond_without apache2 # disable building Apache 2.x SAPI
12 %bcond_without cgi # disable CGI/FCGI SAPI
13 %bcond_without fpm # disable FPM SAPI
14 %bcond_without litespeed # build litespeed SAPI
15 %bcond_without phpdbg # disable phpdbg SAPI
17 %bcond_without bcmath # without bcmath extension module
18 %bcond_without bz2 # without bz2 extension module
19 %bcond_without calendar # without calendar extension module
20 %bcond_without ctype # without ctype extension module
21 %bcond_without curl # without CURL extension module
22 %bcond_without dba # without DBA extension module
23 %bcond_without dom # without DOM extension module
24 %bcond_without enchant # without Enchant extension module
25 %bcond_without exif # without EXIF extension module
26 %bcond_without ffi # without FFI extension module
27 %bcond_without fileinfo # without fileinfo extension module
28 %bcond_without filter # without filter extension module
29 %bcond_without ftp # without FTP extension module
30 %bcond_without gd # without GD extension module
31 %bcond_without gettext # without gettext extension module
32 %bcond_without gmp # without gmp extension module
33 %bcond_without iconv # without iconv extension module
34 %bcond_without imap # without IMAP extension module
35 %bcond_without intl # without Intl extension module
36 %bcond_without json # without json extension module
37 %bcond_without ldap # without LDAP extension module
38 %bcond_without mbstring # without mbstring extension module
39 %bcond_without mhash # without mhash extension (supported by hash extension)
40 %bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
41 %bcond_without mysqlnd # without mysqlnd support in mysql related extensions
42 %bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
43 %bcond_without odbc # without ODBC extension module
44 %bcond_without opcache # without Enable Zend OPcache extension support
45 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
46 %bcond_without pcntl # without pcntl extension module
47 %bcond_without pcre_jit # PCRE JIT
48 %bcond_without pdo # without PDO extension module
49 %bcond_without pdo_dblib # without PDO dblib extension module
50 %bcond_without pdo_firebird # without PDO Firebird extension module
51 %bcond_without pdo_mysql # without PDO MySQL extension module
52 %bcond_without pdo_oci # without PDO oci extension module
53 %bcond_without pdo_odbc # without PDO ODBC extension module
54 %bcond_without pdo_pgsql # without PDO pgsql extension module
55 %bcond_without pdo_sqlite # without PDO SQLite extension module
56 %bcond_without pgsql # without PostgreSQL extension module
57 %bcond_without phar # without Phar extension module
58 %bcond_without posix # without POSIX extension module
59 %bcond_without pspell # without pspell extension module
60 %bcond_without readline # without readline extension module
61 %bcond_without session # without session extension module
62 %bcond_without snmp # without SNMP extension module
63 %bcond_without sodium # without sodium extension module
64 %bcond_without sqlite2 # without SQLite extension module
65 %bcond_without sqlite3 # without SQLite3 extension module
66 %bcond_without tidy # without Tidy extension module
67 %bcond_without xmlrpc # without XML-RPC extension module
68 %bcond_without xsl # without xsl extension module
69 %bcond_without zip # without zip extension module
71 %bcond_without argon2 # argon2 password hashing
72 %bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
73 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
74 %bcond_with mm # without mm support for session storage
75 %bcond_without system_gd # system gd
76 %bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
78 %define apxs2 /usr/sbin/apxs
82 %undefine with_apache2
84 %undefine with_litespeed
87 # mm is not thread safe
93 %undefine with_pdo_odbc
97 %undefine with_pdo_pgsql
101 %undefine with_pdo_oci
104 %ifnarch %{ix86} %{x8664} x32
105 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
110 %undefine with_pdo_dblib
111 %undefine with_pdo_firebird
112 %undefine with_pdo_mysql
113 %undefine with_pdo_oci
114 %undefine with_pdo_odbc
115 %undefine with_pdo_pgsql
116 %undefine with_pdo_sqlite
120 %define php_suffix 74
121 Summary: PHP: Hypertext Preprocessor
122 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
123 Summary(pl.UTF-8): Język skryptowy PHP
124 Summary(pt_BR.UTF-8): A linguagem de script PHP
125 Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере
126 Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
127 Name: %{orgname}%{php_suffix}
131 # All files licensed under PHP version 3.01, except
132 # Zend is licensed under Zend
133 # TSRM is licensed under BSD
134 License: PHP 3.01 and Zend and BSD
136 Source0: http://php.net/distributions/%{orgname}-%{version}.tar.xz
137 # Source0-md5: 6282f607a87c91b56ca14c3aacdba969
139 Source2: %{orgname}-mod_php.conf
140 Source3: %{orgname}-cgi-fcgi.ini
141 Source4: %{orgname}-apache.ini
142 Source5: %{orgname}-cli.ini
143 Source10: %{orgname}-fpm.init
144 Source11: %{orgname}-fpm.logrotate
145 Source12: %{orgname}-branch.sh
146 Source13: dep-tests.sh
147 Source14: skip-tests.sh
148 Patch0: %{orgname}-shared.patch
149 Patch1: %{orgname}-tld.patch
150 Patch3: %{orgname}-link-libs.patch
151 Patch4: intl-stdc++.patch
152 Patch7: %{orgname}-sapi-ini-file.patch
153 Patch9: libtool-tag.patch
154 Patch10: %{orgname}-ini.patch
156 Patch14: %{orgname}-no_pear_install.patch
157 Patch17: %{orgname}-readline.patch
158 Patch18: %{orgname}-nohttpd.patch
159 Patch21: %{orgname}-dba-link.patch
160 Patch22: %{orgname}-both-apxs.patch
161 Patch23: %{orgname}-paths.patch
162 Patch24: %{orgname}-zlib-for-getimagesize.patch
163 Patch25: %{orgname}-stupidapache_version.patch
164 Patch27: %{orgname}-config-dir.patch
165 Patch29: %{orgname}-fcgi-graceful.patch
166 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
167 Patch37: %{orgname}-mysqli-charsetphpini.patch
168 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
169 Patch39: %{orgname}-use-prog_sendmail.patch
170 Patch41: %{orgname}-fpm-config.patch
171 Patch43: %{orgname}-silent-session-cleanup.patch
172 Patch44: %{orgname}-include_path.patch
173 Patch50: extension-shared-optional-dep.patch
174 Patch53: fix-test-run.patch
175 Patch55: bug-52078-fileinode.patch
176 Patch59: %{orgname}-systzdata.patch
177 Patch66: php-db.patch
178 Patch67: mysql-lib-ver-mismatch.patch
179 Patch69: fpm-conf-split.patch
180 Patch71: libdb-info.patch
182 %{?with_firebird:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
183 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
184 BuildRequires: autoconf >= 2.59
185 BuildRequires: automake >= 1.4d
186 BuildRequires: bison >= 3.0.0
187 BuildRequires: bzip2-devel >= 1.0.0
188 %{?with_curl:BuildRequires: curl-devel >= 7.15.5}
189 BuildRequires: cyrus-sasl-devel >= 2
190 BuildRequires: db-devel >= 4.0
191 BuildRequires: elfutils-devel
192 %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
193 %{?with_kerberos5:BuildRequires: heimdal-devel}
194 %{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
195 %{?with_ffi:BuildRequires: libffi-devel}
196 %{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
197 %if %{with pdo_dblib}
198 BuildRequires: freetds-devel >= 0.82
200 BuildRequires: freetype-devel >= 1:2.5.1
201 %if %{with system_gd}
202 BuildRequires: gd-devel >= 2.1
204 BuildRequires: gdbm-devel
205 BuildRequires: gmp-devel >= 4.2
206 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
207 %{?with_gcov:BuildRequires: lcov}
208 %{?with_fpm:BuildRequires: libapparmor-devel}
209 %{?with_intl:BuildRequires: libicu-devel >= 50.1}
210 BuildRequires: libjpeg-devel
211 BuildRequires: libltdl-devel >= 1.4
212 BuildRequires: libpng-devel >= 1.0.8
213 %{?with_intl:BuildRequires: libstdc++-devel}
214 BuildRequires: libtool >= 2:2.4.6
215 %{?with_webp:BuildRequires: libwebp-devel}
216 BuildRequires: libxml2-devel >= 1:2.7.6-4
217 %{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
218 %{?with_zip:BuildRequires: libzip-devel >= 1.3.1}
219 %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
220 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
221 %{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
222 %{!?with_pdo_mysql:BuildRequires: mysql-devel}
223 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
224 BuildRequires: oniguruma-devel
225 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
226 %if %{with openssl} || %{with ldap}
227 BuildRequires: openssl-devel >= 1.0.1
229 %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
230 BuildRequires: pam-devel
231 BuildRequires: pcre2-8-devel >= 10.30
232 BuildRequires: pkgconfig
233 %{?with_pgsql:BuildRequires: postgresql-devel}
234 BuildRequires: readline-devel
235 BuildRequires: rpm >= 4.4.9-56
236 BuildRequires: rpm-build >= 4.4.0
237 BuildRequires: rpmbuild(macros) >= 1.566
238 BuildRequires: sed >= 4.0
239 %if %{with sqlite3} || %{with pdo_sqlite}
240 BuildRequires: sqlite3-devel >= 3.7.4
242 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
243 BuildRequires: tar >= 1:1.22
244 %{?with_tidy:BuildRequires: tidy-devel}
245 BuildRequires: tokyocabinet-devel
246 %{?with_odbc:BuildRequires: unixODBC-devel}
247 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
249 BuildRequires: zlib-devel >= 1.2.0.4
251 BuildRequires: apache-devel >= 2.0.52-2
252 BuildRequires: apr-devel >= 1:1.0.0
253 BuildRequires: apr-util-devel >= 1:1.0.0
255 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
257 %define php_sysconfdir /etc/%{name}
258 %define php_extensiondir %{_libdir}/%{name}
259 %define php_datadir /usr/share/php/%{name}
260 %define _sysconfdir %{php_sysconfdir}
262 # must be in sync with source. extra check ensuring that it is so is done in %%build
263 %define php_api_version 20190902
264 %define zend_module_api 20190902
265 %define zend_extension_api 320190902
266 %define php_pdo_api_version 20170320
269 %define bz2ver %{version}
270 %define enchantver %{version}
271 %define fileinfover %{version}
272 %define hashver %{version}
273 %define intlver %{version}
274 %define jsonver %{version}
275 %define pharver %{version}
276 %define sqlite3ver %{version}
277 %define zipver 1.15.5
278 %define phpdbgver %{version}
279 %define sodiumver %{version}
281 %define _zend_zts %{!?with_zts:0}%{?with_zts:1}
282 %define php_debug %{!?with_debug:0}%{?with_debug:1}
285 %undefine with_ccache
289 # ORACLE_HOME is required for oci8 ext to build
290 %define _preserve_env %_preserve_env_base ORACLE_HOME
294 PHP is an HTML-embedded scripting language. PHP attempts to make it
295 easy for developers to write dynamically generated web pages. PHP also
296 offers built-in database integration for several commercial and
297 non-commercial database management systems, so writing a
298 database-enabled web page with PHP is fairly simple. The most common
299 use of PHP coding is probably as a replacement for CGI scripts. The
300 mod_php module enables the Apache web server to understand and process
301 the embedded PHP language in web pages. This package contains PHP
304 %description -l fr.UTF-8
305 PHP est un langage de script embarque dans le HTM. PHP essaye de
306 rendre simple aux developpeurs d'ecrire des pages web generees
307 dynamiquement. PHP incorpore egalement une integration avec plusieurs
308 systemes de gestion de bases de donnees commerciaux et
309 non-connerciaux, qui rent facile la creation de pages web liees avec
310 des bases de donnees. L'utilisation la plus commune de PHP est
311 probablement en remplacement de scripts CGI. Le module mod_php permet
312 au serveur web Apache de comprendre et de traiter le langage PHP
313 integre dans des pages web. Ce package contient PHP version
316 %description -l pl.UTF-8
317 PHP jest językiem skryptowym, którego polecenia umieszcza się w
318 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
319 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
320 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
321 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
322 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
323 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
324 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
327 %description -l pt_BR.UTF-8
328 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
329 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
330 com algumas características únicas, específicas ao PHP. O objetivo da
331 linguagem é permitir que desenvolvedores web escrevam páginas
332 dinamicamente geradas de forma rápida.
334 %description -l ru.UTF-8
335 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
336 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
337 для работы с базами данных относительно просто. Наиболее популярное
338 использование PHP - замена для CGI скриптов.
340 %description -l uk.UTF-8
341 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
342 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
343 роботи з базами даних є доволі простим. Найбільш популярне
344 використання PHP - заміна для CGI скриптів.
346 %package -n apache-mod_%{name}
347 Summary: PHP support for Apache 2.x
348 Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
349 Group: Development/Languages/PHP
350 Requires: %{name}-common = %{epoch}:%{version}-%{release}
351 Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
352 Provides: webserver(php) = %{version}
353 Obsoletes: apache-mod_php < 4:5.3.28-7
356 %description -n apache-mod_%{name}
357 PHP support for Apache 2.x.
359 %description -n apache-mod_%{name} -l pl.UTF-8
360 Wsparcie PHP dla Apache 2.x.
362 %package -n apache-mod_%{name}-core
363 Summary: PHP DSO module for Apache 2.x
364 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
365 Group: Development/Languages/PHP
366 Requires: %{name}-common = %{epoch}:%{version}-%{release}
367 Requires: apache(modules-api) = %{apache_modules_api}
368 Requires: apache-mod_mime
370 %description -n apache-mod_%{name}-core
371 PHP as DSO module for Apache 2.x.
373 %description -n apache-mod_%{name}-core -l pl.UTF-8
374 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
377 Summary: PHP for litespeed HTTP server
378 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
379 Group: Development/Languages/PHP
380 Requires: %{name}-common = %{epoch}:%{version}-%{release}
381 Provides: php(litespeed)
382 Provides: webserver(php) = %{version}
383 Obsoletes: php-litespeed < 4:5.3.28-7
385 %description litespeed
386 PHP for litespeed HTTP server.
388 %description litespeed -l pl.UTF-8
389 PHP dla serwera HTTP litespeed.
392 Summary: PHP as CGI/FastCGI program
393 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
394 Group: Development/Languages/PHP
395 Requires: %{name}-common = %{epoch}:%{version}-%{release}
396 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
399 Provides: webserver(php) = %{version}
400 Obsoletes: php-cgi < 4:5.3.28-7
401 Obsoletes: php-fcgi < 4:5.3.0
404 PHP as CGI or FastCGI program.
406 %description cgi -l pl.UTF-8
407 PHP jako program CGI lub FastCGI.
410 Summary: PHP as CLI interpreter
411 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
412 Group: Development/Languages/PHP
413 Requires: %{name}-common = %{epoch}:%{version}-%{release}
414 Requires: alternatives
415 Obsoletes: php-cli < 4:5.3.28-7
418 PHP as CLI interpreter.
420 %description cli -l pl.UTF-8
421 PHP jako interpreter działający z linii poleceń.
424 Summary: PHP library for embedding in applications
425 Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
427 Requires: %{name}-common = %{epoch}:%{version}-%{release}
428 Obsoletes: php-embedded < 4:5.3.28-7
430 %description embedded
431 The php-embedded package contains a library which can be embedded into
432 applications to provide PHP scripting language support.
434 %description embedded -l pl.UTF-8
435 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
436 celu obsługi PHP jako języka skryptowego.
439 Summary: PHP FastCGI Process Manager
440 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
441 Group: Development/Languages/PHP
442 URL: http://php-fpm.org/
443 Requires(post,preun): /sbin/chkconfig
444 Requires(postun): /usr/sbin/userdel
445 Requires(pre): /bin/id
446 Requires(pre): /usr/sbin/useradd
447 Requires: %{name}-common = %{epoch}:%{version}-%{release}
448 Requires: alternatives
449 Requires: php-dirs >= 1.4-2
454 Provides: webserver(php) = %{version}
455 Obsoletes: php-fpm < 4:5.3.28-7
456 Conflicts: logrotate < 3.8.0
459 PHP FastCGI Process Manager.
461 %description fpm -l pl.UTF-8
462 PHP FastCGI Process Manager - zarządca procesów FastCGI.
465 Summary: The debugging platform for PHP 5.4+
466 Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
467 Group: Development/Languages/PHP
468 Requires: %{name}-common = %{epoch}:%{version}-%{release}
469 Provides: php(phpdbg) = %{phpdbgver}
472 phpdbg - The interactive PHP debugger.
474 Implemented as a SAPI module, phpdbg can excert complete control over
475 the environment without impacting the functionality or performance of
478 phpdbg aims to be a lightweight, powerful, easy to use debugging
479 platform for PHP 5.4+
481 %description phpdbg -l pl.UTF-8
482 phpdbg - interaktywny debugger dla PHP.
484 Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
485 nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
487 Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
488 platforma diagnostyczna dla PHP 5.4+.
491 Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
492 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
493 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
494 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
496 Requires(post): sed >= 4.0
497 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
498 Requires: glibc >= 6:2.3.5
499 Requires: php-dirs >= 1.4
500 Requires: rpm-whiteout >= 1.28
502 Requires: zlib >= 1.2.0.4
503 Provides: %{name}(debug) = %{php_debug}
504 Provides: %{name}(modules_api) = %{php_api_version}
505 Provides: %{name}(thread-safety) = %{_zend_zts}
506 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
507 Provides: %{name}(zend_module_api) = %{zend_module_api}
508 Provides: %{name}-core
509 Provides: %{name}-date
510 Provides: %{name}-hash = %{epoch}:%{version}-%{release}
511 Provides: %{name}-pcre = %{epoch}:%{version}-%{release}
512 Provides: %{name}-reflection
513 Provides: %{name}-spl = %{epoch}:%{version}-%{release}
514 Provides: %{name}-standard
515 Provides: php(core) = %{version}
517 Provides: php(hash) = %{hashver}
518 Provides: php(libxml)
520 Provides: php(reflection)
522 Provides: php(standard)
523 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
524 %requires_ge_to pcre2-8 pcre2-8-devel
526 Obsoletes: php-common < 4:5.3.28-7
527 Obsoletes: php-filepro < 4:5.2.0
528 Obsoletes: php-hash < 4:5.3.28-7
529 Obsoletes: php-hwapi < 4:5.2.0
530 Obsoletes: php-hyperwave < 3:5.0.0
531 Obsoletes: php-java < 3:5.0.0
532 Obsoletes: php-mcal < 3:5.0.0
533 Obsoletes: php-pcre < 4:5.3.28-7
534 Obsoletes: php-pecl-domxml
535 Obsoletes: php-pecl-hash < %{hashver}
536 Obsoletes: php-qtdom < 3:5.0.0
537 Obsoletes: php-spl < 4:5.3.28-7
538 Conflicts: php4-common < 3:4.4.4-8
539 Conflicts: php55-common < 4:5.5.10-4
540 Conflicts: rpm < 4.4.2-0.2
543 Provides: php-mhash = %{epoch}:%{version}-%{release}
544 Obsoletes: php-mhash < 4:5.3.0
548 Common files needed by both Apache modules and CGI/CLI SAPIs.
550 %description common -l pl.UTF-8
551 Wspólne pliki dla modułu Apache'a i programu CGI.
553 %description common -l ru.UTF-8
554 Этот пакет содержит общие файлы для разных вариантов реализации PHP
555 (самодостаточной и в качестве модуля Apache).
557 %description common -l uk.UTF-8
558 Цей пакет містить спільні файли для різних варіантів реалізації PHP
559 (самодостатньої та в якості модуля Apache).
562 Summary: Files for PHP modules development
563 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
564 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
565 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
566 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
567 Group: Development/Languages/PHP
568 Requires: %{name}-common = %{epoch}:%{version}-%{release}
569 Requires: autoconf >= 2.59
570 Requires: automake >= 1.4d
571 Requires: libtool >= 2:2.4.6
572 Requires: pcre2-8-devel >= 10.30
574 Provides: php-devel = %{epoch}:%{version}-%{release}
576 Obsoletes: php-pear-devel
577 Obsoletes: php4-devel
578 Obsoletes: php52-devel
579 Obsoletes: php53-devel
580 Obsoletes: php54-devel
581 Obsoletes: php55-devel
582 Obsoletes: php56-devel
585 The php-devel package lets you compile dynamic extensions to PHP.
586 Included here is the source for the PHP extensions. Instead of
587 recompiling the whole PHP binary to add support for, say, oracle,
588 install this package and use the new self-contained extensions
589 support. For more information, read the file
590 README.SELF-CONTAINED-EXTENSIONS.
592 %description devel -l pl.UTF-8
593 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
594 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
595 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
596 samodzielnych rozszerzeniach można znaleźć w pliku
597 README.SELF-CONTAINED-EXTENSIONS.
599 %description devel -l pt_BR.UTF-8
600 Este pacote contém arquivos usados no desenvolvimento de programas ou
603 %description devel -l ru.UTF-8
604 Пакет php-devel дает возможность компилировать динамические расширения
605 PHP. Пакет включает исходный код этих расширений. Вместо повторной
606 компиляции бинарного файла PHP для добавления, например, поддержки
607 oracle, установите этот пакет для компилирования отдельных расширений.
608 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
610 %description devel -l uk.UTF-8
611 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
612 До пакету включено вихідний код для розширень. Замість повторної
613 компіляції бінарного файлу PHP для додання, наприклад, підтримки
614 oracle, встановіть цей пакет для компіляції окремих розширень.
615 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
618 Summary: bcmath extension module for PHP
619 Summary(pl.UTF-8): Moduł bcmath dla PHP
621 URL: http://php.net/manual/en/book.bc.php
622 Requires: %{name}-common = %{epoch}:%{version}-%{release}
623 Provides: php(bcmath)
624 Obsoletes: php-bcmath < 4:5.3.28-7
627 This is a dynamic shared object (DSO) for PHP that will add bc style
628 precision math functions support.
630 %description bcmath -l pl.UTF-8
631 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
632 matematycznych takich jak w programie bc.
635 Summary: Bzip2 extension module for PHP
636 Summary(pl.UTF-8): Moduł bzip2 dla PHP
638 URL: http://php.net/manual/en/book.bzip2.php
639 Requires: %{name}-common = %{epoch}:%{version}-%{release}
640 Requires: bzip2-libs >= 1.0.0
641 Provides: php(bz2) = %{bz2ver}
643 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
644 Obsoletes: php-bz2 < 4:5.3.28-7
645 Obsoletes: php-bzip2 < 4:5.2.14-3
646 Obsoletes: php-pecl-bz2 < %{bz2ver}
649 This is a dynamic shared object (DSO) for PHP that will add bzip2
650 compression support to PHP.
652 %description bz2 -l pl.UTF-8
653 Moduł PHP umożliwiający używanie kompresji bzip2.
656 Summary: Calendar extension module for PHP
657 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
659 URL: http://php.net/manual/en/book.calendar.php
660 Requires: %{name}-common = %{epoch}:%{version}-%{release}
661 Provides: php(calendar)
662 Obsoletes: php-calendar < 4:5.3.28-7
664 %description calendar
665 This is a dynamic shared object (DSO) for PHP that will add calendar
668 %description calendar -l pl.UTF-8
669 Moduł PHP dodający wsparcie dla kalendarza.
672 Summary: ctype extension module for PHP
673 Summary(pl.UTF-8): Moduł ctype dla PHP
675 URL: http://php.net/manual/en/book.ctype.php
676 Requires: %{name}-common = %{epoch}:%{version}-%{release}
678 Obsoletes: php-ctype < 4:5.3.28-7
681 This is a dynamic shared object (DSO) for PHP that will add ctype
684 %description ctype -l pl.UTF-8
685 Moduł PHP umożliwiający korzystanie z funkcji ctype.
688 Summary: curl extension module for PHP
689 Summary(pl.UTF-8): Moduł curl dla PHP
691 URL: http://php.net/manual/en/book.curl.php
692 Requires: %{name}-common = %{epoch}:%{version}-%{release}
693 Requires: curl-libs >= 7.12.0
695 Obsoletes: php-curl < 4:5.3.28-7
698 This is a dynamic shared object (DSO) for PHP that will add curl
701 %description curl -l pl.UTF-8
702 Moduł PHP umożliwiający korzystanie z biblioteki curl.
705 Summary: DBA extension module for PHP
706 Summary(pl.UTF-8): Moduł DBA dla PHP
708 URL: http://php.net/manual/en/book.dba.php
709 Requires: %{name}-common = %{epoch}:%{version}-%{release}
711 Obsoletes: php-dba < 4:5.3.28-7
712 # withdrawn module of similar functionality but different API
713 Obsoletes: php-db < 3:5.0.0
716 This is a dynamic shared object (DSO) for PHP that will add flat-file
717 databases (DBA) support.
719 %description dba -l pl.UTF-8
720 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
724 Summary: DOM extension module for PHP
725 Summary(pl.UTF-8): Moduł DOM dla PHP
727 URL: http://php.net/manual/en/book.dom.php
728 Requires: %{name}-common = %{epoch}:%{version}-%{release}
730 # it has some compatibility functions
731 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
732 Provides: php(domxml)
733 Obsoletes: php-dom < 4:5.3.28-7
734 Obsoletes: php-domxml <= 3:4.3.8-1
737 This is a dynamic shared object (DSO) for PHP that will add new DOM
740 %description dom -l pl.UTF-8
741 Moduł PHP dodający nową obsługę DOM.
744 Summary: libenchant binder
745 Summary(pl.UTF-8): dowiązania biblioteki libenchant
747 URL: http://php.net/manual/en/book.enchant.php
748 Requires: %{name}-common = %{epoch}:%{version}-%{release}
749 Provides: php(enchant) = %{enchantver}
750 Obsoletes: php-enchant < 4:5.3.28-7
751 Obsoletes: php-pecl-enchant < %{enchantver}
754 Enchant is a binder for libenchant. Libenchant provides a common API
755 for many spell libraries:
756 - aspell/pspell (intended to replace ispell)
759 - myspell (OpenOffice.org project, mozilla)
760 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
761 plugin system allows to add custom spell support.
763 %description enchant -l pl.UTF-8
764 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
765 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
766 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
769 - myspell (projekt OpenOffice.org, mozilla)
770 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
771 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
774 Summary: exif extension module for PHP
775 Summary(pl.UTF-8): Moduł exif dla PHP
777 URL: http://php.net/manual/en/book.exif.php
778 Requires: %{name}-common = %{epoch}:%{version}-%{release}
780 Obsoletes: php-exif < 4:5.3.28-7
783 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
784 support in image files.
786 %description exif -l pl.UTF-8
787 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
790 Summary: %{modname} - Foreign Function Interface
792 URL: https://www.php.net/manual/en/book.ffi.php
793 Requires: %{name}-common = %{epoch}:%{version}-%{release}
794 Provides: php(ffi) = %{version}
797 FFI is a multi-platform extension for PHP that allows you to bind to
798 functions from arbitrary shared libraries and call them.
801 Summary: libmagic bindings
802 Summary(pl.UTF-8): Wiązania do libmagic
804 URL: http://php.net/manual/en/book.fileinfo.php
805 Requires: %{name}-common = %{epoch}:%{version}-%{release}
806 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
807 Provides: php(fileinfo) = %{fileinfover}
808 Obsoletes: php-fileinfo < 4:5.3.28-7
809 Obsoletes: php-mime_magic
810 Obsoletes: php-pecl-fileinfo < %{fileinfover}
812 %description fileinfo
813 This extension allows retrieval of information regarding vast majority
814 of file. This information may include dimensions, quality, length
817 Additionally it can also be used to retrieve the MIME type for a
818 particular file and for text files proper language encoding.
820 %description fileinfo -l pl.UTF-8
821 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
822 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
824 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
825 pliku oraz kodowania plików tekstowych.
828 Summary: Extension for safely dealing with input parameters
829 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
831 URL: http://php.net/manual/en/book.filter.php
832 Requires: %{name}-common = %{epoch}:%{version}-%{release}
833 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
834 Provides: php(filter)
835 Obsoletes: php-filter < 4:5.3.28-7
836 Obsoletes: php-pecl-filter
839 We all know that you should always check input variables, but PHP does
840 not offer really good functionality for doing this in a safe way. The
841 Input Filter extension is meant to address this issue by implementing
842 a set of filters and mechanisms that users can use to safely access
845 %description filter -l pl.UTF-8
846 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
847 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
848 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
849 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
850 mogą bezpiecznie używać do dostępu do danych.
853 Summary: FTP extension module for PHP
854 Summary(pl.UTF-8): Moduł FTP dla PHP
856 URL: http://php.net/manual/en/book.ftp.php
857 Requires: %{name}-common = %{epoch}:%{version}-%{release}
859 Obsoletes: php-ftp < 4:5.3.28-7
862 This is a dynamic shared object (DSO) for PHP that will add FTP
865 %description ftp -l pl.UTF-8
866 Moduł PHP dodający obsługę protokołu FTP.
869 Summary: GD extension module for PHP
870 Summary(pl.UTF-8): Moduł GD dla PHP
872 URL: http://php.net/manual/en/book.image.php
873 Requires: %{name}-common = %{epoch}:%{version}-%{release}
874 %if %{with system_gd}
879 Obsoletes: php-gd < 4:5.3.28-7
882 This is a dynamic shared object (DSO) for PHP that will add GD
883 support, allowing you to create and manipulate images with PHP.
885 %description gd -l pl.UTF-8
886 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
887 tworzenie i obróbkę obrazków.
890 Summary: gettext extension module for PHP
891 Summary(pl.UTF-8): Moduł gettext dla PHP
893 URL: http://php.net/manual/en/book.gettext.php
894 Requires: %{name}-common = %{epoch}:%{version}-%{release}
895 Provides: php(gettext)
896 Obsoletes: php-gettext < 4:5.3.28-7
899 This is a dynamic shared object (DSO) for PHP that will add gettext
902 %description gettext -l pl.UTF-8
903 Moduł PHP dodający obsługę lokalizacji przez gettext.
906 Summary: gmp extension module for PHP
907 Summary(pl.UTF-8): Moduł gmp dla PHP
909 URL: http://php.net/manual/en/book.gmp.php
910 Requires: %{name}-common = %{epoch}:%{version}-%{release}
913 Obsoletes: php-gmp < 4:5.3.28-7
916 This is a dynamic shared object (DSO) for PHP that will add arbitrary
917 length number support with GNU MP library.
919 %description gmp -l pl.UTF-8
920 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
921 liczbach o dowolnej długości.
924 Summary: iconv extension module for PHP
925 Summary(pl.UTF-8): Moduł iconv dla PHP
927 URL: http://php.net/manual/en/book.iconv.php
928 Requires: %{_libdir}/gconv
929 Requires: %{name}-common = %{epoch}:%{version}-%{release}
932 Obsoletes: php-iconv < 4:5.3.28-7
935 This is a dynamic shared object (DSO) for PHP that will add iconv
938 %description iconv -l pl.UTF-8
939 Moduł PHP dodający obsługę iconv.
942 Summary: IMAP extension module for PHP
943 Summary(pl.UTF-8): Moduł IMAP dla PHP
944 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
946 URL: http://php.net/manual/en/book.imap.php
947 Requires: %{name}-common = %{epoch}:%{version}-%{release}
948 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
949 Requires: imap-lib >= 1:2007e-2
951 Obsoletes: php-imap < 4:5.3.28-7
954 This is a dynamic shared object (DSO) for PHP that will add IMAP
957 %description imap -l pl.UTF-8
958 Moduł PHP dodający obsługę skrzynek IMAP.
960 %description imap -l pt_BR.UTF-8
961 Um módulo para aplicações PHP que usam IMAP.
964 Summary: Internationalization extension (ICU wrapper)
965 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
967 URL: http://php.net/intl
968 Requires: %{name}-common = %{epoch}:%{version}-%{release}
969 Provides: php(intl) = %{intlver}
970 Obsoletes: php-intl < 4:5.3.28-7
971 Obsoletes: php-pecl-intl < %{intlver}
974 Internationalization extension (further is referred as Intl) is a
975 wrapper for ICU library, enabling PHP programmers to perform
976 UCA-conformant collation and date/time/number/currency formatting in
979 %description intl -l pl.UTF-8
980 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
981 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
982 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
986 Summary: PHP C extension for JSON serialization
987 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
989 URL: http://php.net/manual/en/book.json.php
990 Requires: %{name}-common = %{epoch}:%{version}-%{release}
991 Provides: php(json) = %{jsonver}
992 Obsoletes: php-json < 4:5.3.28-7
993 Obsoletes: php-pecl-json < %{jsonver}
996 php-json is an extremely fast PHP C extension for JSON (JavaScript
997 Object Notation) serialisation.
999 %description json -l pl.UTF-8
1000 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1001 (JavaScript Object Notation).
1004 Summary: LDAP extension module for PHP
1005 Summary(pl.UTF-8): Moduł LDAP dla PHP
1006 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1008 URL: http://php.net/manual/en/book.ldap.php
1009 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1011 Obsoletes: php-ldap < 4:5.3.28-7
1014 This is a dynamic shared object (DSO) for PHP that will add LDAP
1017 %description ldap -l pl.UTF-8
1018 Moduł PHP dodający obsługę LDAP.
1020 %description ldap -l pt_BR.UTF-8
1021 Um módulo para aplicações PHP que usam LDAP.
1024 Summary: mbstring extension module for PHP
1025 Summary(pl.UTF-8): Moduł mbstring dla PHP
1027 URL: http://php.net/manual/en/book.mbstring.php
1028 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1029 Provides: php(mbstring)
1030 Obsoletes: php-mbstring < 4:5.3.28-7
1032 %description mbstring
1033 This is a dynamic shared object (DSO) for PHP that will add multibyte
1036 %description mbstring -l pl.UTF-8
1037 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1040 Summary: MySQLi module for PHP
1041 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1043 URL: http://php.net/manual/en/book.mysqli.php
1044 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1045 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1046 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1047 Requires: mysql-libs >= 4.1.13
1048 Provides: php(mysqli)
1049 Obsoletes: php-mysqli < 4:5.3.28-7
1052 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1053 (Improved MySQL) support. The difference between it and mysql module
1054 is that it provides access to functionality of MySQL 4.1 and above.
1056 %description mysqli -l pl.UTF-8
1057 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1058 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1059 MySQL w wersji 4.1 i nowszych.
1062 Summary: MySQL Native Client Driver for PHP
1063 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1065 URL: http://php.net/manual/en/book.mysqlnd.php
1066 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1067 Provides: php(mysqlnd)
1068 Obsoletes: php-mysqlnd < 4:5.3.28-7
1070 %description mysqlnd
1071 MySQL Native Driver is a replacement for the MySQL Client Library
1074 Because MySQL Native Driver is written as a PHP extension, it is
1075 tightly coupled to the workings of PHP. This leads to gains in
1076 efficiency, especially when it comes to memory usage, as the driver
1077 uses the PHP memory management system. It also supports the PHP memory
1078 limit. Using MySQL Native Driver leads to comparable or better
1079 performance than using MySQL Client Library, it always ensures the
1080 most efficient use of memory. One example of the memory efficiency is
1081 the fact that when using the MySQL Client Library, each row is stored
1082 in memory twice, whereas with the MySQL Native Driver each row is only
1083 stored once in memory.
1085 %description mysqlnd -l pl.UTF-8
1086 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1087 klienckiej MySQL (libmysql).
1089 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1090 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1091 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1092 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1093 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1094 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1095 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1096 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1097 tym sterowniku - tylko raz.
1100 Summary: Oracle 8+ database module for PHP
1101 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1103 URL: http://php.net/manual/en/book.oci8.php
1104 %{?requires_php_extension}
1106 Obsoletes: php-oci8 < 4:5.3.28-7
1107 # withdrawn module of similar functionality but different API
1108 Obsoletes: php-oracle < 4:5.1.0
1111 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1112 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1114 %description oci8 -l pl.UTF-8
1115 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1116 poprzez interfejs Oracle8 Call-Interface (OCI8).
1119 Summary: ODBC extension module for PHP
1120 Summary(pl.UTF-8): Moduł ODBC dla PHP
1121 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1123 URL: http://php.net/manual/en/book.uodbc.php
1124 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1125 Requires: unixODBC >= 2.1.1-3
1127 Obsoletes: php-odbc < 4:5.3.28-7
1130 This is a dynamic shared object (DSO) for PHP that will add ODBC
1133 %description odbc -l pl.UTF-8
1134 Moduł PHP ze wsparciem dla ODBC.
1136 %description odbc -l pt_BR.UTF-8
1137 Um módulo para aplicações PHP que usam ODBC.
1140 Summary: Zend Optimizer+ - PHP code optimizer
1141 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1143 URL: https://wiki.php.net/rfc/optimizerplus
1144 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1145 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1146 Provides: php(opcache) = %{version}
1148 %description opcache
1149 The Zend OPcache provides faster PHP execution through opcode caching
1150 and optimization. It improves PHP performance by storing precompiled
1151 script bytecode in the shared memory. This eliminates the stages of
1152 reading code from the disk and compiling it on future access. In
1153 addition, it applies a few bytecode optimization patterns that make
1154 code execution faster.
1156 %description opcache -l pl.UTF-8
1157 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1158 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1159 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1160 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1161 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1162 czyniąc wykonywanie kodu szybszym.
1165 Summary: OpenSSL extension module for PHP
1166 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1168 URL: http://php.net/manual/en/book.openssl.php
1169 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1170 Provides: php(openssl)
1171 Obsoletes: php-openssl < 4:5.3.28-7
1173 %description openssl
1174 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1177 %description openssl -l pl.UTF-8
1178 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1181 Summary: Process Control extension module for PHP
1182 Summary(pl.UTF-8): Moduł Process Control dla PHP
1184 URL: http://php.net/manual/en/book.pcntl.php
1185 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1186 Provides: php(pcntl)
1187 Obsoletes: php-pcntl < 4:5.3.28-7
1190 This is a dynamic shared object (DSO) for PHP that will add process
1191 spawning and control support. It supports functions like fork(),
1192 waitpid(), signal() etc.
1194 %description pcntl -l pl.UTF-8
1195 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1196 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1199 Summary: PHP Data Objects (PDO)
1200 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1202 URL: http://php.net/manual/en/book.pdo.php
1203 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1204 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1205 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1207 Obsoletes: php-pdo < 4:5.3.28-7
1208 Obsoletes: php-pecl-PDO
1211 This is a dynamic shared object (DSO) for PHP that will add PDO
1214 %description pdo -l pl.UTF-8
1215 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1218 Summary: PHP Data Objects (PDO) FreeTDS support
1219 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1221 URL: http://php.net/manual/en/ref.pdo-dblib.php
1222 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1223 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1224 Provides: php(pdo_dblib)
1225 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1227 %description pdo-dblib
1228 This is a dynamic shared object (DSO) for PHP that will add PDO
1231 %description pdo-dblib -l pl.UTF-8
1232 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1235 %package pdo-firebird
1236 Summary: PHP Data Objects (PDO) Firebird support
1237 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1239 URL: http://php.net/manual/en/ref.pdo-firebird.php
1240 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1241 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1242 Provides: php(pdo-firebird)
1243 Provides: php(pdo_firebird)
1244 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1245 Obsoletes: php-pecl-PDO_FIREBIRD
1247 %description pdo-firebird
1248 This is a dynamic shared object (DSO) for PHP that will add PDO
1251 %description pdo-firebird -l pl.UTF-8
1252 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1256 Summary: PHP Data Objects (PDO) MySQL support
1257 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1259 URL: http://php.net/manual/en/ref.pdo-mysql.php
1260 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1261 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1262 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1263 Provides: php(pdo-mysql)
1264 Provides: php(pdo_mysql)
1265 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1266 Obsoletes: php-pecl-PDO_MYSQL
1268 %description pdo-mysql
1269 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1272 %description pdo-mysql -l pl.UTF-8
1273 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1277 Summary: PHP Data Objects (PDO) Oracle support
1278 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1280 URL: http://php.net/manual/en/ref.pdo-oci.php
1281 %{?requires_php_extension}
1282 %{?requires_php_pdo_module}
1283 Provides: php(pdo-oci)
1284 Provides: php(pdo_oci)
1285 Obsoletes: php-pdo-oci < 4:5.3.28-7
1286 Obsoletes: php-pecl-PDO_OCI
1288 %description pdo-oci
1289 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1292 %description pdo-oci -l pl.UTF-8
1293 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1297 Summary: PHP Data Objects (PDO) ODBC support
1298 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1300 URL: http://php.net/manual/en/ref.pdo-odbc.php
1301 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1302 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1303 Provides: php(pdo-odbc)
1304 Provides: php(pdo_odbc)
1305 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1306 Obsoletes: php-pecl-PDO_ODBC
1308 %description pdo-odbc
1309 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1312 %description pdo-odbc -l pl.UTF-8
1313 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1317 Summary: PHP Data Objects (PDO) PostgreSQL support
1318 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1320 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1321 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1322 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1323 Provides: php(pdo-pgsql)
1324 Provides: php(pdo_pgsql)
1325 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1326 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1328 %description pdo-pgsql
1329 This is a dynamic shared object (DSO) for PHP that will add PDO
1332 %description pdo-pgsql -l pl.UTF-8
1333 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1337 Summary: PHP Data Objects (PDO) SQLite support
1338 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1340 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1341 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1342 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1343 Provides: php(pdo-sqlite)
1344 Provides: php(pdo_sqlite)
1345 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1346 Obsoletes: php-pecl-PDO_SQLITE
1348 %description pdo-sqlite
1349 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1352 %description pdo-sqlite -l pl.UTF-8
1353 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1357 Summary: PostgreSQL database module for PHP
1358 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1360 URL: http://php.net/manual/en/book.pgsql.php
1361 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1362 Provides: php(pgsql)
1363 Obsoletes: php-pgsql < 4:5.3.28-7
1366 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1369 %description pgsql -l pl.UTF-8
1370 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1372 %description pgsql -l pt_BR.UTF-8
1373 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1376 Summary: Phar archive module for PHP
1377 Summary(pl.UTF-8): Moduł phar dla PHP
1379 URL: http://php.net/manual/en/book.phar.php
1380 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1381 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1382 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1383 Requires: alternatives
1384 Suggests: %{name}-cli
1385 # zlib is required by phar program, but as phar cli is optional should the dep be too
1386 Suggests: %{name}-zlib
1387 Provides: php(phar) = %{pharver}
1388 Obsoletes: php-pecl-phar < %{pharver}
1389 Obsoletes: php-phar < 4:5.3.28-7
1390 Conflicts: php-ioncube < 4.0.9
1393 This is a dynamic shared object (DSO) for PHP that will add phar
1396 %description phar -l pl.UTF-8
1397 Moduł PHP umożliwiający dostęp do achiwów .phar.
1400 Summary: POSIX extension module for PHP
1401 Summary(pl.UTF-8): Moduł POSIX dla PHP
1403 URL: http://php.net/manual/en/book.posix.php
1404 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1405 Provides: php(posix)
1406 Obsoletes: php-posix < 4:5.3.28-7
1409 This is a dynamic shared object (DSO) for PHP that will add POSIX
1410 functions support to PHP.
1412 %description posix -l pl.UTF-8
1413 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1416 Summary: pspell extension module for PHP
1417 Summary(pl.UTF-8): Moduł pspell dla PHP
1419 URL: http://php.net/manual/en/book.pspell.php
1420 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1421 Provides: php(pspell)
1422 Obsoletes: php-pspell < 4:5.3.28-7
1425 This is a dynamic shared object (DSO) for PHP that will add pspell
1426 support to PHP. It allows to check the spelling of a word and offer
1429 %description pspell -l pl.UTF-8
1430 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1431 sprawdzanie pisowni słowa i sugerowanie poprawek.
1434 Summary: readline extension module for PHP
1435 Summary(pl.UTF-8): Moduł readline dla PHP
1437 URL: http://php.net/manual/en/book.readline.php
1438 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1439 Provides: php(readline)
1440 Obsoletes: php-readline < 4:5.3.28-7
1442 %description readline
1443 This PHP module adds support for readline functions (only for cli and
1446 %description readline -l pl.UTF-8
1447 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1450 Summary: session extension module for PHP
1451 Summary(pl.UTF-8): Moduł session dla PHP
1453 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1454 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1455 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1457 Provides: php(session)
1458 Obsoletes: php-session < 4:5.3.28-7
1460 %description session
1461 This is a dynamic shared object (DSO) for PHP that will add session
1464 %description session -l pl.UTF-8
1465 Moduł PHP dodający obsługę sesji.
1468 Summary: Shared Memory Operations extension module for PHP
1469 Summary(pl.UTF-8): Moduł shmop dla PHP
1471 URL: http://php.net/manual/en/book.shmop.php
1472 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1473 Provides: php(shmop)
1474 Obsoletes: php-shmop < 4:5.3.28-7
1477 This is a dynamic shared object (DSO) for PHP that will add Shared
1478 Memory Operations support.
1480 %description shmop -l pl.UTF-8
1481 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1484 Summary: Simple XML extension module for PHP
1485 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1487 URL: http://php.net/manual/en/book.simplexml.php
1488 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1489 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1490 Provides: php(simplexml)
1491 Obsoletes: php-simplexml < 4:5.3.28-7
1493 %description simplexml
1494 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1497 %description simplexml -l pl.UTF-8
1498 Moduł PHP dodający obsługę prostego XML-a.
1501 Summary: SNMP extension module for PHP
1502 Summary(pl.UTF-8): Moduł SNMP dla PHP
1504 URL: http://php.net/manual/en/book.snmp.php
1505 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1506 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1507 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1509 Obsoletes: php-snmp < 4:5.3.28-7
1512 This is a dynamic shared object (DSO) for PHP that will add SNMP
1515 %description snmp -l pl.UTF-8
1516 Moduł PHP dodający obsługę SNMP.
1519 Summary: soap extension module for PHP
1520 Summary(pl.UTF-8): Moduł soap dla PHP
1522 URL: http://php.net/manual/en/book.soap.php
1523 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1525 Obsoletes: php-soap < 4:5.3.28-7
1528 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1531 %description soap -l pl.UTF-8
1532 Moduł PHP dodający obsługę SOAP/WSDL.
1535 Summary: sockets extension module for PHP
1536 Summary(pl.UTF-8): Moduł socket dla PHP
1538 URL: http://php.net/manual/en/book.sockets.php
1539 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1540 Provides: php(sockets)
1541 Obsoletes: php-sockets < 4:5.3.28-7
1543 %description sockets
1544 This is a dynamic shared object (DSO) for PHP that will add sockets
1547 %description sockets -l pl.UTF-8
1548 Moduł PHP dodający obsługę gniazdek.
1551 Summary: Wrapper for the Sodium cryptographic library
1553 URL: https://paragonie.com/book/pecl-libsodium
1554 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1555 Provides: php(sodium) = %{sodiumver}
1558 A simple, low-level PHP extension for libsodium.
1561 Summary: SQLite3 extension module for PHP
1562 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1564 URL: http://php.net/manual/en/book.sqlite3.php
1565 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1566 Provides: php(sqlite3) = %{sqlite3ver}
1567 Obsoletes: php-sqlite3 < 4:5.3.28-7
1569 %description sqlite3
1570 SQLite is a C library that implements an embeddable SQL database
1571 engine. Programs that link with the SQLite library can have SQL
1572 database access without running a separate RDBMS process.
1574 SQLite is not a client library used to connect to a big database
1575 server. SQLite is the server. The SQLite library reads and writes
1576 directly to and from the database files on disk.
1578 %description sqlite3 -l pl.UTF-8
1579 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1580 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1581 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1584 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1585 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1586 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1590 Summary: SysV msg extension module for PHP
1591 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1593 URL: http://php.net/manual/en/book.sem.php
1594 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1595 Provides: php(sysvmsg)
1596 Obsoletes: php-sysvmsg < 4:5.3.28-7
1598 %description sysvmsg
1599 This is a dynamic shared object (DSO) for PHP that will add SysV
1600 message queues support.
1602 %description sysvmsg -l pl.UTF-8
1603 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1606 Summary: SysV sem extension module for PHP
1607 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1609 URL: http://php.net/manual/en/book.sem.php
1610 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1611 Provides: php(sysvsem)
1612 Obsoletes: php-sysvsem < 4:5.3.28-7
1614 %description sysvsem
1615 This is a dynamic shared object (DSO) for PHP that will add SysV
1618 %description sysvsem -l pl.UTF-8
1619 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1622 Summary: SysV shm extension module for PHP
1623 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1625 URL: http://php.net/manual/en/book.sem.php
1626 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1627 Provides: php(sysvshm)
1628 Obsoletes: php-sysvshm < 4:5.3.28-7
1630 %description sysvshm
1631 This is a dynamic shared object (DSO) for PHP that will add SysV
1632 Shared Memory support.
1634 %description sysvshm -l pl.UTF-8
1635 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1638 Summary: Contains unit test files for PHP and extensions
1639 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1641 URL: http://qa.php.net/
1642 Requires: %{name}-cli
1645 This package contains unit tests for PHP and its extensions.
1647 %description tests -l pl.UTF-8
1648 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1651 Summary: Tidy extension module for PHP
1652 Summary(pl.UTF-8): Moduł Tidy dla PHP
1654 URL: http://php.net/manual/en/book.tidy.php
1655 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1658 Obsoletes: php-tidy < 4:5.3.28-7
1661 This is a dynamic shared object (DSO) for PHP that will add Tidy
1664 %description tidy -l pl.UTF-8
1665 Moduł PHP umożliwiający korzystanie z tidy.
1668 Summary: tokenizer extension module for PHP
1669 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1671 URL: http://php.net/manual/en/book.tokenizer.php
1672 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1673 Provides: php(tokenizer)
1674 Obsoletes: php-tokenizer < 4:5.3.28-7
1676 %description tokenizer
1677 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1680 %description tokenizer -l pl.UTF-8
1681 Moduł PHP dodający obsługę tokenizera do PHP.
1684 Summary: XML extension module for PHP
1685 Summary(pl.UTF-8): Moduł XML dla PHP
1687 URL: http://php.net/manual/en/book.xml.php
1688 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1690 Obsoletes: php-xml < 4:5.3.28-7
1693 This is a dynamic shared object (DSO) for PHP that will add XML
1694 support. This extension lets you create XML parsers and then define
1695 handlers for different XML events.
1697 %description xml -l pl.UTF-8
1698 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1699 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1700 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1703 Summary: XML Reader extension module for PHP
1704 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1706 URL: http://php.net/manual/en/book.xmlreader.php
1707 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1708 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1709 Provides: php(xmlreader)
1710 Obsoletes: php-xmlreader < 4:5.3.28-7
1712 %description xmlreader
1713 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1714 support. The XMLReader extension is an XML Pull parser. The reader
1715 acts as a cursor going forward on the document stream and stopping at
1716 each node on the way.
1718 %description xmlreader -l pl.UTF-8
1719 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1720 działa jako kursor przechodzący przez strumień dokumentu i
1721 zatrzymujący się na każdym węźle po drodze.
1724 Summary: xmlrpc extension module for PHP
1725 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1727 URL: http://php.net/manual/en/book.xmlrpc.php
1728 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1729 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1730 Provides: php(xmlrpc)
1731 Obsoletes: php-xmlrpc < 4:5.3.28-7
1734 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1737 %description xmlrpc -l pl.UTF-8
1738 Moduł PHP dodający obsługę XMLRPC.
1741 Summary: Fast, non-cached, forward-only means to write XML data
1742 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1744 URL: http://php.net/manual/en/book.xmlwriter.php
1745 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1746 Provides: php(xmlwriter)
1747 Obsoletes: php-pecl-xmlwriter
1748 Obsoletes: php-xmlwriter < 4:5.3.28-7
1750 %description xmlwriter
1751 This extension wraps the libxml xmlWriter API. Represents a writer
1752 that provides a non-cached, forward-only means of generating streams
1753 or files containing XML data.
1755 %description xmlwriter -l pl.UTF-8
1756 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1757 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1758 plików zawierających dane XML.
1761 Summary: xsl extension module for PHP
1762 Summary(pl.UTF-8): Moduł xsl dla PHP
1764 URL: http://php.net/manual/en/book.xsl.php
1765 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1766 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1767 Requires: libxslt >= 1.1.0
1769 Obsoletes: php-xsl < 4:5.3.28-7
1770 # actually not true, functionality is similar, but API differs
1771 Obsoletes: php-xslt <= 3:4.3.8-1
1774 This is a dynamic shared object (DSO) for PHP that will add new XSL
1775 support (using libxslt).
1777 %description xsl -l pl.UTF-8
1778 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1781 Summary: Zip management extension
1782 Summary(pl.UTF-8): Zarządzanie archiwami zip
1784 URL: http://php.net/manual/en/book.zip.php
1785 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1786 Requires: libzip >= 1.3.1
1787 Provides: php(zip) = %{zipver}
1788 Obsoletes: php-pecl-zip < %{zipver}
1789 Obsoletes: php-zip < 4:5.3.28-7
1792 Zip is an extension to create, modify and read zip files.
1794 %description zip -l pl.UTF-8
1795 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1796 odczyt archiwów zip.
1799 Summary: Zlib extension module for PHP
1800 Summary(pl.UTF-8): Moduł zlib dla PHP
1802 URL: http://php.net/manual/en/book.zlib.php
1803 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1805 Obsoletes: php-zlib < 4:5.3.28-7
1808 This is a dynamic shared object (DSO) for PHP that will add zlib
1809 compression support to PHP.
1811 %description zlib -l pl.UTF-8
1812 Moduł PHP umożliwiający używanie kompresji zlib.
1815 %setup -q -n %{orgname}-%{version}
1816 cp -p php.ini-production php.ini
1844 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
1846 %patch59 -p1 -b .systzdata
1851 %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1853 # cleanup backups after patching
1854 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1856 # com_dotnet is Win32-only
1857 %{__rm} -r ext/com_dotnet
1859 # remove all bundled libraries not to link with them accidentally
1860 %{__rm} -r ext/xmlrpc/libxmlrpc
1861 %{__rm} ext/date/lib/timezonedb.h
1863 cp -pf Zend/LICENSE{,.Zend}
1864 install -p %{SOURCE13} dep-tests.sh
1867 sed -i -e 's#-fvisibility=hidden##g' configure*
1869 # disable broken tests
1870 # says just "Terminated" twice and fails
1871 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1873 # really dumb test, executable binary name is .libs/ something when building
1874 # https://bugs.php.net/bug.php?id=54514
1875 %{__mv} tests/basic/bug54514.phpt{,.disable}
1877 # breaks whole testsuite unexpectedly:
1878 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1879 # probably broken as zlib is built as shared
1880 %{__mv} ext/soap/tests/server019.phpt{,disable}
1881 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1882 %{__mv} ext/soap/tests/server020.phpt{,disable}
1884 # runs out of memory and kills carme vserver
1885 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1886 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1888 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1889 %{__rm} ext/standard/tests/file/statpage.phpt
1891 # idiotic test, it will fail if somebody else makes space on disk or if disk
1892 # space is not yet allocated (xfs). report upstream to advice bogus test is
1893 # probably pointless.
1894 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1897 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1898 %{__rm} -r ext/pdo_sqlite/tests
1899 %{__rm} -r ext/sqlite3/tests
1902 # ----- Manage known as failed test -------
1903 # affected by systzdata patch
1904 %{__rm} ext/date/tests/timezone_location_get.phpt
1905 %{__rm} ext/date/tests/timezone_version_get.phpt
1906 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
1907 # Should be skipped but fails sometime
1908 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
1910 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
1911 # causes stack exhausion
1912 %{__rm} Zend/tests/bug54268.phpt
1913 %{__rm} Zend/tests/bug68412.phpt
1915 # avoid issues when two builds run simultaneously
1917 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
1921 # no point testing stuff that is knowingly broken
1922 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
1934 sh -xe %{_sourcedir}/skip-tests.sh
1937 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1938 if [ $API != %{php_api_version} ]; then
1939 echo "Set %%define php_api_version to $API and re-run."
1943 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1944 if [ $API != %{zend_module_api} ]; then
1945 echo "Set %%define zend_module_api to $API and re-run."
1949 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1950 if [ $API != %{zend_extension_api} ]; then
1951 echo "Set %%define zend_extension_api to $API and re-run."
1955 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
1956 if [ $API != %{php_pdo_api_version} ]; then
1957 echo "Set %%define php_pdo_api_version to $API and re-run."
1961 # Check for some extension version
1962 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
1963 if test "$ver" != "PHP_VERSION"; then
1964 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
1965 : Update the fileinfover macro and rebuild.
1968 ver=$(awk '/#define PHP_PHAR_VERSION/ {print $3}' ext/phar/php_phar.h | xargs)
1969 if test "$ver" != "PHP_VERSION"; then
1970 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
1971 : Update the pharver macro and rebuild.
1974 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
1975 if test "$ver" != "PHP_VERSION"; then
1976 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
1977 : Update the sqlite3ver macro and rebuild.
1980 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
1981 if test "$ver" != "PHP_VERSION"; then
1984 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
1985 if test "$ver" != "%{zipver}"; then
1986 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
1987 : Update the zipver macro and rebuild.
1990 ver=$(awk '/#define PHP_JSON_VERSION/ {print $3}' ext/json/php_json.h | xargs)
1991 if test "$ver" != "PHP_VERSION"; then
1992 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
1993 : Update the jsonver macro and rebuild.
1996 ver=$(awk '/#define PHPDBG_VERSION/ {print $3}' sapi/phpdbg/phpdbg.h | xargs)
1997 if test "$ver" != "PHP_VERSION"; then
1998 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
1999 : Update the phpdbgver macro and rebuild.
2002 ver=$(awk '/#define PHP_BZ2_VERSION/ {print $3}' ext/bz2/php_bz2.h | xargs)
2003 if test "$ver" != "PHP_VERSION"; then
2004 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2005 : Update the bz2ver macro and rebuild.
2008 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
2009 if test "$ver" != "PHP_VERSION"; then
2012 ver=$(awk '/#define PHP_HASH_VERSION/ {print $3}' ext/hash/php_hash.h | xargs)
2013 if test "$ver" != "PHP_VERSION"; then
2014 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2015 : Update the hashver macro and rebuild.
2018 ver=$(awk '/#define PHP_INTL_VERSION/ {print $3}' ext/intl/php_intl.h | xargs)
2019 if test "$ver" != "PHP_VERSION"; then
2020 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2021 : Update the intlver macro and rebuild.
2025 export EXTENSION_DIR="%{php_extensiondir}"
2027 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2028 # includes the PEAR directory even though pear is packaged separately.
2029 export PEAR_INSTALLDIR=%{php_pear_dir}
2031 # configure once (for faster debugging purposes)
2032 if [ ! -f _built-conf ]; then
2033 # now remove Makefile copies
2034 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs2,litespeed,phpdbg}
2036 # Force use of system libtool:
2037 mv build/libtool.m4 build/libtool.m4.saved
2038 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2042 cp -f /usr/share/automake/config.* .
2046 export PROG_SENDMAIL="/usr/lib/sendmail"
2047 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2048 -I%{_includedir}/xmlrpc-epi"
2050 # This should be detected by configure and set there,
2051 # but looks like the build system is hosed on 7.3
2052 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2053 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2056 # icu 59+ C++ API requires C++ >= 11
2057 CXXFLAGS="$CXXFLAGS -std=c++11"
2065 %if %{with litespeed}
2081 for sapi in $sapis; do
2083 # skip if already configured (for faster debugging purposes)
2084 [ -f Makefile.$sapi ] && continue
2089 sapi_args='--disable-cli'
2092 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2095 sapi_args='--disable-cli --disable-cgi --enable-fpm'
2098 sapi_args='--disable-cli --disable-cgi --enable-embed'
2101 ver=$(rpm -q --qf '%{V}' apache-devel)
2102 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
2105 sapi_args='--disable-cli --disable-cgi --enable-litespeed'
2108 sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2113 EXTRA_LDFLAGS="%{rpmldflags}" \
2114 --program-suffix=%{php_suffix} \
2116 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2117 --cache-file=config.cache \
2119 --datadir=%{php_datadir} \
2120 --with-libdir=%{_lib} \
2121 --with-config-file-path=%{_sysconfdir} \
2122 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2123 --with-system-tzdata \
2124 %{?with_argon2:--with-password-argon2} \
2125 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2126 %{?with_zts:--enable-maintainer-zts} \
2127 --enable-inline-optimization \
2128 %{__enable_disable bcmath bcmath shared} \
2129 %{__enable_disable calendar calendar shared} \
2130 %{__enable_disable ctype ctype shared} \
2131 %{__enable_disable dba dba shared} \
2132 %{__enable_disable dom dom shared} \
2133 %{?with_systemtap:--enable-dtrace} \
2134 %{__enable_disable exif exif shared} \
2135 %{__enable_disable fileinfo fileinfo shared} \
2136 %{__enable_disable ftp ftp shared} \
2137 %{?with_intl:--enable-intl=shared} \
2139 %{__enable_disable mbstring mbstring shared,all} \
2141 %{__enable_disable pcntl pcntl shared} \
2142 %{__enable_disable pdo pdo shared} \
2143 %{__enable_disable json json shared} \
2144 --enable-xmlwriter=shared \
2146 --with-fpm-user=http \
2147 --with-fpm-group=http \
2149 %if %{with pdo_dblib}
2150 --with-pdo-dblib=shared \
2152 %if %{with pdo_firebird}
2153 --with-pdo-firebird=shared \
2155 %{?with_mhash:--with-mhash=yes} \
2156 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2157 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2158 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2159 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2160 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2161 %{?with_pdo_sqlite:--with-pdo-sqlite=shared} \
2162 %{?with_webp:--with-webp} \
2163 %{__enable_disable posix posix shared} \
2165 %{__enable_disable session session shared} \
2166 --enable-shmop=shared \
2167 --enable-simplexml=shared \
2168 --enable-sysvmsg=shared \
2169 --enable-sysvsem=shared \
2170 --enable-sysvshm=shared \
2171 --enable-soap=shared \
2172 --enable-sockets=shared \
2173 %{__with_without sodium sodium shared} \
2174 --enable-tokenizer=shared \
2175 --enable-xml=shared \
2176 --enable-xmlreader=shared \
2177 %{__with_without bz2 bz2 shared} \
2178 %{__with_without curl curl shared} \
2180 %{__with_without iconv iconv shared} \
2181 %{?with_enchant:--with-enchant=shared} \
2183 %{__with_without gettext gettext shared} \
2184 %{__enable_disable gd gd shared} \
2185 %{?with_system_gd:--with-external-gd} \
2187 %{__with_without gmp gmp shared} \
2188 %{__with_without ffi ffi shared} \
2189 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2191 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2192 %{?with_mm:--with-mm} \
2193 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2194 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2195 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2196 %{__enable_disable opcache opcache shared} \
2197 %{?with_openssl:--with-openssl=shared} \
2198 %{?with_kerberos5:--with-kerberos} \
2200 --with-external-pcre \
2201 %{__with_without pcre_jit pcre-jit} \
2202 %{__enable_disable filter filter shared} \
2203 %{__with_without pgsql pgsql shared} \
2204 %{__enable_disable phar phar shared} \
2205 %{?with_pspell:--with-pspell=shared} \
2206 %{__with_without readline readline shared} \
2207 %{?with_snmp:--with-snmp=shared} \
2208 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2209 %{__with_without sqlite3 sqlite3 shared} \
2210 %{?with_tidy:--with-tidy=shared} \
2211 %{?with_odbc:--with-unixODBC=shared} \
2212 %{__with_without xmlrpc xmlrpc shared,/usr} \
2213 %{?with_xsl:--with-xsl=shared} \
2214 --with-zlib=shared \
2215 %{?with_zip:--with-zip=shared} \
2218 cp -f Makefile Makefile.$sapi
2219 cp -f main/php_config.h php_config.h.$sapi
2220 cp -f config.log config.log.$sapi
2223 # as we build each SAPI in own make, adjust php-config.in forehead
2224 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2225 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2227 # must make libphp_common first, so modules can link against it.
2228 cp -af php_config.h.cli main/php_config.h
2229 cp -af Makefile.cli Makefile
2230 %{__make} libphp_common.la
2231 # hack: MYSQLND_SHARED_LIBADD not initialized
2232 %{__make} build-modules \
2233 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2236 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
2239 %if %{with litespeed}
2240 %{__make} -f Makefile.litespeed litespeed
2244 %{__make} -f Makefile.embed libphp7.la
2248 # PHP_READLINE_LIBS is empty, so force readline here
2249 %{__make} -f Makefile.phpdbg phpdbg \
2250 PHPDBG_EXTRA_LIBS=-lreadline
2255 cp -pf php_config.h.cgi-fcgi main/php_config.h
2256 %{__make} -f Makefile.cgi-fcgi
2257 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2262 cp -pf php_config.h.fpm main/php_config.h
2263 %{__make} -f Makefile.fpm
2264 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2268 cp -pf php_config.h.cli main/php_config.h
2269 %{__make} -f Makefile.cli
2270 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2272 # check for stupid xml parse breakage where < and > just get lost in parse result
2273 ./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"]));'
2275 # Generate stub .ini files for each extension
2276 GENERATE_INI=1 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh
2278 # Check that the module inner-dependencies are intact
2279 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2280 if grep -v OK dep-tests.log; then
2281 echo >&2 "The results above were not expected"
2287 cp -pf php_config.h.cli main/php_config.h
2288 cp -pf Makefile.cli Makefile
2290 # you really don't want to package result of gcov build
2294 cat <<'EOF' > run-tests.sh
2296 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2297 export SKIP_ONLINE_TESTS=1
2298 unset TZ LANG LC_ALL || :
2300 EXTENSION_DIR=modules \
2301 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2302 RUN_TESTS_SETTINGS="-q $*"
2304 chmod +x run-tests.sh
2307 # Run tests, using the CLI SAPI
2308 cp -pf php_config.h.cli main/php_config.h
2309 cp -pf Makefile.cli Makefile
2311 ./run-tests.sh -w failed.log -s tests.log || {
2314 # collect failed tests into cleanup script used in prep.
2315 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2316 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2317 >> %{_sourcedir}/skip-tests.sh
2319 # if on builders, dump test log
2320 tty -q || cat tests.log
2322 test ! -s failed.log
2328 rm -rf $RPM_BUILD_ROOT
2330 $RPM_BUILD_ROOT%{_libdir}/{php,apache} \
2331 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,cgi-fcgi,cli,apache2handler}.d \
2332 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2333 $RPM_BUILD_ROOT/etc/httpd/conf.d \
2334 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2336 cp -pf php_config.h.cli main/php_config.h
2337 cp -pf Makefile.cli Makefile
2339 phpbuilddir=%{_libdir}/%{name}/build \
2340 INSTALL_ROOT=$RPM_BUILD_ROOT
2342 # version the .phar files
2343 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2344 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2346 %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2347 touch $RPM_BUILD_ROOT%{_bindir}/phar
2348 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2351 v=$(echo %{version} | cut -d. -f1-2)
2353 # install Apache2 DSO module
2356 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
2357 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2358 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.so
2359 sed -i -e "s|libphp7|libphp%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2360 ln -s libphp%{php_suffix}.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2363 # install litespeed sapi
2364 %if %{with litespeed}
2365 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2369 %{__make} -f Makefile.phpdbg install-phpdbg \
2370 INSTALL="libtool --mode=install install -p" \
2371 INSTALL_ROOT=$RPM_BUILD_ROOT
2375 touch $RPM_BUILD_ROOT%{_bindir}/phpize
2376 touch $RPM_BUILD_ROOT%{_mandir}/man1/phpize.1
2377 touch $RPM_BUILD_ROOT%{_bindir}/php-config
2378 touch $RPM_BUILD_ROOT%{_mandir}/man1/php-config.1
2380 # versioned libphp_common
2381 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2382 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common.la $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2383 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}-%{version}.so
2384 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libphp_common.so
2385 ln -s libphp_common%{php_suffix}-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.so
2386 sed -i -e "s|libphp_common|libphp_common%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2391 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2392 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2393 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cgi-fcgi.d/php.ini
2398 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2399 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2400 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2401 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2402 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2403 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2404 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2405 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2406 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2408 # touch for ghost for alternatives
2409 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2412 s#/usr/lib/php#%{php_extensiondir}#
2413 s#/etc/php/#%{_sysconfdir}/#
2414 s#@processname@#%{name}-fpm#g
2415 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2418 # install Embedded API
2420 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2421 # install-sapi installs to wrong dir, so just do it all manually
2422 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2423 install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}/libphp%{php_suffix}.so
2424 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2428 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{php_suffix}
2430 touch $RPM_BUILD_ROOT%{_bindir}/php
2431 touch $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2433 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2434 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php.ini
2437 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2438 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php.ini
2439 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2442 # ensure that paths are correct for current php version and arch
2443 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2445 s#/usr/lib/php#%{php_extensiondir}#
2446 s#/etc/php#%{_sysconfdir}#
2449 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2450 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2452 cp -p %{_sourcedir}/opcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2455 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/??_readline.ini,cli.d}
2457 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize%{php_suffix}
2459 # for php-pecl-mailparse
2460 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2461 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2464 install -d $RPM_BUILD_ROOT%{php_datadir}/tests/php
2465 install -p run-tests.php $RPM_BUILD_ROOT%{php_datadir}/tests/php/run-tests.php
2466 cp -a tests/* $RPM_BUILD_ROOT%{php_datadir}/tests/php
2468 # fix install paths, avoid evil rpaths
2469 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2471 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2474 rm -rf $RPM_BUILD_ROOT
2476 %post -n apache-mod_%{name}
2477 if [ "$1" = "1" ]; then
2478 %service -q httpd restart
2481 %postun -n apache-mod_%{name}
2482 if [ "$1" = "0" ]; then
2483 %service -q httpd restart
2487 update-alternatives \
2488 --install %{_bindir}/php php %{_bindir}/php%{php_suffix} %{php_suffix} \
2489 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2492 if [ $1 -eq 0 ]; then
2493 update-alternatives --remove php %{_bindir}/php%{php_suffix} || :
2496 %post common -p /sbin/ldconfig
2497 %postun common -p /sbin/ldconfig
2500 update-alternatives \
2501 --install %{_bindir}/phpize phpize %{_bindir}/phpize%{php_suffix} %{php_suffix} \
2502 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2503 update-alternatives \
2504 --install %{_bindir}/php-config php-config %{_bindir}/php-config%{php_suffix} %{php_suffix} \
2505 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2508 if [ $1 -eq 0 ]; then
2509 update-alternatives --remove phpize %{_bindir}/phpize%{php_suffix} || :
2510 update-alternatives --remove php-config %{_bindir}/php-config%{php_suffix} || :
2514 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2517 /sbin/chkconfig --add %{name}-fpm
2518 %service %{name}-fpm restart
2519 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{php_suffix}-fpm %{php_suffix} || :
2522 if [ "$1" = "0" ]; then
2523 %service %{name}-fpm stop
2524 /sbin/chkconfig --del %{name}-fpm
2525 update-alternatives --remove php-fpm %{_sbindir}/php%{php_suffix}-fpm || :
2529 if [ "$1" = "0" ]; then
2533 %post embedded -p /sbin/ldconfig
2534 %postun embedded -p /sbin/ldconfig
2537 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2538 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2540 . /etc/sysconfig/timezone
2541 if [ "$TIMEZONE" ]; then
2542 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2546 # minimizing apache restarts logics. we restart webserver:
2548 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2549 # 2. first install of extension (post: $1 = 1)
2550 # 2. uninstall of extension (postun: $1 == 0)
2552 # the strict internal deps between extensions (and apache modules) and
2553 # common package are very important for all this to work.
2555 # restart webserver at the end of transaction
2556 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2558 %triggerpostun common -- php-common < 4:5.3.28-7
2559 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2560 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2561 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2562 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2563 test -f "$f" || continue
2567 test "$dn" = "$fn" && dn=
2569 nf=%{_sysconfdir}/$dn/$fn
2570 test -f "$nf" || continue
2571 cp -vfb $nf{,.rpmnew}
2574 s#%{_libdir}/php#%{_libdir}/%{name}#
2575 s#/etc/php#%{_sysconfdir}#
2579 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2580 # switch to browscap package if the ini file has original value
2581 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2582 # disable browscap, if optional package not present
2583 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2584 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2587 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2588 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2590 # common macros called at extension post/postun scriptlet
2592 if [ "$1" = "1" ]; then \
2593 %php_webserver_restart \
2597 %define ext_postun \
2598 if [ "$1" = "0" ]; then \
2599 %php_webserver_restart \
2603 %define extension_scripts() \
2611 # extension scripts defines
2612 %extension_scripts bcmath
2613 %extension_scripts bz2
2614 %extension_scripts calendar
2615 %extension_scripts ctype
2616 %extension_scripts curl
2617 %extension_scripts dba
2618 %extension_scripts dom
2619 %extension_scripts enchant
2620 %extension_scripts exif
2621 %extension_scripts ffi
2622 %extension_scripts fileinfo
2623 %extension_scripts filter
2624 %extension_scripts ftp
2625 %extension_scripts gd
2626 %extension_scripts gettext
2627 %extension_scripts gmp
2628 %extension_scripts iconv
2629 %extension_scripts imap
2630 %extension_scripts intl
2631 %extension_scripts json
2632 %extension_scripts ldap
2633 %extension_scripts mbstring
2634 %extension_scripts mysqli
2635 %extension_scripts mysqlnd
2636 %extension_scripts oci8
2637 %extension_scripts odbc
2638 %extension_scripts opcache
2639 %extension_scripts openssl
2640 %extension_scripts pcntl
2641 %extension_scripts pdo
2642 %extension_scripts pdo-dblib
2643 %extension_scripts pdo-firebird
2644 %extension_scripts pdo-mysql
2645 %extension_scripts pdo-oci
2646 %extension_scripts pdo-odbc
2647 %extension_scripts pdo-pgsql
2648 %extension_scripts pdo-sqlite
2649 %extension_scripts pgsql
2650 %extension_scripts posix
2651 %extension_scripts pspell
2652 %extension_scripts session
2653 %extension_scripts shmop
2654 %extension_scripts simplexml
2655 %extension_scripts snmp
2656 %extension_scripts soap
2657 %extension_scripts sockets
2658 %extension_scripts sodium
2659 %extension_scripts sqlite3
2660 %extension_scripts sysvmsg
2661 %extension_scripts sysvsem
2662 %extension_scripts sysvshm
2663 %extension_scripts tidy
2664 %extension_scripts tokenizer
2665 %extension_scripts xml
2666 %extension_scripts xmlreader
2667 %extension_scripts xmlrpc
2668 %extension_scripts xmlwriter
2669 %extension_scripts xsl
2670 %extension_scripts zip
2671 %extension_scripts zlib
2675 update-alternatives \
2676 --install %{_bindir}/phar phar %{_bindir}/phar%{php_suffix}.phar %{php_suffix} \
2677 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{php_suffix}.1* || :
2681 if [ $1 -eq 0 ]; then
2682 update-alternatives --remove phar %{_bindir}/phar%{php_suffix}.phar || :
2686 %files -n apache-mod_%{name}
2687 %defattr(644,root,root,755)
2688 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2689 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2691 %files -n apache-mod_%{name}-core
2692 %defattr(644,root,root,755)
2693 %dir %{_sysconfdir}/apache2handler.d
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php.ini
2695 %attr(755,root,root) %{_libdir}/apache/libphp%{php_suffix}.so
2698 %if %{with litespeed}
2700 %defattr(644,root,root,755)
2701 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2706 %defattr(644,root,root,755)
2707 %dir %{_sysconfdir}/cgi-fcgi.d
2708 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cgi-fcgi.d/php.ini
2709 %attr(755,root,root) %{_bindir}/%{name}.cgi
2710 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2715 %defattr(644,root,root,755)
2716 %attr(755,root,root) %{_libdir}/libphp%{php_suffix}.so
2720 %defattr(644,root,root,755)
2721 %dir %{_sysconfdir}/cli.d
2722 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/php.ini
2723 %attr(755,root,root) %{_bindir}/php%{php_suffix}
2724 %{_mandir}/man1/php%{php_suffix}.1*
2725 %ghost %{_bindir}/php
2726 %ghost %{_mandir}/man1/php.1*
2730 %defattr(644,root,root,755)
2731 %doc sapi/fpm/{CREDITS,LICENSE}
2732 %dir %{_sysconfdir}/php-fpm.d
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2735 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2736 %ghost %{_sbindir}/php-fpm
2737 %{_mandir}/man8/%{name}-fpm.8*
2738 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2739 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2744 %defattr(644,root,root,755)
2745 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2746 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2750 %defattr(644,root,root,755)
2751 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2753 %dir %{_sysconfdir}/conf.d
2754 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2755 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}-*.so
2757 %dir %{php_extensiondir}
2759 %doc ext/session/mod_files.sh
2762 %defattr(644,root,root,755)
2763 %doc CODING_STANDARDS.md docs/*.md
2764 %attr(755,root,root) %{_bindir}/ext_skel.php
2765 %attr(755,root,root) %{_bindir}/phpize%{php_suffix}
2766 %attr(755,root,root) %{_bindir}/php-config%{php_suffix}
2767 %ghost %{_bindir}/phpize
2768 %ghost %{_bindir}/php-config
2769 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}.so
2770 %{_libdir}/libphp_common%{php_suffix}.la
2771 %{_includedir}/php/php%{php_suffix}
2772 %{_libdir}/%{name}/build
2773 %{_mandir}/man1/php-config%{php_suffix}.1*
2774 %ghost %{_mandir}/man1/php-config.1*
2775 %{_mandir}/man1/phpize%{php_suffix}.1*
2776 %ghost %{_mandir}/man1/phpize.1*
2780 %defattr(644,root,root,755)
2781 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bcmath.ini
2782 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2787 %defattr(644,root,root,755)
2788 %doc ext/bz2/CREDITS
2789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bz2.ini
2790 %attr(755,root,root) %{php_extensiondir}/bz2.so
2793 %if %{with calendar}
2795 %defattr(644,root,root,755)
2796 %doc ext/calendar/CREDITS
2797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_calendar.ini
2798 %attr(755,root,root) %{php_extensiondir}/calendar.so
2803 %defattr(644,root,root,755)
2804 %doc ext/calendar/CREDITS
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ctype.ini
2806 %attr(755,root,root) %{php_extensiondir}/ctype.so
2811 %defattr(644,root,root,755)
2812 %doc ext/curl/CREDITS
2813 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_curl.ini
2814 %attr(755,root,root) %{php_extensiondir}/curl.so
2819 %defattr(644,root,root,755)
2820 %doc ext/dba/CREDITS
2821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dba.ini
2822 %attr(755,root,root) %{php_extensiondir}/dba.so
2827 %defattr(644,root,root,755)
2828 %doc ext/dom/CREDITS
2829 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dom.ini
2830 %attr(755,root,root) %{php_extensiondir}/dom.so
2835 %defattr(644,root,root,755)
2836 %doc ext/enchant/CREDITS
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_enchant.ini
2838 %attr(755,root,root) %{php_extensiondir}/enchant.so
2843 %defattr(644,root,root,755)
2844 %doc ext/exif/CREDITS
2845 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_exif.ini
2846 %attr(755,root,root) %{php_extensiondir}/exif.so
2851 %defattr(644,root,root,755)
2852 %doc ext/ffi/CREDITS
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ffi.ini
2854 %attr(755,root,root) %{php_extensiondir}/ffi.so
2857 %if %{with fileinfo}
2859 %defattr(644,root,root,755)
2860 %doc ext/fileinfo/CREDITS
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_fileinfo.ini
2862 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2867 %defattr(644,root,root,755)
2868 %doc ext/filter/CREDITS
2869 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_filter.ini
2870 %attr(755,root,root) %{php_extensiondir}/filter.so
2875 %defattr(644,root,root,755)
2876 %doc ext/ftp/CREDITS
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ftp.ini
2878 %attr(755,root,root) %{php_extensiondir}/ftp.so
2883 %defattr(644,root,root,755)
2885 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gd.ini
2886 %attr(755,root,root) %{php_extensiondir}/gd.so
2891 %defattr(644,root,root,755)
2892 %doc ext/gettext/CREDITS
2893 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gettext.ini
2894 %attr(755,root,root) %{php_extensiondir}/gettext.so
2899 %defattr(644,root,root,755)
2900 %doc ext/gmp/CREDITS
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gmp.ini
2902 %attr(755,root,root) %{php_extensiondir}/gmp.so
2907 %defattr(644,root,root,755)
2908 %doc ext/iconv/CREDITS
2909 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_iconv.ini
2910 %attr(755,root,root) %{php_extensiondir}/iconv.so
2915 %defattr(644,root,root,755)
2916 %doc ext/imap/CREDITS
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_imap.ini
2918 %attr(755,root,root) %{php_extensiondir}/imap.so
2923 %defattr(644,root,root,755)
2924 %doc ext/intl/CREDITS
2925 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_intl.ini
2926 %attr(755,root,root) %{php_extensiondir}/intl.so
2931 %defattr(644,root,root,755)
2932 %doc ext/json/CREDITS
2933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_json.ini
2934 %attr(755,root,root) %{php_extensiondir}/json.so
2939 %defattr(644,root,root,755)
2940 %doc ext/ldap/CREDITS
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ldap.ini
2942 %attr(755,root,root) %{php_extensiondir}/ldap.so
2945 %if %{with mbstring}
2947 %defattr(644,root,root,755)
2948 %doc ext/mbstring/CREDITS
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mbstring.ini
2950 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2955 %defattr(644,root,root,755)
2956 %doc ext/mysqli/CREDITS
2957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqli.ini
2958 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2963 %defattr(644,root,root,755)
2964 %doc ext/mysqlnd/CREDITS
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqlnd.ini
2966 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
2971 %defattr(644,root,root,755)
2972 %doc ext/oci8/{CREDITS,README}
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_oci8.ini
2974 %attr(755,root,root) %{php_extensiondir}/oci8.so
2979 %defattr(644,root,root,755)
2980 %doc ext/odbc/CREDITS
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_odbc.ini
2982 %attr(755,root,root) %{php_extensiondir}/odbc.so
2987 %defattr(644,root,root,755)
2988 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_opcache.ini
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
2990 %attr(755,root,root) %{php_extensiondir}/opcache.so
2995 %defattr(644,root,root,755)
2996 %doc ext/openssl/CREDITS
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_openssl.ini
2998 %attr(755,root,root) %{php_extensiondir}/openssl.so
3003 %defattr(644,root,root,755)
3004 %doc ext/pcntl/CREDITS
3005 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pcntl.ini
3006 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3011 %defattr(644,root,root,755)
3012 %doc ext/pdo/CREDITS
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo.ini
3014 %attr(755,root,root) %{php_extensiondir}/pdo.so
3017 %if %{with pdo_dblib}
3019 %defattr(644,root,root,755)
3020 %doc ext/pdo_dblib/CREDITS
3021 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_dblib.ini
3022 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3025 %if %{with pdo_firebird}
3027 %defattr(644,root,root,755)
3028 %doc ext/pdo_firebird/CREDITS
3029 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_firebird.ini
3030 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3033 %if %{with pdo_mysql}
3035 %defattr(644,root,root,755)
3036 %doc ext/pdo_mysql/CREDITS
3037 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_mysql.ini
3038 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3043 %defattr(644,root,root,755)
3044 %doc ext/pdo_oci/CREDITS
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_oci.ini
3046 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3049 %if %{with pdo_odbc}
3051 %defattr(644,root,root,755)
3052 %doc ext/pdo_odbc/CREDITS
3053 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_odbc.ini
3054 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3057 %if %{with pdo_pgsql}
3059 %defattr(644,root,root,755)
3060 %doc ext/pdo_pgsql/CREDITS
3061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_pgsql.ini
3062 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3065 %if %{with pdo_sqlite}
3067 %defattr(644,root,root,755)
3068 %doc ext/pdo_sqlite/CREDITS
3069 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_sqlite.ini
3070 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3075 %defattr(644,root,root,755)
3076 %doc ext/pgsql/CREDITS
3077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pgsql.ini
3078 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3083 %defattr(644,root,root,755)
3084 %doc ext/phar/CREDITS
3085 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_phar.ini
3086 %attr(755,root,root) %{php_extensiondir}/phar.so
3087 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3088 %{_mandir}/man1/phar%{php_suffix}.1*
3089 %{_mandir}/man1/phar.phar.1*
3090 %ghost %{_bindir}/phar
3091 %ghost %{_mandir}/man1/phar.1*
3096 %defattr(644,root,root,755)
3097 %doc ext/posix/CREDITS
3098 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_posix.ini
3099 %attr(755,root,root) %{php_extensiondir}/posix.so
3104 %defattr(644,root,root,755)
3105 %doc ext/pspell/CREDITS
3106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pspell.ini
3107 %attr(755,root,root) %{php_extensiondir}/pspell.so
3110 %if %{with readline}
3112 %defattr(644,root,root,755)
3113 %doc ext/readline/CREDITS
3114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/??_readline.ini
3115 %attr(755,root,root) %{php_extensiondir}/readline.so
3120 %defattr(644,root,root,755)
3121 %doc ext/session/CREDITS
3122 %doc ext/session/mod_files.sh
3123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_session.ini
3124 %attr(755,root,root) %{php_extensiondir}/session.so
3128 %defattr(644,root,root,755)
3129 %doc ext/shmop/CREDITS
3130 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_shmop.ini
3131 %attr(755,root,root) %{php_extensiondir}/shmop.so
3134 %defattr(644,root,root,755)
3135 %doc ext/simplexml/CREDITS
3136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_simplexml.ini
3137 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3141 %defattr(644,root,root,755)
3142 %doc ext/snmp/CREDITS
3143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_snmp.ini
3144 %attr(755,root,root) %{php_extensiondir}/snmp.so
3148 %defattr(644,root,root,755)
3149 %doc ext/soap/CREDITS
3150 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_soap.ini
3151 %attr(755,root,root) %{php_extensiondir}/soap.so
3154 %defattr(644,root,root,755)
3155 %doc ext/sockets/CREDITS
3156 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sockets.ini
3157 %attr(755,root,root) %{php_extensiondir}/sockets.so
3161 %defattr(644,root,root,755)
3162 %doc ext/sodium/{README.md,CREDITS}
3163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sodium.ini
3164 %attr(755,root,root) %{php_extensiondir}/sodium.so
3169 %defattr(644,root,root,755)
3170 %doc ext/sqlite3/CREDITS
3171 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sqlite3.ini
3172 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3176 %defattr(644,root,root,755)
3177 %doc ext/sysvmsg/CREDITS
3178 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvmsg.ini
3179 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3182 %defattr(644,root,root,755)
3183 %doc ext/sysvsem/CREDITS
3184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvsem.ini
3185 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3188 %defattr(644,root,root,755)
3189 %doc ext/sysvshm/CREDITS
3190 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvshm.ini
3191 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3194 %defattr(644,root,root,755)
3195 %dir %{php_datadir}/tests
3196 %dir %{php_datadir}/tests/php
3197 %{php_datadir}/tests/php/basic
3198 %{php_datadir}/tests/php/classes
3199 %{php_datadir}/tests/php/func
3200 %{php_datadir}/tests/php/lang
3201 %{php_datadir}/tests/php/output
3202 %{php_datadir}/tests/php/run-test
3203 %{php_datadir}/tests/php/security
3204 %{php_datadir}/tests/php/strings
3205 %{php_datadir}/tests/php/quicktester.inc
3206 %attr(755,root,root) %{php_datadir}/tests/php/run-tests.php
3210 %defattr(644,root,root,755)
3211 %doc ext/tidy/CREDITS
3212 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tidy.ini
3213 %attr(755,root,root) %{php_extensiondir}/tidy.so
3217 %defattr(644,root,root,755)
3218 %doc ext/tokenizer/CREDITS
3219 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tokenizer.ini
3220 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3223 %defattr(644,root,root,755)
3224 %doc ext/xml/CREDITS
3225 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xml.ini
3226 %attr(755,root,root) %{php_extensiondir}/xml.so
3229 %defattr(644,root,root,755)
3230 %doc ext/xmlreader/CREDITS
3231 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlreader.ini
3232 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3236 %defattr(644,root,root,755)
3237 %doc ext/xmlrpc/CREDITS
3238 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlrpc.ini
3239 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3243 %defattr(644,root,root,755)
3244 %doc ext/xmlwriter/CREDITS
3245 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlwriter.ini
3246 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3250 %defattr(644,root,root,755)
3251 %doc ext/xsl/CREDITS
3252 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xsl.ini
3253 %attr(755,root,root) %{php_extensiondir}/xsl.so
3258 %defattr(644,root,root,755)
3259 %doc ext/zip/{CREDITS,examples}
3260 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zip.ini
3261 %attr(755,root,root) %{php_extensiondir}/zip.so
3265 %defattr(644,root,root,755)
3266 %doc ext/zlib/CREDITS
3267 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zlib.ini
3268 %attr(755,root,root) %{php_extensiondir}/zlib.so