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: b623bef0da0b7c48477853ca50c989c5
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 Patch59: %{orgname}-systzdata.patch
176 Patch66: php-db.patch
177 Patch67: mysql-lib-ver-mismatch.patch
178 Patch69: fpm-conf-split.patch
179 Patch71: libdb-info.patch
181 %{?with_firebird:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
182 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
183 BuildRequires: autoconf >= 2.59
184 BuildRequires: automake >= 1.4d
185 BuildRequires: bison >= 3.0.0
186 BuildRequires: bzip2-devel >= 1.0.0
187 %{?with_curl:BuildRequires: curl-devel >= 7.15.5}
188 BuildRequires: cyrus-sasl-devel >= 2
189 BuildRequires: db-devel >= 4.0
190 BuildRequires: elfutils-devel
191 %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
192 %{?with_kerberos5:BuildRequires: heimdal-devel}
193 %{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
194 %{?with_ffi:BuildRequires: libffi-devel}
195 %{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
196 %if %{with pdo_dblib}
197 BuildRequires: freetds-devel >= 0.82
199 BuildRequires: freetype-devel >= 1:2.5.1
200 %if %{with system_gd}
201 BuildRequires: gd-devel >= 2.1
203 BuildRequires: gdbm-devel
204 BuildRequires: gmp-devel >= 4.2
205 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
206 %{?with_gcov:BuildRequires: lcov}
207 %{?with_fpm:BuildRequires: libapparmor-devel}
208 %{?with_intl:BuildRequires: libicu-devel >= 50.1}
209 BuildRequires: libjpeg-devel
210 BuildRequires: libltdl-devel >= 1.4
211 BuildRequires: libpng-devel >= 1.0.8
212 %{?with_intl:BuildRequires: libstdc++-devel}
213 BuildRequires: libtool >= 2:2.4.6
214 %{?with_webp:BuildRequires: libwebp-devel}
215 BuildRequires: libxml2-devel >= 1:2.7.6-4
216 %{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
217 %{?with_zip:BuildRequires: libzip-devel >= 1.3.1}
218 %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
219 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
220 %{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
221 %{!?with_pdo_mysql:BuildRequires: mysql-devel}
222 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
223 BuildRequires: oniguruma-devel
224 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
225 %if %{with openssl} || %{with ldap}
226 BuildRequires: openssl-devel >= 1.0.1
228 %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
229 BuildRequires: pam-devel
230 BuildRequires: pcre2-8-devel >= 10.30
231 BuildRequires: pkgconfig
232 %{?with_pgsql:BuildRequires: postgresql-devel}
233 BuildRequires: readline-devel
234 BuildRequires: rpm >= 4.4.9-56
235 BuildRequires: rpm-build >= 4.4.0
236 BuildRequires: rpmbuild(macros) >= 1.566
237 BuildRequires: sed >= 4.0
238 %if %{with sqlite3} || %{with pdo_sqlite}
239 BuildRequires: sqlite3-devel >= 3.7.4
241 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
242 BuildRequires: tar >= 1:1.22
243 %{?with_tidy:BuildRequires: tidy-devel}
244 BuildRequires: tokyocabinet-devel
245 %{?with_odbc:BuildRequires: unixODBC-devel}
246 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
248 BuildRequires: zlib-devel >= 1.2.0.4
250 BuildRequires: apache-devel >= 2.0.52-2
251 BuildRequires: apr-devel >= 1:1.0.0
252 BuildRequires: apr-util-devel >= 1:1.0.0
254 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
256 %define php_sysconfdir /etc/%{name}
257 %define php_extensiondir %{_libdir}/%{name}
258 %define php_datadir /usr/share/php/%{name}
259 %define _sysconfdir %{php_sysconfdir}
261 # must be in sync with source. extra check ensuring that it is so is done in %%build
262 %define php_api_version 20190902
263 %define zend_module_api 20190902
264 %define zend_extension_api 320190902
265 %define php_pdo_api_version 20170320
268 %define bz2ver %{version}
269 %define enchantver %{version}
270 %define fileinfover %{version}
271 %define hashver %{version}
272 %define intlver %{version}
273 %define jsonver %{version}
274 %define pharver %{version}
275 %define sqlite3ver %{version}
276 %define zipver 1.15.6
277 %define phpdbgver %{version}
278 %define sodiumver %{version}
280 %define _zend_zts %{!?with_zts:0}%{?with_zts:1}
281 %define php_debug %{!?with_debug:0}%{?with_debug:1}
284 %undefine with_ccache
288 # ORACLE_HOME is required for oci8 ext to build
289 %define _preserve_env %_preserve_env_base ORACLE_HOME
293 PHP is an HTML-embedded scripting language. PHP attempts to make it
294 easy for developers to write dynamically generated web pages. PHP also
295 offers built-in database integration for several commercial and
296 non-commercial database management systems, so writing a
297 database-enabled web page with PHP is fairly simple. The most common
298 use of PHP coding is probably as a replacement for CGI scripts. The
299 mod_php module enables the Apache web server to understand and process
300 the embedded PHP language in web pages. This package contains PHP
303 %description -l fr.UTF-8
304 PHP est un langage de script embarque dans le HTM. PHP essaye de
305 rendre simple aux developpeurs d'ecrire des pages web generees
306 dynamiquement. PHP incorpore egalement une integration avec plusieurs
307 systemes de gestion de bases de donnees commerciaux et
308 non-connerciaux, qui rent facile la creation de pages web liees avec
309 des bases de donnees. L'utilisation la plus commune de PHP est
310 probablement en remplacement de scripts CGI. Le module mod_php permet
311 au serveur web Apache de comprendre et de traiter le langage PHP
312 integre dans des pages web. Ce package contient PHP version
315 %description -l pl.UTF-8
316 PHP jest językiem skryptowym, którego polecenia umieszcza się w
317 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
318 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
319 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
320 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
321 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
322 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
323 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
326 %description -l pt_BR.UTF-8
327 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
328 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
329 com algumas características únicas, específicas ao PHP. O objetivo da
330 linguagem é permitir que desenvolvedores web escrevam páginas
331 dinamicamente geradas de forma rápida.
333 %description -l ru.UTF-8
334 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
335 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
336 для работы с базами данных относительно просто. Наиболее популярное
337 использование PHP - замена для CGI скриптов.
339 %description -l uk.UTF-8
340 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
341 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
342 роботи з базами даних є доволі простим. Найбільш популярне
343 використання PHP - заміна для CGI скриптів.
345 %package -n apache-mod_%{name}
346 Summary: PHP support for Apache 2.x
347 Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
348 Group: Development/Languages/PHP
349 Requires: %{name}-common = %{epoch}:%{version}-%{release}
350 Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
351 Provides: webserver(php) = %{version}
352 Obsoletes: apache-mod_php < 4:5.3.28-7
355 %description -n apache-mod_%{name}
356 PHP support for Apache 2.x.
358 %description -n apache-mod_%{name} -l pl.UTF-8
359 Wsparcie PHP dla Apache 2.x.
361 %package -n apache-mod_%{name}-core
362 Summary: PHP DSO module for Apache 2.x
363 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
364 Group: Development/Languages/PHP
365 Requires: %{name}-common = %{epoch}:%{version}-%{release}
366 Requires: apache(modules-api) = %{apache_modules_api}
367 Requires: apache-mod_mime
369 %description -n apache-mod_%{name}-core
370 PHP as DSO module for Apache 2.x.
372 %description -n apache-mod_%{name}-core -l pl.UTF-8
373 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
376 Summary: PHP for litespeed HTTP server
377 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
378 Group: Development/Languages/PHP
379 Requires: %{name}-common = %{epoch}:%{version}-%{release}
380 Provides: php(litespeed)
381 Provides: webserver(php) = %{version}
382 Obsoletes: php-litespeed < 4:5.3.28-7
384 %description litespeed
385 PHP for litespeed HTTP server.
387 %description litespeed -l pl.UTF-8
388 PHP dla serwera HTTP litespeed.
391 Summary: PHP as CGI/FastCGI program
392 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
393 Group: Development/Languages/PHP
394 Requires: %{name}-common = %{epoch}:%{version}-%{release}
395 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
398 Provides: webserver(php) = %{version}
399 Obsoletes: php-cgi < 4:5.3.28-7
400 Obsoletes: php-fcgi < 4:5.3.0
403 PHP as CGI or FastCGI program.
405 %description cgi -l pl.UTF-8
406 PHP jako program CGI lub FastCGI.
409 Summary: PHP as CLI interpreter
410 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
411 Group: Development/Languages/PHP
412 Requires: %{name}-common = %{epoch}:%{version}-%{release}
413 Requires: alternatives
414 Obsoletes: php-cli < 4:5.3.28-7
417 PHP as CLI interpreter.
419 %description cli -l pl.UTF-8
420 PHP jako interpreter działający z linii poleceń.
423 Summary: PHP library for embedding in applications
424 Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
426 Requires: %{name}-common = %{epoch}:%{version}-%{release}
427 Obsoletes: php-embedded < 4:5.3.28-7
429 %description embedded
430 The php-embedded package contains a library which can be embedded into
431 applications to provide PHP scripting language support.
433 %description embedded -l pl.UTF-8
434 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
435 celu obsługi PHP jako języka skryptowego.
438 Summary: PHP FastCGI Process Manager
439 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
440 Group: Development/Languages/PHP
441 URL: http://php-fpm.org/
442 Requires(post,preun): /sbin/chkconfig
443 Requires(postun): /usr/sbin/userdel
444 Requires(pre): /bin/id
445 Requires(pre): /usr/sbin/useradd
446 Requires: %{name}-common = %{epoch}:%{version}-%{release}
447 Requires: alternatives
448 Requires: php-dirs >= 1.4-2
453 Provides: webserver(php) = %{version}
454 Obsoletes: php-fpm < 4:5.3.28-7
455 Conflicts: logrotate < 3.8.0
458 PHP FastCGI Process Manager.
460 %description fpm -l pl.UTF-8
461 PHP FastCGI Process Manager - zarządca procesów FastCGI.
464 Summary: The debugging platform for PHP 5.4+
465 Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
466 Group: Development/Languages/PHP
467 Requires: %{name}-common = %{epoch}:%{version}-%{release}
468 Provides: php(phpdbg) = %{phpdbgver}
471 phpdbg - The interactive PHP debugger.
473 Implemented as a SAPI module, phpdbg can excert complete control over
474 the environment without impacting the functionality or performance of
477 phpdbg aims to be a lightweight, powerful, easy to use debugging
478 platform for PHP 5.4+
480 %description phpdbg -l pl.UTF-8
481 phpdbg - interaktywny debugger dla PHP.
483 Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
484 nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
486 Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
487 platforma diagnostyczna dla PHP 5.4+.
490 Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
491 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
492 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
493 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
495 Requires(post): sed >= 4.0
496 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
497 Requires: glibc >= 6:2.3.5
498 Requires: php-dirs >= 1.4
499 Requires: rpm-whiteout >= 1.28
501 Requires: zlib >= 1.2.0.4
502 Provides: %{name}(debug) = %{php_debug}
503 Provides: %{name}(modules_api) = %{php_api_version}
504 Provides: %{name}(thread-safety) = %{_zend_zts}
505 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
506 Provides: %{name}(zend_module_api) = %{zend_module_api}
507 Provides: %{name}-core
508 Provides: %{name}-date
509 Provides: %{name}-hash = %{epoch}:%{version}-%{release}
510 Provides: %{name}-pcre = %{epoch}:%{version}-%{release}
511 Provides: %{name}-reflection
512 Provides: %{name}-spl = %{epoch}:%{version}-%{release}
513 Provides: %{name}-standard
514 Provides: php(core) = %{version}
516 Provides: php(hash) = %{hashver}
517 Provides: php(libxml)
519 Provides: php(reflection)
521 Provides: php(standard)
522 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
523 %requires_ge_to pcre2-8 pcre2-8-devel
525 Obsoletes: php-common < 4:5.3.28-7
526 Obsoletes: php-filepro < 4:5.2.0
527 Obsoletes: php-hash < 4:5.3.28-7
528 Obsoletes: php-hwapi < 4:5.2.0
529 Obsoletes: php-hyperwave < 3:5.0.0
530 Obsoletes: php-java < 3:5.0.0
531 Obsoletes: php-mcal < 3:5.0.0
532 Obsoletes: php-pcre < 4:5.3.28-7
533 Obsoletes: php-pecl-domxml
534 Obsoletes: php-pecl-hash < %{hashver}
535 Obsoletes: php-qtdom < 3:5.0.0
536 Obsoletes: php-spl < 4:5.3.28-7
537 Conflicts: php4-common < 3:4.4.4-8
538 Conflicts: php55-common < 4:5.5.10-4
539 Conflicts: rpm < 4.4.2-0.2
542 Provides: php-mhash = %{epoch}:%{version}-%{release}
543 Obsoletes: php-mhash < 4:5.3.0
547 Common files needed by both Apache modules and CGI/CLI SAPIs.
549 %description common -l pl.UTF-8
550 Wspólne pliki dla modułu Apache'a i programu CGI.
552 %description common -l ru.UTF-8
553 Этот пакет содержит общие файлы для разных вариантов реализации PHP
554 (самодостаточной и в качестве модуля Apache).
556 %description common -l uk.UTF-8
557 Цей пакет містить спільні файли для різних варіантів реалізації PHP
558 (самодостатньої та в якості модуля Apache).
561 Summary: Files for PHP modules development
562 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
563 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
564 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
565 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
566 Group: Development/Languages/PHP
567 Requires: %{name}-common = %{epoch}:%{version}-%{release}
568 Requires: autoconf >= 2.59
569 Requires: automake >= 1.4d
570 Requires: libtool >= 2:2.4.6
571 Requires: pcre2-8-devel >= 10.30
573 Provides: php-devel = %{epoch}:%{version}-%{release}
575 Obsoletes: php-pear-devel
576 Obsoletes: php4-devel
577 Obsoletes: php52-devel
578 Obsoletes: php53-devel
579 Obsoletes: php54-devel
580 Obsoletes: php55-devel
581 Obsoletes: php56-devel
584 The php-devel package lets you compile dynamic extensions to PHP.
585 Included here is the source for the PHP extensions. Instead of
586 recompiling the whole PHP binary to add support for, say, oracle,
587 install this package and use the new self-contained extensions
588 support. For more information, read the file
589 README.SELF-CONTAINED-EXTENSIONS.
591 %description devel -l pl.UTF-8
592 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
593 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
594 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
595 samodzielnych rozszerzeniach można znaleźć w pliku
596 README.SELF-CONTAINED-EXTENSIONS.
598 %description devel -l pt_BR.UTF-8
599 Este pacote contém arquivos usados no desenvolvimento de programas ou
602 %description devel -l ru.UTF-8
603 Пакет php-devel дает возможность компилировать динамические расширения
604 PHP. Пакет включает исходный код этих расширений. Вместо повторной
605 компиляции бинарного файла PHP для добавления, например, поддержки
606 oracle, установите этот пакет для компилирования отдельных расширений.
607 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
609 %description devel -l uk.UTF-8
610 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
611 До пакету включено вихідний код для розширень. Замість повторної
612 компіляції бінарного файлу PHP для додання, наприклад, підтримки
613 oracle, встановіть цей пакет для компіляції окремих розширень.
614 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
617 Summary: bcmath extension module for PHP
618 Summary(pl.UTF-8): Moduł bcmath dla PHP
620 URL: http://php.net/manual/en/book.bc.php
621 Requires: %{name}-common = %{epoch}:%{version}-%{release}
622 Provides: php(bcmath)
623 Obsoletes: php-bcmath < 4:5.3.28-7
626 This is a dynamic shared object (DSO) for PHP that will add bc style
627 precision math functions support.
629 %description bcmath -l pl.UTF-8
630 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
631 matematycznych takich jak w programie bc.
634 Summary: Bzip2 extension module for PHP
635 Summary(pl.UTF-8): Moduł bzip2 dla PHP
637 URL: http://php.net/manual/en/book.bzip2.php
638 Requires: %{name}-common = %{epoch}:%{version}-%{release}
639 Requires: bzip2-libs >= 1.0.0
640 Provides: php(bz2) = %{bz2ver}
642 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
643 Obsoletes: php-bz2 < 4:5.3.28-7
644 Obsoletes: php-bzip2 < 4:5.2.14-3
645 Obsoletes: php-pecl-bz2 < %{bz2ver}
648 This is a dynamic shared object (DSO) for PHP that will add bzip2
649 compression support to PHP.
651 %description bz2 -l pl.UTF-8
652 Moduł PHP umożliwiający używanie kompresji bzip2.
655 Summary: Calendar extension module for PHP
656 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
658 URL: http://php.net/manual/en/book.calendar.php
659 Requires: %{name}-common = %{epoch}:%{version}-%{release}
660 Provides: php(calendar)
661 Obsoletes: php-calendar < 4:5.3.28-7
663 %description calendar
664 This is a dynamic shared object (DSO) for PHP that will add calendar
667 %description calendar -l pl.UTF-8
668 Moduł PHP dodający wsparcie dla kalendarza.
671 Summary: ctype extension module for PHP
672 Summary(pl.UTF-8): Moduł ctype dla PHP
674 URL: http://php.net/manual/en/book.ctype.php
675 Requires: %{name}-common = %{epoch}:%{version}-%{release}
677 Obsoletes: php-ctype < 4:5.3.28-7
680 This is a dynamic shared object (DSO) for PHP that will add ctype
683 %description ctype -l pl.UTF-8
684 Moduł PHP umożliwiający korzystanie z funkcji ctype.
687 Summary: curl extension module for PHP
688 Summary(pl.UTF-8): Moduł curl dla PHP
690 URL: http://php.net/manual/en/book.curl.php
691 Requires: %{name}-common = %{epoch}:%{version}-%{release}
692 Requires: curl-libs >= 7.12.0
694 Obsoletes: php-curl < 4:5.3.28-7
697 This is a dynamic shared object (DSO) for PHP that will add curl
700 %description curl -l pl.UTF-8
701 Moduł PHP umożliwiający korzystanie z biblioteki curl.
704 Summary: DBA extension module for PHP
705 Summary(pl.UTF-8): Moduł DBA dla PHP
707 URL: http://php.net/manual/en/book.dba.php
708 Requires: %{name}-common = %{epoch}:%{version}-%{release}
710 Obsoletes: php-dba < 4:5.3.28-7
711 # withdrawn module of similar functionality but different API
712 Obsoletes: php-db < 3:5.0.0
715 This is a dynamic shared object (DSO) for PHP that will add flat-file
716 databases (DBA) support.
718 %description dba -l pl.UTF-8
719 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
723 Summary: DOM extension module for PHP
724 Summary(pl.UTF-8): Moduł DOM dla PHP
726 URL: http://php.net/manual/en/book.dom.php
727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
729 # it has some compatibility functions
730 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
731 Provides: php(domxml)
732 Obsoletes: php-dom < 4:5.3.28-7
733 Obsoletes: php-domxml <= 3:4.3.8-1
736 This is a dynamic shared object (DSO) for PHP that will add new DOM
739 %description dom -l pl.UTF-8
740 Moduł PHP dodający nową obsługę DOM.
743 Summary: libenchant binder
744 Summary(pl.UTF-8): dowiązania biblioteki libenchant
746 URL: http://php.net/manual/en/book.enchant.php
747 Requires: %{name}-common = %{epoch}:%{version}-%{release}
748 Provides: php(enchant) = %{enchantver}
749 Obsoletes: php-enchant < 4:5.3.28-7
750 Obsoletes: php-pecl-enchant < %{enchantver}
753 Enchant is a binder for libenchant. Libenchant provides a common API
754 for many spell libraries:
755 - aspell/pspell (intended to replace ispell)
758 - myspell (OpenOffice.org project, mozilla)
759 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
760 plugin system allows to add custom spell support.
762 %description enchant -l pl.UTF-8
763 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
764 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
765 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
768 - myspell (projekt OpenOffice.org, mozilla)
769 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
770 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
773 Summary: exif extension module for PHP
774 Summary(pl.UTF-8): Moduł exif dla PHP
776 URL: http://php.net/manual/en/book.exif.php
777 Requires: %{name}-common = %{epoch}:%{version}-%{release}
779 Obsoletes: php-exif < 4:5.3.28-7
782 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
783 support in image files.
785 %description exif -l pl.UTF-8
786 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
789 Summary: %{modname} - Foreign Function Interface
791 URL: https://www.php.net/manual/en/book.ffi.php
792 Requires: %{name}-common = %{epoch}:%{version}-%{release}
793 Provides: php(ffi) = %{version}
796 FFI is a multi-platform extension for PHP that allows you to bind to
797 functions from arbitrary shared libraries and call them.
800 Summary: libmagic bindings
801 Summary(pl.UTF-8): Wiązania do libmagic
803 URL: http://php.net/manual/en/book.fileinfo.php
804 Requires: %{name}-common = %{epoch}:%{version}-%{release}
805 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
806 Provides: php(fileinfo) = %{fileinfover}
807 Obsoletes: php-fileinfo < 4:5.3.28-7
808 Obsoletes: php-mime_magic
809 Obsoletes: php-pecl-fileinfo < %{fileinfover}
811 %description fileinfo
812 This extension allows retrieval of information regarding vast majority
813 of file. This information may include dimensions, quality, length
816 Additionally it can also be used to retrieve the MIME type for a
817 particular file and for text files proper language encoding.
819 %description fileinfo -l pl.UTF-8
820 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
821 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
823 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
824 pliku oraz kodowania plików tekstowych.
827 Summary: Extension for safely dealing with input parameters
828 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
830 URL: http://php.net/manual/en/book.filter.php
831 Requires: %{name}-common = %{epoch}:%{version}-%{release}
832 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
833 Provides: php(filter)
834 Obsoletes: php-filter < 4:5.3.28-7
835 Obsoletes: php-pecl-filter
838 We all know that you should always check input variables, but PHP does
839 not offer really good functionality for doing this in a safe way. The
840 Input Filter extension is meant to address this issue by implementing
841 a set of filters and mechanisms that users can use to safely access
844 %description filter -l pl.UTF-8
845 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
846 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
847 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
848 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
849 mogą bezpiecznie używać do dostępu do danych.
852 Summary: FTP extension module for PHP
853 Summary(pl.UTF-8): Moduł FTP dla PHP
855 URL: http://php.net/manual/en/book.ftp.php
856 Requires: %{name}-common = %{epoch}:%{version}-%{release}
858 Obsoletes: php-ftp < 4:5.3.28-7
861 This is a dynamic shared object (DSO) for PHP that will add FTP
864 %description ftp -l pl.UTF-8
865 Moduł PHP dodający obsługę protokołu FTP.
868 Summary: GD extension module for PHP
869 Summary(pl.UTF-8): Moduł GD dla PHP
871 URL: http://php.net/manual/en/book.image.php
872 Requires: %{name}-common = %{epoch}:%{version}-%{release}
873 %if %{with system_gd}
878 Obsoletes: php-gd < 4:5.3.28-7
881 This is a dynamic shared object (DSO) for PHP that will add GD
882 support, allowing you to create and manipulate images with PHP.
884 %description gd -l pl.UTF-8
885 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
886 tworzenie i obróbkę obrazków.
889 Summary: gettext extension module for PHP
890 Summary(pl.UTF-8): Moduł gettext dla PHP
892 URL: http://php.net/manual/en/book.gettext.php
893 Requires: %{name}-common = %{epoch}:%{version}-%{release}
894 Provides: php(gettext)
895 Obsoletes: php-gettext < 4:5.3.28-7
898 This is a dynamic shared object (DSO) for PHP that will add gettext
901 %description gettext -l pl.UTF-8
902 Moduł PHP dodający obsługę lokalizacji przez gettext.
905 Summary: gmp extension module for PHP
906 Summary(pl.UTF-8): Moduł gmp dla PHP
908 URL: http://php.net/manual/en/book.gmp.php
909 Requires: %{name}-common = %{epoch}:%{version}-%{release}
912 Obsoletes: php-gmp < 4:5.3.28-7
915 This is a dynamic shared object (DSO) for PHP that will add arbitrary
916 length number support with GNU MP library.
918 %description gmp -l pl.UTF-8
919 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
920 liczbach o dowolnej długości.
923 Summary: iconv extension module for PHP
924 Summary(pl.UTF-8): Moduł iconv dla PHP
926 URL: http://php.net/manual/en/book.iconv.php
927 Requires: %{_libdir}/gconv
928 Requires: %{name}-common = %{epoch}:%{version}-%{release}
931 Obsoletes: php-iconv < 4:5.3.28-7
934 This is a dynamic shared object (DSO) for PHP that will add iconv
937 %description iconv -l pl.UTF-8
938 Moduł PHP dodający obsługę iconv.
941 Summary: IMAP extension module for PHP
942 Summary(pl.UTF-8): Moduł IMAP dla PHP
943 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
945 URL: http://php.net/manual/en/book.imap.php
946 Requires: %{name}-common = %{epoch}:%{version}-%{release}
947 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
948 Requires: imap-lib >= 1:2007e-2
950 Obsoletes: php-imap < 4:5.3.28-7
953 This is a dynamic shared object (DSO) for PHP that will add IMAP
956 %description imap -l pl.UTF-8
957 Moduł PHP dodający obsługę skrzynek IMAP.
959 %description imap -l pt_BR.UTF-8
960 Um módulo para aplicações PHP que usam IMAP.
963 Summary: Internationalization extension (ICU wrapper)
964 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
966 URL: http://php.net/intl
967 Requires: %{name}-common = %{epoch}:%{version}-%{release}
968 Provides: php(intl) = %{intlver}
969 Obsoletes: php-intl < 4:5.3.28-7
970 Obsoletes: php-pecl-intl < %{intlver}
973 Internationalization extension (further is referred as Intl) is a
974 wrapper for ICU library, enabling PHP programmers to perform
975 UCA-conformant collation and date/time/number/currency formatting in
978 %description intl -l pl.UTF-8
979 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
980 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
981 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
985 Summary: PHP C extension for JSON serialization
986 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
988 URL: http://php.net/manual/en/book.json.php
989 Requires: %{name}-common = %{epoch}:%{version}-%{release}
990 Provides: php(json) = %{jsonver}
991 Obsoletes: php-json < 4:5.3.28-7
992 Obsoletes: php-pecl-json < %{jsonver}
995 php-json is an extremely fast PHP C extension for JSON (JavaScript
996 Object Notation) serialisation.
998 %description json -l pl.UTF-8
999 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1000 (JavaScript Object Notation).
1003 Summary: LDAP extension module for PHP
1004 Summary(pl.UTF-8): Moduł LDAP dla PHP
1005 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1007 URL: http://php.net/manual/en/book.ldap.php
1008 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1010 Obsoletes: php-ldap < 4:5.3.28-7
1013 This is a dynamic shared object (DSO) for PHP that will add LDAP
1016 %description ldap -l pl.UTF-8
1017 Moduł PHP dodający obsługę LDAP.
1019 %description ldap -l pt_BR.UTF-8
1020 Um módulo para aplicações PHP que usam LDAP.
1023 Summary: mbstring extension module for PHP
1024 Summary(pl.UTF-8): Moduł mbstring dla PHP
1026 URL: http://php.net/manual/en/book.mbstring.php
1027 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1028 Provides: php(mbstring)
1029 Obsoletes: php-mbstring < 4:5.3.28-7
1031 %description mbstring
1032 This is a dynamic shared object (DSO) for PHP that will add multibyte
1035 %description mbstring -l pl.UTF-8
1036 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1039 Summary: MySQLi module for PHP
1040 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1042 URL: http://php.net/manual/en/book.mysqli.php
1043 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1044 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1045 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1046 Requires: mysql-libs >= 4.1.13
1047 Provides: php(mysqli)
1048 Obsoletes: php-mysqli < 4:5.3.28-7
1051 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1052 (Improved MySQL) support. The difference between it and mysql module
1053 is that it provides access to functionality of MySQL 4.1 and above.
1055 %description mysqli -l pl.UTF-8
1056 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1057 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1058 MySQL w wersji 4.1 i nowszych.
1061 Summary: MySQL Native Client Driver for PHP
1062 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1064 URL: http://php.net/manual/en/book.mysqlnd.php
1065 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1066 Provides: php(mysqlnd)
1067 Obsoletes: php-mysqlnd < 4:5.3.28-7
1069 %description mysqlnd
1070 MySQL Native Driver is a replacement for the MySQL Client Library
1073 Because MySQL Native Driver is written as a PHP extension, it is
1074 tightly coupled to the workings of PHP. This leads to gains in
1075 efficiency, especially when it comes to memory usage, as the driver
1076 uses the PHP memory management system. It also supports the PHP memory
1077 limit. Using MySQL Native Driver leads to comparable or better
1078 performance than using MySQL Client Library, it always ensures the
1079 most efficient use of memory. One example of the memory efficiency is
1080 the fact that when using the MySQL Client Library, each row is stored
1081 in memory twice, whereas with the MySQL Native Driver each row is only
1082 stored once in memory.
1084 %description mysqlnd -l pl.UTF-8
1085 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1086 klienckiej MySQL (libmysql).
1088 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1089 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1090 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1091 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1092 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1093 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1094 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1095 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1096 tym sterowniku - tylko raz.
1099 Summary: Oracle 8+ database module for PHP
1100 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1102 URL: http://php.net/manual/en/book.oci8.php
1103 %{?requires_php_extension}
1105 Obsoletes: php-oci8 < 4:5.3.28-7
1106 # withdrawn module of similar functionality but different API
1107 Obsoletes: php-oracle < 4:5.1.0
1110 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1111 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1113 %description oci8 -l pl.UTF-8
1114 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1115 poprzez interfejs Oracle8 Call-Interface (OCI8).
1118 Summary: ODBC extension module for PHP
1119 Summary(pl.UTF-8): Moduł ODBC dla PHP
1120 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1122 URL: http://php.net/manual/en/book.uodbc.php
1123 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1124 Requires: unixODBC >= 2.1.1-3
1126 Obsoletes: php-odbc < 4:5.3.28-7
1129 This is a dynamic shared object (DSO) for PHP that will add ODBC
1132 %description odbc -l pl.UTF-8
1133 Moduł PHP ze wsparciem dla ODBC.
1135 %description odbc -l pt_BR.UTF-8
1136 Um módulo para aplicações PHP que usam ODBC.
1139 Summary: Zend Optimizer+ - PHP code optimizer
1140 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1142 URL: https://wiki.php.net/rfc/optimizerplus
1143 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1144 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1145 Provides: php(opcache) = %{version}
1147 %description opcache
1148 The Zend OPcache provides faster PHP execution through opcode caching
1149 and optimization. It improves PHP performance by storing precompiled
1150 script bytecode in the shared memory. This eliminates the stages of
1151 reading code from the disk and compiling it on future access. In
1152 addition, it applies a few bytecode optimization patterns that make
1153 code execution faster.
1155 %description opcache -l pl.UTF-8
1156 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1157 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1158 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1159 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1160 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1161 czyniąc wykonywanie kodu szybszym.
1164 Summary: OpenSSL extension module for PHP
1165 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1167 URL: http://php.net/manual/en/book.openssl.php
1168 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1169 Provides: php(openssl)
1170 Obsoletes: php-openssl < 4:5.3.28-7
1172 %description openssl
1173 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1176 %description openssl -l pl.UTF-8
1177 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1180 Summary: Process Control extension module for PHP
1181 Summary(pl.UTF-8): Moduł Process Control dla PHP
1183 URL: http://php.net/manual/en/book.pcntl.php
1184 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1185 Provides: php(pcntl)
1186 Obsoletes: php-pcntl < 4:5.3.28-7
1189 This is a dynamic shared object (DSO) for PHP that will add process
1190 spawning and control support. It supports functions like fork(),
1191 waitpid(), signal() etc.
1193 %description pcntl -l pl.UTF-8
1194 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1195 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1198 Summary: PHP Data Objects (PDO)
1199 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1201 URL: http://php.net/manual/en/book.pdo.php
1202 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1203 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1204 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1206 Obsoletes: php-pdo < 4:5.3.28-7
1207 Obsoletes: php-pecl-PDO
1210 This is a dynamic shared object (DSO) for PHP that will add PDO
1213 %description pdo -l pl.UTF-8
1214 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1217 Summary: PHP Data Objects (PDO) FreeTDS support
1218 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1220 URL: http://php.net/manual/en/ref.pdo-dblib.php
1221 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1222 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1223 Provides: php(pdo_dblib)
1224 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1226 %description pdo-dblib
1227 This is a dynamic shared object (DSO) for PHP that will add PDO
1230 %description pdo-dblib -l pl.UTF-8
1231 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1234 %package pdo-firebird
1235 Summary: PHP Data Objects (PDO) Firebird support
1236 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1238 URL: http://php.net/manual/en/ref.pdo-firebird.php
1239 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1240 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1241 Provides: php(pdo-firebird)
1242 Provides: php(pdo_firebird)
1243 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1244 Obsoletes: php-pecl-PDO_FIREBIRD
1246 %description pdo-firebird
1247 This is a dynamic shared object (DSO) for PHP that will add PDO
1250 %description pdo-firebird -l pl.UTF-8
1251 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1255 Summary: PHP Data Objects (PDO) MySQL support
1256 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1258 URL: http://php.net/manual/en/ref.pdo-mysql.php
1259 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1260 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1261 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1262 Provides: php(pdo-mysql)
1263 Provides: php(pdo_mysql)
1264 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1265 Obsoletes: php-pecl-PDO_MYSQL
1267 %description pdo-mysql
1268 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1271 %description pdo-mysql -l pl.UTF-8
1272 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1276 Summary: PHP Data Objects (PDO) Oracle support
1277 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1279 URL: http://php.net/manual/en/ref.pdo-oci.php
1280 %{?requires_php_extension}
1281 %{?requires_php_pdo_module}
1282 Provides: php(pdo-oci)
1283 Provides: php(pdo_oci)
1284 Obsoletes: php-pdo-oci < 4:5.3.28-7
1285 Obsoletes: php-pecl-PDO_OCI
1287 %description pdo-oci
1288 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1291 %description pdo-oci -l pl.UTF-8
1292 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1296 Summary: PHP Data Objects (PDO) ODBC support
1297 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1299 URL: http://php.net/manual/en/ref.pdo-odbc.php
1300 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1301 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1302 Provides: php(pdo-odbc)
1303 Provides: php(pdo_odbc)
1304 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1305 Obsoletes: php-pecl-PDO_ODBC
1307 %description pdo-odbc
1308 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1311 %description pdo-odbc -l pl.UTF-8
1312 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1316 Summary: PHP Data Objects (PDO) PostgreSQL support
1317 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1319 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1320 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1321 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1322 Provides: php(pdo-pgsql)
1323 Provides: php(pdo_pgsql)
1324 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1325 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1327 %description pdo-pgsql
1328 This is a dynamic shared object (DSO) for PHP that will add PDO
1331 %description pdo-pgsql -l pl.UTF-8
1332 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1336 Summary: PHP Data Objects (PDO) SQLite support
1337 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1339 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1340 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1341 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1342 Provides: php(pdo-sqlite)
1343 Provides: php(pdo_sqlite)
1344 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1345 Obsoletes: php-pecl-PDO_SQLITE
1347 %description pdo-sqlite
1348 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1351 %description pdo-sqlite -l pl.UTF-8
1352 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1356 Summary: PostgreSQL database module for PHP
1357 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1359 URL: http://php.net/manual/en/book.pgsql.php
1360 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1361 Provides: php(pgsql)
1362 Obsoletes: php-pgsql < 4:5.3.28-7
1365 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1368 %description pgsql -l pl.UTF-8
1369 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1371 %description pgsql -l pt_BR.UTF-8
1372 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1375 Summary: Phar archive module for PHP
1376 Summary(pl.UTF-8): Moduł phar dla PHP
1378 URL: http://php.net/manual/en/book.phar.php
1379 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1380 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1381 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1382 Requires: alternatives
1383 Suggests: %{name}-cli
1384 # zlib is required by phar program, but as phar cli is optional should the dep be too
1385 Suggests: %{name}-zlib
1386 Provides: php(phar) = %{pharver}
1387 Obsoletes: php-pecl-phar < %{pharver}
1388 Obsoletes: php-phar < 4:5.3.28-7
1389 Conflicts: php-ioncube < 4.0.9
1392 This is a dynamic shared object (DSO) for PHP that will add phar
1395 %description phar -l pl.UTF-8
1396 Moduł PHP umożliwiający dostęp do achiwów .phar.
1399 Summary: POSIX extension module for PHP
1400 Summary(pl.UTF-8): Moduł POSIX dla PHP
1402 URL: http://php.net/manual/en/book.posix.php
1403 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1404 Provides: php(posix)
1405 Obsoletes: php-posix < 4:5.3.28-7
1408 This is a dynamic shared object (DSO) for PHP that will add POSIX
1409 functions support to PHP.
1411 %description posix -l pl.UTF-8
1412 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1415 Summary: pspell extension module for PHP
1416 Summary(pl.UTF-8): Moduł pspell dla PHP
1418 URL: http://php.net/manual/en/book.pspell.php
1419 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1420 Provides: php(pspell)
1421 Obsoletes: php-pspell < 4:5.3.28-7
1424 This is a dynamic shared object (DSO) for PHP that will add pspell
1425 support to PHP. It allows to check the spelling of a word and offer
1428 %description pspell -l pl.UTF-8
1429 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1430 sprawdzanie pisowni słowa i sugerowanie poprawek.
1433 Summary: readline extension module for PHP
1434 Summary(pl.UTF-8): Moduł readline dla PHP
1436 URL: http://php.net/manual/en/book.readline.php
1437 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1438 Provides: php(readline)
1439 Obsoletes: php-readline < 4:5.3.28-7
1441 %description readline
1442 This PHP module adds support for readline functions (only for cli and
1445 %description readline -l pl.UTF-8
1446 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1449 Summary: session extension module for PHP
1450 Summary(pl.UTF-8): Moduł session dla PHP
1452 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1453 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1454 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1456 Provides: php(session)
1457 Obsoletes: php-session < 4:5.3.28-7
1459 %description session
1460 This is a dynamic shared object (DSO) for PHP that will add session
1463 %description session -l pl.UTF-8
1464 Moduł PHP dodający obsługę sesji.
1467 Summary: Shared Memory Operations extension module for PHP
1468 Summary(pl.UTF-8): Moduł shmop dla PHP
1470 URL: http://php.net/manual/en/book.shmop.php
1471 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1472 Provides: php(shmop)
1473 Obsoletes: php-shmop < 4:5.3.28-7
1476 This is a dynamic shared object (DSO) for PHP that will add Shared
1477 Memory Operations support.
1479 %description shmop -l pl.UTF-8
1480 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1483 Summary: Simple XML extension module for PHP
1484 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1486 URL: http://php.net/manual/en/book.simplexml.php
1487 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1488 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1489 Provides: php(simplexml)
1490 Obsoletes: php-simplexml < 4:5.3.28-7
1492 %description simplexml
1493 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1496 %description simplexml -l pl.UTF-8
1497 Moduł PHP dodający obsługę prostego XML-a.
1500 Summary: SNMP extension module for PHP
1501 Summary(pl.UTF-8): Moduł SNMP dla PHP
1503 URL: http://php.net/manual/en/book.snmp.php
1504 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1505 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1506 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1508 Obsoletes: php-snmp < 4:5.3.28-7
1511 This is a dynamic shared object (DSO) for PHP that will add SNMP
1514 %description snmp -l pl.UTF-8
1515 Moduł PHP dodający obsługę SNMP.
1518 Summary: soap extension module for PHP
1519 Summary(pl.UTF-8): Moduł soap dla PHP
1521 URL: http://php.net/manual/en/book.soap.php
1522 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1524 Obsoletes: php-soap < 4:5.3.28-7
1527 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1530 %description soap -l pl.UTF-8
1531 Moduł PHP dodający obsługę SOAP/WSDL.
1534 Summary: sockets extension module for PHP
1535 Summary(pl.UTF-8): Moduł socket dla PHP
1537 URL: http://php.net/manual/en/book.sockets.php
1538 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1539 Provides: php(sockets)
1540 Obsoletes: php-sockets < 4:5.3.28-7
1542 %description sockets
1543 This is a dynamic shared object (DSO) for PHP that will add sockets
1546 %description sockets -l pl.UTF-8
1547 Moduł PHP dodający obsługę gniazdek.
1550 Summary: Wrapper for the Sodium cryptographic library
1552 URL: https://paragonie.com/book/pecl-libsodium
1553 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1554 Provides: php(sodium) = %{sodiumver}
1557 A simple, low-level PHP extension for libsodium.
1560 Summary: SQLite3 extension module for PHP
1561 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1563 URL: http://php.net/manual/en/book.sqlite3.php
1564 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1565 Provides: php(sqlite3) = %{sqlite3ver}
1566 Obsoletes: php-sqlite3 < 4:5.3.28-7
1568 %description sqlite3
1569 SQLite is a C library that implements an embeddable SQL database
1570 engine. Programs that link with the SQLite library can have SQL
1571 database access without running a separate RDBMS process.
1573 SQLite is not a client library used to connect to a big database
1574 server. SQLite is the server. The SQLite library reads and writes
1575 directly to and from the database files on disk.
1577 %description sqlite3 -l pl.UTF-8
1578 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1579 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1580 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1583 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1584 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1585 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1589 Summary: SysV msg extension module for PHP
1590 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1592 URL: http://php.net/manual/en/book.sem.php
1593 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1594 Provides: php(sysvmsg)
1595 Obsoletes: php-sysvmsg < 4:5.3.28-7
1597 %description sysvmsg
1598 This is a dynamic shared object (DSO) for PHP that will add SysV
1599 message queues support.
1601 %description sysvmsg -l pl.UTF-8
1602 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1605 Summary: SysV sem extension module for PHP
1606 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1608 URL: http://php.net/manual/en/book.sem.php
1609 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1610 Provides: php(sysvsem)
1611 Obsoletes: php-sysvsem < 4:5.3.28-7
1613 %description sysvsem
1614 This is a dynamic shared object (DSO) for PHP that will add SysV
1617 %description sysvsem -l pl.UTF-8
1618 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1621 Summary: SysV shm extension module for PHP
1622 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1624 URL: http://php.net/manual/en/book.sem.php
1625 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1626 Provides: php(sysvshm)
1627 Obsoletes: php-sysvshm < 4:5.3.28-7
1629 %description sysvshm
1630 This is a dynamic shared object (DSO) for PHP that will add SysV
1631 Shared Memory support.
1633 %description sysvshm -l pl.UTF-8
1634 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1637 Summary: Contains unit test files for PHP and extensions
1638 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1640 URL: http://qa.php.net/
1641 Requires: %{name}-cli
1644 This package contains unit tests for PHP and its extensions.
1646 %description tests -l pl.UTF-8
1647 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1650 Summary: Tidy extension module for PHP
1651 Summary(pl.UTF-8): Moduł Tidy dla PHP
1653 URL: http://php.net/manual/en/book.tidy.php
1654 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1657 Obsoletes: php-tidy < 4:5.3.28-7
1660 This is a dynamic shared object (DSO) for PHP that will add Tidy
1663 %description tidy -l pl.UTF-8
1664 Moduł PHP umożliwiający korzystanie z tidy.
1667 Summary: tokenizer extension module for PHP
1668 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1670 URL: http://php.net/manual/en/book.tokenizer.php
1671 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1672 Provides: php(tokenizer)
1673 Obsoletes: php-tokenizer < 4:5.3.28-7
1675 %description tokenizer
1676 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1679 %description tokenizer -l pl.UTF-8
1680 Moduł PHP dodający obsługę tokenizera do PHP.
1683 Summary: XML extension module for PHP
1684 Summary(pl.UTF-8): Moduł XML dla PHP
1686 URL: http://php.net/manual/en/book.xml.php
1687 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1689 Obsoletes: php-xml < 4:5.3.28-7
1692 This is a dynamic shared object (DSO) for PHP that will add XML
1693 support. This extension lets you create XML parsers and then define
1694 handlers for different XML events.
1696 %description xml -l pl.UTF-8
1697 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1698 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1699 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1702 Summary: XML Reader extension module for PHP
1703 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1705 URL: http://php.net/manual/en/book.xmlreader.php
1706 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1707 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1708 Provides: php(xmlreader)
1709 Obsoletes: php-xmlreader < 4:5.3.28-7
1711 %description xmlreader
1712 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1713 support. The XMLReader extension is an XML Pull parser. The reader
1714 acts as a cursor going forward on the document stream and stopping at
1715 each node on the way.
1717 %description xmlreader -l pl.UTF-8
1718 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1719 działa jako kursor przechodzący przez strumień dokumentu i
1720 zatrzymujący się na każdym węźle po drodze.
1723 Summary: xmlrpc extension module for PHP
1724 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1726 URL: http://php.net/manual/en/book.xmlrpc.php
1727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1728 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1729 Provides: php(xmlrpc)
1730 Obsoletes: php-xmlrpc < 4:5.3.28-7
1733 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1736 %description xmlrpc -l pl.UTF-8
1737 Moduł PHP dodający obsługę XMLRPC.
1740 Summary: Fast, non-cached, forward-only means to write XML data
1741 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1743 URL: http://php.net/manual/en/book.xmlwriter.php
1744 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1745 Provides: php(xmlwriter)
1746 Obsoletes: php-pecl-xmlwriter
1747 Obsoletes: php-xmlwriter < 4:5.3.28-7
1749 %description xmlwriter
1750 This extension wraps the libxml xmlWriter API. Represents a writer
1751 that provides a non-cached, forward-only means of generating streams
1752 or files containing XML data.
1754 %description xmlwriter -l pl.UTF-8
1755 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1756 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1757 plików zawierających dane XML.
1760 Summary: xsl extension module for PHP
1761 Summary(pl.UTF-8): Moduł xsl dla PHP
1763 URL: http://php.net/manual/en/book.xsl.php
1764 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1765 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1766 Requires: libxslt >= 1.1.0
1768 Obsoletes: php-xsl < 4:5.3.28-7
1769 # actually not true, functionality is similar, but API differs
1770 Obsoletes: php-xslt <= 3:4.3.8-1
1773 This is a dynamic shared object (DSO) for PHP that will add new XSL
1774 support (using libxslt).
1776 %description xsl -l pl.UTF-8
1777 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1780 Summary: Zip management extension
1781 Summary(pl.UTF-8): Zarządzanie archiwami zip
1783 URL: http://php.net/manual/en/book.zip.php
1784 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1785 Requires: libzip >= 1.3.1
1786 Provides: php(zip) = %{zipver}
1787 Obsoletes: php-pecl-zip < %{zipver}
1788 Obsoletes: php-zip < 4:5.3.28-7
1791 Zip is an extension to create, modify and read zip files.
1793 %description zip -l pl.UTF-8
1794 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1795 odczyt archiwów zip.
1798 Summary: Zlib extension module for PHP
1799 Summary(pl.UTF-8): Moduł zlib dla PHP
1801 URL: http://php.net/manual/en/book.zlib.php
1802 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1804 Obsoletes: php-zlib < 4:5.3.28-7
1807 This is a dynamic shared object (DSO) for PHP that will add zlib
1808 compression support to PHP.
1810 %description zlib -l pl.UTF-8
1811 Moduł PHP umożliwiający używanie kompresji zlib.
1814 %setup -q -n %{orgname}-%{version}
1815 cp -p php.ini-production php.ini
1843 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
1844 %patch59 -p1 -b .systzdata
1849 %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1851 # cleanup backups after patching
1852 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1854 # com_dotnet is Win32-only
1855 %{__rm} -r ext/com_dotnet
1857 # remove all bundled libraries not to link with them accidentally
1858 %{__rm} -r ext/xmlrpc/libxmlrpc
1859 %{__rm} ext/date/lib/timezonedb.h
1861 cp -pf Zend/LICENSE{,.Zend}
1862 install -p %{SOURCE13} dep-tests.sh
1865 sed -i -e 's#-fvisibility=hidden##g' configure*
1867 # disable broken tests
1868 # says just "Terminated" twice and fails
1869 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1871 # really dumb test, executable binary name is .libs/ something when building
1872 # https://bugs.php.net/bug.php?id=54514
1873 %{__mv} tests/basic/bug54514.phpt{,.disable}
1875 # breaks whole testsuite unexpectedly:
1876 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1877 # probably broken as zlib is built as shared
1878 %{__mv} ext/soap/tests/server019.phpt{,disable}
1879 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1880 %{__mv} ext/soap/tests/server020.phpt{,disable}
1882 # runs out of memory and kills carme vserver
1883 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1884 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1886 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1887 %{__rm} ext/standard/tests/file/statpage.phpt
1889 # idiotic test, it will fail if somebody else makes space on disk or if disk
1890 # space is not yet allocated (xfs). report upstream to advice bogus test is
1891 # probably pointless.
1892 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1895 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1896 %{__rm} -r ext/pdo_sqlite/tests
1897 %{__rm} -r ext/sqlite3/tests
1900 # ----- Manage known as failed test -------
1901 # affected by systzdata patch
1902 %{__rm} ext/date/tests/timezone_location_get.phpt
1903 %{__rm} ext/date/tests/timezone_version_get.phpt
1904 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
1905 # Should be skipped but fails sometime
1906 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
1908 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
1909 # causes stack exhausion
1910 %{__rm} Zend/tests/bug54268.phpt
1911 %{__rm} Zend/tests/bug68412.phpt
1913 # avoid issues when two builds run simultaneously
1915 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
1919 # no point testing stuff that is knowingly broken
1920 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
1932 sh -xe %{_sourcedir}/skip-tests.sh
1935 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1936 if [ $API != %{php_api_version} ]; then
1937 echo "Set %%define php_api_version to $API and re-run."
1941 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1942 if [ $API != %{zend_module_api} ]; then
1943 echo "Set %%define zend_module_api to $API and re-run."
1947 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1948 if [ $API != %{zend_extension_api} ]; then
1949 echo "Set %%define zend_extension_api to $API and re-run."
1953 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
1954 if [ $API != %{php_pdo_api_version} ]; then
1955 echo "Set %%define php_pdo_api_version to $API and re-run."
1959 # Check for some extension version
1960 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
1961 if test "$ver" != "PHP_VERSION"; then
1962 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
1963 : Update the fileinfover macro and rebuild.
1966 ver=$(awk '/#define PHP_PHAR_VERSION/ {print $3}' ext/phar/php_phar.h | xargs)
1967 if test "$ver" != "PHP_VERSION"; then
1968 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
1969 : Update the pharver macro and rebuild.
1972 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
1973 if test "$ver" != "PHP_VERSION"; then
1974 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
1975 : Update the sqlite3ver macro and rebuild.
1978 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
1979 if test "$ver" != "PHP_VERSION"; then
1982 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
1983 if test "$ver" != "%{zipver}"; then
1984 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
1985 : Update the zipver macro and rebuild.
1988 ver=$(awk '/#define PHP_JSON_VERSION/ {print $3}' ext/json/php_json.h | xargs)
1989 if test "$ver" != "PHP_VERSION"; then
1990 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
1991 : Update the jsonver macro and rebuild.
1994 ver=$(awk '/#define PHPDBG_VERSION/ {print $3}' sapi/phpdbg/phpdbg.h | xargs)
1995 if test "$ver" != "PHP_VERSION"; then
1996 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
1997 : Update the phpdbgver macro and rebuild.
2000 ver=$(awk '/#define PHP_BZ2_VERSION/ {print $3}' ext/bz2/php_bz2.h | xargs)
2001 if test "$ver" != "PHP_VERSION"; then
2002 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2003 : Update the bz2ver macro and rebuild.
2006 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
2007 if test "$ver" != "PHP_VERSION"; then
2010 ver=$(awk '/#define PHP_HASH_VERSION/ {print $3}' ext/hash/php_hash.h | xargs)
2011 if test "$ver" != "PHP_VERSION"; then
2012 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2013 : Update the hashver macro and rebuild.
2016 ver=$(awk '/#define PHP_INTL_VERSION/ {print $3}' ext/intl/php_intl.h | xargs)
2017 if test "$ver" != "PHP_VERSION"; then
2018 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2019 : Update the intlver macro and rebuild.
2023 export EXTENSION_DIR="%{php_extensiondir}"
2025 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2026 # includes the PEAR directory even though pear is packaged separately.
2027 export PEAR_INSTALLDIR=%{php_pear_dir}
2029 # configure once (for faster debugging purposes)
2030 if [ ! -f _built-conf ]; then
2031 # now remove Makefile copies
2032 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs2,litespeed,phpdbg}
2034 # Force use of system libtool:
2035 mv build/libtool.m4 build/libtool.m4.saved
2036 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2040 cp -f /usr/share/automake/config.* .
2044 export PROG_SENDMAIL="/usr/lib/sendmail"
2045 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2046 -I%{_includedir}/xmlrpc-epi"
2048 # This should be detected by configure and set there,
2049 # but looks like the build system is hosed on 7.3
2050 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2051 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2054 # icu 59+ C++ API requires C++ >= 11
2055 CXXFLAGS="$CXXFLAGS -std=c++11"
2063 %if %{with litespeed}
2079 for sapi in $sapis; do
2081 # skip if already configured (for faster debugging purposes)
2082 [ -f Makefile.$sapi ] && continue
2087 sapi_args='--disable-cli'
2090 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2093 sapi_args='--disable-cli --disable-cgi --enable-fpm'
2096 sapi_args='--disable-cli --disable-cgi --enable-embed'
2099 ver=$(rpm -q --qf '%{V}' apache-devel)
2100 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
2103 sapi_args='--disable-cli --disable-cgi --enable-litespeed'
2106 sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2111 EXTRA_LDFLAGS="%{rpmldflags}" \
2112 --program-suffix=%{php_suffix} \
2114 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2115 --cache-file=config.cache \
2117 --datadir=%{php_datadir} \
2118 --with-libdir=%{_lib} \
2119 --with-config-file-path=%{_sysconfdir} \
2120 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2121 --with-system-tzdata \
2122 %{?with_argon2:--with-password-argon2} \
2123 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2124 %{?with_zts:--enable-maintainer-zts} \
2125 --enable-inline-optimization \
2126 %{__enable_disable bcmath bcmath shared} \
2127 %{__enable_disable calendar calendar shared} \
2128 %{__enable_disable ctype ctype shared} \
2129 %{__enable_disable dba dba shared} \
2130 %{__enable_disable dom dom shared} \
2131 %{?with_systemtap:--enable-dtrace} \
2132 %{__enable_disable exif exif shared} \
2133 %{__enable_disable fileinfo fileinfo shared} \
2134 %{__enable_disable ftp ftp shared} \
2135 %{?with_intl:--enable-intl=shared} \
2137 %{__enable_disable mbstring mbstring shared,all} \
2139 %{__enable_disable pcntl pcntl shared} \
2140 %{__enable_disable pdo pdo shared} \
2141 %{__enable_disable json json shared} \
2142 --enable-xmlwriter=shared \
2144 --with-fpm-user=http \
2145 --with-fpm-group=http \
2147 %if %{with pdo_dblib}
2148 --with-pdo-dblib=shared \
2150 %if %{with pdo_firebird}
2151 --with-pdo-firebird=shared \
2153 %{?with_mhash:--with-mhash=yes} \
2154 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2155 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2156 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2157 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2158 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2159 %{?with_pdo_sqlite:--with-pdo-sqlite=shared} \
2160 %{?with_webp:--with-webp} \
2161 %{__enable_disable posix posix shared} \
2163 %{__enable_disable session session shared} \
2164 --enable-shmop=shared \
2165 --enable-simplexml=shared \
2166 --enable-sysvmsg=shared \
2167 --enable-sysvsem=shared \
2168 --enable-sysvshm=shared \
2169 --enable-soap=shared \
2170 --enable-sockets=shared \
2171 %{__with_without sodium sodium shared} \
2172 --enable-tokenizer=shared \
2173 --enable-xml=shared \
2174 --enable-xmlreader=shared \
2175 %{__with_without bz2 bz2 shared} \
2176 %{__with_without curl curl shared} \
2178 %{__with_without iconv iconv shared} \
2179 %{?with_enchant:--with-enchant=shared} \
2181 %{__with_without gettext gettext shared} \
2182 %{__enable_disable gd gd shared} \
2183 %{?with_system_gd:--with-external-gd} \
2185 %{__with_without gmp gmp shared} \
2186 %{__with_without ffi ffi shared} \
2187 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2189 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2190 %{?with_mm:--with-mm} \
2191 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2192 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2193 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2194 %{__enable_disable opcache opcache shared} \
2195 %{?with_openssl:--with-openssl=shared} \
2196 %{?with_kerberos5:--with-kerberos} \
2198 --with-external-pcre \
2199 %{__with_without pcre_jit pcre-jit} \
2200 %{__enable_disable filter filter shared} \
2201 %{__with_without pgsql pgsql shared} \
2202 %{__enable_disable phar phar shared} \
2203 %{?with_pspell:--with-pspell=shared} \
2204 %{__with_without readline readline shared} \
2205 %{?with_snmp:--with-snmp=shared} \
2206 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2207 %{__with_without sqlite3 sqlite3 shared} \
2208 %{?with_tidy:--with-tidy=shared} \
2209 %{?with_odbc:--with-unixODBC=shared} \
2210 %{__with_without xmlrpc xmlrpc shared,/usr} \
2211 %{?with_xsl:--with-xsl=shared} \
2212 --with-zlib=shared \
2213 %{?with_zip:--with-zip=shared} \
2216 cp -f Makefile Makefile.$sapi
2217 cp -f main/php_config.h php_config.h.$sapi
2218 cp -f config.log config.log.$sapi
2221 # as we build each SAPI in own make, adjust php-config.in forehead
2222 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2223 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2225 # must make libphp_common first, so modules can link against it.
2226 cp -af php_config.h.cli main/php_config.h
2227 cp -af Makefile.cli Makefile
2228 %{__make} libphp_common.la
2229 # hack: MYSQLND_SHARED_LIBADD not initialized
2230 %{__make} build-modules \
2231 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2234 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
2237 %if %{with litespeed}
2238 %{__make} -f Makefile.litespeed litespeed
2242 %{__make} -f Makefile.embed libphp7.la
2246 # PHP_READLINE_LIBS is empty, so force readline here
2247 %{__make} -f Makefile.phpdbg phpdbg \
2248 PHPDBG_EXTRA_LIBS=-lreadline
2253 cp -pf php_config.h.cgi-fcgi main/php_config.h
2254 %{__make} -f Makefile.cgi-fcgi
2255 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2260 cp -pf php_config.h.fpm main/php_config.h
2261 %{__make} -f Makefile.fpm
2262 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2266 cp -pf php_config.h.cli main/php_config.h
2267 %{__make} -f Makefile.cli
2268 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2270 # check for stupid xml parse breakage where < and > just get lost in parse result
2271 ./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"]));'
2273 # Generate stub .ini files for each extension
2274 GENERATE_INI=1 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh
2276 # Check that the module inner-dependencies are intact
2277 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2278 if grep -v OK dep-tests.log; then
2279 echo >&2 "The results above were not expected"
2285 cp -pf php_config.h.cli main/php_config.h
2286 cp -pf Makefile.cli Makefile
2288 # you really don't want to package result of gcov build
2292 cat <<'EOF' > run-tests.sh
2294 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2295 export SKIP_ONLINE_TESTS=1
2296 unset TZ LANG LC_ALL || :
2298 EXTENSION_DIR=modules \
2299 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2300 RUN_TESTS_SETTINGS="-q $*"
2302 chmod +x run-tests.sh
2305 # Run tests, using the CLI SAPI
2306 cp -pf php_config.h.cli main/php_config.h
2307 cp -pf Makefile.cli Makefile
2309 ./run-tests.sh -w failed.log -s tests.log || {
2312 # collect failed tests into cleanup script used in prep.
2313 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2314 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2315 >> %{_sourcedir}/skip-tests.sh
2317 # if on builders, dump test log
2318 tty -q || cat tests.log
2320 test ! -s failed.log
2326 rm -rf $RPM_BUILD_ROOT
2328 $RPM_BUILD_ROOT%{_libdir}/{php,apache} \
2329 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,cgi-fcgi,cli,apache2handler}.d \
2330 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2331 $RPM_BUILD_ROOT/etc/httpd/conf.d \
2332 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2334 cp -pf php_config.h.cli main/php_config.h
2335 cp -pf Makefile.cli Makefile
2337 phpbuilddir=%{_libdir}/%{name}/build \
2338 INSTALL_ROOT=$RPM_BUILD_ROOT
2341 touch $RPM_BUILD_ROOT%{_bindir}/phar
2342 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2345 v=$(echo %{version} | cut -d. -f1-2)
2347 # install Apache2 DSO module
2350 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
2351 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2352 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.so
2353 sed -i -e "s|libphp7|libphp%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2354 ln -s libphp%{php_suffix}.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2357 # install litespeed sapi
2358 %if %{with litespeed}
2359 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2363 %{__make} -f Makefile.phpdbg install-phpdbg \
2364 INSTALL="libtool --mode=install install -p" \
2365 INSTALL_ROOT=$RPM_BUILD_ROOT
2369 touch $RPM_BUILD_ROOT%{_bindir}/phpize
2370 touch $RPM_BUILD_ROOT%{_mandir}/man1/phpize.1
2371 touch $RPM_BUILD_ROOT%{_bindir}/php-config
2372 touch $RPM_BUILD_ROOT%{_mandir}/man1/php-config.1
2374 # versioned libphp_common
2375 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2376 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common.la $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2377 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}-%{version}.so
2378 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libphp_common.so
2379 ln -s libphp_common%{php_suffix}-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.so
2380 sed -i -e "s|libphp_common|libphp_common%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2385 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2386 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2387 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cgi-fcgi.d/php.ini
2392 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2393 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2394 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2395 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2396 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2397 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2398 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2399 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2400 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2402 # touch for ghost for alternatives
2403 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2406 s#/usr/lib/php#%{php_extensiondir}#
2407 s#/etc/php/#%{_sysconfdir}/#
2408 s#@processname@#%{name}-fpm#g
2409 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2412 # install Embedded API
2414 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2415 # install-sapi installs to wrong dir, so just do it all manually
2416 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2417 install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}/libphp%{php_suffix}.so
2418 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2422 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{php_suffix}
2424 touch $RPM_BUILD_ROOT%{_bindir}/php
2425 touch $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2427 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2428 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php.ini
2431 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2432 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php.ini
2433 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2436 # ensure that paths are correct for current php version and arch
2437 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2439 s#/usr/lib/php#%{php_extensiondir}#
2440 s#/etc/php#%{_sysconfdir}#
2443 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2444 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2446 cp -p %{_sourcedir}/opcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2449 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/??_readline.ini,cli.d}
2451 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize%{php_suffix}
2453 # for php-pecl-mailparse
2454 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2455 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2458 install -d $RPM_BUILD_ROOT%{php_datadir}/tests/php
2459 install -p run-tests.php $RPM_BUILD_ROOT%{php_datadir}/tests/php/run-tests.php
2460 cp -a tests/* $RPM_BUILD_ROOT%{php_datadir}/tests/php
2462 # fix install paths, avoid evil rpaths
2463 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2465 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2468 rm -rf $RPM_BUILD_ROOT
2470 %post -n apache-mod_%{name}
2471 if [ "$1" = "1" ]; then
2472 %service -q httpd restart
2475 %postun -n apache-mod_%{name}
2476 if [ "$1" = "0" ]; then
2477 %service -q httpd restart
2481 update-alternatives \
2482 --install %{_bindir}/php php %{_bindir}/php%{php_suffix} %{php_suffix} \
2483 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2486 if [ $1 -eq 0 ]; then
2487 update-alternatives --remove php %{_bindir}/php%{php_suffix} || :
2490 %post common -p /sbin/ldconfig
2491 %postun common -p /sbin/ldconfig
2494 update-alternatives \
2495 --install %{_bindir}/phpize phpize %{_bindir}/phpize%{php_suffix} %{php_suffix} \
2496 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2497 update-alternatives \
2498 --install %{_bindir}/php-config php-config %{_bindir}/php-config%{php_suffix} %{php_suffix} \
2499 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2502 if [ $1 -eq 0 ]; then
2503 update-alternatives --remove phpize %{_bindir}/phpize%{php_suffix} || :
2504 update-alternatives --remove php-config %{_bindir}/php-config%{php_suffix} || :
2508 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2511 /sbin/chkconfig --add %{name}-fpm
2512 %service %{name}-fpm restart
2513 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{php_suffix}-fpm %{php_suffix} || :
2516 if [ "$1" = "0" ]; then
2517 %service %{name}-fpm stop
2518 /sbin/chkconfig --del %{name}-fpm
2519 update-alternatives --remove php-fpm %{_sbindir}/php%{php_suffix}-fpm || :
2523 if [ "$1" = "0" ]; then
2527 %post embedded -p /sbin/ldconfig
2528 %postun embedded -p /sbin/ldconfig
2531 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2532 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2534 . /etc/sysconfig/timezone
2535 if [ "$TIMEZONE" ]; then
2536 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2540 # minimizing apache restarts logics. we restart webserver:
2542 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2543 # 2. first install of extension (post: $1 = 1)
2544 # 2. uninstall of extension (postun: $1 == 0)
2546 # the strict internal deps between extensions (and apache modules) and
2547 # common package are very important for all this to work.
2549 # restart webserver at the end of transaction
2550 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2552 %triggerpostun common -- php-common < 4:5.3.28-7
2553 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2554 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2555 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2556 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2557 test -f "$f" || continue
2561 test "$dn" = "$fn" && dn=
2563 nf=%{_sysconfdir}/$dn/$fn
2564 test -f "$nf" || continue
2565 cp -vfb $nf{,.rpmnew}
2568 s#%{_libdir}/php#%{_libdir}/%{name}#
2569 s#/etc/php#%{_sysconfdir}#
2573 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2574 # switch to browscap package if the ini file has original value
2575 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2576 # disable browscap, if optional package not present
2577 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2578 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2581 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2582 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2584 # common macros called at extension post/postun scriptlet
2586 if [ "$1" = "1" ]; then \
2587 %php_webserver_restart \
2591 %define ext_postun \
2592 if [ "$1" = "0" ]; then \
2593 %php_webserver_restart \
2597 %define extension_scripts() \
2605 # extension scripts defines
2606 %extension_scripts bcmath
2607 %extension_scripts bz2
2608 %extension_scripts calendar
2609 %extension_scripts ctype
2610 %extension_scripts curl
2611 %extension_scripts dba
2612 %extension_scripts dom
2613 %extension_scripts enchant
2614 %extension_scripts exif
2615 %extension_scripts ffi
2616 %extension_scripts fileinfo
2617 %extension_scripts filter
2618 %extension_scripts ftp
2619 %extension_scripts gd
2620 %extension_scripts gettext
2621 %extension_scripts gmp
2622 %extension_scripts iconv
2623 %extension_scripts imap
2624 %extension_scripts intl
2625 %extension_scripts json
2626 %extension_scripts ldap
2627 %extension_scripts mbstring
2628 %extension_scripts mysqli
2629 %extension_scripts mysqlnd
2630 %extension_scripts oci8
2631 %extension_scripts odbc
2632 %extension_scripts opcache
2633 %extension_scripts openssl
2634 %extension_scripts pcntl
2635 %extension_scripts pdo
2636 %extension_scripts pdo-dblib
2637 %extension_scripts pdo-firebird
2638 %extension_scripts pdo-mysql
2639 %extension_scripts pdo-oci
2640 %extension_scripts pdo-odbc
2641 %extension_scripts pdo-pgsql
2642 %extension_scripts pdo-sqlite
2643 %extension_scripts pgsql
2644 %extension_scripts posix
2645 %extension_scripts pspell
2646 %extension_scripts session
2647 %extension_scripts shmop
2648 %extension_scripts simplexml
2649 %extension_scripts snmp
2650 %extension_scripts soap
2651 %extension_scripts sockets
2652 %extension_scripts sodium
2653 %extension_scripts sqlite3
2654 %extension_scripts sysvmsg
2655 %extension_scripts sysvsem
2656 %extension_scripts sysvshm
2657 %extension_scripts tidy
2658 %extension_scripts tokenizer
2659 %extension_scripts xml
2660 %extension_scripts xmlreader
2661 %extension_scripts xmlrpc
2662 %extension_scripts xmlwriter
2663 %extension_scripts xsl
2664 %extension_scripts zip
2665 %extension_scripts zlib
2669 update-alternatives \
2670 --install %{_bindir}/phar phar %{_bindir}/phar%{php_suffix}.phar %{php_suffix} \
2671 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{php_suffix}.1* || :
2675 if [ $1 -eq 0 ]; then
2676 update-alternatives --remove phar %{_bindir}/phar%{php_suffix}.phar || :
2680 %files -n apache-mod_%{name}
2681 %defattr(644,root,root,755)
2682 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2683 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2685 %files -n apache-mod_%{name}-core
2686 %defattr(644,root,root,755)
2687 %dir %{_sysconfdir}/apache2handler.d
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php.ini
2689 %attr(755,root,root) %{_libdir}/apache/libphp%{php_suffix}.so
2692 %if %{with litespeed}
2694 %defattr(644,root,root,755)
2695 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2700 %defattr(644,root,root,755)
2701 %dir %{_sysconfdir}/cgi-fcgi.d
2702 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cgi-fcgi.d/php.ini
2703 %attr(755,root,root) %{_bindir}/%{name}.cgi
2704 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2709 %defattr(644,root,root,755)
2710 %attr(755,root,root) %{_libdir}/libphp%{php_suffix}.so
2714 %defattr(644,root,root,755)
2715 %dir %{_sysconfdir}/cli.d
2716 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/php.ini
2717 %attr(755,root,root) %{_bindir}/php%{php_suffix}
2718 %{_mandir}/man1/php%{php_suffix}.1*
2719 %ghost %{_bindir}/php
2720 %ghost %{_mandir}/man1/php.1*
2724 %defattr(644,root,root,755)
2725 %doc sapi/fpm/{CREDITS,LICENSE}
2726 %dir %{_sysconfdir}/php-fpm.d
2727 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2729 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2730 %ghost %{_sbindir}/php-fpm
2731 %{_mandir}/man8/%{name}-fpm.8*
2732 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2733 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2738 %defattr(644,root,root,755)
2739 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2740 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2744 %defattr(644,root,root,755)
2745 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2747 %dir %{_sysconfdir}/conf.d
2748 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2749 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}-*.so
2751 %dir %{php_extensiondir}
2753 %doc ext/session/mod_files.sh
2756 %defattr(644,root,root,755)
2757 %doc CODING_STANDARDS.md docs/*.md
2758 %attr(755,root,root) %{_bindir}/ext_skel.php
2759 %attr(755,root,root) %{_bindir}/phpize%{php_suffix}
2760 %attr(755,root,root) %{_bindir}/php-config%{php_suffix}
2761 %ghost %{_bindir}/phpize
2762 %ghost %{_bindir}/php-config
2763 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}.so
2764 %{_libdir}/libphp_common%{php_suffix}.la
2765 %{_includedir}/php/php%{php_suffix}
2766 %{_libdir}/%{name}/build
2767 %{_mandir}/man1/php-config%{php_suffix}.1*
2768 %ghost %{_mandir}/man1/php-config.1*
2769 %{_mandir}/man1/phpize%{php_suffix}.1*
2770 %ghost %{_mandir}/man1/phpize.1*
2774 %defattr(644,root,root,755)
2775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bcmath.ini
2776 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2781 %defattr(644,root,root,755)
2782 %doc ext/bz2/CREDITS
2783 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bz2.ini
2784 %attr(755,root,root) %{php_extensiondir}/bz2.so
2787 %if %{with calendar}
2789 %defattr(644,root,root,755)
2790 %doc ext/calendar/CREDITS
2791 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_calendar.ini
2792 %attr(755,root,root) %{php_extensiondir}/calendar.so
2797 %defattr(644,root,root,755)
2798 %doc ext/calendar/CREDITS
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ctype.ini
2800 %attr(755,root,root) %{php_extensiondir}/ctype.so
2805 %defattr(644,root,root,755)
2806 %doc ext/curl/CREDITS
2807 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_curl.ini
2808 %attr(755,root,root) %{php_extensiondir}/curl.so
2813 %defattr(644,root,root,755)
2814 %doc ext/dba/CREDITS
2815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dba.ini
2816 %attr(755,root,root) %{php_extensiondir}/dba.so
2821 %defattr(644,root,root,755)
2822 %doc ext/dom/CREDITS
2823 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dom.ini
2824 %attr(755,root,root) %{php_extensiondir}/dom.so
2829 %defattr(644,root,root,755)
2830 %doc ext/enchant/CREDITS
2831 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_enchant.ini
2832 %attr(755,root,root) %{php_extensiondir}/enchant.so
2837 %defattr(644,root,root,755)
2838 %doc ext/exif/CREDITS
2839 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_exif.ini
2840 %attr(755,root,root) %{php_extensiondir}/exif.so
2845 %defattr(644,root,root,755)
2846 %doc ext/ffi/CREDITS
2847 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ffi.ini
2848 %attr(755,root,root) %{php_extensiondir}/ffi.so
2851 %if %{with fileinfo}
2853 %defattr(644,root,root,755)
2854 %doc ext/fileinfo/CREDITS
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_fileinfo.ini
2856 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2861 %defattr(644,root,root,755)
2862 %doc ext/filter/CREDITS
2863 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_filter.ini
2864 %attr(755,root,root) %{php_extensiondir}/filter.so
2869 %defattr(644,root,root,755)
2870 %doc ext/ftp/CREDITS
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ftp.ini
2872 %attr(755,root,root) %{php_extensiondir}/ftp.so
2877 %defattr(644,root,root,755)
2879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gd.ini
2880 %attr(755,root,root) %{php_extensiondir}/gd.so
2885 %defattr(644,root,root,755)
2886 %doc ext/gettext/CREDITS
2887 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gettext.ini
2888 %attr(755,root,root) %{php_extensiondir}/gettext.so
2893 %defattr(644,root,root,755)
2894 %doc ext/gmp/CREDITS
2895 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gmp.ini
2896 %attr(755,root,root) %{php_extensiondir}/gmp.so
2901 %defattr(644,root,root,755)
2902 %doc ext/iconv/CREDITS
2903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_iconv.ini
2904 %attr(755,root,root) %{php_extensiondir}/iconv.so
2909 %defattr(644,root,root,755)
2910 %doc ext/imap/CREDITS
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_imap.ini
2912 %attr(755,root,root) %{php_extensiondir}/imap.so
2917 %defattr(644,root,root,755)
2918 %doc ext/intl/CREDITS
2919 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_intl.ini
2920 %attr(755,root,root) %{php_extensiondir}/intl.so
2925 %defattr(644,root,root,755)
2926 %doc ext/json/CREDITS
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_json.ini
2928 %attr(755,root,root) %{php_extensiondir}/json.so
2933 %defattr(644,root,root,755)
2934 %doc ext/ldap/CREDITS
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ldap.ini
2936 %attr(755,root,root) %{php_extensiondir}/ldap.so
2939 %if %{with mbstring}
2941 %defattr(644,root,root,755)
2942 %doc ext/mbstring/CREDITS
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mbstring.ini
2944 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2949 %defattr(644,root,root,755)
2950 %doc ext/mysqli/CREDITS
2951 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqli.ini
2952 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2957 %defattr(644,root,root,755)
2958 %doc ext/mysqlnd/CREDITS
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqlnd.ini
2960 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
2965 %defattr(644,root,root,755)
2966 %doc ext/oci8/{CREDITS,README}
2967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_oci8.ini
2968 %attr(755,root,root) %{php_extensiondir}/oci8.so
2973 %defattr(644,root,root,755)
2974 %doc ext/odbc/CREDITS
2975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_odbc.ini
2976 %attr(755,root,root) %{php_extensiondir}/odbc.so
2981 %defattr(644,root,root,755)
2982 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_opcache.ini
2983 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
2984 %attr(755,root,root) %{php_extensiondir}/opcache.so
2989 %defattr(644,root,root,755)
2990 %doc ext/openssl/CREDITS
2991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_openssl.ini
2992 %attr(755,root,root) %{php_extensiondir}/openssl.so
2997 %defattr(644,root,root,755)
2998 %doc ext/pcntl/CREDITS
2999 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pcntl.ini
3000 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3005 %defattr(644,root,root,755)
3006 %doc ext/pdo/CREDITS
3007 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo.ini
3008 %attr(755,root,root) %{php_extensiondir}/pdo.so
3011 %if %{with pdo_dblib}
3013 %defattr(644,root,root,755)
3014 %doc ext/pdo_dblib/CREDITS
3015 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_dblib.ini
3016 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3019 %if %{with pdo_firebird}
3021 %defattr(644,root,root,755)
3022 %doc ext/pdo_firebird/CREDITS
3023 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_firebird.ini
3024 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3027 %if %{with pdo_mysql}
3029 %defattr(644,root,root,755)
3030 %doc ext/pdo_mysql/CREDITS
3031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_mysql.ini
3032 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3037 %defattr(644,root,root,755)
3038 %doc ext/pdo_oci/CREDITS
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_oci.ini
3040 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3043 %if %{with pdo_odbc}
3045 %defattr(644,root,root,755)
3046 %doc ext/pdo_odbc/CREDITS
3047 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_odbc.ini
3048 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3051 %if %{with pdo_pgsql}
3053 %defattr(644,root,root,755)
3054 %doc ext/pdo_pgsql/CREDITS
3055 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_pgsql.ini
3056 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3059 %if %{with pdo_sqlite}
3061 %defattr(644,root,root,755)
3062 %doc ext/pdo_sqlite/CREDITS
3063 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_sqlite.ini
3064 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3069 %defattr(644,root,root,755)
3070 %doc ext/pgsql/CREDITS
3071 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pgsql.ini
3072 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3077 %defattr(644,root,root,755)
3078 %doc ext/phar/CREDITS
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_phar.ini
3080 %attr(755,root,root) %{php_extensiondir}/phar.so
3081 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3082 %{_mandir}/man1/phar%{php_suffix}.1*
3083 %ghost %{_bindir}/phar
3084 %ghost %{_mandir}/man1/phar.1*
3089 %defattr(644,root,root,755)
3090 %doc ext/posix/CREDITS
3091 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_posix.ini
3092 %attr(755,root,root) %{php_extensiondir}/posix.so
3097 %defattr(644,root,root,755)
3098 %doc ext/pspell/CREDITS
3099 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pspell.ini
3100 %attr(755,root,root) %{php_extensiondir}/pspell.so
3103 %if %{with readline}
3105 %defattr(644,root,root,755)
3106 %doc ext/readline/CREDITS
3107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/??_readline.ini
3108 %attr(755,root,root) %{php_extensiondir}/readline.so
3113 %defattr(644,root,root,755)
3114 %doc ext/session/CREDITS
3115 %doc ext/session/mod_files.sh
3116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_session.ini
3117 %attr(755,root,root) %{php_extensiondir}/session.so
3121 %defattr(644,root,root,755)
3122 %doc ext/shmop/CREDITS
3123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_shmop.ini
3124 %attr(755,root,root) %{php_extensiondir}/shmop.so
3127 %defattr(644,root,root,755)
3128 %doc ext/simplexml/CREDITS
3129 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_simplexml.ini
3130 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3134 %defattr(644,root,root,755)
3135 %doc ext/snmp/CREDITS
3136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_snmp.ini
3137 %attr(755,root,root) %{php_extensiondir}/snmp.so
3141 %defattr(644,root,root,755)
3142 %doc ext/soap/CREDITS
3143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_soap.ini
3144 %attr(755,root,root) %{php_extensiondir}/soap.so
3147 %defattr(644,root,root,755)
3148 %doc ext/sockets/CREDITS
3149 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sockets.ini
3150 %attr(755,root,root) %{php_extensiondir}/sockets.so
3154 %defattr(644,root,root,755)
3155 %doc ext/sodium/{README.md,CREDITS}
3156 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sodium.ini
3157 %attr(755,root,root) %{php_extensiondir}/sodium.so
3162 %defattr(644,root,root,755)
3163 %doc ext/sqlite3/CREDITS
3164 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sqlite3.ini
3165 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3169 %defattr(644,root,root,755)
3170 %doc ext/sysvmsg/CREDITS
3171 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvmsg.ini
3172 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3175 %defattr(644,root,root,755)
3176 %doc ext/sysvsem/CREDITS
3177 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvsem.ini
3178 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3181 %defattr(644,root,root,755)
3182 %doc ext/sysvshm/CREDITS
3183 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvshm.ini
3184 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3187 %defattr(644,root,root,755)
3188 %dir %{php_datadir}/tests
3189 %dir %{php_datadir}/tests/php
3190 %{php_datadir}/tests/php/basic
3191 %{php_datadir}/tests/php/classes
3192 %{php_datadir}/tests/php/func
3193 %{php_datadir}/tests/php/lang
3194 %{php_datadir}/tests/php/output
3195 %{php_datadir}/tests/php/run-test
3196 %{php_datadir}/tests/php/security
3197 %{php_datadir}/tests/php/strings
3198 %{php_datadir}/tests/php/quicktester.inc
3199 %attr(755,root,root) %{php_datadir}/tests/php/run-tests.php
3203 %defattr(644,root,root,755)
3204 %doc ext/tidy/CREDITS
3205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tidy.ini
3206 %attr(755,root,root) %{php_extensiondir}/tidy.so
3210 %defattr(644,root,root,755)
3211 %doc ext/tokenizer/CREDITS
3212 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tokenizer.ini
3213 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3216 %defattr(644,root,root,755)
3217 %doc ext/xml/CREDITS
3218 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xml.ini
3219 %attr(755,root,root) %{php_extensiondir}/xml.so
3222 %defattr(644,root,root,755)
3223 %doc ext/xmlreader/CREDITS
3224 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlreader.ini
3225 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3229 %defattr(644,root,root,755)
3230 %doc ext/xmlrpc/CREDITS
3231 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlrpc.ini
3232 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3236 %defattr(644,root,root,755)
3237 %doc ext/xmlwriter/CREDITS
3238 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlwriter.ini
3239 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3243 %defattr(644,root,root,755)
3244 %doc ext/xsl/CREDITS
3245 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xsl.ini
3246 %attr(755,root,root) %{php_extensiondir}/xsl.so
3251 %defattr(644,root,root,755)
3252 %doc ext/zip/{CREDITS,examples}
3253 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zip.ini
3254 %attr(755,root,root) %{php_extensiondir}/zip.so
3258 %defattr(644,root,root,755)
3259 %doc ext/zlib/CREDITS
3260 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zlib.ini
3261 %attr(755,root,root) %{php_extensiondir}/zlib.so