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: fa88b5f436ad81235b0856144abb0035
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}
513 Provides: php(libxml)
515 Provides: php(reflection)
517 Provides: php(standard)
518 %{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
519 %requires_ge_to pcre2-8 pcre2-8-devel
521 Obsoletes: php-common < 4:5.3.28-7
522 Obsoletes: php-filepro < 4:5.2.0
523 Obsoletes: php-hash < 4:5.3.28-7
524 Obsoletes: php-hwapi < 4:5.2.0
525 Obsoletes: php-hyperwave < 3:5.0.0
526 Obsoletes: php-java < 3:5.0.0
527 Obsoletes: php-mcal < 3:5.0.0
528 Obsoletes: php-pcre < 4:5.3.28-7
529 Obsoletes: php-pecl-domxml
530 Obsoletes: php-pecl-hash < %{hashver}
531 Obsoletes: php-qtdom < 3:5.0.0
532 Obsoletes: php-spl < 4:5.3.28-7
533 Conflicts: php4-common < 3:4.4.4-8
534 Conflicts: php55-common < 4:5.5.10-4
535 Conflicts: rpm < 4.4.2-0.2
538 Provides: php-mhash = %{epoch}:%{version}-%{release}
539 Obsoletes: php-mhash < 4:5.3.0
543 Common files needed by both Apache modules and CGI/CLI SAPIs.
545 %description common -l pl.UTF-8
546 Wspólne pliki dla modułu Apache'a i programu CGI.
548 %description common -l ru.UTF-8
549 Этот пакет содержит общие файлы для разных вариантов реализации PHP
550 (самодостаточной и в качестве модуля Apache).
552 %description common -l uk.UTF-8
553 Цей пакет містить спільні файли для різних варіантів реалізації PHP
554 (самодостатньої та в якості модуля Apache).
557 Summary: Files for PHP modules development
558 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
559 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
560 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
561 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
562 Group: Development/Languages/PHP
563 Requires: %{name}-common = %{epoch}:%{version}-%{release}
564 Requires: autoconf >= 2.59
565 Requires: automake >= 1.4d
566 Requires: libtool >= 2:2.4.6
567 Requires: pcre2-8-devel >= 10.30
569 Provides: php-devel = %{epoch}:%{version}-%{release}
570 Obsoletes: php-pear-devel
571 Obsoletes: php4-devel
572 Obsoletes: php52-devel
573 Obsoletes: php53-devel
574 Obsoletes: php54-devel
575 Obsoletes: php55-devel
576 Obsoletes: php56-devel
579 The php-devel package lets you compile dynamic extensions to PHP.
580 Included here is the source for the PHP extensions. Instead of
581 recompiling the whole PHP binary to add support for, say, oracle,
582 install this package and use the new self-contained extensions
583 support. For more information, read the file
584 README.SELF-CONTAINED-EXTENSIONS.
586 %description devel -l pl.UTF-8
587 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
588 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
589 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
590 samodzielnych rozszerzeniach można znaleźć w pliku
591 README.SELF-CONTAINED-EXTENSIONS.
593 %description devel -l pt_BR.UTF-8
594 Este pacote contém arquivos usados no desenvolvimento de programas ou
597 %description devel -l ru.UTF-8
598 Пакет php-devel дает возможность компилировать динамические расширения
599 PHP. Пакет включает исходный код этих расширений. Вместо повторной
600 компиляции бинарного файла PHP для добавления, например, поддержки
601 oracle, установите этот пакет для компилирования отдельных расширений.
602 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
604 %description devel -l uk.UTF-8
605 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
606 До пакету включено вихідний код для розширень. Замість повторної
607 компіляції бінарного файлу PHP для додання, наприклад, підтримки
608 oracle, встановіть цей пакет для компіляції окремих розширень.
609 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
612 Summary: bcmath extension module for PHP
613 Summary(pl.UTF-8): Moduł bcmath dla PHP
615 URL: http://php.net/manual/en/book.bc.php
616 Requires: %{name}-common = %{epoch}:%{version}-%{release}
617 Provides: php(bcmath)
618 Obsoletes: php-bcmath < 4:5.3.28-7
621 This is a dynamic shared object (DSO) for PHP that will add bc style
622 precision math functions support.
624 %description bcmath -l pl.UTF-8
625 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
626 matematycznych takich jak w programie bc.
629 Summary: Bzip2 extension module for PHP
630 Summary(pl.UTF-8): Moduł bzip2 dla PHP
632 URL: http://php.net/manual/en/book.bzip2.php
633 Requires: %{name}-common = %{epoch}:%{version}-%{release}
634 Requires: bzip2-libs >= 1.0.0
635 Provides: php(bz2) = %{bz2ver}
637 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
638 Obsoletes: php-bz2 < 4:5.3.28-7
639 Obsoletes: php-bzip2 < 4:5.2.14-3
640 Obsoletes: php-pecl-bz2 < %{bz2ver}
643 This is a dynamic shared object (DSO) for PHP that will add bzip2
644 compression support to PHP.
646 %description bz2 -l pl.UTF-8
647 Moduł PHP umożliwiający używanie kompresji bzip2.
650 Summary: Calendar extension module for PHP
651 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
653 URL: http://php.net/manual/en/book.calendar.php
654 Requires: %{name}-common = %{epoch}:%{version}-%{release}
655 Provides: php(calendar)
656 Obsoletes: php-calendar < 4:5.3.28-7
658 %description calendar
659 This is a dynamic shared object (DSO) for PHP that will add calendar
662 %description calendar -l pl.UTF-8
663 Moduł PHP dodający wsparcie dla kalendarza.
666 Summary: ctype extension module for PHP
667 Summary(pl.UTF-8): Moduł ctype dla PHP
669 URL: http://php.net/manual/en/book.ctype.php
670 Requires: %{name}-common = %{epoch}:%{version}-%{release}
672 Obsoletes: php-ctype < 4:5.3.28-7
675 This is a dynamic shared object (DSO) for PHP that will add ctype
678 %description ctype -l pl.UTF-8
679 Moduł PHP umożliwiający korzystanie z funkcji ctype.
682 Summary: curl extension module for PHP
683 Summary(pl.UTF-8): Moduł curl dla PHP
685 URL: http://php.net/manual/en/book.curl.php
686 Requires: %{name}-common = %{epoch}:%{version}-%{release}
687 Requires: curl-libs >= 7.12.0
689 Obsoletes: php-curl < 4:5.3.28-7
692 This is a dynamic shared object (DSO) for PHP that will add curl
695 %description curl -l pl.UTF-8
696 Moduł PHP umożliwiający korzystanie z biblioteki curl.
699 Summary: DBA extension module for PHP
700 Summary(pl.UTF-8): Moduł DBA dla PHP
702 URL: http://php.net/manual/en/book.dba.php
703 Requires: %{name}-common = %{epoch}:%{version}-%{release}
705 Obsoletes: php-dba < 4:5.3.28-7
706 # withdrawn module of similar functionality but different API
707 Obsoletes: php-db < 3:5.0.0
710 This is a dynamic shared object (DSO) for PHP that will add flat-file
711 databases (DBA) support.
713 %description dba -l pl.UTF-8
714 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
718 Summary: DOM extension module for PHP
719 Summary(pl.UTF-8): Moduł DOM dla PHP
721 URL: http://php.net/manual/en/book.dom.php
722 Requires: %{name}-common = %{epoch}:%{version}-%{release}
724 # it has some compatibility functions
725 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
726 Provides: php(domxml)
727 Obsoletes: php-dom < 4:5.3.28-7
728 Obsoletes: php-domxml <= 3:4.3.8-1
731 This is a dynamic shared object (DSO) for PHP that will add new DOM
734 %description dom -l pl.UTF-8
735 Moduł PHP dodający nową obsługę DOM.
738 Summary: libenchant binder
739 Summary(pl.UTF-8): dowiązania biblioteki libenchant
741 URL: http://php.net/manual/en/book.enchant.php
742 Requires: %{name}-common = %{epoch}:%{version}-%{release}
743 Provides: php(enchant) = %{enchantver}
744 Obsoletes: php-enchant < 4:5.3.28-7
745 Obsoletes: php-pecl-enchant < %{enchantver}
748 Enchant is a binder for libenchant. Libenchant provides a common API
749 for many spell libraries:
750 - aspell/pspell (intended to replace ispell)
753 - myspell (OpenOffice.org project, mozilla)
754 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
755 plugin system allows to add custom spell support.
757 %description enchant -l pl.UTF-8
758 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
759 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
760 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
763 - myspell (projekt OpenOffice.org, mozilla)
764 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
765 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
768 Summary: exif extension module for PHP
769 Summary(pl.UTF-8): Moduł exif dla PHP
771 URL: http://php.net/manual/en/book.exif.php
772 Requires: %{name}-common = %{epoch}:%{version}-%{release}
774 Obsoletes: php-exif < 4:5.3.28-7
777 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
778 support in image files.
780 %description exif -l pl.UTF-8
781 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
784 Summary: Foreign Function Interface module for PHP
785 Summary(pl.UTF-8): Moduł Foreign Function Interface (interfejsu do obcych języków) dla PHP
787 URL: https://www.php.net/manual/en/book.ffi.php
788 Requires: %{name}-common = %{epoch}:%{version}-%{release}
789 Provides: php(ffi) = %{version}
792 FFI is a multi-platform extension for PHP that allows you to bind to
793 functions from arbitrary shared libraries and call them.
795 %description ffi -l pl.UTF-8
796 FFI to wieloplatformowe rozszerzenie dla PHP pozwalające dowiązywać
797 funkcje z dowolnych bibliotek współdzielonych i wywoływać je.
800 Summary: libmagic bindings
801 Summary(pl.UTF-8): Wiązania do libmagic
803 URL: http://php.net/manual/en/book.fileinfo.php
804 Requires: %{name}-common = %{epoch}:%{version}-%{release}
805 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
806 Provides: php(fileinfo) = %{fileinfover}
807 Obsoletes: php-fileinfo < 4:5.3.28-7
808 Obsoletes: php-mime_magic
809 Obsoletes: php-pecl-fileinfo < %{fileinfover}
811 %description fileinfo
812 This extension allows retrieval of information regarding vast majority
813 of file. This information may include dimensions, quality, length
816 Additionally it can also be used to retrieve the MIME type for a
817 particular file and for text files proper language encoding.
819 %description fileinfo -l pl.UTF-8
820 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
821 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
823 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
824 pliku oraz kodowania plików tekstowych.
827 Summary: Extension for safely dealing with input parameters
828 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
830 URL: http://php.net/manual/en/book.filter.php
831 Requires: %{name}-common = %{epoch}:%{version}-%{release}
832 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
833 Provides: php(filter)
834 Obsoletes: php-filter < 4:5.3.28-7
835 Obsoletes: php-pecl-filter
838 We all know that you should always check input variables, but PHP does
839 not offer really good functionality for doing this in a safe way. The
840 Input Filter extension is meant to address this issue by implementing
841 a set of filters and mechanisms that users can use to safely access
844 %description filter -l pl.UTF-8
845 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
846 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
847 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
848 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
849 mogą bezpiecznie używać do dostępu do danych.
852 Summary: FTP extension module for PHP
853 Summary(pl.UTF-8): Moduł FTP dla PHP
855 URL: http://php.net/manual/en/book.ftp.php
856 Requires: %{name}-common = %{epoch}:%{version}-%{release}
858 Obsoletes: php-ftp < 4:5.3.28-7
861 This is a dynamic shared object (DSO) for PHP that will add FTP
864 %description ftp -l pl.UTF-8
865 Moduł PHP dodający obsługę protokołu FTP.
868 Summary: GD extension module for PHP
869 Summary(pl.UTF-8): Moduł GD dla PHP
871 URL: http://php.net/manual/en/book.image.php
872 Requires: %{name}-common = %{epoch}:%{version}-%{release}
873 %if %{with system_gd}
878 Obsoletes: php-gd < 4:5.3.28-7
881 This is a dynamic shared object (DSO) for PHP that will add GD
882 support, allowing you to create and manipulate images with PHP.
884 %description gd -l pl.UTF-8
885 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
886 tworzenie i obróbkę obrazków.
889 Summary: gettext extension module for PHP
890 Summary(pl.UTF-8): Moduł gettext dla PHP
892 URL: http://php.net/manual/en/book.gettext.php
893 Requires: %{name}-common = %{epoch}:%{version}-%{release}
894 Provides: php(gettext)
895 Obsoletes: php-gettext < 4:5.3.28-7
898 This is a dynamic shared object (DSO) for PHP that will add gettext
901 %description gettext -l pl.UTF-8
902 Moduł PHP dodający obsługę lokalizacji przez gettext.
905 Summary: gmp extension module for PHP
906 Summary(pl.UTF-8): Moduł gmp dla PHP
908 URL: http://php.net/manual/en/book.gmp.php
909 Requires: %{name}-common = %{epoch}:%{version}-%{release}
912 Obsoletes: php-gmp < 4:5.3.28-7
915 This is a dynamic shared object (DSO) for PHP that will add arbitrary
916 length number support with GNU MP library.
918 %description gmp -l pl.UTF-8
919 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
920 liczbach o dowolnej długości.
923 Summary: iconv extension module for PHP
924 Summary(pl.UTF-8): Moduł iconv dla PHP
926 URL: http://php.net/manual/en/book.iconv.php
927 Requires: %{_libdir}/gconv
928 Requires: %{name}-common = %{epoch}:%{version}-%{release}
931 Obsoletes: php-iconv < 4:5.3.28-7
934 This is a dynamic shared object (DSO) for PHP that will add iconv
937 %description iconv -l pl.UTF-8
938 Moduł PHP dodający obsługę iconv.
941 Summary: IMAP extension module for PHP
942 Summary(pl.UTF-8): Moduł IMAP dla PHP
943 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
945 URL: http://php.net/manual/en/book.imap.php
946 Requires: %{name}-common = %{epoch}:%{version}-%{release}
947 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
948 Requires: imap-lib >= 1:2007e-2
950 Obsoletes: php-imap < 4:5.3.28-7
953 This is a dynamic shared object (DSO) for PHP that will add IMAP
956 %description imap -l pl.UTF-8
957 Moduł PHP dodający obsługę skrzynek IMAP.
959 %description imap -l pt_BR.UTF-8
960 Um módulo para aplicações PHP que usam IMAP.
963 Summary: Internationalization extension (ICU wrapper)
964 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
966 URL: http://php.net/intl
967 Requires: %{name}-common = %{epoch}:%{version}-%{release}
968 Provides: php(intl) = %{intlver}
969 Obsoletes: php-intl < 4:5.3.28-7
970 Obsoletes: php-pecl-intl < %{intlver}
973 Internationalization extension (further is referred as Intl) is a
974 wrapper for ICU library, enabling PHP programmers to perform
975 UCA-conformant collation and date/time/number/currency formatting in
978 %description intl -l pl.UTF-8
979 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
980 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
981 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
985 Summary: LDAP extension module for PHP
986 Summary(pl.UTF-8): Moduł LDAP dla PHP
987 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
989 URL: http://php.net/manual/en/book.ldap.php
990 Requires: %{name}-common = %{epoch}:%{version}-%{release}
992 Obsoletes: php-ldap < 4:5.3.28-7
995 This is a dynamic shared object (DSO) for PHP that will add LDAP
998 %description ldap -l pl.UTF-8
999 Moduł PHP dodający obsługę LDAP.
1001 %description ldap -l pt_BR.UTF-8
1002 Um módulo para aplicações PHP que usam LDAP.
1005 Summary: mbstring extension module for PHP
1006 Summary(pl.UTF-8): Moduł mbstring dla PHP
1008 URL: http://php.net/manual/en/book.mbstring.php
1009 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1010 Provides: php(mbstring)
1011 Obsoletes: php-mbstring < 4:5.3.28-7
1013 %description mbstring
1014 This is a dynamic shared object (DSO) for PHP that will add multibyte
1017 %description mbstring -l pl.UTF-8
1018 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1021 Summary: MySQLi module for PHP
1022 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1024 URL: http://php.net/manual/en/book.mysqli.php
1025 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1026 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1027 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1028 Requires: mysql-libs >= 4.1.13
1029 Provides: php(mysqli)
1030 Obsoletes: php-mysqli < 4:5.3.28-7
1033 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1034 (Improved MySQL) support. The difference between it and mysql module
1035 is that it provides access to functionality of MySQL 4.1 and above.
1037 %description mysqli -l pl.UTF-8
1038 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1039 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1040 MySQL w wersji 4.1 i nowszych.
1043 Summary: MySQL Native Client Driver for PHP
1044 Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1046 URL: http://php.net/manual/en/book.mysqlnd.php
1047 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1048 Provides: php(mysqlnd)
1049 Obsoletes: php-mysqlnd < 4:5.3.28-7
1051 %description mysqlnd
1052 MySQL Native Driver is a replacement for the MySQL Client Library
1055 Because MySQL Native Driver is written as a PHP extension, it is
1056 tightly coupled to the workings of PHP. This leads to gains in
1057 efficiency, especially when it comes to memory usage, as the driver
1058 uses the PHP memory management system. It also supports the PHP memory
1059 limit. Using MySQL Native Driver leads to comparable or better
1060 performance than using MySQL Client Library, it always ensures the
1061 most efficient use of memory. One example of the memory efficiency is
1062 the fact that when using the MySQL Client Library, each row is stored
1063 in memory twice, whereas with the MySQL Native Driver each row is only
1064 stored once in memory.
1066 %description mysqlnd -l pl.UTF-8
1067 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1068 klienckiej MySQL (libmysql).
1070 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1071 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1072 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1073 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1074 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1075 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1076 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1077 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1078 tym sterowniku - tylko raz.
1081 Summary: Oracle 8+ database module for PHP
1082 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1084 URL: http://php.net/manual/en/book.oci8.php
1085 %{?requires_php_extension}
1087 Obsoletes: php-oci8 < 4:5.3.28-7
1088 # withdrawn module of similar functionality but different API
1089 Obsoletes: php-oracle < 4:5.1.0
1092 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1093 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1095 %description oci8 -l pl.UTF-8
1096 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1097 poprzez interfejs Oracle8 Call-Interface (OCI8).
1100 Summary: ODBC extension module for PHP
1101 Summary(pl.UTF-8): Moduł ODBC dla PHP
1102 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1104 URL: http://php.net/manual/en/book.uodbc.php
1105 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1106 Requires: unixODBC >= 2.1.1-3
1108 Obsoletes: php-odbc < 4:5.3.28-7
1111 This is a dynamic shared object (DSO) for PHP that will add ODBC
1114 %description odbc -l pl.UTF-8
1115 Moduł PHP ze wsparciem dla ODBC.
1117 %description odbc -l pt_BR.UTF-8
1118 Um módulo para aplicações PHP que usam ODBC.
1121 Summary: Zend Optimizer+ - PHP code optimizer
1122 Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1124 URL: https://wiki.php.net/rfc/optimizerplus
1125 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1126 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1127 Provides: php(opcache) = %{version}
1129 %description opcache
1130 The Zend OPcache provides faster PHP execution through opcode caching
1131 and optimization. It improves PHP performance by storing precompiled
1132 script bytecode in the shared memory. This eliminates the stages of
1133 reading code from the disk and compiling it on future access. In
1134 addition, it applies a few bytecode optimization patterns that make
1135 code execution faster.
1137 %description opcache -l pl.UTF-8
1138 Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1139 i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1140 przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1141 Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1142 dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1143 czyniąc wykonywanie kodu szybszym.
1146 Summary: OpenSSL extension module for PHP
1147 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1149 URL: http://php.net/manual/en/book.openssl.php
1150 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1151 Provides: php(openssl)
1152 Obsoletes: php-openssl < 4:5.3.28-7
1154 %description openssl
1155 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1158 %description openssl -l pl.UTF-8
1159 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1162 Summary: Process Control extension module for PHP
1163 Summary(pl.UTF-8): Moduł Process Control dla PHP
1165 URL: http://php.net/manual/en/book.pcntl.php
1166 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1167 Provides: php(pcntl)
1168 Obsoletes: php-pcntl < 4:5.3.28-7
1171 This is a dynamic shared object (DSO) for PHP that will add process
1172 spawning and control support. It supports functions like fork(),
1173 waitpid(), signal() etc.
1175 %description pcntl -l pl.UTF-8
1176 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1177 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1180 Summary: PHP Data Objects (PDO)
1181 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1183 URL: http://php.net/manual/en/book.pdo.php
1184 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1185 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1186 Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1188 Obsoletes: php-pdo < 4:5.3.28-7
1189 Obsoletes: php-pecl-PDO
1192 This is a dynamic shared object (DSO) for PHP that will add PDO
1195 %description pdo -l pl.UTF-8
1196 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1199 Summary: PHP Data Objects (PDO) FreeTDS support
1200 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1202 URL: http://php.net/manual/en/ref.pdo-dblib.php
1203 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1204 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1205 Provides: php(pdo_dblib)
1206 Obsoletes: php-pdo-dblib < 4:5.3.28-7
1208 %description pdo-dblib
1209 This is a dynamic shared object (DSO) for PHP that will add PDO
1212 %description pdo-dblib -l pl.UTF-8
1213 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1216 %package pdo-firebird
1217 Summary: PHP Data Objects (PDO) Firebird support
1218 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1220 URL: http://php.net/manual/en/ref.pdo-firebird.php
1221 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1222 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1223 Provides: php(pdo-firebird)
1224 Provides: php(pdo_firebird)
1225 Obsoletes: php-pdo-firebird < 4:5.3.28-7
1226 Obsoletes: php-pecl-PDO_FIREBIRD
1228 %description pdo-firebird
1229 This is a dynamic shared object (DSO) for PHP that will add PDO
1232 %description pdo-firebird -l pl.UTF-8
1233 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1237 Summary: PHP Data Objects (PDO) MySQL support
1238 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1240 URL: http://php.net/manual/en/ref.pdo-mysql.php
1241 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1242 %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1243 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1244 Provides: php(pdo-mysql)
1245 Provides: php(pdo_mysql)
1246 Obsoletes: php-pdo-mysql < 4:5.3.28-7
1247 Obsoletes: php-pecl-PDO_MYSQL
1249 %description pdo-mysql
1250 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1253 %description pdo-mysql -l pl.UTF-8
1254 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1258 Summary: PHP Data Objects (PDO) Oracle support
1259 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1261 URL: http://php.net/manual/en/ref.pdo-oci.php
1262 %{?requires_php_extension}
1263 %{?requires_php_pdo_module}
1264 Provides: php(pdo-oci)
1265 Provides: php(pdo_oci)
1266 Obsoletes: php-pdo-oci < 4:5.3.28-7
1267 Obsoletes: php-pecl-PDO_OCI
1269 %description pdo-oci
1270 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1273 %description pdo-oci -l pl.UTF-8
1274 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1278 Summary: PHP Data Objects (PDO) ODBC support
1279 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1281 URL: http://php.net/manual/en/ref.pdo-odbc.php
1282 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1283 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1284 Provides: php(pdo-odbc)
1285 Provides: php(pdo_odbc)
1286 Obsoletes: php-pdo-odbc < 4:5.3.28-7
1287 Obsoletes: php-pecl-PDO_ODBC
1289 %description pdo-odbc
1290 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1293 %description pdo-odbc -l pl.UTF-8
1294 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1298 Summary: PHP Data Objects (PDO) PostgreSQL support
1299 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1301 URL: http://php.net/manual/en/ref.pdo-pgsql.php
1302 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1303 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1304 Provides: php(pdo-pgsql)
1305 Provides: php(pdo_pgsql)
1306 Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1307 Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1309 %description pdo-pgsql
1310 This is a dynamic shared object (DSO) for PHP that will add PDO
1313 %description pdo-pgsql -l pl.UTF-8
1314 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1318 Summary: PHP Data Objects (PDO) SQLite support
1319 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1321 URL: http://php.net/manual/en/ref.pdo-sqlite.php
1322 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1323 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1324 Provides: php(pdo-sqlite)
1325 Provides: php(pdo_sqlite)
1326 Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1327 Obsoletes: php-pecl-PDO_SQLITE
1329 %description pdo-sqlite
1330 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1333 %description pdo-sqlite -l pl.UTF-8
1334 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1338 Summary: PostgreSQL database module for PHP
1339 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1341 URL: http://php.net/manual/en/book.pgsql.php
1342 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1343 Provides: php(pgsql)
1344 Obsoletes: php-pgsql < 4:5.3.28-7
1347 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1350 %description pgsql -l pl.UTF-8
1351 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1353 %description pgsql -l pt_BR.UTF-8
1354 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1357 Summary: Phar archive module for PHP
1358 Summary(pl.UTF-8): Moduł phar dla PHP
1360 URL: http://php.net/manual/en/book.phar.php
1361 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1362 Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1363 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1364 Requires: alternatives
1365 Suggests: %{name}-cli
1366 # zlib is required by phar program, but as phar cli is optional should the dep be too
1367 Suggests: %{name}-zlib
1368 Provides: php(phar) = %{pharver}
1369 Obsoletes: php-pecl-phar < %{pharver}
1370 Obsoletes: php-phar < 4:5.3.28-7
1371 Conflicts: php-ioncube < 4.0.9
1374 This is a dynamic shared object (DSO) for PHP that will add phar
1377 %description phar -l pl.UTF-8
1378 Moduł PHP umożliwiający dostęp do achiwów .phar.
1381 Summary: POSIX extension module for PHP
1382 Summary(pl.UTF-8): Moduł POSIX dla PHP
1384 URL: http://php.net/manual/en/book.posix.php
1385 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1386 Provides: php(posix)
1387 Obsoletes: php-posix < 4:5.3.28-7
1390 This is a dynamic shared object (DSO) for PHP that will add POSIX
1391 functions support to PHP.
1393 %description posix -l pl.UTF-8
1394 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1397 Summary: pspell extension module for PHP
1398 Summary(pl.UTF-8): Moduł pspell dla PHP
1400 URL: http://php.net/manual/en/book.pspell.php
1401 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1402 Provides: php(pspell)
1403 Obsoletes: php-pspell < 4:5.3.28-7
1406 This is a dynamic shared object (DSO) for PHP that will add pspell
1407 support to PHP. It allows to check the spelling of a word and offer
1410 %description pspell -l pl.UTF-8
1411 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1412 sprawdzanie pisowni słowa i sugerowanie poprawek.
1415 Summary: readline extension module for PHP
1416 Summary(pl.UTF-8): Moduł readline dla PHP
1418 URL: http://php.net/manual/en/book.readline.php
1419 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1420 Provides: php(readline)
1421 Obsoletes: php-readline < 4:5.3.28-7
1423 %description readline
1424 This PHP module adds support for readline functions (only for cli and
1427 %description readline -l pl.UTF-8
1428 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1431 Summary: session extension module for PHP
1432 Summary(pl.UTF-8): Moduł session dla PHP
1434 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1435 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1436 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1438 Provides: php(session)
1439 Obsoletes: php-session < 4:5.3.28-7
1441 %description session
1442 This is a dynamic shared object (DSO) for PHP that will add session
1445 %description session -l pl.UTF-8
1446 Moduł PHP dodający obsługę sesji.
1449 Summary: Shared Memory Operations extension module for PHP
1450 Summary(pl.UTF-8): Moduł shmop dla PHP
1452 URL: http://php.net/manual/en/book.shmop.php
1453 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1454 Provides: php(shmop)
1455 Obsoletes: php-shmop < 4:5.3.28-7
1458 This is a dynamic shared object (DSO) for PHP that will add Shared
1459 Memory Operations support.
1461 %description shmop -l pl.UTF-8
1462 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1465 Summary: Simple XML extension module for PHP
1466 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1468 URL: http://php.net/manual/en/book.simplexml.php
1469 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1470 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1471 Provides: php(simplexml)
1472 Obsoletes: php-simplexml < 4:5.3.28-7
1474 %description simplexml
1475 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1478 %description simplexml -l pl.UTF-8
1479 Moduł PHP dodający obsługę prostego XML-a.
1482 Summary: SNMP extension module for PHP
1483 Summary(pl.UTF-8): Moduł SNMP dla PHP
1485 URL: http://php.net/manual/en/book.snmp.php
1486 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1487 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1488 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1490 Obsoletes: php-snmp < 4:5.3.28-7
1493 This is a dynamic shared object (DSO) for PHP that will add SNMP
1496 %description snmp -l pl.UTF-8
1497 Moduł PHP dodający obsługę SNMP.
1500 Summary: soap extension module for PHP
1501 Summary(pl.UTF-8): Moduł soap dla PHP
1503 URL: http://php.net/manual/en/book.soap.php
1504 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1506 Obsoletes: php-soap < 4:5.3.28-7
1509 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1512 %description soap -l pl.UTF-8
1513 Moduł PHP dodający obsługę SOAP/WSDL.
1516 Summary: sockets extension module for PHP
1517 Summary(pl.UTF-8): Moduł socket dla PHP
1519 URL: http://php.net/manual/en/book.sockets.php
1520 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1521 Provides: php(sockets)
1522 Obsoletes: php-sockets < 4:5.3.28-7
1524 %description sockets
1525 This is a dynamic shared object (DSO) for PHP that will add sockets
1528 %description sockets -l pl.UTF-8
1529 Moduł PHP dodający obsługę gniazdek.
1532 Summary: Wrapper for the Sodium cryptographic library
1533 Summary(pl.UTF-8): Interfejs do biblioteki kryptograficznej Sodium
1535 URL: https://paragonie.com/book/pecl-libsodium
1536 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1537 Provides: php(sodium) = %{sodiumver}
1540 A simple, low-level PHP extension for libsodium.
1542 %description sodium -l pl.UTF-8
1543 Proste, niskopoziomowe rozszerzenie PHP wykorzystując libsodium.
1546 Summary: SQLite3 extension module for PHP
1547 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1549 URL: http://php.net/manual/en/book.sqlite3.php
1550 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1551 Provides: php(sqlite3) = %{sqlite3ver}
1552 Obsoletes: php-sqlite3 < 4:5.3.28-7
1554 %description sqlite3
1555 SQLite is a C library that implements an embeddable SQL database
1556 engine. Programs that link with the SQLite library can have SQL
1557 database access without running a separate RDBMS process.
1559 SQLite is not a client library used to connect to a big database
1560 server. SQLite is the server. The SQLite library reads and writes
1561 directly to and from the database files on disk.
1563 %description sqlite3 -l pl.UTF-8
1564 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1565 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1566 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1569 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1570 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1571 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1575 Summary: SysV msg extension module for PHP
1576 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1578 URL: http://php.net/manual/en/book.sem.php
1579 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1580 Provides: php(sysvmsg)
1581 Obsoletes: php-sysvmsg < 4:5.3.28-7
1583 %description sysvmsg
1584 This is a dynamic shared object (DSO) for PHP that will add SysV
1585 message queues support.
1587 %description sysvmsg -l pl.UTF-8
1588 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1591 Summary: SysV sem extension module for PHP
1592 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1594 URL: http://php.net/manual/en/book.sem.php
1595 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1596 Provides: php(sysvsem)
1597 Obsoletes: php-sysvsem < 4:5.3.28-7
1599 %description sysvsem
1600 This is a dynamic shared object (DSO) for PHP that will add SysV
1603 %description sysvsem -l pl.UTF-8
1604 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1607 Summary: SysV shm extension module for PHP
1608 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1610 URL: http://php.net/manual/en/book.sem.php
1611 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1612 Provides: php(sysvshm)
1613 Obsoletes: php-sysvshm < 4:5.3.28-7
1615 %description sysvshm
1616 This is a dynamic shared object (DSO) for PHP that will add SysV
1617 Shared Memory support.
1619 %description sysvshm -l pl.UTF-8
1620 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1623 Summary: Contains unit test files for PHP and extensions
1624 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1626 URL: http://qa.php.net/
1627 Requires: %{name}-cli
1631 This package contains unit tests for PHP and its extensions.
1633 %description tests -l pl.UTF-8
1634 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1637 Summary: Tidy extension module for PHP
1638 Summary(pl.UTF-8): Moduł Tidy dla PHP
1640 URL: http://php.net/manual/en/book.tidy.php
1641 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1644 Obsoletes: php-tidy < 4:5.3.28-7
1647 This is a dynamic shared object (DSO) for PHP that will add Tidy
1650 %description tidy -l pl.UTF-8
1651 Moduł PHP umożliwiający korzystanie z tidy.
1654 Summary: tokenizer extension module for PHP
1655 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1657 URL: http://php.net/manual/en/book.tokenizer.php
1658 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1659 Provides: php(tokenizer)
1660 Obsoletes: php-tokenizer < 4:5.3.28-7
1662 %description tokenizer
1663 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1666 %description tokenizer -l pl.UTF-8
1667 Moduł PHP dodający obsługę tokenizera do PHP.
1670 Summary: XML extension module for PHP
1671 Summary(pl.UTF-8): Moduł XML dla PHP
1673 URL: http://php.net/manual/en/book.xml.php
1674 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1676 Obsoletes: php-xml < 4:5.3.28-7
1679 This is a dynamic shared object (DSO) for PHP that will add XML
1680 support. This extension lets you create XML parsers and then define
1681 handlers for different XML events.
1683 %description xml -l pl.UTF-8
1684 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1685 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1686 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1689 Summary: XML Reader extension module for PHP
1690 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1692 URL: http://php.net/manual/en/book.xmlreader.php
1693 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1694 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1695 Provides: php(xmlreader)
1696 Obsoletes: php-xmlreader < 4:5.3.28-7
1698 %description xmlreader
1699 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1700 support. The XMLReader extension is an XML Pull parser. The reader
1701 acts as a cursor going forward on the document stream and stopping at
1702 each node on the way.
1704 %description xmlreader -l pl.UTF-8
1705 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1706 działa jako kursor przechodzący przez strumień dokumentu i
1707 zatrzymujący się na każdym węźle po drodze.
1710 Summary: Fast, non-cached, forward-only means to write XML data
1711 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1713 URL: http://php.net/manual/en/book.xmlwriter.php
1714 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1715 Provides: php(xmlwriter)
1716 Obsoletes: php-pecl-xmlwriter
1717 Obsoletes: php-xmlwriter < 4:5.3.28-7
1719 %description xmlwriter
1720 This extension wraps the libxml xmlWriter API. Represents a writer
1721 that provides a non-cached, forward-only means of generating streams
1722 or files containing XML data.
1724 %description xmlwriter -l pl.UTF-8
1725 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1726 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1727 plików zawierających dane XML.
1730 Summary: xsl extension module for PHP
1731 Summary(pl.UTF-8): Moduł xsl dla PHP
1733 URL: http://php.net/manual/en/book.xsl.php
1734 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1735 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1736 Requires: libxslt >= 1.1.0
1738 Obsoletes: php-xsl < 4:5.3.28-7
1739 # actually not true, functionality is similar, but API differs
1740 Obsoletes: php-xslt <= 3:4.3.8-1
1743 This is a dynamic shared object (DSO) for PHP that will add new XSL
1744 support (using libxslt).
1746 %description xsl -l pl.UTF-8
1747 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1750 Summary: Zip management extension
1751 Summary(pl.UTF-8): Zarządzanie archiwami zip
1753 URL: http://php.net/manual/en/book.zip.php
1754 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1755 Requires: libzip >= 1.3.1
1756 Provides: php(zip) = %{zipver}
1757 Obsoletes: php-pecl-zip < %{zipver}
1758 Obsoletes: php-zip < 4:5.3.28-7
1761 Zip is an extension to create, modify and read zip files.
1763 %description zip -l pl.UTF-8
1764 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1765 odczyt archiwów zip.
1768 Summary: Zlib extension module for PHP
1769 Summary(pl.UTF-8): Moduł zlib dla PHP
1771 URL: http://php.net/manual/en/book.zlib.php
1772 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1774 Obsoletes: php-zlib < 4:5.3.28-7
1777 This is a dynamic shared object (DSO) for PHP that will add zlib
1778 compression support to PHP.
1780 %description zlib -l pl.UTF-8
1781 Moduł PHP umożliwiający używanie kompresji zlib.
1784 %setup -q -n %{orgname}-%{version}%{?subver}
1786 cp -p php.ini-production php.ini
1811 %if %{with instantclient}
1816 #%patch68 -p1 DROP or update to 7.0 APIs
1820 sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
1824 # cleanup backups after patching
1825 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1827 # com_dotnet is Win32-only
1828 %{__rm} -r ext/com_dotnet
1830 # remove all bundled libraries not to link with them accidentally
1831 #%{__rm} -r ext/bcmath/libbcmath
1832 #%{__rm} -r ext/date/lib
1833 #%{__rm} -r ext/fileinfo/libmagic
1834 #%{__rm} -r ext/dba/libcdb
1835 #%{__rm} -r ext/dba/libflatfile
1836 #%{__rm} -r ext/dba/libinifile
1837 #%{__rm} -r ext/gd/libgd
1838 #%{__rm} -r ext/mbstring/libmbfl
1839 #%{__rm} -r ext/pcre/pcre2lib
1840 #%{__rm} -r ext/soap/interop
1841 #%{__rm} -r ext/zip/lib
1842 %{__rm} ext/date/lib/timezonedb.h
1844 cp -pf Zend/LICENSE{,.Zend}
1845 install -p %{SOURCE13} dep-tests.sh
1848 sed -i -e 's#-fvisibility=hidden##g' configure*
1850 # disable broken tests
1851 # says just "Terminated" twice and fails
1852 %{__mv} sapi/cli/tests/022.phpt{,.broken}
1854 # really dumb test, executable binary name is .libs/ something when building
1855 # https://bugs.php.net/bug.php?id=54514
1856 %{__mv} tests/basic/bug54514.phpt{,.disable}
1858 # breaks whole testsuite unexpectedly:
1859 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
1860 # probably broken as zlib is built as shared
1861 %{__mv} ext/soap/tests/server019.phpt{,disable}
1862 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
1863 %{__mv} ext/soap/tests/server020.phpt{,disable}
1865 # runs out of memory and kills carme vserver
1866 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
1867 %{__mv} Zend/tests/bug39438.phpt{,.disable}
1869 # php-5.3.3/ext/standard/tests/file/statpage.phpt
1870 %{__rm} ext/standard/tests/file/statpage.phpt
1872 # idiotic test, it will fail if somebody else makes space on disk or if disk
1873 # space is not yet allocated (xfs). report upstream to advice bogus test is
1874 # probably pointless.
1875 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
1878 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
1879 %{__rm} -r ext/pdo_sqlite/tests
1880 %{__rm} -r ext/sqlite3/tests
1883 # ----- Manage known as failed test -------
1884 # affected by systzdata patch
1885 %{__rm} ext/date/tests/timezone_location_get.phpt
1886 %{__rm} ext/date/tests/timezone_version_get.phpt
1887 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
1888 # Should be skipped but fails sometime
1889 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
1891 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
1892 # causes stack exhausion
1893 %{__rm} Zend/tests/bug54268.phpt
1894 %{__rm} Zend/tests/bug68412.phpt
1896 # avoid issues when two builds run simultaneously
1898 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
1902 # no point testing stuff that is knowingly broken
1903 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
1915 sh -xe %{_sourcedir}/skip-tests.sh
1919 local define="$1" filename="$2"
1920 awk -vdefine="$define" '/#define/ && $2 == define {print $3}' "$filename" | xargs
1923 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1924 if [ $API != %{php_api_version} ]; then
1925 echo "Set %%define php_api_version to $API and re-run."
1929 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1930 if [ $API != %{zend_module_api} ]; then
1931 echo "Set %%define zend_module_api to $API and re-run."
1935 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1936 if [ $API != %{zend_extension_api} ]; then
1937 echo "Set %%define zend_extension_api to $API and re-run."
1941 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
1942 if [ $API != %{php_pdo_api_version} ]; then
1943 echo "Set %%define php_pdo_api_version to $API and re-run."
1947 # Check for some extension version
1948 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
1949 if test "$ver" != "PHP_VERSION"; then
1950 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
1951 : Update the fileinfover macro and rebuild.
1954 ver=$(get_version PHP_PHAR_VERSION ext/phar/php_phar.h)
1955 if test "$ver" != "PHP_VERSION"; then
1956 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
1957 : Update the pharver macro and rebuild.
1960 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
1961 if test "$ver" != "PHP_VERSION"; then
1962 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
1963 : Update the sqlite3ver macro and rebuild.
1966 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
1967 if test "$ver" != "PHP_VERSION"; then
1970 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
1971 if test "$ver" != "%{zipver}"; then
1972 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
1973 : Update the zipver macro and rebuild.
1976 ver=$(get_version PHP_JSON_VERSION ext/json/php_json.h)
1977 if test "$ver" != "PHP_VERSION"; then
1978 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
1979 : Update the jsonver macro and rebuild.
1982 ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
1983 if test "$ver" != "PHP_VERSION"; then
1984 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
1985 : Update the phpdbgver macro and rebuild.
1988 ver=$(get_version PHP_BZ2_VERSION ext/bz2/php_bz2.h)
1989 if test "$ver" != "PHP_VERSION"; then
1990 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
1991 : Update the bz2ver macro and rebuild.
1994 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
1995 if test "$ver" != "PHP_VERSION"; then
1998 ver=$(get_version PHP_HASH_VERSION ext/hash/php_hash.h)
1999 if test "$ver" != "PHP_VERSION"; then
2000 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2001 : Update the hashver macro and rebuild.
2004 ver=$(get_version PHP_INTL_VERSION ext/intl/php_intl.h)
2005 if test "$ver" != "PHP_VERSION"; then
2006 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2007 : Update the intlver macro and rebuild.
2011 export EXTENSION_DIR="%{php_extensiondir}"
2013 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
2014 # includes the PEAR directory even though pear is packaged separately.
2015 export PEAR_INSTALLDIR=%{php_pear_dir}
2017 # configure once (for faster debugging purposes)
2018 if [ ! -f _built-conf ]; then
2019 # now remove Makefile copies
2020 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs2,litespeed,phpdbg}
2022 # Force use of system libtool:
2023 mv build/libtool.m4 build/libtool.m4.saved
2024 cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
2028 cp -f /usr/share/automake/config.* .
2032 export PROG_SENDMAIL="/usr/lib/sendmail"
2033 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags}"
2035 # This should be detected by configure and set there,
2036 # but looks like the build system is hosed on 7.3
2037 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2038 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2041 # icu 59+ C++ API requires C++ >= 11
2042 CXXFLAGS="$CXXFLAGS -std=c++11"
2050 %if %{with litespeed}
2066 for sapi in $sapis; do
2068 # skip if already configured (for faster debugging purposes)
2069 [ -f Makefile.$sapi ] && continue
2074 sapi_args='--enable-cgi'
2077 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
2080 sapi_args='--enable-fpm'
2083 sapi_args='--enable-embed'
2086 ver=$(rpm -q --qf '%{V}' apache-devel)
2087 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
2090 sapi_args='--enable-litespeed'
2093 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2098 EXTRA_LDFLAGS="%{rpmldflags}" \
2099 --program-suffix=%{php_suffix} \
2104 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2105 --cache-file=config.cache \
2107 --datadir=%{php_data_dir} \
2108 --with-libdir=%{_lib} \
2109 --with-config-file-path=%{_sysconfdir} \
2110 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2111 --with-system-tzdata \
2112 %{?with_argon2:--with-password-argon2} \
2113 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2114 %{?with_zts:--enable-maintainer-zts} \
2115 --enable-option-checking=fatal \
2116 %{__enable_disable bcmath bcmath shared} \
2117 %{__enable_disable calendar calendar shared} \
2118 %{__enable_disable ctype ctype shared} \
2119 %{__enable_disable dba dba shared} \
2120 %{__enable_disable dom dom shared} \
2121 %{?with_systemtap:--enable-dtrace} \
2122 %{__enable_disable exif exif shared} \
2123 %{__enable_disable fileinfo fileinfo shared} \
2124 %{__enable_disable ftp ftp shared} \
2125 %{?with_intl:--enable-intl=shared} \
2127 %{__enable_disable mbstring mbstring shared,all} \
2129 %{__enable_disable pcntl pcntl shared} \
2130 %{__enable_disable pdo pdo shared} \
2131 --enable-xmlwriter=shared \
2133 --with-fpm-user=http \
2134 --with-fpm-group=http \
2136 %if %{with pdo_dblib}
2137 --with-pdo-dblib=shared \
2139 %if %{with pdo_firebird}
2140 --with-pdo-firebird=shared \
2142 %{?with_mhash:--with-mhash=yes} \
2143 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2144 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2145 %{?with_pdo_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2146 %{?with_pdo_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2147 %{?with_pdo_pgsql:--with-pdo-pgsql=shared} \
2148 %{?with_pdo_sqlite:--with-pdo-sqlite=shared} \
2149 %{?with_webp:--with-webp} \
2150 %{__enable_disable posix posix shared} \
2152 %{__enable_disable session session shared} \
2153 --enable-shmop=shared \
2154 --enable-simplexml=shared \
2155 --enable-sysvmsg=shared \
2156 --enable-sysvsem=shared \
2157 --enable-sysvshm=shared \
2158 --enable-soap=shared \
2159 --enable-sockets=shared \
2160 %{__with_without sodium sodium shared} \
2161 --enable-tokenizer=shared \
2162 --enable-xml=shared \
2163 --enable-xmlreader=shared \
2164 %{__with_without bzip2 bz2 shared} \
2165 %{__with_without curl curl shared} \
2167 %{__with_without iconv iconv shared} \
2168 %{?with_enchant:--with-enchant=shared} \
2170 %{__with_without gettext gettext shared} \
2171 %{__enable_disable gd gd shared} \
2172 %{?with_system_gd:--with-external-gd} \
2174 %{__with_without gmp gmp shared} \
2175 %{__with_without ffi ffi shared} \
2176 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2178 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2179 %{?with_mm:--with-mm} \
2180 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2181 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2182 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2183 %{__enable_disable opcache opcache shared} \
2184 %{?with_openssl:--with-openssl=shared} \
2185 %{?with_kerberos5:--with-kerberos} \
2187 --with-external-pcre \
2188 %{__with_without pcre_jit pcre-jit} \
2189 %{__enable_disable filter filter shared} \
2190 %{__with_without pgsql pgsql shared} \
2191 %{__enable_disable phar phar shared} \
2192 %{?with_pspell:--with-pspell=shared} \
2193 %{__with_without readline readline shared} \
2194 %{?with_snmp:--with-snmp=shared} \
2195 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2196 %{__with_without sqlite3 sqlite3 shared} \
2197 %{?with_tidy:--with-tidy=shared} \
2198 %{?with_odbc:--with-unixODBC=shared} \
2199 %{?with_xsl:--with-xsl=shared} \
2200 --with-zlib=shared \
2201 %{?with_zip:--with-zip=shared} \
2204 cp -f Makefile Makefile.$sapi
2205 cp -f main/php_config.h php_config.h.$sapi
2206 cp -f config.log config.log.$sapi
2209 # as we build each SAPI in own make, adjust php-config.in forehead
2210 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2211 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2213 # must make libphp_common first, so modules can link against it.
2214 cp -af php_config.h.cli main/php_config.h
2215 cp -af Makefile.cli Makefile
2216 %{__make} libphp_common.la
2217 # hack: MYSQLND_SHARED_LIBADD not initialized
2218 %{__make} build-modules \
2219 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2222 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp8.la -f Makefile.apxs2
2225 %if %{with litespeed}
2226 %{__make} -f Makefile.litespeed litespeed
2230 %{__make} -f Makefile.embed libphp8.la
2234 # PHP_READLINE_LIBS is empty, so force readline here
2235 %{__make} -f Makefile.phpdbg phpdbg \
2236 PHPDBG_EXTRA_LIBS=-lreadline
2241 cp -pf php_config.h.cgi-fcgi main/php_config.h
2242 %{__make} -f Makefile.cgi-fcgi
2243 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2248 cp -pf php_config.h.fpm main/php_config.h
2249 %{__make} -f Makefile.fpm
2250 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2254 cp -pf php_config.h.cli main/php_config.h
2255 %{__make} -f Makefile.cli
2256 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2258 # check for stupid xml parse breakage where < and > just get lost in parse result
2259 ./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"]));'
2261 # Generate stub .ini files for each extension
2262 GENERATE_INI=1 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh
2264 # Check that the module inner-dependencies are intact
2265 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2266 if grep -v OK dep-tests.log; then
2267 echo >&2 "The results above were not expected"
2273 cp -pf php_config.h.cli main/php_config.h
2274 cp -pf Makefile.cli Makefile
2276 # you really don't want to package result of gcov build
2280 cat <<'EOF' > run-tests.sh
2282 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2283 export SKIP_ONLINE_TESTS=1
2284 unset TZ LANG LC_ALL || :
2286 EXTENSION_DIR=modules \
2287 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2288 RUN_TESTS_SETTINGS="-q $*"
2290 chmod +x run-tests.sh
2293 # Run tests, using the CLI SAPI
2294 cp -pf php_config.h.cli main/php_config.h
2295 cp -pf Makefile.cli Makefile
2297 ./run-tests.sh -w failed.log -s tests.log || {
2300 # collect failed tests into cleanup script used in prep.
2301 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2302 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2303 >> %{_sourcedir}/skip-tests.sh
2305 # if on builders, dump test log
2306 tty -q || cat tests.log
2308 test ! -s failed.log
2314 rm -rf $RPM_BUILD_ROOT
2316 $RPM_BUILD_ROOT%{_libdir}/{php,apache} \
2317 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,cgi-fcgi,cli,apache2handler}.d \
2318 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2319 $RPM_BUILD_ROOT/etc/httpd/conf.d \
2320 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2322 cp -pf php_config.h.cli main/php_config.h
2323 cp -pf Makefile.cli Makefile
2325 phpbuilddir=%{_libdir}/php/php%{php_suffix}/build \
2326 INSTALL_ROOT=$RPM_BUILD_ROOT
2329 touch $RPM_BUILD_ROOT%{_bindir}/phar
2330 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2333 v=$(echo %{version} | cut -d. -f1-2)
2335 # install Apache2 DSO module
2338 libtool --mode=install install -p sapi/apache2handler/libphp8.la $RPM_BUILD_ROOT%{_libdir}/apache
2339 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp8.la $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2340 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp8.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.so
2341 sed -i -e "s|libphp8|libphp%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2342 ln -s libphp%{php_suffix}.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2345 # install litespeed sapi
2346 %if %{with litespeed}
2347 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2351 %{__make} -f Makefile.phpdbg install-phpdbg \
2352 INSTALL="libtool --mode=install install -p" \
2353 INSTALL_ROOT=$RPM_BUILD_ROOT
2357 touch $RPM_BUILD_ROOT%{_bindir}/phpize
2358 touch $RPM_BUILD_ROOT%{_mandir}/man1/phpize.1
2359 touch $RPM_BUILD_ROOT%{_bindir}/php-config
2360 touch $RPM_BUILD_ROOT%{_mandir}/man1/php-config.1
2362 # versioned libphp_common
2363 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2364 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common.la $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2365 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libphp_common-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}-%{version}.so
2366 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libphp_common.so
2367 ln -s libphp_common%{php_suffix}-%{version}.so $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.so
2368 sed -i -e "s|libphp_common|libphp_common%{php_suffix}|g" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2373 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2374 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2375 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cgi-fcgi.d/php.ini
2380 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2381 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2382 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2383 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2384 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2385 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2386 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2387 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2388 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2390 # touch for ghost for alternatives
2391 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2394 s#/usr/lib/php#%{php_extensiondir}#
2395 s#/etc/php/#%{_sysconfdir}/#
2396 s#@processname@#%{name}-fpm#g
2397 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2400 # install Embedded API
2402 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2403 # install-sapi installs to wrong dir, so just do it all manually
2404 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2405 install -p libs/libphp8.so $RPM_BUILD_ROOT%{_libdir}/libphp%{php_suffix}.so
2406 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/sapi/embed
2410 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{php_suffix}
2412 touch $RPM_BUILD_ROOT%{_bindir}/php
2413 touch $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2415 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2416 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php.ini
2419 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2420 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php.ini
2421 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp%{php_suffix}.la
2424 # ensure that paths are correct for current php version and arch
2425 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2427 s#/usr/lib/php#%{php_extensiondir}#
2428 s#/etc/php#%{_sysconfdir}#
2431 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2432 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2434 cp -p %{_sourcedir}/opcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2437 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/??_readline.ini,cli.d}
2439 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize%{php_suffix}
2441 # for php-pecl-mailparse
2442 install -d $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2443 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/php%{php_suffix}/ext/mbstring
2446 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2447 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2448 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2450 # fix install paths, avoid evil rpaths
2451 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common%{php_suffix}.la
2453 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2456 rm -rf $RPM_BUILD_ROOT
2458 %post -n apache-mod_%{name}
2459 if [ "$1" = "1" ]; then
2460 %service -q httpd restart
2463 %postun -n apache-mod_%{name}
2464 if [ "$1" = "0" ]; then
2465 %service -q httpd restart
2469 update-alternatives \
2470 --install %{_bindir}/php php %{_bindir}/php%{php_suffix} %{php_suffix} \
2471 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2474 if [ $1 -eq 0 ]; then
2475 update-alternatives --remove php %{_bindir}/php%{php_suffix} || :
2478 %post common -p /sbin/ldconfig
2479 %postun common -p /sbin/ldconfig
2482 update-alternatives \
2483 --install %{_bindir}/phpize phpize %{_bindir}/phpize%{php_suffix} %{php_suffix} \
2484 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2485 update-alternatives \
2486 --install %{_bindir}/php-config php-config %{_bindir}/php-config%{php_suffix} %{php_suffix} \
2487 --slave %{_mandir}/man1/php.1 php.1 %{_mandir}/man1/php%{php_suffix}.1* || :
2490 if [ $1 -eq 0 ]; then
2491 update-alternatives --remove phpize %{_bindir}/phpize%{php_suffix} || :
2492 update-alternatives --remove php-config %{_bindir}/php-config%{php_suffix} || :
2496 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2499 /sbin/chkconfig --add %{name}-fpm
2500 %service %{name}-fpm restart
2501 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{php_suffix}-fpm %{php_suffix} || :
2504 if [ "$1" = "0" ]; then
2505 %service %{name}-fpm stop
2506 /sbin/chkconfig --del %{name}-fpm
2507 update-alternatives --remove php-fpm %{_sbindir}/php%{php_suffix}-fpm || :
2511 if [ "$1" = "0" ]; then
2515 %post embedded -p /sbin/ldconfig
2516 %postun embedded -p /sbin/ldconfig
2519 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2520 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2522 . /etc/sysconfig/timezone
2523 if [ "$TIMEZONE" ]; then
2524 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2528 # minimizing apache restarts logics. we restart webserver:
2530 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2531 # 2. first install of extension (post: $1 = 1)
2532 # 2. uninstall of extension (postun: $1 == 0)
2534 # the strict internal deps between extensions (and apache modules) and
2535 # common package are very important for all this to work.
2537 # restart webserver at the end of transaction
2538 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2540 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2541 # switch to browscap package if the ini file has original value
2542 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2543 # disable browscap, if optional package not present
2544 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2545 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2548 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2549 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2550 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2551 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2552 test -f "$f" || continue
2556 test "$dn" = "$fn" && dn=
2558 nf=%{_sysconfdir}/$dn/$fn
2559 test -f "$nf" || continue
2560 cp -vfb $nf{,.rpmnew}
2563 s#%{_libdir}/php#%{_libdir}/%{name}#
2564 s#/etc/php#%{_sysconfdir}#
2568 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2569 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2571 # common macros called at extension post/postun scriptlet
2573 if [ "$1" = "1" ]; then \
2574 %php_webserver_restart \
2578 %define ext_postun \
2579 if [ "$1" = "0" ]; then \
2580 %php_webserver_restart \
2584 %define extension_scripts() \
2592 # extension scripts defines
2593 %extension_scripts bcmath
2594 %extension_scripts bz2
2595 %extension_scripts calendar
2596 %extension_scripts ctype
2597 %extension_scripts curl
2598 %extension_scripts dba
2599 %extension_scripts dom
2600 %extension_scripts enchant
2601 %extension_scripts exif
2602 %extension_scripts ffi
2603 %extension_scripts fileinfo
2604 %extension_scripts filter
2605 %extension_scripts ftp
2606 %extension_scripts gd
2607 %extension_scripts gettext
2608 %extension_scripts gmp
2609 %extension_scripts iconv
2610 %extension_scripts imap
2611 %extension_scripts intl
2612 %extension_scripts ldap
2613 %extension_scripts mbstring
2614 %extension_scripts mysqli
2615 %extension_scripts mysqlnd
2616 %extension_scripts oci8
2617 %extension_scripts odbc
2618 %extension_scripts opcache
2619 %extension_scripts openssl
2620 %extension_scripts pcntl
2621 %extension_scripts pdo
2622 %extension_scripts pdo-dblib
2623 %extension_scripts pdo-firebird
2624 %extension_scripts pdo-mysql
2625 %extension_scripts pdo-oci
2626 %extension_scripts pdo-odbc
2627 %extension_scripts pdo-pgsql
2628 %extension_scripts pdo-sqlite
2629 %extension_scripts pgsql
2630 %extension_scripts posix
2631 %extension_scripts pspell
2632 %extension_scripts session
2633 %extension_scripts shmop
2634 %extension_scripts simplexml
2635 %extension_scripts snmp
2636 %extension_scripts soap
2637 %extension_scripts sockets
2638 %extension_scripts sodium
2639 %extension_scripts sqlite3
2640 %extension_scripts sysvmsg
2641 %extension_scripts sysvsem
2642 %extension_scripts sysvshm
2643 %extension_scripts tidy
2644 %extension_scripts tokenizer
2645 %extension_scripts xml
2646 %extension_scripts xmlreader
2647 %extension_scripts xmlwriter
2648 %extension_scripts xsl
2649 %extension_scripts zip
2650 %extension_scripts zlib
2654 update-alternatives \
2655 --install %{_bindir}/phar phar %{_bindir}/phar%{php_suffix}.phar %{php_suffix} \
2656 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{php_suffix}.1* || :
2660 if [ $1 -eq 0 ]; then
2661 update-alternatives --remove phar %{_bindir}/phar%{php_suffix}.phar || :
2665 %files -n apache-mod_%{name}
2666 %defattr(644,root,root,755)
2667 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2668 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2670 %files -n apache-mod_%{name}-core
2671 %defattr(644,root,root,755)
2672 %dir %{_sysconfdir}/apache2handler.d
2673 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php.ini
2674 %attr(755,root,root) %{_libdir}/apache/libphp%{php_suffix}.so
2677 %if %{with litespeed}
2679 %defattr(644,root,root,755)
2680 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2685 %defattr(644,root,root,755)
2686 %dir %{_sysconfdir}/cgi-fcgi.d
2687 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cgi-fcgi.d/php.ini
2688 %attr(755,root,root) %{_bindir}/%{name}.cgi
2689 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2694 %defattr(644,root,root,755)
2695 %attr(755,root,root) %{_libdir}/libphp%{php_suffix}.so
2699 %defattr(644,root,root,755)
2700 %dir %{_sysconfdir}/cli.d
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/php.ini
2702 %attr(755,root,root) %{_bindir}/php%{php_suffix}
2703 %{_mandir}/man1/php%{php_suffix}.1*
2704 %ghost %{_bindir}/php
2705 %ghost %{_mandir}/man1/php.1*
2709 %defattr(644,root,root,755)
2710 %doc sapi/fpm/{CREDITS,LICENSE}
2711 %dir %{_sysconfdir}/php-fpm.d
2712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2714 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2715 %ghost %{_sbindir}/php-fpm
2716 %{_mandir}/man8/%{name}-fpm.8*
2717 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2718 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2723 %defattr(644,root,root,755)
2724 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
2725 %{_mandir}/man1/phpdbg%{php_suffix}.1*
2729 %defattr(644,root,root,755)
2730 %doc EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
2732 %dir %{_sysconfdir}/conf.d
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2734 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}-*.so
2735 %dir %{php_data_dir}
2736 %dir %{php_extensiondir}
2738 %doc ext/session/mod_files.sh
2741 %defattr(644,root,root,755)
2742 %doc CODING_STANDARDS.md docs/*.md
2743 %attr(755,root,root) %{_bindir}/ext_skel.php
2744 %attr(755,root,root) %{_bindir}/phpize%{php_suffix}
2745 %attr(755,root,root) %{_bindir}/php-config%{php_suffix}
2746 %ghost %{_bindir}/phpize
2747 %ghost %{_bindir}/php-config
2748 %attr(755,root,root) %{_libdir}/libphp_common%{php_suffix}.so
2749 %{_libdir}/libphp_common%{php_suffix}.la
2750 %{_includedir}/php/php%{php_suffix}
2751 %{_libdir}/php/php%{php_suffix}/build
2752 %{_mandir}/man1/php-config%{php_suffix}.1*
2753 %ghost %{_mandir}/man1/php-config.1*
2754 %{_mandir}/man1/phpize%{php_suffix}.1*
2755 %ghost %{_mandir}/man1/phpize.1*
2759 %defattr(644,root,root,755)
2760 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bcmath.ini
2761 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2766 %defattr(644,root,root,755)
2767 %doc ext/bz2/CREDITS
2768 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_bz2.ini
2769 %attr(755,root,root) %{php_extensiondir}/bz2.so
2772 %if %{with calendar}
2774 %defattr(644,root,root,755)
2775 %doc ext/calendar/CREDITS
2776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_calendar.ini
2777 %attr(755,root,root) %{php_extensiondir}/calendar.so
2782 %defattr(644,root,root,755)
2783 %doc ext/calendar/CREDITS
2784 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ctype.ini
2785 %attr(755,root,root) %{php_extensiondir}/ctype.so
2790 %defattr(644,root,root,755)
2791 %doc ext/curl/CREDITS
2792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_curl.ini
2793 %attr(755,root,root) %{php_extensiondir}/curl.so
2798 %defattr(644,root,root,755)
2799 %doc ext/dba/CREDITS
2800 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dba.ini
2801 %attr(755,root,root) %{php_extensiondir}/dba.so
2806 %defattr(644,root,root,755)
2807 %doc ext/dom/CREDITS
2808 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_dom.ini
2809 %attr(755,root,root) %{php_extensiondir}/dom.so
2814 %defattr(644,root,root,755)
2815 %doc ext/enchant/CREDITS
2816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_enchant.ini
2817 %attr(755,root,root) %{php_extensiondir}/enchant.so
2822 %defattr(644,root,root,755)
2823 %doc ext/exif/CREDITS
2824 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_exif.ini
2825 %attr(755,root,root) %{php_extensiondir}/exif.so
2830 %defattr(644,root,root,755)
2831 %doc ext/ffi/CREDITS
2832 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ffi.ini
2833 %attr(755,root,root) %{php_extensiondir}/ffi.so
2836 %if %{with fileinfo}
2838 %defattr(644,root,root,755)
2839 %doc ext/fileinfo/CREDITS
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_fileinfo.ini
2841 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2846 %defattr(644,root,root,755)
2847 %doc ext/filter/CREDITS
2848 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_filter.ini
2849 %attr(755,root,root) %{php_extensiondir}/filter.so
2854 %defattr(644,root,root,755)
2855 %doc ext/ftp/CREDITS
2856 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ftp.ini
2857 %attr(755,root,root) %{php_extensiondir}/ftp.so
2862 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gd.ini
2865 %attr(755,root,root) %{php_extensiondir}/gd.so
2870 %defattr(644,root,root,755)
2871 %doc ext/gettext/CREDITS
2872 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gettext.ini
2873 %attr(755,root,root) %{php_extensiondir}/gettext.so
2878 %defattr(644,root,root,755)
2879 %doc ext/gmp/CREDITS
2880 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_gmp.ini
2881 %attr(755,root,root) %{php_extensiondir}/gmp.so
2886 %defattr(644,root,root,755)
2887 %doc ext/iconv/CREDITS
2888 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_iconv.ini
2889 %attr(755,root,root) %{php_extensiondir}/iconv.so
2894 %defattr(644,root,root,755)
2895 %doc ext/imap/CREDITS
2896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_imap.ini
2897 %attr(755,root,root) %{php_extensiondir}/imap.so
2902 %defattr(644,root,root,755)
2903 %doc ext/intl/CREDITS
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_intl.ini
2905 %attr(755,root,root) %{php_extensiondir}/intl.so
2910 %defattr(644,root,root,755)
2911 %doc ext/ldap/CREDITS
2912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_ldap.ini
2913 %attr(755,root,root) %{php_extensiondir}/ldap.so
2916 %if %{with mbstring}
2918 %defattr(644,root,root,755)
2919 %doc ext/mbstring/CREDITS
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mbstring.ini
2921 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2926 %defattr(644,root,root,755)
2927 %doc ext/mysqli/CREDITS
2928 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqli.ini
2929 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2934 %defattr(644,root,root,755)
2935 %doc ext/mysqlnd/CREDITS
2936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_mysqlnd.ini
2937 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
2942 %defattr(644,root,root,755)
2943 %doc ext/oci8/{CREDITS,README}
2944 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_oci8.ini
2945 %attr(755,root,root) %{php_extensiondir}/oci8.so
2950 %defattr(644,root,root,755)
2951 %doc ext/odbc/CREDITS
2952 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_odbc.ini
2953 %attr(755,root,root) %{php_extensiondir}/odbc.so
2958 %defattr(644,root,root,755)
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_opcache.ini
2960 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
2961 %attr(755,root,root) %{php_extensiondir}/opcache.so
2966 %defattr(644,root,root,755)
2967 %doc ext/openssl/CREDITS
2968 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_openssl.ini
2969 %attr(755,root,root) %{php_extensiondir}/openssl.so
2974 %defattr(644,root,root,755)
2975 %doc ext/pcntl/CREDITS
2976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pcntl.ini
2977 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2982 %defattr(644,root,root,755)
2983 %doc ext/pdo/CREDITS
2984 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo.ini
2985 %attr(755,root,root) %{php_extensiondir}/pdo.so
2988 %if %{with pdo_dblib}
2990 %defattr(644,root,root,755)
2991 %doc ext/pdo_dblib/CREDITS
2992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_dblib.ini
2993 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2996 %if %{with pdo_firebird}
2998 %defattr(644,root,root,755)
2999 %doc ext/pdo_firebird/CREDITS
3000 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_firebird.ini
3001 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3004 %if %{with pdo_mysql}
3006 %defattr(644,root,root,755)
3007 %doc ext/pdo_mysql/CREDITS
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_mysql.ini
3009 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3014 %defattr(644,root,root,755)
3015 %doc ext/pdo_oci/CREDITS
3016 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_oci.ini
3017 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3020 %if %{with pdo_odbc}
3022 %defattr(644,root,root,755)
3023 %doc ext/pdo_odbc/CREDITS
3024 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_odbc.ini
3025 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3028 %if %{with pdo_pgsql}
3030 %defattr(644,root,root,755)
3031 %doc ext/pdo_pgsql/CREDITS
3032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_pgsql.ini
3033 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3036 %if %{with pdo_sqlite}
3038 %defattr(644,root,root,755)
3039 %doc ext/pdo_sqlite/CREDITS
3040 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pdo_sqlite.ini
3041 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3046 %defattr(644,root,root,755)
3047 %doc ext/pgsql/CREDITS
3048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pgsql.ini
3049 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3054 %defattr(644,root,root,755)
3055 %doc ext/phar/CREDITS
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_phar.ini
3057 %attr(755,root,root) %{php_extensiondir}/phar.so
3058 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3059 %{_mandir}/man1/phar%{php_suffix}.1*
3060 %ghost %{_bindir}/phar
3061 %ghost %{_mandir}/man1/phar.1*
3066 %defattr(644,root,root,755)
3067 %doc ext/posix/CREDITS
3068 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_posix.ini
3069 %attr(755,root,root) %{php_extensiondir}/posix.so
3074 %defattr(644,root,root,755)
3075 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_pspell.ini
3076 %attr(755,root,root) %{php_extensiondir}/pspell.so
3079 %if %{with readline}
3081 %defattr(644,root,root,755)
3082 %doc ext/readline/CREDITS
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/??_readline.ini
3084 %attr(755,root,root) %{php_extensiondir}/readline.so
3089 %defattr(644,root,root,755)
3090 %doc ext/session/CREDITS
3091 %doc ext/session/mod_files.sh
3092 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_session.ini
3093 %attr(755,root,root) %{php_extensiondir}/session.so
3097 %defattr(644,root,root,755)
3098 %doc ext/shmop/CREDITS
3099 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_shmop.ini
3100 %attr(755,root,root) %{php_extensiondir}/shmop.so
3103 %defattr(644,root,root,755)
3104 %doc ext/simplexml/CREDITS
3105 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_simplexml.ini
3106 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3110 %defattr(644,root,root,755)
3111 %doc ext/snmp/CREDITS
3112 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_snmp.ini
3113 %attr(755,root,root) %{php_extensiondir}/snmp.so
3117 %defattr(644,root,root,755)
3118 %doc ext/soap/CREDITS
3119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_soap.ini
3120 %attr(755,root,root) %{php_extensiondir}/soap.so
3123 %defattr(644,root,root,755)
3124 %doc ext/sockets/CREDITS
3125 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sockets.ini
3126 %attr(755,root,root) %{php_extensiondir}/sockets.so
3130 %defattr(644,root,root,755)
3131 %doc ext/sodium/{README.md,CREDITS}
3132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sodium.ini
3133 %attr(755,root,root) %{php_extensiondir}/sodium.so
3138 %defattr(644,root,root,755)
3139 %doc ext/sqlite3/CREDITS
3140 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sqlite3.ini
3141 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3145 %defattr(644,root,root,755)
3146 %doc ext/sysvmsg/CREDITS
3147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvmsg.ini
3148 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3151 %defattr(644,root,root,755)
3152 %doc ext/sysvsem/CREDITS
3153 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvsem.ini
3154 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3157 %defattr(644,root,root,755)
3158 %doc ext/sysvshm/CREDITS
3159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_sysvshm.ini
3160 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3163 %defattr(644,root,root,755)
3164 %dir %{php_data_dir}/tests
3165 %dir %{php_data_dir}/tests/php
3166 %{php_data_dir}/tests/php/basic
3167 %{php_data_dir}/tests/php/classes
3168 %{php_data_dir}/tests/php/func
3169 %{php_data_dir}/tests/php/lang
3170 %{php_data_dir}/tests/php/output
3171 %{php_data_dir}/tests/php/run-test
3172 %{php_data_dir}/tests/php/security
3173 %{php_data_dir}/tests/php/strings
3174 %{php_data_dir}/tests/php/quicktester.inc
3175 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3179 %defattr(644,root,root,755)
3180 %doc ext/tidy/CREDITS
3181 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tidy.ini
3182 %attr(755,root,root) %{php_extensiondir}/tidy.so
3186 %defattr(644,root,root,755)
3187 %doc ext/tokenizer/CREDITS
3188 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_tokenizer.ini
3189 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3192 %defattr(644,root,root,755)
3193 %doc ext/xml/CREDITS
3194 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xml.ini
3195 %attr(755,root,root) %{php_extensiondir}/xml.so
3198 %defattr(644,root,root,755)
3199 %doc ext/xmlreader/CREDITS
3200 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlreader.ini
3201 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3204 %defattr(644,root,root,755)
3205 %doc ext/xmlwriter/CREDITS
3206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xmlwriter.ini
3207 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3211 %defattr(644,root,root,755)
3212 %doc ext/xsl/CREDITS
3213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_xsl.ini
3214 %attr(755,root,root) %{php_extensiondir}/xsl.so
3219 %defattr(644,root,root,755)
3220 %doc ext/zip/CREDITS
3221 %doc ext/zip/examples
3222 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zip.ini
3223 %attr(755,root,root) %{php_extensiondir}/zip.so
3227 %defattr(644,root,root,755)
3228 %doc ext/zlib/CREDITS
3229 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_zlib.ini
3230 %attr(755,root,root) %{php_extensiondir}/zlib.so