3 %bcond_with 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 bzip2 # 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_with imap # without IMAP extension module
35 %bcond_without intl # without Intl extension module
36 %bcond_without ldap # without LDAP extension module
37 %bcond_without mbstring # without mbstring extension module
38 %bcond_without mhash # without mhash extension (supported by hash extension)
39 %bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
40 %bcond_without mysqlnd # without mysqlnd support in mysql related extensions
41 %bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
42 %bcond_without odbc # without ODBC extension module
43 %bcond_without opcache # without Enable Zend OPcache extension support
44 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
45 %bcond_without pcntl # without pcntl extension module
46 %bcond_without pcre_jit # PCRE JIT
47 %bcond_without pdo # without PDO extension module
48 %bcond_without pdo_dblib # without PDO dblib extension module
49 %bcond_without pdo_firebird # without PDO Firebird extension module
50 %bcond_without pdo_mysql # without PDO MySQL extension module
51 %bcond_without pdo_oci # without PDO oci extension module
52 %bcond_without pdo_odbc # without PDO ODBC extension module
53 %bcond_without pdo_pgsql # without PDO pgsql extension module
54 %bcond_without pdo_sqlite # without PDO SQLite extension module
55 %bcond_without pgsql # without PostgreSQL extension module
56 %bcond_without phar # without Phar extension module
57 %bcond_without posix # without POSIX extension module
58 %bcond_without pspell # without pspell extension module
59 %bcond_without readline # without readline extension module
60 %bcond_without session # without session extension module
61 %bcond_without snmp # without SNMP extension module
62 %bcond_without sodium # without sodium extension module
63 %bcond_without sqlite2 # without SQLite extension module
64 %bcond_without sqlite3 # without SQLite3 extension module
65 %bcond_without tidy # without Tidy extension module
66 %bcond_without xsl # without xsl extension module
67 %bcond_without zip # without zip extension module
69 %bcond_without argon2 # argon2 password hashing
70 %bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
71 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
72 %bcond_with mm # without mm support for session storage
73 %bcond_without system_gd # system gd
74 %bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
76 %define apxs2 /usr/sbin/apxs
80 %undefine with_apache2
82 %undefine with_litespeed
85 # mm is not thread safe
91 %undefine with_pdo_odbc
95 %undefine with_pdo_pgsql
99 %undefine with_pdo_oci
102 %ifnarch %{ix86} %{x8664} x32
103 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
108 %undefine with_pdo_dblib
109 %undefine with_pdo_firebird
110 %undefine with_pdo_mysql
111 %undefine with_pdo_oci
112 %undefine with_pdo_odbc
113 %undefine with_pdo_pgsql
114 %undefine with_pdo_sqlite
118 %define php_suffix 80
119 Summary: PHP: Hypertext Preprocessor
120 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
121 Summary(pl.UTF-8): Język skryptowy PHP
122 Summary(pt_BR.UTF-8): A linguagem de script PHP
123 Summary(ru.UTF-8): PHP - язык препроцессирования HTML-файлов, выполняемый на сервере
124 Summary(uk.UTF-8): PHP - мова препроцесування HTML-файлів, виконувана на сервері
125 Name: %{orgname}%{php_suffix}
129 # All files licensed under PHP version 3.01, except
130 # Zend is licensed under Zend
131 # TSRM is licensed under BSD
132 License: PHP 3.01 and Zend and BSD
134 Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
135 # Source0-md5: 453206c948d9504b91fcec30fcb59b75
137 Source2: %{orgname}-mod_php.conf
138 Source3: %{orgname}-cgi-fcgi.ini
139 Source4: %{orgname}-apache.ini
140 Source5: %{orgname}-cli.ini
141 Source10: %{orgname}-fpm.init
142 Source11: %{orgname}-fpm.logrotate
143 Source12: %{orgname}-branch.sh
144 Source13: dep-tests.sh
145 Source14: skip-tests.sh
146 Patch0: %{orgname}-shared.patch
147 Patch1: %{orgname}-tld.patch
148 Patch3: %{orgname}-link-libs.patch
149 Patch4: intl-stdc++.patch
150 Patch7: %{orgname}-sapi-ini-file.patch
151 Patch9: libtool-tag.patch
152 Patch10: %{orgname}-ini.patch
154 Patch14: %{orgname}-no_pear_install.patch
155 Patch18: %{orgname}-nohttpd.patch
156 Patch21: %{orgname}-dba-link.patch
157 Patch22: %{orgname}-both-apxs.patch
158 Patch23: %{orgname}-paths.patch
159 Patch24: %{orgname}-zlib-for-getimagesize.patch
160 Patch25: %{orgname}-stupidapache_version.patch
161 Patch27: %{orgname}-config-dir.patch
162 Patch29: %{orgname}-fcgi-graceful.patch
163 Patch39: %{orgname}-use-prog_sendmail.patch
164 Patch41: %{orgname}-fpm-config.patch
165 Patch43: %{orgname}-silent-session-cleanup.patch
166 Patch44: %{orgname}-include_path.patch
167 Patch50: extension-shared-optional-dep.patch
168 Patch53: fix-test-run.patch
169 Patch59: %{orgname}-systzdata.patch
170 Patch60: %{orgname}-oracle-instantclient.patch
171 Patch66: php-db.patch
172 Patch67: mysql-lib-ver-mismatch.patch
173 # https://bugs.php.net/bug.php?id=68344
174 Patch68: php-mysql-ssl-context.patch
175 Patch71: libdb-info.patch
176 Patch72: openssl.patch
178 %{?with_pdo_firebird:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
179 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
180 BuildRequires: autoconf >= 2.59
181 BuildRequires: automake >= 1.4d
182 BuildRequires: bison >= 3.0.0
183 BuildRequires: bzip2-devel >= 1.0.0
184 %{?with_curl:BuildRequires: curl-devel >= 7.15.5}
185 BuildRequires: cyrus-sasl-devel >= 2
186 BuildRequires: db-devel >= 4.0
187 BuildRequires: elfutils-devel
188 %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
189 %if %{with pdo_dblib}
190 BuildRequires: freetds-devel >= 0.82
192 BuildRequires: freetype-devel >= 1:2.5.1
193 %if %{with system_gd}
194 BuildRequires: gd-devel >= 2.1
196 BuildRequires: gdbm-devel
197 BuildRequires: gmp-devel >= 4.2
198 %{?with_kerberos5:BuildRequires: heimdal-devel}
199 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
200 %{?with_gcov:BuildRequires: lcov}
201 %{?with_fpm:BuildRequires: libapparmor-devel}
202 %{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
203 %{?with_ffi:BuildRequires: libffi-devel}
204 %{?with_intl:BuildRequires: libicu-devel >= 50.1}
205 BuildRequires: libjpeg-devel
206 BuildRequires: libltdl-devel >= 1.4
207 BuildRequires: libpng-devel >= 1.0.8
208 %{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
209 %{?with_intl:BuildRequires: libstdc++-devel}
210 BuildRequires: libtool >= 2:2.4.6
211 %{?with_webp:BuildRequires: libwebp-devel}
212 BuildRequires: libxml2-devel >= 1:2.7.6-4
213 %{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
214 %{?with_zip:BuildRequires: libzip-devel >= 1.3.1}
215 %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
216 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
217 %{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
218 %{!?with_pdo_mysql:BuildRequires: mysql-devel}
219 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
220 BuildRequires: oniguruma-devel
221 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
222 %if %{with openssl} || %{with ldap}
223 BuildRequires: openssl-devel >= 1.0.1
225 %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
226 BuildRequires: pam-devel
227 BuildRequires: pcre2-8-devel >= 10.30
228 BuildRequires: pkgconfig
229 %{?with_pgsql:BuildRequires: postgresql-devel}
230 BuildRequires: readline-devel
231 BuildRequires: rpm >= 4.4.9-56
232 BuildRequires: rpm-build >= 4.4.0
233 BuildRequires: rpmbuild(macros) >= 1.566
234 BuildRequires: sed >= 4.0
235 %if %{with sqlite3} || %{with pdo_sqlite}
236 BuildRequires: sqlite3-devel >= 3.7.4
238 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
239 BuildRequires: tar >= 1:1.22
240 %{?with_tidy:BuildRequires: tidy-devel}
241 BuildRequires: tokyocabinet-devel
242 %{?with_odbc:BuildRequires: unixODBC-devel}
244 BuildRequires: zlib-devel >= 1.2.0.4
246 BuildRequires: apache-devel >= 2.0.52-2
247 BuildRequires: apr-devel >= 1:1.0.0
248 BuildRequires: apr-util-devel >= 1:1.0.0
250 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
252 %define php_sysconfdir /etc/%{name}
253 %define php_extensiondir %{_libdir}/php/%{name}
254 %define php_data_dir /usr/share/php/%{name}
255 %define _sysconfdir %{php_sysconfdir}
257 # must be in sync with source. extra check ensuring that it is so is done in %%build
258 %define php_api_version 20200930
259 %define zend_module_api 20200930
260 %define zend_extension_api 420200930
261 %define php_pdo_api_version 20170320
264 %define bz2ver %{version}
265 %define enchantver %{version}
266 %define fileinfover %{version}
267 %define hashver %{version}
268 %define intlver %{version}
269 %define jsonver %{version}
270 %define pharver %{version}
271 %define sqlite3ver %{version}
272 %define zipver 1.19.5
273 %define phpdbgver %{version}
274 %define sodiumver %{version}
276 %define _zend_zts %{!?with_zts:0}%{?with_zts:1}
277 %define php_debug %{!?with_debug:0}%{?with_debug:1}
280 %undefine with_ccache
284 # ORACLE_HOME is required for oci8 ext to build
285 %define _preserve_env %_preserve_env_base ORACLE_HOME
289 PHP is an HTML-embedded scripting language. PHP attempts to make it
290 easy for developers to write dynamically generated web pages. PHP also
291 offers built-in database integration for several commercial and
292 non-commercial database management systems, so writing a
293 database-enabled web page with PHP is fairly simple. The most common
294 use of PHP coding is probably as a replacement for CGI scripts. The
295 mod_php module enables the Apache web server to understand and process
296 the embedded PHP language in web pages. This package contains PHP
299 %description -l fr.UTF-8
300 PHP est un langage de script embarque dans le HTM. PHP essaye de
301 rendre simple aux developpeurs d'ecrire des pages web generees
302 dynamiquement. PHP incorpore egalement une integration avec plusieurs
303 systemes de gestion de bases de donnees commerciaux et
304 non-connerciaux, qui rent facile la creation de pages web liees avec
305 des bases de donnees. L'utilisation la plus commune de PHP est
306 probablement en remplacement de scripts CGI. Le module mod_php permet
307 au serveur web Apache de comprendre et de traiter le langage PHP
308 integre dans des pages web. Ce package contient PHP version
311 %description -l pl.UTF-8
312 PHP jest językiem skryptowym, którego polecenia umieszcza się w
313 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
314 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
315 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
316 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
317 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
318 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
319 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
322 %description -l pt_BR.UTF-8
323 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
324 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
325 com algumas características únicas, específicas ao PHP. O objetivo da
326 linguagem é permitir que desenvolvedores web escrevam páginas
327 dinamicamente geradas de forma rápida.
329 %description -l ru.UTF-8
330 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
331 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
332 для работы с базами данных относительно просто. Наиболее популярное
333 использование PHP - замена для CGI скриптов.
335 %description -l uk.UTF-8
336 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
337 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
338 роботи з базами даних є доволі простим. Найбільш популярне
339 використання PHP - заміна для CGI скриптів.
341 %package -n apache-mod_%{name}
342 Summary: PHP support for Apache 2.x
343 Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
344 Group: Development/Languages/PHP
345 Requires: %{name}-common = %{epoch}:%{version}-%{release}
346 Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
347 Provides: webserver(php) = %{version}
348 Obsoletes: apache-mod_php < 4:5.3.28-7
351 %description -n apache-mod_%{name}
352 PHP support for Apache 2.x.
354 %description -n apache-mod_%{name} -l pl.UTF-8
355 Wsparcie PHP dla Apache 2.x.
357 %package -n apache-mod_%{name}-core
358 Summary: PHP DSO module for Apache 2.x
359 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
360 Group: Development/Languages/PHP
361 Requires: %{name}-common = %{epoch}:%{version}-%{release}
362 Requires: apache(modules-api) = %{apache_modules_api}
363 Requires: apache-mod_mime
365 %description -n apache-mod_%{name}-core
366 PHP as DSO module for Apache 2.x.
368 %description -n apache-mod_%{name}-core -l pl.UTF-8
369 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
372 Summary: PHP for litespeed HTTP server
373 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
374 Group: Development/Languages/PHP
375 Requires: %{name}-common = %{epoch}:%{version}-%{release}
376 Provides: php(litespeed)
377 Provides: webserver(php) = %{version}
378 Obsoletes: php-litespeed < 4:5.3.28-7
380 %description litespeed
381 PHP for litespeed HTTP server.
383 %description litespeed -l pl.UTF-8
384 PHP dla serwera HTTP litespeed.
387 Summary: PHP as CGI/FastCGI program
388 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
389 Group: Development/Languages/PHP
390 Requires: %{name}-common = %{epoch}:%{version}-%{release}
391 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
394 Provides: webserver(php) = %{version}
395 Obsoletes: php-cgi < 4:5.3.28-7
396 Obsoletes: php-fcgi < 4:5.3.0
399 PHP as CGI or FastCGI program.
401 %description cgi -l pl.UTF-8
402 PHP jako program CGI lub FastCGI.
405 Summary: PHP as CLI interpreter
406 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
407 Group: Development/Languages/PHP
408 Requires: %{name}-common = %{epoch}:%{version}-%{release}
409 Requires: alternatives
410 Obsoletes: php-cli < 4:5.3.28-7
413 PHP as CLI interpreter.
415 %description cli -l pl.UTF-8
416 PHP jako interpreter działający z linii poleceń.
419 Summary: PHP library for embedding in applications
420 Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
422 Requires: %{name}-common = %{epoch}:%{version}-%{release}
423 Obsoletes: php-embedded < 4:5.3.28-7
425 %description embedded
426 The php-embedded package contains a library which can be embedded into
427 applications to provide PHP scripting language support.
429 %description embedded -l pl.UTF-8
430 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
431 celu obsługi PHP jako języka skryptowego.
434 Summary: PHP FastCGI Process Manager
435 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
436 Group: Development/Languages/PHP
437 URL: http://php-fpm.org/
438 Requires(post,preun): /sbin/chkconfig
439 Requires(postun): /usr/sbin/userdel
440 Requires(pre): /bin/id
441 Requires(pre): /usr/sbin/useradd
442 Requires: %{name}-common = %{epoch}:%{version}-%{release}
443 Requires: alternatives
444 Requires: php-dirs >= 1.4-2
449 Provides: webserver(php) = %{version}
450 Obsoletes: php-fpm < 4:5.3.28-7
451 Conflicts: logrotate < 3.8.0
454 PHP FastCGI Process Manager.
456 %description fpm -l pl.UTF-8
457 PHP FastCGI Process Manager - zarządca procesów FastCGI.
460 Summary: The debugging platform for PHP 5.4+
461 Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
462 Group: Development/Languages/PHP
463 Requires: %{name}-common = %{epoch}:%{version}-%{release}
464 Provides: php(phpdbg) = %{phpdbgver}
467 phpdbg - The interactive PHP debugger.
469 Implemented as a SAPI module, phpdbg can excert complete control over
470 the environment without impacting the functionality or performance of
473 phpdbg aims to be a lightweight, powerful, easy to use debugging
474 platform for PHP 5.4+
476 %description phpdbg -l pl.UTF-8
477 phpdbg - interaktywny debugger dla PHP.
479 Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
480 nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
482 Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
483 platforma diagnostyczna dla PHP 5.4+.
486 Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
487 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
488 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
489 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
491 Requires(post): sed >= 4.0
492 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
493 Requires: glibc >= 6:2.3.5
494 Requires: php-dirs >= 1.4
495 Requires: rpm-whiteout >= 1.28
497 Requires: zlib >= 1.2.0.4
498 Provides: %{name}(debug) = %{php_debug}
499 Provides: %{name}(modules_api) = %{php_api_version}
500 Provides: %{name}(thread-safety) = %{_zend_zts}
501 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
502 Provides: %{name}(zend_module_api) = %{zend_module_api}
503 Provides: %{name}-core
504 Provides: %{name}-date
505 Provides: %{name}-hash = %{epoch}:%{version}-%{release}
506 Provides: %{name}-pcre = %{epoch}:%{version}-%{release}
507 Provides: %{name}-reflection
508 Provides: %{name}-spl = %{epoch}:%{version}-%{release}
509 Provides: %{name}-standard
510 Provides: php(core) = %{version}
512 Provides: php(hash) = %{hashver}
514 Provides: php(libxml)
516 Provides: php(reflection)
518 Provides: php(standard)
519 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
520 %requires_ge_to pcre2-8 pcre2-8-devel
522 Obsoletes: php-common < 4:5.3.28-7
523 Obsoletes: php-filepro < 4:5.2.0
524 Obsoletes: php-hash < 4:5.3.28-7
525 Obsoletes: php-hwapi < 4:5.2.0
526 Obsoletes: php-hyperwave < 3:5.0.0
527 Obsoletes: php-java < 3:5.0.0
528 Obsoletes: php-mcal < 3:5.0.0
529 Obsoletes: php-pcre < 4:5.3.28-7
530 Obsoletes: php-pecl-domxml
531 Obsoletes: php-pecl-hash < %{hashver}
532 Obsoletes: php-qtdom < 3:5.0.0
533 Obsoletes: php-spl < 4:5.3.28-7
534 Conflicts: php4-common < 3:4.4.4-8
535 Conflicts: php55-common < 4:5.5.10-4
536 Conflicts: rpm < 4.4.2-0.2
539 Provides: php-mhash = %{epoch}:%{version}-%{release}
540 Obsoletes: php-mhash < 4:5.3.0
544 Common files needed by both Apache modules and CGI/CLI SAPIs.
546 %description common -l pl.UTF-8
547 Wspólne pliki dla modułu Apache'a i programu CGI.
549 %description common -l ru.UTF-8
550 Этот пакет содержит общие файлы для разных вариантов реализации PHP
551 (самодостаточной и в качестве модуля Apache).
553 %description common -l uk.UTF-8
554 Цей пакет містить спільні файли для різних варіантів реалізації PHP
555 (самодостатньої та в якості модуля Apache).
558 Summary: Files for PHP modules development
559 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
560 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
561 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
562 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
563 Group: Development/Languages/PHP
564 Requires: %{name}-common = %{epoch}:%{version}-%{release}
565 Requires: autoconf >= 2.59
566 Requires: automake >= 1.4d
567 Requires: libtool >= 2:2.4.6
568 Requires: pcre2-8-devel >= 10.30
570 Provides: php-devel = %{epoch}:%{version}-%{release}
571 Obsoletes: php-pear-devel
572 Obsoletes: php4-devel
573 Obsoletes: php52-devel
574 Obsoletes: php53-devel
575 Obsoletes: php54-devel
576 Obsoletes: php55-devel
577 Obsoletes: php56-devel
580 The php-devel package lets you compile dynamic extensions to PHP.
581 Included here is the source for the PHP extensions. Instead of
582 recompiling the whole PHP binary to add support for, say, oracle,
583 install this package and use the new self-contained extensions
584 support. For more information, read the file
585 README.SELF-CONTAINED-EXTENSIONS.
587 %description devel -l pl.UTF-8
588 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
589 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
590 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
591 samodzielnych rozszerzeniach można znaleźć w pliku
592 README.SELF-CONTAINED-EXTENSIONS.
594 %description devel -l pt_BR.UTF-8
595 Este pacote contém arquivos usados no desenvolvimento de programas ou
598 %description devel -l ru.UTF-8
599 Пакет php-devel дает возможность компилировать динамические расширения
600 PHP. Пакет включает исходный код этих расширений. Вместо повторной
601 компиляции бинарного файла PHP для добавления, например, поддержки
602 oracle, установите этот пакет для компилирования отдельных расширений.
603 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
605 %description devel -l uk.UTF-8
606 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
607 До пакету включено вихідний код для розширень. Замість повторної
608 компіляції бінарного файлу PHP для додання, наприклад, підтримки
609 oracle, встановіть цей пакет для компіляції окремих розширень.
610 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
613 Summary: bcmath extension module for PHP
614 Summary(pl.UTF-8): Moduł bcmath dla PHP
616 URL: http://php.net/manual/en/book.bc.php
617 Requires: %{name}-common = %{epoch}:%{version}-%{release}
618 Provides: php(bcmath)
619 Obsoletes: php-bcmath < 4:5.3.28-7
622 This is a dynamic shared object (DSO) for PHP that will add bc style
623 precision math functions support.
625 %description bcmath -l pl.UTF-8
626 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
627 matematycznych takich jak w programie bc.
630 Summary: Bzip2 extension module for PHP
631 Summary(pl.UTF-8): Moduł bzip2 dla PHP
633 URL: http://php.net/manual/en/book.bzip2.php
634 Requires: %{name}-common = %{epoch}:%{version}-%{release}
635 Requires: bzip2-libs >= 1.0.0
636 Provides: php(bz2) = %{bz2ver}
638 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
639 Obsoletes: php-bz2 < 4:5.3.28-7
640 Obsoletes: php-bzip2 < 4:5.2.14-3
641 Obsoletes: php-pecl-bz2 < %{bz2ver}
644 This is a dynamic shared object (DSO) for PHP that will add bzip2
645 compression support to PHP.
647 %description bz2 -l pl.UTF-8
648 Moduł PHP umożliwiający używanie kompresji bzip2.
651 Summary: Calendar extension module for PHP
652 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
654 URL: http://php.net/manual/en/book.calendar.php
655 Requires: %{name}-common = %{epoch}:%{version}-%{release}
656 Provides: php(calendar)
657 Obsoletes: php-calendar < 4:5.3.28-7
659 %description calendar
660 This is a dynamic shared object (DSO) for PHP that will add calendar
663 %description calendar -l pl.UTF-8
664 Moduł PHP dodający wsparcie dla kalendarza.
667 Summary: ctype extension module for PHP
668 Summary(pl.UTF-8): Moduł ctype dla PHP
670 URL: http://php.net/manual/en/book.ctype.php
671 Requires: %{name}-common = %{epoch}:%{version}-%{release}
673 Obsoletes: php-ctype < 4:5.3.28-7
676 This is a dynamic shared object (DSO) for PHP that will add ctype
679 %description ctype -l pl.UTF-8
680 Moduł PHP umożliwiający korzystanie z funkcji ctype.
683 Summary: curl extension module for PHP
684 Summary(pl.UTF-8): Moduł curl dla PHP
686 URL: http://php.net/manual/en/book.curl.php
687 Requires: %{name}-common = %{epoch}:%{version}-%{release}
688 Requires: curl-libs >= 7.12.0
690 Obsoletes: php-curl < 4:5.3.28-7
693 This is a dynamic shared object (DSO) for PHP that will add curl
696 %description curl -l pl.UTF-8
697 Moduł PHP umożliwiający korzystanie z biblioteki curl.
700 Summary: DBA extension module for PHP
701 Summary(pl.UTF-8): Moduł DBA dla PHP
703 URL: http://php.net/manual/en/book.dba.php
704 Requires: %{name}-common = %{epoch}:%{version}-%{release}
706 Obsoletes: php-dba < 4:5.3.28-7
707 # withdrawn module of similar functionality but different API
708 Obsoletes: php-db < 3:5.0.0
711 This is a dynamic shared object (DSO) for PHP that will add flat-file
712 databases (DBA) support.
714 %description dba -l pl.UTF-8
715 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
719 Summary: DOM extension module for PHP
720 Summary(pl.UTF-8): Moduł DOM dla PHP
722 URL: http://php.net/manual/en/book.dom.php
723 Requires: %{name}-common = %{epoch}:%{version}-%{release}
725 # it has some compatibility functions
726 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
727 Provides: php(domxml)
728 Obsoletes: php-dom < 4:5.3.28-7
729 Obsoletes: php-domxml <= 3:4.3.8-1
732 This is a dynamic shared object (DSO) for PHP that will add new DOM
735 %description dom -l pl.UTF-8
736 Moduł PHP dodający nową obsługę DOM.
739 Summary: libenchant binder
740 Summary(pl.UTF-8): dowiązania biblioteki libenchant
742 URL: http://php.net/manual/en/book.enchant.php
743 Requires: %{name}-common = %{epoch}:%{version}-%{release}
744 Provides: php(enchant) = %{enchantver}
745 Obsoletes: php-enchant < 4:5.3.28-7
746 Obsoletes: php-pecl-enchant < %{enchantver}
749 Enchant is a binder for libenchant. Libenchant provides a common API
750 for many spell libraries:
751 - aspell/pspell (intended to replace ispell)
754 - myspell (OpenOffice.org project, mozilla)
755 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
756 plugin system allows to add custom spell support.
758 %description enchant -l pl.UTF-8
759 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
760 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
761 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
764 - myspell (projekt OpenOffice.org, mozilla)
765 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
766 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
769 Summary: exif extension module for PHP
770 Summary(pl.UTF-8): Moduł exif dla PHP
772 URL: http://php.net/manual/en/book.exif.php
773 Requires: %{name}-common = %{epoch}:%{version}-%{release}
775 Obsoletes: php-exif < 4:5.3.28-7
778 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
779 support in image files.
781 %description exif -l pl.UTF-8
782 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
785 Summary: Foreign Function Interface module for PHP
786 Summary(pl.UTF-8): Moduł Foreign Function Interface (interfejsu do obcych języków) dla PHP
788 URL: https://www.php.net/manual/en/book.ffi.php
789 Requires: %{name}-common = %{epoch}:%{version}-%{release}
790 Provides: php(ffi) = %{version}
793 FFI is a multi-platform extension for PHP that allows you to bind to
794 functions from arbitrary shared libraries and call them.
796 %description ffi -l pl.UTF-8
797 FFI to wieloplatformowe rozszerzenie dla PHP pozwalające dowiązywać
798 funkcje z dowolnych bibliotek współdzielonych i wywoływać je.
801 Summary: libmagic bindings
802 Summary(pl.UTF-8): Wiązania do libmagic
804 URL: http://php.net/manual/en/book.fileinfo.php
805 Requires: %{name}-common = %{epoch}:%{version}-%{release}
806 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
807 Provides: php(fileinfo) = %{fileinfover}
808 Obsoletes: php-fileinfo < 4:5.3.28-7
809 Obsoletes: php-mime_magic
810 Obsoletes: php-pecl-fileinfo < %{fileinfover}
812 %description fileinfo
813 This extension allows retrieval of information regarding vast majority
814 of file. This information may include dimensions, quality, length
817 Additionally it can also be used to retrieve the MIME type for a
818 particular file and for text files proper language encoding.
820 %description fileinfo -l pl.UTF-8
821 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
822 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
824 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
825 pliku oraz kodowania plików tekstowych.
828 Summary: Extension for safely dealing with input parameters
829 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
831 URL: http://php.net/manual/en/book.filter.php
832 Requires: %{name}-common = %{epoch}:%{version}-%{release}
833 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
834 Provides: php(filter)
835 Obsoletes: php-filter < 4:5.3.28-7
836 Obsoletes: php-pecl-filter
839 We all know that you should always check input variables, but PHP does
840 not offer really good functionality for doing this in a safe way. The
841 Input Filter extension is meant to address this issue by implementing
842 a set of filters and mechanisms that users can use to safely access
845 %description filter -l pl.UTF-8
846 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
847 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
848 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
849 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
850 mogą bezpiecznie używać do dostępu do danych.
853 Summary: FTP extension module for PHP
854 Summary(pl.UTF-8): Moduł FTP dla PHP
856 URL: http://php.net/manual/en/book.ftp.php
857 Requires: %{name}-common = %{epoch}:%{version}-%{release}
859 Obsoletes: php-ftp < 4:5.3.28-7
862 This is a dynamic shared object (DSO) for PHP that will add FTP
865 %description ftp -l pl.UTF-8
866 Moduł PHP dodający obsługę protokołu FTP.
869 Summary: GD extension module for PHP
870 Summary(pl.UTF-8): Moduł GD dla PHP
872 URL: http://php.net/manual/en/book.image.php
873 Requires: %{name}-common = %{epoch}:%{version}-%{release}
874 %if %{with system_gd}
879 Obsoletes: php-gd < 4:5.3.28-7
882 This is a dynamic shared object (DSO) for PHP that will add GD
883 support, allowing you to create and manipulate images with PHP.
885 %description gd -l pl.UTF-8
886 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
887 tworzenie i obróbkę obrazków.
890 Summary: gettext extension module for PHP
891 Summary(pl.UTF-8): Moduł gettext dla PHP
893 URL: http://php.net/manual/en/book.gettext.php
894 Requires: %{name}-common = %{epoch}:%{version}-%{release}
895 Provides: php(gettext)
896 Obsoletes: php-gettext < 4:5.3.28-7
899 This is a dynamic shared object (DSO) for PHP that will add gettext
902 %description gettext -l pl.UTF-8
903 Moduł PHP dodający obsługę lokalizacji przez gettext.
906 Summary: gmp extension module for PHP
907 Summary(pl.UTF-8): Moduł gmp dla PHP
909 URL: http://php.net/manual/en/book.gmp.php
910 Requires: %{name}-common = %{epoch}:%{version}-%{release}
913 Obsoletes: php-gmp < 4:5.3.28-7
916 This is a dynamic shared object (DSO) for PHP that will add arbitrary
917 length number support with GNU MP library.
919 %description gmp -l pl.UTF-8
920 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
921 liczbach o dowolnej długości.
924 Summary: iconv extension module for PHP
925 Summary(pl.UTF-8): Moduł iconv dla PHP
927 URL: http://php.net/manual/en/book.iconv.php
928 Requires: %{_libdir}/gconv
929 Requires: %{name}-common = %{epoch}:%{version}-%{release}
932 Obsoletes: php-iconv < 4:5.3.28-7
935 This is a dynamic shared object (DSO) for PHP that will add iconv
938 %description iconv -l pl.UTF-8
939 Moduł PHP dodający obsługę iconv.
942 Summary: IMAP extension module for PHP
943 Summary(pl.UTF-8): Moduł IMAP dla PHP
944 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
946 URL: http://php.net/manual/en/book.imap.php
947 Requires: %{name}-common = %{epoch}:%{version}-%{release}
948 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
949 Requires: imap-lib >= 1:2007e-2
951 Obsoletes: php-imap < 4:5.3.28-7
954 This is a dynamic shared object (DSO) for PHP that will add IMAP
957 %description imap -l pl.UTF-8
958 Moduł PHP dodający obsługę skrzynek IMAP.
960 %description imap -l pt_BR.UTF-8
961 Um módulo para aplicações PHP que usam IMAP.
964 Summary: Internationalization extension (ICU wrapper)
965 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
967 URL: http://php.net/intl
968 Requires: %{name}-common = %{epoch}:%{version}-%{release}
969 Provides: php(intl) = %{intlver}
970 Obsoletes: php-intl < 4:5.3.28-7
971 Obsoletes: php-pecl-intl < %{intlver}
974 Internationalization extension (further is referred as Intl) is a
975 wrapper for ICU library, enabling PHP programmers to perform
976 UCA-conformant collation and date/time/number/currency formatting in
979 %description intl -l pl.UTF-8
980 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
981 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
982 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
986 Summary: LDAP extension module for PHP
987 Summary(pl.UTF-8): Moduł LDAP dla PHP
988 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
990 URL: http://php.net/manual/en/book.ldap.php
991 Requires: %{name}-common = %{epoch}:%{version}-%{release}
993 Obsoletes: php-ldap < 4:5.3.28-7
996 This is a dynamic shared object (DSO) for PHP that will add LDAP
999 %description ldap -l pl.UTF-8
1000 Moduł PHP dodający obsługę LDAP.
1002 %description ldap -l pt_BR.UTF-8
1003 Um módulo para aplicações PHP que usam LDAP.
1006 Summary: mbstring extension module for PHP
1007 Summary(pl.UTF-8): Moduł mbstring dla PHP
1009 URL: http://php.net/manual/en/book.mbstring.php
1010 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1011 Provides: php(mbstring)
1012 Obsoletes: php-mbstring < 4:5.3.28-7
1014 %description mbstring
1015 This is a dynamic shared object (DSO) for PHP that will add multibyte
1018 %description mbstring -l pl.UTF-8
1019 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1022 Summary: MySQLi module for PHP
1023 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1025 URL: http://php.net/manual/en/book.mysqli.php
1026 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1027 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1028 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1029 Requires: mysql-libs >= 4.1.13
1030 Provides: php(mysqli)
1031 Obsoletes: php-mysqli < 4:5.3.28-7
1034 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1035 (Improved MySQL) support. The difference between it and mysql module
1036 is that it provides access to functionality of MySQL 4.1 and above.
1038 %description mysqli -l pl.UTF-8
1039 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1040 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1041 MySQL w wersji 4.1 i nowszych.
1044 Summary: MySQL Native Client Driver for PHP
1045 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1047 URL: http://php.net/manual/en/book.mysqlnd.php
1048 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1049 Provides: php(mysqlnd)
1050 Obsoletes: php-mysqlnd < 4:5.3.28-7
1052 %description mysqlnd
1053 MySQL Native Driver is a replacement for the MySQL Client Library
1056 Because MySQL Native Driver is written as a PHP extension, it is
1057 tightly coupled to the workings of PHP. This leads to gains in
1058 efficiency, especially when it comes to memory usage, as the driver
1059 uses the PHP memory management system. It also supports the PHP memory
1060 limit. Using MySQL Native Driver leads to comparable or better
1061 performance than using MySQL Client Library, it always ensures the
1062 most efficient use of memory. One example of the memory efficiency is
1063 the fact that when using the MySQL Client Library, each row is stored
1064 in memory twice, whereas with the MySQL Native Driver each row is only
1065 stored once in memory.
1067 %description mysqlnd -l pl.UTF-8
1068 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1069 klienckiej MySQL (libmysql).
1071 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1072 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1073 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1074 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1075 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1076 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1077 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1078 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1079 tym sterowniku - tylko raz.
1082 Summary: Oracle 8+ database module for PHP
1083 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1085 URL: http://php.net/manual/en/book.oci8.php
1086 %{?requires_php_extension}
1088 Obsoletes: php-oci8 < 4:5.3.28-7
1089 # withdrawn module of similar functionality but different API
1090 Obsoletes: php-oracle < 4:5.1.0
1093 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1094 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1096 %description oci8 -l pl.UTF-8
1097 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1098 poprzez interfejs Oracle8 Call-Interface (OCI8).
1101 Summary: ODBC extension module for PHP
1102 Summary(pl.UTF-8): Moduł ODBC dla PHP
1103 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1105 URL: http://php.net/manual/en/book.uodbc.php
1106 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1107 Requires: unixODBC >= 2.1.1-3
1109 Obsoletes: php-odbc < 4:5.3.28-7
1112 This is a dynamic shared object (DSO) for PHP that will add ODBC
1115 %description odbc -l pl.UTF-8
1116 Moduł PHP ze wsparciem dla ODBC.
1118 %description odbc -l pt_BR.UTF-8
1119 Um módulo para aplicações PHP que usam ODBC.
1122 Summary: Zend Optimizer+ - PHP code optimizer
1123 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1125 URL: https://wiki.php.net/rfc/optimizerplus
1126 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1127 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1128 Provides: php(opcache) = %{version}
1130 %description opcache
1131 The Zend OPcache provides faster PHP execution through opcode caching
1132 and optimization. It improves PHP performance by storing precompiled
1133 script bytecode in the shared memory. This eliminates the stages of
1134 reading code from the disk and compiling it on future access. In
1135 addition, it applies a few bytecode optimization patterns that make
1136 code execution faster.
1138 %description opcache -l pl.UTF-8
1139 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1140 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1141 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1142 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1143 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1144 czyniąc wykonywanie kodu szybszym.
1147 Summary: OpenSSL extension module for PHP
1148 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1150 URL: http://php.net/manual/en/book.openssl.php
1151 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1152 Provides: php(openssl)
1153 Obsoletes: php-openssl < 4:5.3.28-7
1155 %description openssl
1156 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1159 %description openssl -l pl.UTF-8
1160 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1163 Summary: Process Control extension module for PHP
1164 Summary(pl.UTF-8): Moduł Process Control dla PHP
1166 URL: http://php.net/manual/en/book.pcntl.php
1167 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1168 Provides: php(pcntl)
1169 Obsoletes: php-pcntl < 4:5.3.28-7
1172 This is a dynamic shared object (DSO) for PHP that will add process
1173 spawning and control support. It supports functions like fork(),
1174 waitpid(), signal() etc.
1176 %description pcntl -l pl.UTF-8
1177 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1178 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1181 Summary: PHP Data Objects (PDO)
1182 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1184 URL: http://php.net/manual/en/book.pdo.php
1185 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1186 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1187 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1189 Obsoletes: php-pdo < 4:5.3.28-7
1190 Obsoletes: php-pecl-PDO
1193 This is a dynamic shared object (DSO) for PHP that will add PDO
1196 %description pdo -l pl.UTF-8
1197 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1200 Summary: PHP Data Objects (PDO) FreeTDS support
1201 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1203 URL: http://php.net/manual/en/ref.pdo-dblib.php
1204 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1205 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1206 Provides: php(pdo_dblib)
1207 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1209 %description pdo-dblib
1210 This is a dynamic shared object (DSO) for PHP that will add PDO
1213 %description pdo-dblib -l pl.UTF-8
1214 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1217 %package pdo-firebird
1218 Summary: PHP Data Objects (PDO) Firebird support
1219 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1221 URL: http://php.net/manual/en/ref.pdo-firebird.php
1222 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1223 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1224 Provides: php(pdo-firebird)
1225 Provides: php(pdo_firebird)
1226 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1227 Obsoletes: php-pecl-PDO_FIREBIRD
1229 %description pdo-firebird
1230 This is a dynamic shared object (DSO) for PHP that will add PDO
1233 %description pdo-firebird -l pl.UTF-8
1234 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1238 Summary: PHP Data Objects (PDO) MySQL support
1239 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1241 URL: http://php.net/manual/en/ref.pdo-mysql.php
1242 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1243 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1244 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1245 Provides: php(pdo-mysql)
1246 Provides: php(pdo_mysql)
1247 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1248 Obsoletes: php-pecl-PDO_MYSQL
1250 %description pdo-mysql
1251 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1254 %description pdo-mysql -l pl.UTF-8
1255 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1259 Summary: PHP Data Objects (PDO) Oracle support
1260 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1262 URL: http://php.net/manual/en/ref.pdo-oci.php
1263 %{?requires_php_extension}
1264 %{?requires_php_pdo_module}
1265 Provides: php(pdo-oci)
1266 Provides: php(pdo_oci)
1267 Obsoletes: php-pdo-oci < 4:5.3.28-7
1268 Obsoletes: php-pecl-PDO_OCI
1270 %description pdo-oci
1271 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1274 %description pdo-oci -l pl.UTF-8
1275 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1279 Summary: PHP Data Objects (PDO) ODBC support
1280 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1282 URL: http://php.net/manual/en/ref.pdo-odbc.php
1283 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1284 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1285 Provides: php(pdo-odbc)
1286 Provides: php(pdo_odbc)
1287 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1288 Obsoletes: php-pecl-PDO_ODBC
1290 %description pdo-odbc
1291 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1294 %description pdo-odbc -l pl.UTF-8
1295 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1299 Summary: PHP Data Objects (PDO) PostgreSQL support
1300 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1302 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1303 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1304 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1305 Provides: php(pdo-pgsql)
1306 Provides: php(pdo_pgsql)
1307 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1308 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1310 %description pdo-pgsql
1311 This is a dynamic shared object (DSO) for PHP that will add PDO
1314 %description pdo-pgsql -l pl.UTF-8
1315 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1319 Summary: PHP Data Objects (PDO) SQLite support
1320 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1322 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1323 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1324 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1325 Provides: php(pdo-sqlite)
1326 Provides: php(pdo_sqlite)
1327 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1328 Obsoletes: php-pecl-PDO_SQLITE
1330 %description pdo-sqlite
1331 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1334 %description pdo-sqlite -l pl.UTF-8
1335 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1339 Summary: PostgreSQL database module for PHP
1340 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1342 URL: http://php.net/manual/en/book.pgsql.php
1343 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1344 Provides: php(pgsql)
1345 Obsoletes: php-pgsql < 4:5.3.28-7
1348 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1351 %description pgsql -l pl.UTF-8
1352 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1354 %description pgsql -l pt_BR.UTF-8
1355 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1358 Summary: Phar archive module for PHP
1359 Summary(pl.UTF-8): Moduł phar dla PHP
1361 URL: http://php.net/manual/en/book.phar.php
1362 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1363 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1364 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1365 Requires: alternatives
1366 Suggests: %{name}-cli
1367 # zlib is required by phar program, but as phar cli is optional should the dep be too
1368 Suggests: %{name}-zlib
1369 Provides: php(phar) = %{pharver}
1370 Obsoletes: php-pecl-phar < %{pharver}
1371 Obsoletes: php-phar < 4:5.3.28-7
1372 Conflicts: php-ioncube < 4.0.9
1375 This is a dynamic shared object (DSO) for PHP that will add phar
1378 %description phar -l pl.UTF-8
1379 Moduł PHP umożliwiający dostęp do achiwów .phar.
1382 Summary: POSIX extension module for PHP
1383 Summary(pl.UTF-8): Moduł POSIX dla PHP
1385 URL: http://php.net/manual/en/book.posix.php
1386 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1387 Provides: php(posix)
1388 Obsoletes: php-posix < 4:5.3.28-7
1391 This is a dynamic shared object (DSO) for PHP that will add POSIX
1392 functions support to PHP.
1394 %description posix -l pl.UTF-8
1395 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1398 Summary: pspell extension module for PHP
1399 Summary(pl.UTF-8): Moduł pspell dla PHP
1401 URL: http://php.net/manual/en/book.pspell.php
1402 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1403 Provides: php(pspell)
1404 Obsoletes: php-pspell < 4:5.3.28-7
1407 This is a dynamic shared object (DSO) for PHP that will add pspell
1408 support to PHP. It allows to check the spelling of a word and offer
1411 %description pspell -l pl.UTF-8
1412 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1413 sprawdzanie pisowni słowa i sugerowanie poprawek.
1416 Summary: readline extension module for PHP
1417 Summary(pl.UTF-8): Moduł readline dla PHP
1419 URL: http://php.net/manual/en/book.readline.php
1420 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1421 Provides: php(readline)
1422 Obsoletes: php-readline < 4:5.3.28-7
1424 %description readline
1425 This PHP module adds support for readline functions (only for cli and
1428 %description readline -l pl.UTF-8
1429 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1432 Summary: session extension module for PHP
1433 Summary(pl.UTF-8): Moduł session dla PHP
1435 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1436 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1437 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1439 Provides: php(session)
1440 Obsoletes: php-session < 4:5.3.28-7
1442 %description session
1443 This is a dynamic shared object (DSO) for PHP that will add session
1446 %description session -l pl.UTF-8
1447 Moduł PHP dodający obsługę sesji.
1450 Summary: Shared Memory Operations extension module for PHP
1451 Summary(pl.UTF-8): Moduł shmop dla PHP
1453 URL: http://php.net/manual/en/book.shmop.php
1454 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1455 Provides: php(shmop)
1456 Obsoletes: php-shmop < 4:5.3.28-7
1459 This is a dynamic shared object (DSO) for PHP that will add Shared
1460 Memory Operations support.
1462 %description shmop -l pl.UTF-8
1463 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1466 Summary: Simple XML extension module for PHP
1467 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1469 URL: http://php.net/manual/en/book.simplexml.php
1470 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1471 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1472 Provides: php(simplexml)
1473 Obsoletes: php-simplexml < 4:5.3.28-7
1475 %description simplexml
1476 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1479 %description simplexml -l pl.UTF-8
1480 Moduł PHP dodający obsługę prostego XML-a.
1483 Summary: SNMP extension module for PHP
1484 Summary(pl.UTF-8): Moduł SNMP dla PHP
1486 URL: http://php.net/manual/en/book.snmp.php
1487 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1488 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1489 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1491 Obsoletes: php-snmp < 4:5.3.28-7
1494 This is a dynamic shared object (DSO) for PHP that will add SNMP
1497 %description snmp -l pl.UTF-8
1498 Moduł PHP dodający obsługę SNMP.
1501 Summary: soap extension module for PHP
1502 Summary(pl.UTF-8): Moduł soap dla PHP
1504 URL: http://php.net/manual/en/book.soap.php
1505 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1507 Obsoletes: php-soap < 4:5.3.28-7
1510 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1513 %description soap -l pl.UTF-8
1514 Moduł PHP dodający obsługę SOAP/WSDL.
1517 Summary: sockets extension module for PHP
1518 Summary(pl.UTF-8): Moduł socket dla PHP
1520 URL: http://php.net/manual/en/book.sockets.php
1521 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1522 Provides: php(sockets)
1523 Obsoletes: php-sockets < 4:5.3.28-7
1525 %description sockets
1526 This is a dynamic shared object (DSO) for PHP that will add sockets
1529 %description sockets -l pl.UTF-8
1530 Moduł PHP dodający obsługę gniazdek.
1533 Summary: Wrapper for the Sodium cryptographic library
1534 Summary(pl.UTF-8): Interfejs do biblioteki kryptograficznej Sodium
1536 URL: https://paragonie.com/book/pecl-libsodium
1537 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1538 Provides: php(sodium) = %{sodiumver}
1541 A simple, low-level PHP extension for libsodium.
1543 %description sodium -l pl.UTF-8
1544 Proste, niskopoziomowe rozszerzenie PHP wykorzystując libsodium.
1547 Summary: SQLite3 extension module for PHP
1548 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1550 URL: http://php.net/manual/en/book.sqlite3.php
1551 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1552 Provides: php(sqlite3) = %{sqlite3ver}
1553 Obsoletes: php-sqlite3 < 4:5.3.28-7
1555 %description sqlite3
1556 SQLite is a C library that implements an embeddable SQL database
1557 engine. Programs that link with the SQLite library can have SQL
1558 database access without running a separate RDBMS process.
1560 SQLite is not a client library used to connect to a big database
1561 server. SQLite is the server. The SQLite library reads and writes
1562 directly to and from the database files on disk.
1564 %description sqlite3 -l pl.UTF-8
1565 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1566 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1567 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1570 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1571 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1572 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1576 Summary: SysV msg extension module for PHP
1577 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1579 URL: http://php.net/manual/en/book.sem.php
1580 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1581 Provides: php(sysvmsg)
1582 Obsoletes: php-sysvmsg < 4:5.3.28-7
1584 %description sysvmsg
1585 This is a dynamic shared object (DSO) for PHP that will add SysV
1586 message queues support.
1588 %description sysvmsg -l pl.UTF-8
1589 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1592 Summary: SysV sem extension module for PHP
1593 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1595 URL: http://php.net/manual/en/book.sem.php
1596 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1597 Provides: php(sysvsem)
1598 Obsoletes: php-sysvsem < 4:5.3.28-7
1600 %description sysvsem
1601 This is a dynamic shared object (DSO) for PHP that will add SysV
1604 %description sysvsem -l pl.UTF-8
1605 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1608 Summary: SysV shm extension module for PHP
1609 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1611 URL: http://php.net/manual/en/book.sem.php
1612 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1613 Provides: php(sysvshm)
1614 Obsoletes: php-sysvshm < 4:5.3.28-7
1616 %description sysvshm
1617 This is a dynamic shared object (DSO) for PHP that will add SysV
1618 Shared Memory support.
1620 %description sysvshm -l pl.UTF-8
1621 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1624 Summary: Contains unit test files for PHP and extensions
1625 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1627 URL: http://qa.php.net/
1628 Requires: %{name}-cli
1632 This package contains unit tests for PHP and its extensions.
1634 %description tests -l pl.UTF-8
1635 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1638 Summary: Tidy extension module for PHP
1639 Summary(pl.UTF-8): Moduł Tidy dla PHP
1641 URL: http://php.net/manual/en/book.tidy.php
1642 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1645 Obsoletes: php-tidy < 4:5.3.28-7
1648 This is a dynamic shared object (DSO) for PHP that will add Tidy
1651 %description tidy -l pl.UTF-8
1652 Moduł PHP umożliwiający korzystanie z tidy.
1655 Summary: tokenizer extension module for PHP
1656 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1658 URL: http://php.net/manual/en/book.tokenizer.php
1659 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1660 Provides: php(tokenizer)
1661 Obsoletes: php-tokenizer < 4:5.3.28-7
1663 %description tokenizer
1664 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1667 %description tokenizer -l pl.UTF-8
1668 Moduł PHP dodający obsługę tokenizera do PHP.
1671 Summary: XML extension module for PHP
1672 Summary(pl.UTF-8): Moduł XML dla PHP
1674 URL: http://php.net/manual/en/book.xml.php
1675 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1677 Obsoletes: php-xml < 4:5.3.28-7
1680 This is a dynamic shared object (DSO) for PHP that will add XML
1681 support. This extension lets you create XML parsers and then define
1682 handlers for different XML events.
1684 %description xml -l pl.UTF-8
1685 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1686 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1687 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1690 Summary: XML Reader extension module for PHP
1691 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1693 URL: http://php.net/manual/en/book.xmlreader.php
1694 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1695 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1696 Provides: php(xmlreader)
1697 Obsoletes: php-xmlreader < 4:5.3.28-7
1699 %description xmlreader
1700 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1701 support. The XMLReader extension is an XML Pull parser. The reader
1702 acts as a cursor going forward on the document stream and stopping at
1703 each node on the way.
1705 %description xmlreader -l pl.UTF-8
1706 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1707 działa jako kursor przechodzący przez strumień dokumentu i
1708 zatrzymujący się na każdym węźle po drodze.
1711 Summary: Fast, non-cached, forward-only means to write XML data
1712 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1714 URL: http://php.net/manual/en/book.xmlwriter.php
1715 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1716 Provides: php(xmlwriter)
1717 Obsoletes: php-pecl-xmlwriter
1718 Obsoletes: php-xmlwriter < 4:5.3.28-7
1720 %description xmlwriter
1721 This extension wraps the libxml xmlWriter API. Represents a writer
1722 that provides a non-cached, forward-only means of generating streams
1723 or files containing XML data.
1725 %description xmlwriter -l pl.UTF-8
1726 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1727 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1728 plików zawierających dane XML.
1731 Summary: xsl extension module for PHP
1732 Summary(pl.UTF-8): Moduł xsl dla PHP
1734 URL: http://php.net/manual/en/book.xsl.php
1735 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1736 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1737 Requires: libxslt >= 1.1.0
1739 Obsoletes: php-xsl < 4:5.3.28-7
1740 # actually not true, functionality is similar, but API differs
1741 Obsoletes: php-xslt <= 3:4.3.8-1
1744 This is a dynamic shared object (DSO) for PHP that will add new XSL
1745 support (using libxslt).
1747 %description xsl -l pl.UTF-8
1748 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1751 Summary: Zip management extension
1752 Summary(pl.UTF-8): Zarządzanie archiwami zip
1754 URL: http://php.net/manual/en/book.zip.php
1755 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1756 Requires: libzip >= 1.3.1
1757 Provides: php(zip) = %{zipver}
1758 Obsoletes: php-pecl-zip < %{zipver}
1759 Obsoletes: php-zip < 4:5.3.28-7
1762 Zip is an extension to create, modify and read zip files.
1764 %description zip -l pl.UTF-8
1765 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1766 odczyt archiwów zip.
1769 Summary: Zlib extension module for PHP
1770 Summary(pl.UTF-8): Moduł zlib dla PHP
1772 URL: http://php.net/manual/en/book.zlib.php
1773 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1775 Obsoletes: php-zlib < 4:5.3.28-7
1778 This is a dynamic shared object (DSO) for PHP that will add zlib
1779 compression support to PHP.
1781 %description zlib -l pl.UTF-8
1782 Moduł PHP umożliwiający używanie kompresji zlib.
1785 %setup -q -n %{orgname}-%{version}%{?subver}
1787 cp -p php.ini-production php.ini
1812 %if %{with instantclient}
1817 #%patch68 -p1 DROP or update to 7.0 APIs
1821 sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{_bindir}/\1%{php_suffix},' \
1825 # cleanup backups after patching
1826 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1828 # com_dotnet is Win32-only
1829 %{__rm} -r ext/com_dotnet
1831 # remove all bundled libraries not to link with them accidentally
1832 #%{__rm} -r ext/bcmath/libbcmath
1833 #%{__rm} -r ext/date/lib
1834 #%{__rm} -r ext/fileinfo/libmagic
1835 #%{__rm} -r ext/dba/libcdb
1836 #%{__rm} -r ext/dba/libflatfile
1837 #%{__rm} -r ext/dba/libinifile
1838 #%{__rm} -r ext/gd/libgd
1839 #%{__rm} -r ext/mbstring/libmbfl
1840 #%{__rm} -r ext/pcre/pcre2lib
1841 #%{__rm} -r ext/soap/interop
1842 #%{__rm} -r ext/zip/lib
1843 %{__rm} ext/date/lib/timezonedb.h
1845 cp -pf Zend/LICENSE{,.Zend}
1846 install -p %{SOURCE13} dep-tests.sh
1849 sed -i -e 's#-fvisibility=hidden##g' configure*
1851 # disable broken tests
1852 # says just "Terminated" twice and fails
1853 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1855 # really dumb test, executable binary name is .libs/ something when building
1856 # https://bugs.php.net/bug.php?id=54514
1857 %{__mv} tests/basic/bug54514.phpt{,.disable}
1859 # breaks whole testsuite unexpectedly:
1860 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1861 # probably broken as zlib is built as shared
1862 %{__mv} ext/soap/tests/server019.phpt{,disable}
1863 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1864 %{__mv} ext/soap/tests/server020.phpt{,disable}
1866 # runs out of memory and kills carme vserver
1867 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1868 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1870 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1871 %{__rm} ext/standard/tests/file/statpage.phpt
1873 # idiotic test, it will fail if somebody else makes space on disk or if disk
1874 # space is not yet allocated (xfs). report upstream to advice bogus test is
1875 # probably pointless.
1876 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1879 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1880 %{__rm} -r ext/pdo_sqlite/tests
1881 %{__rm} -r ext/sqlite3/tests
1884 # ----- Manage known as failed test -------
1885 # affected by systzdata patch
1886 %{__rm} ext/date/tests/timezone_location_get.phpt
1887 %{__rm} ext/date/tests/timezone_version_get.phpt
1888 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
1889 # Should be skipped but fails sometime
1890 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
1892 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
1893 # causes stack exhausion
1894 %{__rm} Zend/tests/bug54268.phpt
1895 %{__rm} Zend/tests/bug68412.phpt
1897 # avoid issues when two builds run simultaneously
1899 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
1903 # no point testing stuff that is knowingly broken
1904 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
1916 sh -xe %{_sourcedir}/skip-tests.sh
1920 local define="$1" filename="$2"
1921 awk -vdefine="$define" '/#define/ && $2 == define {print $3}' "$filename" | xargs
1924 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1925 if [ $API != %{php_api_version} ]; then
1926 echo "Set %%define php_api_version to $API and re-run."
1930 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1931 if [ $API != %{zend_module_api} ]; then
1932 echo "Set %%define zend_module_api to $API and re-run."
1936 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1937 if [ $API != %{zend_extension_api} ]; then
1938 echo "Set %%define zend_extension_api to $API and re-run."
1942 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
1943 if [ $API != %{php_pdo_api_version} ]; then
1944 echo "Set %%define php_pdo_api_version to $API and re-run."
1948 # Check for some extension version
1949 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
1950 if test "$ver" != "PHP_VERSION"; then
1951 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
1952 : Update the fileinfover macro and rebuild.
1955 ver=$(get_version PHP_PHAR_VERSION ext/phar/php_phar.h)
1956 if test "$ver" != "PHP_VERSION"; then
1957 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
1958 : Update the pharver macro and rebuild.
1961 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
1962 if test "$ver" != "PHP_VERSION"; then
1963 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
1964 : Update the sqlite3ver macro and rebuild.
1967 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
1968 if test "$ver" != "PHP_VERSION"; then
1971 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
1972 if test "$ver" != "%{zipver}"; then
1973 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
1974 : Update the zipver macro and rebuild.
1977 ver=$(get_version PHP_JSON_VERSION ext/json/php_json.h)
1978 if test "$ver" != "PHP_VERSION"; then
1979 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
1980 : Update the jsonver macro and rebuild.
1983 ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
1984 if test "$ver" != "PHP_VERSION"; then
1985 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
1986 : Update the phpdbgver macro and rebuild.
1989 ver=$(get_version PHP_BZ2_VERSION ext/bz2/php_bz2.h)
1990 if test "$ver" != "PHP_VERSION"; then
1991 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
1992 : Update the bz2ver macro and rebuild.
1995 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
1996 if test "$ver" != "PHP_VERSION"; then
1999 ver=$(get_version PHP_HASH_VERSION ext/hash/php_hash.h)
2000 if test "$ver" != "PHP_VERSION"; then
2001 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2002 : Update the hashver macro and rebuild.
2005 ver=$(get_version PHP_INTL_VERSION ext/intl/php_intl.h)
2006 if test "$ver" != "PHP_VERSION"; then
2007 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2008 : Update the intlver macro and rebuild.
2012 export EXTENSION_DIR="%{php_extensiondir}"
2014 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2015 # includes the PEAR directory even though pear is packaged separately.
2016 export PEAR_INSTALLDIR=%{php_pear_dir}
2018 # configure once (for faster debugging purposes)
2019 if [ ! -f _built-conf ]; then
2020 # now remove Makefile copies
2021 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs2,litespeed,phpdbg}
2023 # Force use of system libtool:
2024 mv build/libtool.m4 build/libtool.m4.saved
2025 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2029 cp -f /usr/share/automake/config.* .
2033 export PROG_SENDMAIL="/usr/lib/sendmail"
2034 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags}"
2036 # This should be detected by configure and set there,
2037 # but looks like the build system is hosed on 7.3
2038 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2039 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2042 # icu 59+ C++ API requires C++ >= 11
2043 CXXFLAGS="$CXXFLAGS -std=c++11"
2051 %if %{with litespeed}
2067 for sapi in $sapis; do
2069 # skip if already configured (for faster debugging purposes)
2070 [ -f Makefile.$sapi ] && continue
2075 sapi_args='--enable-cgi'
2078 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
2081 sapi_args='--enable-fpm'
2084 sapi_args='--enable-embed'
2087 ver=$(rpm -q --qf '%{V}' apache-devel)
2088 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
2091 sapi_args='--enable-litespeed'
2094 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2099 EXTRA_LDFLAGS="%{rpmldflags}" \
2100 --program-suffix=%{php_suffix} \
2105 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2106 --cache-file=config.cache \
2108 --datadir=%{php_data_dir} \
2109 --with-libdir=%{_lib} \
2110 --with-config-file-path=%{_sysconfdir} \
2111 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2112 --with-system-tzdata \
2113 %{?with_argon2:--with-password-argon2} \
2114 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2115 %{?with_zts:--enable-maintainer-zts} \
2116 --enable-option-checking=fatal \
2117 %{__enable_disable bcmath bcmath shared} \
2118 %{__enable_disable calendar calendar shared} \
2119 %{__enable_disable ctype ctype shared} \
2120 %{__enable_disable dba dba shared} \
2121 %{__enable_disable dom dom shared} \
2122 %{?with_systemtap:--enable-dtrace} \
2123 %{__enable_disable exif exif shared} \
2124 %{__enable_disable fileinfo fileinfo shared} \
2125 %{__enable_disable ftp ftp shared} \
2126 %{?with_intl:--enable-intl=shared} \
2128 %{__enable_disable mbstring mbstring shared,all} \
2130 %{__enable_disable pcntl pcntl shared} \
2131 %{__enable_disable pdo pdo shared} \
2132 --enable-xmlwriter=shared \
2134 --with-fpm-user=http \
2135 --with-fpm-group=http \
2137 %if %{with pdo_dblib}
2138 --with-pdo-dblib=shared \
2140 %if %{with pdo_firebird}
2141 --with-pdo-firebird=shared \
2143 %{?with_mhash:--with-mhash=yes} \
2144 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2145 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2146 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2147 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2148 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2149 %{?with_pdo_sqlite:--with-pdo-sqlite=shared} \
2150 %{?with_webp:--with-webp} \
2151 %{__enable_disable posix posix shared} \
2153 %{__enable_disable session session shared} \
2154 --enable-shmop=shared \
2155 --enable-simplexml=shared \
2156 --enable-sysvmsg=shared \
2157 --enable-sysvsem=shared \
2158 --enable-sysvshm=shared \
2159 --enable-soap=shared \
2160 --enable-sockets=shared \
2161 %{__with_without sodium sodium shared} \
2162 --enable-tokenizer=shared \
2163 --enable-xml=shared \
2164 --enable-xmlreader=shared \
2165 %{__with_without bzip2 bz2 shared} \
2166 %{__with_without curl curl shared} \
2168 %{__with_without iconv iconv shared} \
2169 %{?with_enchant:--with-enchant=shared} \
2171 %{__with_without gettext gettext shared} \
2172 %{__enable_disable gd gd shared} \
2173 %{?with_system_gd:--with-external-gd} \
2175 %{__with_without gmp gmp shared} \
2176 %{__with_without ffi ffi shared} \
2177 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2179 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2180 %{?with_mm:--with-mm} \
2181 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2182 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2183 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2184 %{__enable_disable opcache opcache shared} \
2185 %{?with_openssl:--with-openssl=shared} \
2186 %{?with_kerberos5:--with-kerberos} \
2188 --with-external-pcre \
2189 %{__with_without pcre_jit pcre-jit} \
2190 %{__enable_disable filter filter shared} \
2191 %{__with_without pgsql pgsql shared} \
2192 %{__enable_disable phar phar shared} \
2193 %{?with_pspell:--with-pspell=shared} \
2194 %{__with_without readline readline shared} \
2195 %{?with_snmp:--with-snmp=shared} \
2196 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2197 %{__with_without sqlite3 sqlite3 shared} \
2198 %{?with_tidy:--with-tidy=shared} \
2199 %{?with_odbc:--with-unixODBC=shared} \
2200 %{?with_xsl:--with-xsl=shared} \
2201 --with-zlib=shared \
2202 %{?with_zip:--with-zip=shared} \
2205 cp -f Makefile Makefile.$sapi
2206 cp -f main/php_config.h php_config.h.$sapi
2207 cp -f config.log config.log.$sapi
2210 # as we build each SAPI in own make, adjust php-config.in forehead
2211 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2212 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2214 # must make libphp_common first, so modules can link against it.
2215 cp -af php_config.h.cli main/php_config.h
2216 cp -af Makefile.cli Makefile
2217 %{__make} libphp_common.la
2218 # hack: MYSQLND_SHARED_LIBADD not initialized
2219 %{__make} build-modules \
2220 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2223 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp8.la -f Makefile.apxs2
2226 %if %{with litespeed}
2227 %{__make} -f Makefile.litespeed litespeed
2231 %{__make} -f Makefile.embed libphp8.la
2235 # PHP_READLINE_LIBS is empty, so force readline here
2236 %{__make} -f Makefile.phpdbg phpdbg \
2237 PHPDBG_EXTRA_LIBS=-lreadline
2242 cp -pf php_config.h.cgi-fcgi main/php_config.h
2243 %{__make} -f Makefile.cgi-fcgi
2244 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2249 cp -pf php_config.h.fpm main/php_config.h
2250 %{__make} -f Makefile.fpm
2251 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2255 cp -pf php_config.h.cli main/php_config.h
2256 %{__make} -f Makefile.cli
2257 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2259 # check for stupid xml parse breakage where < and > just get lost in parse result
2260 ./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"]));'
2262 # Generate stub .ini files for each extension
2263 GENERATE_INI=1 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh
2265 # Check that the module inner-dependencies are intact
2266 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2267 if grep -v OK dep-tests.log; then
2268 echo >&2 "The results above were not expected"
2274 cp -pf php_config.h.cli main/php_config.h
2275 cp -pf Makefile.cli Makefile
2277 # you really don't want to package result of gcov build
2281 cat <<'EOF' > run-tests.sh
2283 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2284 export SKIP_ONLINE_TESTS=1
2285 unset TZ LANG LC_ALL || :
2287 EXTENSION_DIR=modules \
2288 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2289 RUN_TESTS_SETTINGS="-q $*"
2291 chmod +x run-tests.sh
2294 # Run tests, using the CLI SAPI
2295 cp -pf php_config.h.cli main/php_config.h
2296 cp -pf Makefile.cli Makefile
2298 ./run-tests.sh -w failed.log -s tests.log || {
2301 # collect failed tests into cleanup script used in prep.
2302 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2303 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2304 >> %{_sourcedir}/skip-tests.sh
2306 # if on builders, dump test log
2307 tty -q || cat tests.log
2309 test ! -s failed.log
2315 rm -rf $RPM_BUILD_ROOT
2317 $RPM_BUILD_ROOT%{_libdir}/{php,apache} \
2318 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,cgi-fcgi,cli,apache2handler}.d \
2319 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2320 $RPM_BUILD_ROOT/etc/httpd/conf.d \
2321 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2323 cp -pf php_config.h.cli main/php_config.h
2324 cp -pf Makefile.cli Makefile
2326 phpbuilddir=%{_libdir}/php/php%{php_suffix}/build \
2327 INSTALL_ROOT=$RPM_BUILD_ROOT
2330 touch $RPM_BUILD_ROOT%{_bindir}/phar
2331 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2334 v=$(echo %{version} | cut -d. -f1-2)
2336 # install Apache2 DSO module
2339 libtool --mode=install install -p sapi/apache2handler/libphp8.la $RPM_BUILD_ROOT%{_libdir}/apache
2340 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp8.la $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2341 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp8.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.so
2342 sed -i -e "s|libphp8|libphp%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2343 ln -s libphp%{php_suffix}.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2346 # install litespeed sapi
2347 %if %{with litespeed}
2348 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2352 %{__make} -f Makefile.phpdbg install-phpdbg \
2353 INSTALL="libtool --mode=install install -p" \
2354 INSTALL_ROOT=$RPM_BUILD_ROOT
2358 touch $RPM_BUILD_ROOT%{_bindir}/phpize
2359 touch $RPM_BUILD_ROOT%{_mandir}/man1/phpize.1
2360 touch $RPM_BUILD_ROOT%{_bindir}/php-config
2361 touch $RPM_BUILD_ROOT%{_mandir}/man1/php-config.1
2363 # versioned libphp_common
2364 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2365 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common.la $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2366 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}-%{version}.so
2367 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libphp_common.so
2368 ln -s libphp_common%{php_suffix}-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.so
2369 sed -i -e "s|libphp_common|libphp_common%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2374 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2375 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2376 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cgi-fcgi.d/php.ini
2381 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2382 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2383 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2384 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2385 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2386 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2387 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2388 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2389 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2391 # touch for ghost for alternatives
2392 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2395 s#/usr/lib/php#%{php_extensiondir}#
2396 s#/etc/php/#%{_sysconfdir}/#
2397 s#@processname@#%{name}-fpm#g
2398 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2401 # install Embedded API
2403 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2404 # install-sapi installs to wrong dir, so just do it all manually
2405 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2406 install -p libs/libphp8.so $RPM_BUILD_ROOT%{_libdir}/libphp%{php_suffix}.so
2407 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2411 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{php_suffix}
2413 touch $RPM_BUILD_ROOT%{_bindir}/php
2414 touch $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2416 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2417 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php.ini
2420 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2421 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php.ini
2422 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2425 # ensure that paths are correct for current php version and arch
2426 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2428 s#/usr/lib/php#%{php_extensiondir}#
2429 s#/etc/php#%{_sysconfdir}#
2432 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2433 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2435 cp -p %{_sourcedir}/opcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2438 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/??_readline.ini,cli.d}
2440 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize%{php_suffix}
2442 # for php-pecl-mailparse
2443 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2444 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2447 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2448 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2449 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2451 # fix install paths, avoid evil rpaths
2452 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2454 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}/ext_skel%{php_suffix}
2457 rm -rf $RPM_BUILD_ROOT
2459 %post -n apache-mod_%{name}
2460 if [ "$1" = "1" ]; then
2461 %service -q httpd restart
2464 %postun -n apache-mod_%{name}
2465 if [ "$1" = "0" ]; then
2466 %service -q httpd restart
2470 update-alternatives \
2471 --install %{_bindir}/php php %{_bindir}/php%{php_suffix} %{php_suffix} \
2472 --slave %{_mandir}/man1/php.1.gz php.1.gz %{_mandir}/man1/php%{php_suffix}.1.gz || :
2475 if [ $1 -eq 0 ]; then
2476 update-alternatives --remove php %{_bindir}/php%{php_suffix} || :
2479 %post common -p /sbin/ldconfig
2480 %postun common -p /sbin/ldconfig
2483 update-alternatives \
2484 --install %{_bindir}/phpize phpize %{_bindir}/phpize%{php_suffix} %{php_suffix} \
2485 --slave %{_mandir}/man1/phpize.1.gz phpize.1.gz %{_mandir}/man1/phpize%{php_suffix}.1.gz || :
2486 update-alternatives \
2487 --install %{_bindir}/php-config php-config %{_bindir}/php-config%{php_suffix} %{php_suffix} \
2488 --slave %{_mandir}/man1/php-config.1.gz php-config.1.gz %{_mandir}/man1/php-config%{php_suffix}.1.gz || :
2489 update-alternatives \
2490 --install %{_bindir}/ext_skel ext_skel %{_bindir}/ext_skel%{php_suffix} %{php_suffix} || :
2493 if [ $1 -eq 0 ]; then
2494 update-alternatives --remove phpize %{_bindir}/phpize%{php_suffix} || :
2495 update-alternatives --remove php-config %{_bindir}/php-config%{php_suffix} || :
2499 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2502 /sbin/chkconfig --add %{name}-fpm
2503 %service %{name}-fpm restart
2504 update-alternatives \
2505 --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{php_suffix}-fpm %{php_suffix} \
2506 --slave %{_mandir}/man8/php-fpm.8.gz php-fpm.8.gz %{_mandir}/man8/php-fpm%{php_suffix}.8.gz || :
2509 if [ "$1" = "0" ]; then
2510 %service %{name}-fpm stop
2511 /sbin/chkconfig --del %{name}-fpm
2512 update-alternatives --remove php-fpm %{_sbindir}/php%{php_suffix}-fpm || :
2516 if [ "$1" = "0" ]; then
2520 %post embedded -p /sbin/ldconfig
2521 %postun embedded -p /sbin/ldconfig
2524 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2525 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2527 . /etc/sysconfig/timezone
2528 if [ "$TIMEZONE" ]; then
2529 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2533 # minimizing apache restarts logics. we restart webserver:
2535 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2536 # 2. first install of extension (post: $1 = 1)
2537 # 2. uninstall of extension (postun: $1 == 0)
2539 # the strict internal deps between extensions (and apache modules) and
2540 # common package are very important for all this to work.
2542 # restart webserver at the end of transaction
2543 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2545 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2546 # switch to browscap package if the ini file has original value
2547 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2548 # disable browscap, if optional package not present
2549 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2550 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
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 -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2574 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2576 # common macros called at extension post/postun scriptlet
2578 if [ "$1" = "1" ]; then \
2579 %php_webserver_restart \
2583 %define ext_postun \
2584 if [ "$1" = "0" ]; then \
2585 %php_webserver_restart \
2589 %define extension_scripts() \
2597 # extension scripts defines
2598 %extension_scripts bcmath
2599 %extension_scripts bz2
2600 %extension_scripts calendar
2601 %extension_scripts ctype
2602 %extension_scripts curl
2603 %extension_scripts dba
2604 %extension_scripts dom
2605 %extension_scripts enchant
2606 %extension_scripts exif
2607 %extension_scripts ffi
2608 %extension_scripts fileinfo
2609 %extension_scripts filter
2610 %extension_scripts ftp
2611 %extension_scripts gd
2612 %extension_scripts gettext
2613 %extension_scripts gmp
2614 %extension_scripts iconv
2615 %extension_scripts imap
2616 %extension_scripts intl
2617 %extension_scripts ldap
2618 %extension_scripts mbstring
2619 %extension_scripts mysqli
2620 %extension_scripts mysqlnd
2621 %extension_scripts oci8
2622 %extension_scripts odbc
2623 %extension_scripts opcache
2624 %extension_scripts openssl
2625 %extension_scripts pcntl
2626 %extension_scripts pdo
2627 %extension_scripts pdo-dblib
2628 %extension_scripts pdo-firebird
2629 %extension_scripts pdo-mysql
2630 %extension_scripts pdo-oci
2631 %extension_scripts pdo-odbc
2632 %extension_scripts pdo-pgsql
2633 %extension_scripts pdo-sqlite
2634 %extension_scripts pgsql
2635 %extension_scripts posix
2636 %extension_scripts pspell
2637 %extension_scripts session
2638 %extension_scripts shmop
2639 %extension_scripts simplexml
2640 %extension_scripts snmp
2641 %extension_scripts soap
2642 %extension_scripts sockets
2643 %extension_scripts sodium
2644 %extension_scripts sqlite3
2645 %extension_scripts sysvmsg
2646 %extension_scripts sysvsem
2647 %extension_scripts sysvshm
2648 %extension_scripts tidy
2649 %extension_scripts tokenizer
2650 %extension_scripts xml
2651 %extension_scripts xmlreader
2652 %extension_scripts xmlwriter
2653 %extension_scripts xsl
2654 %extension_scripts zip
2655 %extension_scripts zlib
2659 update-alternatives \
2660 --install %{_bindir}/phar phar %{_bindir}/phar%{php_suffix}.phar %{php_suffix} \
2661 --slave %{_mandir}/man1/phar.1.gz phar.1.gz %{_mandir}/man1/phar%{php_suffix}.1.gz || :
2665 if [ $1 -eq 0 ]; then
2666 update-alternatives --remove phar %{_bindir}/phar%{php_suffix}.phar || :
2670 %files -n apache-mod_%{name}
2671 %defattr(644,root,root,755)
2672 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2673 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2675 %files -n apache-mod_%{name}-core
2676 %defattr(644,root,root,755)
2677 %dir %{_sysconfdir}/apache2handler.d
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php.ini
2679 %attr(755,root,root) %{_libdir}/apache/libphp%{php_suffix}.so
2682 %if %{with litespeed}
2684 %defattr(644,root,root,755)
2685 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2690 %defattr(644,root,root,755)
2691 %dir %{_sysconfdir}/cgi-fcgi.d
2692 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cgi-fcgi.d/php.ini
2693 %attr(755,root,root) %{_bindir}/%{name}.cgi
2694 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2699 %defattr(644,root,root,755)
2700 %attr(755,root,root) %{_libdir}/libphp%{php_suffix}.so
2704 %defattr(644,root,root,755)
2705 %dir %{_sysconfdir}/cli.d
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/php.ini
2707 %attr(755,root,root) %{_bindir}/php%{php_suffix}
2708 %{_mandir}/man1/php%{php_suffix}.1*
2709 %ghost %{_bindir}/php
2710 %ghost %{_mandir}/man1/php.1*
2714 %defattr(644,root,root,755)
2715 %doc sapi/fpm/{CREDITS,LICENSE}
2716 %dir %{_sysconfdir}/php-fpm.d
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2719 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2720 %ghost %{_sbindir}/php-fpm
2721 %{_mandir}/man8/%{name}-fpm.8*
2722 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2723 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2728 %defattr(644,root,root,755)
2729 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2730 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2734 %defattr(644,root,root,755)
2735 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2737 %dir %{_sysconfdir}/conf.d
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2739 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}-*.so
2740 %dir %{php_data_dir}
2741 %dir %{php_extensiondir}
2743 %doc ext/session/mod_files.sh
2746 %defattr(644,root,root,755)
2747 %doc CODING_STANDARDS.md docs/*.md
2748 %attr(755,root,root) %{_bindir}/ext_skel%{php_suffix}
2749 %attr(755,root,root) %{_bindir}/phpize%{php_suffix}
2750 %attr(755,root,root) %{_bindir}/php-config%{php_suffix}
2751 %ghost %{_bindir}/phpize
2752 %ghost %{_bindir}/php-config
2753 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}.so
2754 %{_libdir}/libphp_common%{php_suffix}.la
2755 %{_includedir}/php/php%{php_suffix}
2756 %{_libdir}/php/php%{php_suffix}/build
2757 %{_mandir}/man1/php-config%{php_suffix}.1*
2758 %ghost %{_mandir}/man1/php-config.1*
2759 %{_mandir}/man1/phpize%{php_suffix}.1*
2760 %ghost %{_mandir}/man1/phpize.1*
2764 %defattr(644,root,root,755)
2765 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bcmath.ini
2766 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2771 %defattr(644,root,root,755)
2772 %doc ext/bz2/CREDITS
2773 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bz2.ini
2774 %attr(755,root,root) %{php_extensiondir}/bz2.so
2777 %if %{with calendar}
2779 %defattr(644,root,root,755)
2780 %doc ext/calendar/CREDITS
2781 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_calendar.ini
2782 %attr(755,root,root) %{php_extensiondir}/calendar.so
2787 %defattr(644,root,root,755)
2788 %doc ext/calendar/CREDITS
2789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ctype.ini
2790 %attr(755,root,root) %{php_extensiondir}/ctype.so
2795 %defattr(644,root,root,755)
2796 %doc ext/curl/CREDITS
2797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_curl.ini
2798 %attr(755,root,root) %{php_extensiondir}/curl.so
2803 %defattr(644,root,root,755)
2804 %doc ext/dba/CREDITS
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dba.ini
2806 %attr(755,root,root) %{php_extensiondir}/dba.so
2811 %defattr(644,root,root,755)
2812 %doc ext/dom/CREDITS
2813 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dom.ini
2814 %attr(755,root,root) %{php_extensiondir}/dom.so
2819 %defattr(644,root,root,755)
2820 %doc ext/enchant/CREDITS
2821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_enchant.ini
2822 %attr(755,root,root) %{php_extensiondir}/enchant.so
2827 %defattr(644,root,root,755)
2828 %doc ext/exif/CREDITS
2829 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_exif.ini
2830 %attr(755,root,root) %{php_extensiondir}/exif.so
2835 %defattr(644,root,root,755)
2836 %doc ext/ffi/CREDITS
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ffi.ini
2838 %attr(755,root,root) %{php_extensiondir}/ffi.so
2841 %if %{with fileinfo}
2843 %defattr(644,root,root,755)
2844 %doc ext/fileinfo/CREDITS
2845 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_fileinfo.ini
2846 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2851 %defattr(644,root,root,755)
2852 %doc ext/filter/CREDITS
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_filter.ini
2854 %attr(755,root,root) %{php_extensiondir}/filter.so
2859 %defattr(644,root,root,755)
2860 %doc ext/ftp/CREDITS
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ftp.ini
2862 %attr(755,root,root) %{php_extensiondir}/ftp.so
2867 %defattr(644,root,root,755)
2869 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gd.ini
2870 %attr(755,root,root) %{php_extensiondir}/gd.so
2875 %defattr(644,root,root,755)
2876 %doc ext/gettext/CREDITS
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gettext.ini
2878 %attr(755,root,root) %{php_extensiondir}/gettext.so
2883 %defattr(644,root,root,755)
2884 %doc ext/gmp/CREDITS
2885 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gmp.ini
2886 %attr(755,root,root) %{php_extensiondir}/gmp.so
2891 %defattr(644,root,root,755)
2892 %doc ext/iconv/CREDITS
2893 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_iconv.ini
2894 %attr(755,root,root) %{php_extensiondir}/iconv.so
2899 %defattr(644,root,root,755)
2900 %doc ext/imap/CREDITS
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_imap.ini
2902 %attr(755,root,root) %{php_extensiondir}/imap.so
2907 %defattr(644,root,root,755)
2908 %doc ext/intl/CREDITS
2909 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_intl.ini
2910 %attr(755,root,root) %{php_extensiondir}/intl.so
2915 %defattr(644,root,root,755)
2916 %doc ext/ldap/CREDITS
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ldap.ini
2918 %attr(755,root,root) %{php_extensiondir}/ldap.so
2921 %if %{with mbstring}
2923 %defattr(644,root,root,755)
2924 %doc ext/mbstring/CREDITS
2925 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mbstring.ini
2926 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2931 %defattr(644,root,root,755)
2932 %doc ext/mysqli/CREDITS
2933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqli.ini
2934 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2939 %defattr(644,root,root,755)
2940 %doc ext/mysqlnd/CREDITS
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqlnd.ini
2942 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
2947 %defattr(644,root,root,755)
2948 %doc ext/oci8/{CREDITS,README}
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_oci8.ini
2950 %attr(755,root,root) %{php_extensiondir}/oci8.so
2955 %defattr(644,root,root,755)
2956 %doc ext/odbc/CREDITS
2957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_odbc.ini
2958 %attr(755,root,root) %{php_extensiondir}/odbc.so
2963 %defattr(644,root,root,755)
2964 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_opcache.ini
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
2966 %attr(755,root,root) %{php_extensiondir}/opcache.so
2971 %defattr(644,root,root,755)
2972 %doc ext/openssl/CREDITS
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_openssl.ini
2974 %attr(755,root,root) %{php_extensiondir}/openssl.so
2979 %defattr(644,root,root,755)
2980 %doc ext/pcntl/CREDITS
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pcntl.ini
2982 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2987 %defattr(644,root,root,755)
2988 %doc ext/pdo/CREDITS
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo.ini
2990 %attr(755,root,root) %{php_extensiondir}/pdo.so
2993 %if %{with pdo_dblib}
2995 %defattr(644,root,root,755)
2996 %doc ext/pdo_dblib/CREDITS
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_dblib.ini
2998 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3001 %if %{with pdo_firebird}
3003 %defattr(644,root,root,755)
3004 %doc ext/pdo_firebird/CREDITS
3005 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_firebird.ini
3006 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3009 %if %{with pdo_mysql}
3011 %defattr(644,root,root,755)
3012 %doc ext/pdo_mysql/CREDITS
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_mysql.ini
3014 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3019 %defattr(644,root,root,755)
3020 %doc ext/pdo_oci/CREDITS
3021 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_oci.ini
3022 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3025 %if %{with pdo_odbc}
3027 %defattr(644,root,root,755)
3028 %doc ext/pdo_odbc/CREDITS
3029 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_odbc.ini
3030 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3033 %if %{with pdo_pgsql}
3035 %defattr(644,root,root,755)
3036 %doc ext/pdo_pgsql/CREDITS
3037 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_pgsql.ini
3038 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3041 %if %{with pdo_sqlite}
3043 %defattr(644,root,root,755)
3044 %doc ext/pdo_sqlite/CREDITS
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_sqlite.ini
3046 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3051 %defattr(644,root,root,755)
3052 %doc ext/pgsql/CREDITS
3053 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pgsql.ini
3054 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3059 %defattr(644,root,root,755)
3060 %doc ext/phar/CREDITS
3061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_phar.ini
3062 %attr(755,root,root) %{php_extensiondir}/phar.so
3063 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3064 %{_mandir}/man1/phar%{php_suffix}.1*
3065 %ghost %{_bindir}/phar
3066 %ghost %{_mandir}/man1/phar.1*
3071 %defattr(644,root,root,755)
3072 %doc ext/posix/CREDITS
3073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_posix.ini
3074 %attr(755,root,root) %{php_extensiondir}/posix.so
3079 %defattr(644,root,root,755)
3080 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pspell.ini
3081 %attr(755,root,root) %{php_extensiondir}/pspell.so
3084 %if %{with readline}
3086 %defattr(644,root,root,755)
3087 %doc ext/readline/CREDITS
3088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/??_readline.ini
3089 %attr(755,root,root) %{php_extensiondir}/readline.so
3094 %defattr(644,root,root,755)
3095 %doc ext/session/CREDITS
3096 %doc ext/session/mod_files.sh
3097 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_session.ini
3098 %attr(755,root,root) %{php_extensiondir}/session.so
3102 %defattr(644,root,root,755)
3103 %doc ext/shmop/CREDITS
3104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_shmop.ini
3105 %attr(755,root,root) %{php_extensiondir}/shmop.so
3108 %defattr(644,root,root,755)
3109 %doc ext/simplexml/CREDITS
3110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_simplexml.ini
3111 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3115 %defattr(644,root,root,755)
3116 %doc ext/snmp/CREDITS
3117 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_snmp.ini
3118 %attr(755,root,root) %{php_extensiondir}/snmp.so
3122 %defattr(644,root,root,755)
3123 %doc ext/soap/CREDITS
3124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_soap.ini
3125 %attr(755,root,root) %{php_extensiondir}/soap.so
3128 %defattr(644,root,root,755)
3129 %doc ext/sockets/CREDITS
3130 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sockets.ini
3131 %attr(755,root,root) %{php_extensiondir}/sockets.so
3135 %defattr(644,root,root,755)
3136 %doc ext/sodium/{README.md,CREDITS}
3137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sodium.ini
3138 %attr(755,root,root) %{php_extensiondir}/sodium.so
3143 %defattr(644,root,root,755)
3144 %doc ext/sqlite3/CREDITS
3145 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sqlite3.ini
3146 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3150 %defattr(644,root,root,755)
3151 %doc ext/sysvmsg/CREDITS
3152 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvmsg.ini
3153 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3156 %defattr(644,root,root,755)
3157 %doc ext/sysvsem/CREDITS
3158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvsem.ini
3159 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3162 %defattr(644,root,root,755)
3163 %doc ext/sysvshm/CREDITS
3164 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvshm.ini
3165 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3168 %defattr(644,root,root,755)
3169 %dir %{php_data_dir}/tests
3170 %dir %{php_data_dir}/tests/php
3171 %{php_data_dir}/tests/php/basic
3172 %{php_data_dir}/tests/php/classes
3173 %{php_data_dir}/tests/php/func
3174 %{php_data_dir}/tests/php/lang
3175 %{php_data_dir}/tests/php/output
3176 %{php_data_dir}/tests/php/run-test
3177 %{php_data_dir}/tests/php/security
3178 %{php_data_dir}/tests/php/strings
3179 %{php_data_dir}/tests/php/quicktester.inc
3180 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3184 %defattr(644,root,root,755)
3185 %doc ext/tidy/CREDITS
3186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tidy.ini
3187 %attr(755,root,root) %{php_extensiondir}/tidy.so
3191 %defattr(644,root,root,755)
3192 %doc ext/tokenizer/CREDITS
3193 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tokenizer.ini
3194 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3197 %defattr(644,root,root,755)
3198 %doc ext/xml/CREDITS
3199 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xml.ini
3200 %attr(755,root,root) %{php_extensiondir}/xml.so
3203 %defattr(644,root,root,755)
3204 %doc ext/xmlreader/CREDITS
3205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlreader.ini
3206 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3209 %defattr(644,root,root,755)
3210 %doc ext/xmlwriter/CREDITS
3211 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlwriter.ini
3212 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3216 %defattr(644,root,root,755)
3217 %doc ext/xsl/CREDITS
3218 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xsl.ini
3219 %attr(755,root,root) %{php_extensiondir}/xsl.so
3224 %defattr(644,root,root,755)
3225 %doc ext/zip/CREDITS
3226 %doc ext/zip/examples
3227 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zip.ini
3228 %attr(755,root,root) %{php_extensiondir}/zip.so
3232 %defattr(644,root,root,755)
3233 %doc ext/zlib/CREDITS
3234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zlib.ini
3235 %attr(755,root,root) %{php_extensiondir}/zlib.so