]> git.pld-linux.org Git - packages/php.git/blame - php.spec
Rel 18
[packages/php.git] / php.spec
CommitLineData
8d42644e 1# TODO 5.6:
fdbf13b1 2# - enable --with-fpm-systemd, but ensure it checks for sd_booted()
6807c643 3# - build with system libgd 2.1, see 73c5128
02d2dcbb 4# TODO 5.4:
02d2dcbb
ER
5# - update imap annotations patch (needs api porting)
6# - update imap myrights patch (needs api porting)
02d2dcbb 7# --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base install directory BUNDLED
ea0fc5e3 8# --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
c0240cb1 9# TODO:
ef621865
ER
10# - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
11# - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
12# - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
13# - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
c0240cb1 14# - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
15# - wddx: restore session support (not compiled in due DL extension check)
c0240cb1 16# - make additional headers and checking added by mail patch configurable
17# - modularize standard (output from pure php -m)?
c0240cb1 18# - some mods should be shared:
19#$ php -m
20# [PHP Modules]
21#+Core
22# date
23#+ereg
24# libxml
25# Reflection
8d42644e 26# standard
c0240cb1 27#
28# Conditional build:
7a59d9eb
JB
29# - packaging options
30%bcond_without alternatives # use alternatives system to select default phar and php-fpm
31%bcond_with default_php # build this PHP as default PHP in system (disables alternatives)
24cbb89e
ER
32# - General options:
33%bcond_without embed # disable building Embedded API
24cbb89e 34%bcond_with gcov # Enable Code coverage reporting
24cbb89e 35%bcond_without kerberos5 # without Kerberos5 support
24cbb89e 36%bcond_with suhosin # with suhosin patch, has little point in PHP>=5.3, see https://github.com/stefanesser/suhosin/issues/42#issuecomment-41728178
e2bde909 37%bcond_with systemtap # systemtap/DTrace support
24cbb89e 38%bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
24cbb89e 39%bcond_with zts # Zend Thread Safety
a736dfa8 40%bcond_with debug # Zend Debug Build
24cbb89e
ER
41# - SAPI
42%bcond_without apache1 # disable building Apache 1.3.x SAPI
43%bcond_without apache2 # disable building Apache 2.x SAPI
44%bcond_without cgi # disable CGI/FCGI SAPI
45%bcond_without fpm # disable FPM SAPI
46%bcond_without litespeed # build litespeed SAPI
47%bcond_with milter # disable Milter SAPI
48%bcond_without phpdbg # disable phpdbg SAPI
49# - Extensions
476107e3
ER
50%bcond_without bcmath # without bcmath extension module
51%bcond_without bz2 # without bz2 extension module
52%bcond_without calendar # without calendar extension module
53%bcond_without ctype # without ctype extension module
c0240cb1 54%bcond_without curl # without CURL extension module
476107e3
ER
55%bcond_without dba # without DBA extension module
56%bcond_without dom # without DOM extension module
13f02a12 57%bcond_without enchant # without Enchant extension module
4b4c3c50 58%bcond_without ereg # without ext/ereg support
476107e3
ER
59%bcond_without exif # without EXIF extension module
60%bcond_without fileinfo # without fileinfo extension module
d8c3b589 61%bcond_without filter # without filter extension module
476107e3
ER
62%bcond_without ftp # without FTP extension module
63%bcond_without gd # without GD extension module
64%bcond_without gettext # without gettext extension module
65%bcond_without gmp # without gmp extension module
66%bcond_without hash # without hash extension module
67%bcond_without iconv # without iconv extension module
c0240cb1 68%bcond_without imap # without IMAP extension module
69%bcond_without interbase # without InterBase extension module
689a4e56 70%bcond_without intl # without Intl extension module
476107e3 71%bcond_without json # without json extension module
c0240cb1 72%bcond_without ldap # without LDAP extension module
476107e3
ER
73%bcond_without mbstring # without mbstring extension module
74%bcond_without mcrypt # without mbcrypt extension module
c0240cb1 75%bcond_without mhash # without mhash extension (supported by hash extension)
c0240cb1 76%bcond_without mssql # without MS SQL extension module
9cda7e6f 77%bcond_without mysql # without ext/mysql support
35039046 78%bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
24cbb89e
ER
79%bcond_without mysqlnd # without mysqlnd support in mysql related extensions
80%bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
c0240cb1 81%bcond_without odbc # without ODBC extension module
8328535b 82%bcond_without opcache # without Enable Zend OPcache extension support
c0240cb1 83%bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
476107e3 84%bcond_without pcntl # without pcntl extension module
c0240cb1 85%bcond_without pcre # without PCRE extension module
476107e3 86%bcond_without pdo # without PDO extension module
006a7eb1 87%bcond_without pdo_dblib # without PDO dblib extension module
476107e3 88%bcond_without pdo_mysql # without PDO MySQL extension module
24cbb89e 89%bcond_without pdo_sqlite # without PDO SQLite extension module
c0240cb1 90%bcond_without pgsql # without PostgreSQL extension module
476107e3
ER
91%bcond_without phar # without Phar extension module
92%bcond_without posix # without POSIX extension module
c0240cb1 93%bcond_without pspell # without pspell extension module
476107e3 94%bcond_without readline # without readline extension module
c0240cb1 95%bcond_without recode # without recode extension module
476107e3 96%bcond_without session # without session extension module
c0240cb1 97%bcond_without snmp # without SNMP extension module
98%bcond_without sqlite2 # without SQLite extension module
99%bcond_without sqlite3 # without SQLite3 extension module
100%bcond_without sybase_ct # without Sybase-CT extension module
101%bcond_without tidy # without Tidy extension module
102%bcond_without wddx # without WDDX extension module
103%bcond_without xmlrpc # without XML-RPC extension module
7a59d9eb
JB
104# extensions options
105%bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
106%bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
107%bcond_with mm # without mm support for session storage
108%bcond_with system_gd # with system gd (imageantialias function is missing then)
109%bcond_with system_libzip # with system libzip (reported broken currently)
110%bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
c0240cb1 111
112%define apxs1 /usr/sbin/apxs1
113%define apxs2 /usr/sbin/apxs
c0240cb1 114
115# disable all sapis
116%if %{with gcov}
117%undefine with_apache1
118%undefine with_apache2
119%undefine with_cgi
120%undefine with_litespeed
121%endif
122
7a59d9eb
JB
123%if %{with default_php}
124%undefine with_alternatives
125%endif
126
c0240cb1 127# mm is not thread safe
128%if %{with zts}
129%undefine with_mm
130%endif
131
212b9ffa
ER
132# milter requires ZTS
133%if %{with milter} && %{without zts}
134%undefine with_milter
135%endif
136
dc101b85 137%ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha
c0240cb1 138# ppc disabled (broken on th-ppc)
139%undefine with_interbase
140%endif
141
dc101b85 142%ifnarch %{ix86} %{x8664} x32
c0240cb1 143# unsupported, see sapi/cgi/fpm/fpm_atomic.h
144%undefine with_fpm
145%endif
146
147%if 0
148%if %{without apache1} && %{without apache2}
149ERROR: You need to select at least one Apache SAPI to build shared modules.
150%endif
151%endif
152
153# filter depends on pcre
154%if %{without pcre}
155%undefine with_filter
156%endif
157
4cb4b191 158%define rel 18
580d93e0 159%define orgname php
8d42644e 160%define ver_suffix 56
580d93e0 161%define php_suffix %{!?with_default_php:%{ver_suffix}}
c0240cb1 162Summary: PHP: Hypertext Preprocessor
163Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
164Summary(pl.UTF-8): Język skryptowy PHP
165Summary(pt_BR.UTF-8): A linguagem de script PHP
166Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
167Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
a3c07000 168Name: %{orgname}%{php_suffix}
74aa0568 169Version: 5.6.40
d0891a89 170Release: %{rel}
8eb7414f 171Epoch: 4
1117cb55
ER
172# All files licensed under PHP version 3.01, except
173# Zend is licensed under Zend
174# TSRM is licensed under BSD
175License: PHP 3.01 and Zend and BSD
c0240cb1 176Group: Libraries
44db6831 177Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.xz
74aa0568 178# Source0-md5: c7dde3afb16ce7b761abf2805125d372
a3c07000
ER
179Source2: %{orgname}-mod_%{orgname}.conf
180Source3: %{orgname}-cgi-fcgi.ini
181Source4: %{orgname}-apache.ini
182Source5: %{orgname}-cli.ini
a3c07000
ER
183Source10: %{orgname}-fpm.init
184Source11: %{orgname}-fpm.logrotate
185Source12: %{orgname}-branch.sh
c0240cb1 186Source13: dep-tests.sh
187Source14: skip-tests.sh
a3c07000
ER
188Patch0: %{orgname}-shared.patch
189Patch1: %{orgname}-pldlogo.patch
190Patch2: %{orgname}-mail.patch
191Patch3: %{orgname}-link-libs.patch
00459e59 192Patch4: php-bug-71475.patch
a3c07000
ER
193Patch5: %{orgname}-filter-shared.patch
194Patch6: %{orgname}-build_modules.patch
195Patch7: %{orgname}-sapi-ini-file.patch
212b9ffa 196Patch8: milter.patch
8b15d51c 197Patch9: libtool-tag.patch
a3c07000 198Patch10: %{orgname}-ini.patch
13f02a12 199Patch11: embed.patch
e52c962c 200Patch12: openssl.patch
a3c07000 201Patch14: %{orgname}-no_pear_install.patch
a3c07000
ER
202Patch17: %{orgname}-readline.patch
203Patch18: %{orgname}-nohttpd.patch
a3c07000
ER
204Patch21: %{orgname}-dba-link.patch
205Patch22: %{orgname}-both-apxs.patch
206Patch23: %{orgname}-builddir.patch
207Patch24: %{orgname}-zlib-for-getimagesize.patch
208Patch25: %{orgname}-stupidapache_version.patch
209Patch26: %{orgname}-pear.patch
210Patch27: %{orgname}-config-dir.patch
211Patch29: %{orgname}-fcgi-graceful.patch
212Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
a3c07000
ER
213Patch34: %{orgname}-libtool.patch
214Patch35: %{orgname}-tds.patch
215Patch36: %{orgname}-mysql-charsetphpini.patch
216Patch37: %{orgname}-mysqli-charsetphpini.patch
217Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
218Patch39: %{orgname}-use-prog_sendmail.patch
219Patch41: %{orgname}-fpm-config.patch
220Patch42: %{orgname}-fpm-shared.patch
221Patch43: %{orgname}-silent-session-cleanup.patch
222Patch44: %{orgname}-include_path.patch
223Patch45: %{orgname}-imap-annotations.patch
224Patch46: %{orgname}-imap-myrights.patch
c0240cb1 225Patch47: suhosin.patch
c0240cb1 226Patch50: extension-shared-optional-dep.patch
227Patch51: spl-shared.patch
228Patch52: pcre-shared.patch
229Patch53: fix-test-run.patch
c0240cb1 230Patch55: bug-52078-fileinode.patch
a3c07000
ER
231Patch59: %{orgname}-systzdata.patch
232Patch60: %{orgname}-oracle-instantclient.patch
c0240cb1 233Patch62: mcrypt-libs.patch
13f02a12 234Patch65: system-libzip.patch
89f3bdfa 235Patch66: php-db.patch
f141d13b 236Patch67: mysql-lib-ver-mismatch.patch
946a0956 237Patch68: CVE-2019-11043.patch
b604e307 238Patch69: fpm-conf-split.patch
882aa900 239Patch70: mysqlnd-ssl.patch
97b0b310 240Patch72: phar-hash-shared.patch
f2b22b7e 241Patch73: php-pdo-ssl.patch
f7ba0866 242Patch74: php-icu64.patch
eab2b2d9 243Patch75: icu69.patch
25b3b9cc 244Patch76: icu70.patch
6f59b7a7 245URL: https://www.php.net/
c0240cb1 246%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
247%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
9eb543e2 248BuildRequires: autoconf >= 2.59
c0240cb1 249BuildRequires: automake >= 1.4d
250BuildRequires: bison
788e733c 251BuildRequires: bzip2-devel >= 1.0.0
c0240cb1 252%{?with_curl:BuildRequires: curl-devel >= 7.12.0}
788e733c 253BuildRequires: cyrus-sasl-devel >= 2
c0240cb1 254BuildRequires: db-devel >= 4.0
255BuildRequires: elfutils-devel
13f02a12 256%{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
c0240cb1 257%{?with_kerberos5:BuildRequires: heimdal-devel}
3f5c4b2e 258%{?with_system_libzip:BuildRequires: libzip-devel >= 0.10.1-2}
81d9fe7d 259%{!?with_mysqlnd:BuildRequires: mysql-devel}
c0240cb1 260BuildRequires: pkgconfig
261BuildRequires: sed >= 4.0
006a7eb1 262%if %{with mssql} || %{with sybase_ct} || %{with pdo_dblib}
c0240cb1 263BuildRequires: freetds-devel >= 0.82
264%endif
7d68bd4f 265BuildRequires: freetype-devel >= 1:2.5.1
c0240cb1 266%if %{with system_gd}
73c5128c 267BuildRequires: gd-devel >= 2.1
c0240cb1 268%endif
269BuildRequires: gdbm-devel
788e733c 270BuildRequires: gmp-devel >= 4.1.2
c0240cb1 271%{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
9efb5102 272%{?with_intl:BuildRequires: libicu-devel >= 4.4}
c0240cb1 273BuildRequires: libjpeg-devel
274BuildRequires: libltdl-devel >= 1.4
788e733c 275BuildRequires: libmcrypt-devel >= 2.5.6
c0240cb1 276BuildRequires: libpng-devel >= 1.0.8
9d9bb2e8 277%{?with_intl:BuildRequires: libstdc++-devel}
d8c3b589 278%{?with_webp:BuildRequires: libvpx-devel}
36fd40c8 279BuildRequires: tokyocabinet-devel
c0240cb1 280%if "%{pld_release}" != "ac"
46a247ad 281BuildRequires: libtool >= 2:2.4.6
c0240cb1 282%else
283BuildRequires: libtool >= 1.4.3
284%endif
c0240cb1 285BuildRequires: libxml2-devel >= 1:2.7.6-4
286BuildRequires: libxslt-devel >= 1.1.0
287%{?with_mm:BuildRequires: mm-devel >= 1.3.0}
288%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
289%if %{with openssl} || %{with ldap}
290BuildRequires: openssl-devel >= 0.9.7d
291%endif
292%{?with_gcov:BuildRequires: lcov}
293%{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
294%{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
329b4394 295%{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
c0240cb1 296BuildRequires: pam-devel
297%{?with_pcre:BuildRequires: pcre-devel >= 8.10}
298BuildRequires: pkgconfig
299%{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
300%{?with_pgsql:BuildRequires: postgresql-devel}
301BuildRequires: readline-devel
302%{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
303BuildRequires: rpm >= 4.4.9-56
304BuildRequires: rpm-build >= 4.4.0
305BuildRequires: rpmbuild(macros) >= 1.566
e2bde909 306%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
9efb5102
ER
307BuildRequires: tar >= 1:1.22
308BuildRequires: xz
c0240cb1 309%if %{with sqlite3} || %{with pdo_sqlite}
310BuildRequires: sqlite3-devel >= 3.3.9
311%endif
312BuildRequires: t1lib-devel
313%{?with_tidy:BuildRequires: tidy-devel}
314%{?with_odbc:BuildRequires: unixODBC-devel}
315%{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
316BuildRequires: zlib-devel >= 1.0.9
317%if %{with apache1}
318BuildRequires: apache1-devel
319%endif
320%if %{with apache2}
321BuildRequires: apache-devel >= 2.0.52-2
322BuildRequires: apr-devel >= 1:1.0.0
323BuildRequires: apr-util-devel >= 1:1.0.0
324%endif
c0240cb1 325BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
326
cfb6f787
ER
327%define php_sysconfdir /etc/%{name}
328%define php_extensiondir %{_libdir}/%{name}
c0240cb1 329%define _sysconfdir %{php_sysconfdir}
330
331# must be in sync with source. extra check ensuring that it is so is done in %%build
8d42644e
ER
332%define php_api_version 20131106
333%define zend_module_api 20131226
334%define zend_extension_api 220131226
a6af2a14 335%define php_pdo_api_version 20080721
c0240cb1 336
13f02a12
ER
337# Extension versions
338%define bz2ver 1.0
339%define enchantver 1.1.0
2e0e7ed6 340%define fileinfover 1.0.5
13f02a12
ER
341%define hashver 1.0
342%define intlver 1.1.0
343%define jsonver 1.2.1
58fe9e27 344%define opcachever 7.0.6-dev
ece5522f 345%define pharver 2.0.2
9efb5102 346%define sqlite3ver 0.7-dev
a659fa18 347%define zipver 1.12.5
c42c0fb8 348%define phpdbgver 0.4.0
13f02a12 349
a6af2a14 350%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
a736dfa8 351%define php_debug %{!?with_debug:0}%{?with_debug:1}
c0240cb1 352
353%if %{with gcov}
354%undefine with_ccache
355%endif
356
329b4394 357%if %{with oci}
c0240cb1 358# ORACLE_HOME is required for oci8 ext to build
359%define _preserve_env %_preserve_env_base ORACLE_HOME
360%endif
361
362%description
363PHP is an HTML-embedded scripting language. PHP attempts to make it
364easy for developers to write dynamically generated web pages. PHP also
365offers built-in database integration for several commercial and
366non-commercial database management systems, so writing a
367database-enabled web page with PHP is fairly simple. The most common
368use of PHP coding is probably as a replacement for CGI scripts. The
369mod_php module enables the Apache web server to understand and process
370the embedded PHP language in web pages. This package contains PHP
371version %{version}.
372
373%description -l fr.UTF-8
374PHP est un langage de script embarque dans le HTM. PHP essaye de
375rendre simple aux developpeurs d'ecrire des pages web generees
376dynamiquement. PHP incorpore egalement une integration avec plusieurs
377systemes de gestion de bases de donnees commerciaux et
378non-connerciaux, qui rent facile la creation de pages web liees avec
379des bases de donnees. L'utilisation la plus commune de PHP est
380probablement en remplacement de scripts CGI. Le module mod_php permet
381au serveur web Apache de comprendre et de traiter le langage PHP
382integre dans des pages web. Ce package contient PHP version
383%{version}.
384
385%description -l pl.UTF-8
386PHP jest językiem skryptowym, którego polecenia umieszcza się w
387plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
388generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
389danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
390co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
391Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
392CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
393język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
394%{version}.
395
396%description -l pt_BR.UTF-8
397PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
398embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
399com algumas características únicas, específicas ao PHP. O objetivo da
400linguagem é permitir que desenvolvedores web escrevam páginas
401dinamicamente geradas de forma rápida.
402
403%description -l ru.UTF-8
404PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
405предлагает интерграцию с множеством СУБД, поэтому написание скриптов
406для работы с базами данных относительно просто. Наиболее популярное
407использование PHP - замена для CGI скриптов.
408
409%description -l uk.UTF-8
410PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
411пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
412роботи з базами даних є доволі простим. Найбільш популярне
413використання PHP - заміна для CGI скриптів.
414
aa424f73 415%package -n apache1-mod_%{name}
c0240cb1 416Summary: PHP DSO module for Apache 1.3.x
417Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
418Group: Development/Languages/PHP
c0240cb1 419Requires: %{name}-common = %{epoch}:%{version}-%{release}
420Requires: apache1(EAPI) >= 1.3.33-2
421Requires: apache1-mod_mime
422Provides: webserver(php) = %{version}
423Obsoletes: apache-mod_php < 1:4.1.1
d6634248 424Obsoletes: apache1-mod_php < 4:5.3.28-7
c0240cb1 425Obsoletes: phpfi
426
aa424f73 427%description -n apache1-mod_%{name}
c0240cb1 428PHP as DSO module for Apache 1.3.x.
429
aa424f73 430%description -n apache1-mod_%{name} -l pl.UTF-8
c0240cb1 431PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
432
aa424f73 433%package -n apache-mod_%{name}
c2fac5e2
AM
434Summary: PHP support for Apache 2.x
435Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
c0240cb1 436Group: Development/Languages/PHP
c2fac5e2 437Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
c0240cb1 438Requires: %{name}-common = %{epoch}:%{version}-%{release}
c0240cb1 439Provides: webserver(php) = %{version}
d6634248 440Obsoletes: apache-mod_php < 4:5.3.28-7
c0240cb1 441Obsoletes: phpfi
442
aa424f73 443%description -n apache-mod_%{name}
c2fac5e2 444PHP support for Apache 2.x.
c0240cb1 445
aa424f73 446%description -n apache-mod_%{name} -l pl.UTF-8
c2fac5e2
AM
447Wsparcie PHP dla Apache 2.x.
448
449%package -n apache-mod_%{name}-core
450Summary: PHP DSO module for Apache 2.x
451Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
452Group: Development/Languages/PHP
453Requires: %{name}-common = %{epoch}:%{version}-%{release}
454Requires: apache(modules-api) = %{apache_modules_api}
455Requires: apache-mod_mime
456
457%description -n apache-mod_%{name}-core
458PHP as DSO module for Apache 2.x.
459
460%description -n apache-mod_%{name}-core -l pl.UTF-8
c0240cb1 461PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
462
463%package litespeed
464Summary: PHP for litespeed HTTP server
465Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
466Group: Development/Languages/PHP
467Requires: %{name}-common = %{epoch}:%{version}-%{release}
2ca856d0 468Provides: php(litespeed)
c0240cb1 469Provides: webserver(php) = %{version}
d6634248 470Obsoletes: php-litespeed < 4:5.3.28-7
c0240cb1 471
472%description litespeed
473PHP for litespeed HTTP server.
474
475%description litespeed -l pl.UTF-8
476PHP dla serwera HTTP litespeed.
477
478%package cgi
479Summary: PHP as CGI/FastCGI program
480Summary(pl.UTF-8): PHP jako program CGI/FastCGI
481Group: Development/Languages/PHP
482Requires: %{name}-common = %{epoch}:%{version}-%{release}
483Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
484Provides: php(cgi)
485Provides: php(fcgi)
ecbcdf28 486Provides: webserver(php) = %{version}
d6634248 487Obsoletes: php-cgi < 4:5.3.28-7
c0240cb1 488Obsoletes: php-fcgi < 4:5.3.0
489
490%description cgi
491PHP as CGI or FastCGI program.
492
493%description cgi -l pl.UTF-8
494PHP jako program CGI lub FastCGI.
495
496%package cli
497Summary: PHP as CLI interpreter
498Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
499Group: Development/Languages/PHP
500Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 501Obsoletes: php-cli < 4:5.3.28-7
c0240cb1 502
503%description cli
504PHP as CLI interpreter.
505
506%description cli -l pl.UTF-8
507PHP jako interpreter działający z linii poleceń.
508
13f02a12
ER
509%package embedded
510Summary: PHP library for embedding in applications
0bbc8abe 511Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
13f02a12
ER
512Group: Libraries
513Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 514Obsoletes: php-embedded < 4:5.3.28-7
13f02a12
ER
515
516%description embedded
517The php-embedded package contains a library which can be embedded into
518applications to provide PHP scripting language support.
519
0bbc8abe 520%description embedded -l pl.UTF-8
cfb6f787 521Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
0bbc8abe
JB
522celu obsługi PHP jako języka skryptowego.
523
c0240cb1 524%package program
525Summary: /usr/bin/php symlink
526Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
527Group: Development/Languages/PHP
528Requires: %{name}-cli = %{epoch}:%{version}-%{release}
e54798c7 529Obsoletes: php-program < 4:5.3.28-7
6f59b7a7
JB
530Obsoletes: php4-program < 3:5
531Obsoletes: php52-program < 4:5.3
532Obsoletes: php53-program < 4:5.4
533Obsoletes: php54-program < 4:5.5
534Obsoletes: php55-program < 4:5.6
535Obsoletes: php70-program < 4:7.1
536Obsoletes: php71-program < 4:7.2
537Obsoletes: php72-program < 4:7.3
538Obsoletes: php73-program < 4:7.4
539Obsoletes: php74-program < 4:8
540Obsoletes: php80-program < 4:8.1
541Obsoletes: php81-program < 4:8.2
38cd70e2 542Obsoletes: php82-program < 4:8.3
c0240cb1 543
544%description program
545Package providing /usr/bin/php symlink to PHP CLI.
546
547%description program -l pl.UTF-8
548Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
549
550%package fpm
551Summary: PHP FastCGI Process Manager
552Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
553Group: Development/Languages/PHP
788e733c 554URL: http://php-fpm.org/
c0240cb1 555Requires(post,preun): /sbin/chkconfig
556Requires(postun): /usr/sbin/userdel
557Requires(pre): /bin/id
558Requires(pre): /usr/sbin/useradd
559Requires: %{name}-common = %{epoch}:%{version}-%{release}
7a59d9eb 560%{?with_alternatives:Requires: alternatives}
60dd4ed4 561Requires: php-dirs >= 1.4-2
c0240cb1 562Requires: rc-scripts
354a4dcd 563Provides: php(fcgi)
2ca856d0 564Provides: php(fpm)
c0240cb1 565Provides: user(http)
566Provides: webserver(php) = %{version}
d6634248 567Obsoletes: php-fpm < 4:5.3.28-7
4c94999c
TP
568%if "%{pld_release}" != "ac"
569Conflicts: logrotate < 3.8.0
570%endif
c0240cb1 571
572%description fpm
573PHP FastCGI Process Manager.
574
575%description fpm -l pl.UTF-8
576PHP FastCGI Process Manager - zarządca procesów FastCGI.
577
8d42644e
ER
578%package phpdbg
579Summary: The debugging platform for PHP 5.4+
7a59d9eb 580Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
8d42644e
ER
581Group: Development/Languages/PHP
582Requires: %{name}-common = %{epoch}:%{version}-%{release}
583Provides: php(phpdbg) = %{phpdbgver}
584
585%description phpdbg
586phpdbg - The interactive PHP debugger.
587
588Implemented as a SAPI module, phpdbg can excert complete control over
589the environment without impacting the functionality or performance of
590your code.
591
592phpdbg aims to be a lightweight, powerful, easy to use debugging
593platform for PHP 5.4+
594
7a59d9eb
JB
595%description phpdbg -l pl.UTF-8
596phpdbg - interaktywny debugger dla PHP.
597
598Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
599nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
600
601Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
602platforma diagnostyczna dla PHP 5.4+.
603
c0240cb1 604%package common
605Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
606Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
607Summary(ru.UTF-8): Разделяемые библиотеки для PHP
608Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
609Group: Libraries
610Requires(post): sed >= 4.0
611# because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
612Requires: glibc >= 6:2.3.5
3f8f8051 613Requires: php-dirs >= 1.4
c0240cb1 614Requires: rpm-whiteout >= 1.28
615Requires: tzdata
d87d42cb
ER
616Provides: %{name}(debug) = %{php_debug}
617Provides: %{name}(modules_api) = %{php_api_version}
a6af2a14 618Provides: %{name}(thread-safety) = %{_zend_zts}
d87d42cb
ER
619Provides: %{name}(zend_extension_api) = %{zend_extension_api}
620Provides: %{name}(zend_module_api) = %{zend_module_api}
93e7acf8 621Provides: %{name}-core
d87d42cb 622Provides: %{name}-date
4b4c3c50 623%{?with_ereg:Provides: %{name}-ereg}
d87d42cb
ER
624Provides: %{name}-reflection
625Provides: %{name}-standard
93e7acf8 626Provides: php(core) = %{version}
c0240cb1 627Provides: php(date)
4b4c3c50 628%{?with_ereg:Provides: php(ereg)}
c0240cb1 629Provides: php(libxml)
c0240cb1 630Provides: php(reflection)
631Provides: php(standard)
19367d1b 632%{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
c0240cb1 633%{?with_pcre:%requires_ge_to pcre pcre-devel}
9f2b265f 634Suggests: browscap
d6634248 635Obsoletes: php-common < 4:5.3.28-7
80d82760
JB
636# withdrawn modules
637Obsoletes: php-filepro < 4:5.2.0
638Obsoletes: php-hwapi < 4:5.2.0
639Obsoletes: php-hyperwave < 3:5.0.0
640Obsoletes: php-java < 3:5.0.0
641Obsoletes: php-mcal < 3:5.0.0
c0240cb1 642Obsoletes: php-pecl-domxml
80d82760 643Obsoletes: php-qtdom < 3:5.0.0
c0240cb1 644Conflicts: php4-common < 3:4.4.4-8
e2d9e36f 645Conflicts: php55-common < 4:5.5.10-4
c0240cb1 646Conflicts: rpm < 4.4.2-0.2
647
648%description common
649Common files needed by both Apache modules and CGI/CLI SAPIs.
650
651%description common -l pl.UTF-8
652Wspólne pliki dla modułu Apache'a i programu CGI.
653
654%description common -l ru.UTF-8
655Этот пакет содержит общие файлы для разных вариантов реализации PHP
656(самодостаточной и в качестве модуля Apache).
657
658%description common -l uk.UTF-8
659Цей пакет містить спільні файли для різних варіантів реалізації PHP
660(самодостатньої та в якості модуля Apache).
661
662%package devel
663Summary: Files for PHP modules development
664Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
665Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
666Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
667Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
668Group: Development/Languages/PHP
669Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 670Requires: autoconf >= 2.13
c0240cb1 671Requires: automake
672%if "%{pld_release}" != "ac"
46a247ad 673Requires: libtool >= 2:2.4.6
c0240cb1 674%else
675Requires: libtool
676%endif
677%{?with_pcre:Requires: pcre-devel >= 8.10}
678Requires: shtool
e2ce7e4a 679Provides: php-devel = %{epoch}:%{version}-%{release}
cfb6f787 680Obsoletes: php-devel
6f59b7a7
JB
681Obsoletes: php-pear-devel < 3:4.3.0-1
682Obsoletes: php4-devel < 3:5
683Obsoletes: php52-devel < 4:5.3
684Obsoletes: php53-devel < 4:5.4
685Obsoletes: php54-devel < 4:5.5
686Obsoletes: php55-devel < 4:5.6
687Obsoletes: php70-devel < 4:7.1
688Obsoletes: php71-devel < 4:7.2
689Obsoletes: php72-devel < 4:7.3
690Obsoletes: php73-devel < 4:7.4
691Obsoletes: php74-devel < 4:8
692Obsoletes: php80-devel < 4:8.1
693Obsoletes: php81-devel < 4:8.2
38cd70e2 694Obsoletes: php82-devel < 4:8.3
c0240cb1 695
696%description devel
697The php-devel package lets you compile dynamic extensions to PHP.
698Included here is the source for the PHP extensions. Instead of
699recompiling the whole PHP binary to add support for, say, oracle,
700install this package and use the new self-contained extensions
701support. For more information, read the file
702README.SELF-CONTAINED-EXTENSIONS.
703
704%description devel -l pl.UTF-8
705Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
706rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
707tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
708samodzielnych rozszerzeniach można znaleźć w pliku
709README.SELF-CONTAINED-EXTENSIONS.
710
711%description devel -l pt_BR.UTF-8
712Este pacote contém arquivos usados no desenvolvimento de programas ou
713módulos PHP.
714
715%description devel -l ru.UTF-8
716Пакет php-devel дает возможность компилировать динамические расширения
717PHP. Пакет включает исходный код этих расширений. Вместо повторной
718компиляции бинарного файла PHP для добавления, например, поддержки
719oracle, установите этот пакет для компилирования отдельных расширений.
720Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
721
722%description devel -l uk.UTF-8
723Пакет php-devel дає можливість компілювати динамічні розширення PHP.
724До пакету включено вихідний код для розширень. Замість повторної
725компіляції бінарного файлу PHP для додання, наприклад, підтримки
726oracle, встановіть цей пакет для компіляції окремих розширень.
727Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
728
729%package bcmath
730Summary: bcmath extension module for PHP
731Summary(pl.UTF-8): Moduł bcmath dla PHP
732Group: Libraries
788e733c 733URL: http://php.net/manual/en/book.bc.php
c0240cb1 734Requires: %{name}-common = %{epoch}:%{version}-%{release}
735Provides: php(bcmath)
d6634248 736Obsoletes: php-bcmath < 4:5.3.28-7
c0240cb1 737
738%description bcmath
739This is a dynamic shared object (DSO) for PHP that will add bc style
740precision math functions support.
741
742%description bcmath -l pl.UTF-8
743Moduł PHP umożliwiający korzystanie z dokładnych funkcji
744matematycznych takich jak w programie bc.
745
746%package bz2
747Summary: Bzip2 extension module for PHP
748Summary(pl.UTF-8): Moduł bzip2 dla PHP
749Group: Libraries
788e733c 750URL: http://php.net/manual/en/book.bzip2.php
c0240cb1 751Requires: %{name}-common = %{epoch}:%{version}-%{release}
788e733c 752Requires: bzip2-libs >= 1.0.0
13f02a12 753Provides: php(bz2) = %{bz2ver}
c0240cb1 754Provides: php(bzip2)
755Provides: php-bzip2 = %{epoch}:%{version}-%{release}
d6634248 756Obsoletes: php-bz2 < 4:5.3.28-7
c0240cb1 757Obsoletes: php-bzip2 < 4:5.2.14-3
13f02a12 758Obsoletes: php-pecl-bz2 < %{bz2ver}
c0240cb1 759
760%description bz2
761This is a dynamic shared object (DSO) for PHP that will add bzip2
762compression support to PHP.
763
764%description bz2 -l pl.UTF-8
765Moduł PHP umożliwiający używanie kompresji bzip2.
766
767%package calendar
768Summary: Calendar extension module for PHP
769Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
770Group: Libraries
788e733c 771URL: http://php.net/manual/en/book.calendar.php
c0240cb1 772Requires: %{name}-common = %{epoch}:%{version}-%{release}
773Provides: php(calendar)
d6634248 774Obsoletes: php-calendar < 4:5.3.28-7
c0240cb1 775
776%description calendar
777This is a dynamic shared object (DSO) for PHP that will add calendar
778support.
779
780%description calendar -l pl.UTF-8
781Moduł PHP dodający wsparcie dla kalendarza.
782
783%package ctype
784Summary: ctype extension module for PHP
785Summary(pl.UTF-8): Moduł ctype dla PHP
786Group: Libraries
788e733c 787URL: http://php.net/manual/en/book.ctype.php
c0240cb1 788Requires: %{name}-common = %{epoch}:%{version}-%{release}
789Provides: php(ctype)
d6634248 790Obsoletes: php-ctype < 4:5.3.28-7
c0240cb1 791
792%description ctype
793This is a dynamic shared object (DSO) for PHP that will add ctype
794support.
795
796%description ctype -l pl.UTF-8
797Moduł PHP umożliwiający korzystanie z funkcji ctype.
798
799%package curl
800Summary: curl extension module for PHP
801Summary(pl.UTF-8): Moduł curl dla PHP
802Group: Libraries
788e733c 803URL: http://php.net/manual/en/book.curl.php
c0240cb1 804Requires: %{name}-common = %{epoch}:%{version}-%{release}
788e733c 805Requires: curl-libs >= 7.12.0
c0240cb1 806Provides: php(curl)
d6634248 807Obsoletes: php-curl < 4:5.3.28-7
c0240cb1 808
809%description curl
810This is a dynamic shared object (DSO) for PHP that will add curl
811support.
812
813%description curl -l pl.UTF-8
814Moduł PHP umożliwiający korzystanie z biblioteki curl.
815
816%package dba
817Summary: DBA extension module for PHP
818Summary(pl.UTF-8): Moduł DBA dla PHP
819Group: Libraries
788e733c 820URL: http://php.net/manual/en/book.dba.php
c0240cb1 821Requires: %{name}-common = %{epoch}:%{version}-%{release}
822Provides: php(dba)
d6634248 823Obsoletes: php-dba < 4:5.3.28-7
80d82760
JB
824# withdrawn module of similar functionality but different API
825Obsoletes: php-db < 3:5.0.0
c0240cb1 826
827%description dba
828This is a dynamic shared object (DSO) for PHP that will add flat-file
829databases (DBA) support.
830
831%description dba -l pl.UTF-8
832Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
833(DBA).
834
835%package dom
836Summary: DOM extension module for PHP
837Summary(pl.UTF-8): Moduł DOM dla PHP
838Group: Libraries
788e733c 839URL: http://php.net/manual/en/book.dom.php
c0240cb1 840Requires: %{name}-common = %{epoch}:%{version}-%{release}
841Provides: php(dom)
842# it has some compatibility functions
d87d42cb 843Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
c0240cb1 844Provides: php(domxml)
d6634248 845Obsoletes: php-dom < 4:5.3.28-7
c0240cb1 846Obsoletes: php-domxml <= 3:4.3.8-1
847
848%description dom
849This is a dynamic shared object (DSO) for PHP that will add new DOM
850support.
851
852%description dom -l pl.UTF-8
853Moduł PHP dodający nową obsługę DOM.
854
13f02a12
ER
855%package enchant
856Summary: libenchant binder
857Summary(pl.UTF-8): dowiązania biblioteki libenchant
858Group: Libraries
788e733c 859URL: http://php.net/manual/en/book.enchant.php
13f02a12
ER
860Requires: %{name}-common = %{epoch}:%{version}-%{release}
861Provides: php(enchant) = %{enchantver}
d6634248 862Obsoletes: php-enchant < 4:5.3.28-7
13f02a12
ER
863Obsoletes: php-pecl-enchant < %{enchantver}
864
865%description enchant
866Enchant is a binder for libenchant. Libenchant provides a common API
867for many spell libraries:
868- aspell/pspell (intended to replace ispell)
869- hspell (hebrew)
870- ispell
871- myspell (OpenOffice.org project, mozilla)
872- uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
873 plugin system allows to add custom spell support.
874
875%description enchant -l pl.UTF-8
876Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
877ujednolicone API dla wielu narzędzi sprawdzających pisownię:
878- aspell/pspell (w zamierzeniu ma zastąpić ispell)
879- hspell (hebrajski)
880- ispell
881- myspell (projekt OpenOffice.org, mozilla)
882- uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
883 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
884
c0240cb1 885%package exif
886Summary: exif extension module for PHP
887Summary(pl.UTF-8): Moduł exif dla PHP
888Group: Libraries
788e733c 889URL: http://php.net/manual/en/book.exif.php
c0240cb1 890Requires: %{name}-common = %{epoch}:%{version}-%{release}
891Provides: php(exif)
d6634248 892Obsoletes: php-exif < 4:5.3.28-7
c0240cb1 893
894%description exif
895This is a dynamic shared object (DSO) for PHP that will add EXIF tags
896support in image files.
897
898%description exif -l pl.UTF-8
899Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
900
901%package fileinfo
902Summary: libmagic bindings
903Summary(pl.UTF-8): Wiązania do libmagic
904Group: Libraries
788e733c 905URL: http://php.net/manual/en/book.fileinfo.php
c0240cb1 906Requires: %{name}-common = %{epoch}:%{version}-%{release}
907Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
13f02a12 908Provides: php(fileinfo) = %{fileinfover}
d6634248 909Obsoletes: php-fileinfo < 4:5.3.28-7
c0240cb1 910Obsoletes: php-mime_magic
13f02a12 911Obsoletes: php-pecl-fileinfo < %{fileinfover}
c0240cb1 912
913%description fileinfo
914This extension allows retrieval of information regarding vast majority
915of file. This information may include dimensions, quality, length
916etc...
917
918Additionally it can also be used to retrieve the MIME type for a
919particular file and for text files proper language encoding.
920
921%description fileinfo -l pl.UTF-8
922To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
923plików. Informacje mogą zawierać wymiary, jakość, długość itp.
924
925Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
926pliku oraz kodowania plików tekstowych.
927
928%package filter
929Summary: Extension for safely dealing with input parameters
930Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
931Group: Libraries
788e733c 932URL: http://php.net/manual/en/book.filter.php
c0240cb1 933Requires: %{name}-common = %{epoch}:%{version}-%{release}
934Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
935Provides: php(filter)
d6634248 936Obsoletes: php-filter < 4:5.3.28-7
6f59b7a7 937Obsoletes: php-pecl-filter < 0.12
c0240cb1 938
939%description filter
940We all know that you should always check input variables, but PHP does
941not offer really good functionality for doing this in a safe way. The
942Input Filter extension is meant to address this issue by implementing
943a set of filters and mechanisms that users can use to safely access
944their input data.
945
946%description filter -l pl.UTF-8
947Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
948oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
949bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
950zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
951mogą bezpiecznie używać do dostępu do danych.
952
953%package ftp
954Summary: FTP extension module for PHP
955Summary(pl.UTF-8): Moduł FTP dla PHP
956Group: Libraries
788e733c 957URL: http://php.net/manual/en/book.ftp.php
c0240cb1 958Requires: %{name}-common = %{epoch}:%{version}-%{release}
959Provides: php(ftp)
d6634248 960Obsoletes: php-ftp < 4:5.3.28-7
c0240cb1 961
962%description ftp
963This is a dynamic shared object (DSO) for PHP that will add FTP
964support.
965
966%description ftp -l pl.UTF-8
967Moduł PHP dodający obsługę protokołu FTP.
968
969%package gd
970Summary: GD extension module for PHP
971Summary(pl.UTF-8): Moduł GD dla PHP
972Group: Libraries
788e733c 973URL: http://php.net/manual/en/book.image.php
c0240cb1 974Requires: %{name}-common = %{epoch}:%{version}-%{release}
975%if %{with system_gd}
0282b86e 976Requires: gd >= 2.1
c0240cb1 977Requires: gd(gif)
c0240cb1 978%endif
979Provides: php(gd)
d6634248 980Obsoletes: php-gd < 4:5.3.28-7
c0240cb1 981
982%description gd
983This is a dynamic shared object (DSO) for PHP that will add GD
984support, allowing you to create and manipulate images with PHP.
985
986%description gd -l pl.UTF-8
987Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
988tworzenie i obróbkę obrazków.
989
990%package gettext
991Summary: gettext extension module for PHP
992Summary(pl.UTF-8): Moduł gettext dla PHP
993Group: Libraries
788e733c 994URL: http://php.net/manual/en/book.gettext.php
c0240cb1 995Requires: %{name}-common = %{epoch}:%{version}-%{release}
996Provides: php(gettext)
d6634248 997Obsoletes: php-gettext < 4:5.3.28-7
c0240cb1 998
999%description gettext
1000This is a dynamic shared object (DSO) for PHP that will add gettext
1001support.
1002
1003%description gettext -l pl.UTF-8
1004Moduł PHP dodający obsługę lokalizacji przez gettext.
1005
1006%package gmp
1007Summary: gmp extension module for PHP
1008Summary(pl.UTF-8): Moduł gmp dla PHP
1009Group: Libraries
788e733c 1010URL: http://php.net/manual/en/book.gmp.php
c0240cb1 1011Requires: %{name}-common = %{epoch}:%{version}-%{release}
788e733c 1012Requires: gmp >= 4.1.2
c0240cb1 1013Provides: php(gmp)
d6634248 1014Obsoletes: php-gmp < 4:5.3.28-7
c0240cb1 1015
1016%description gmp
1017This is a dynamic shared object (DSO) for PHP that will add arbitrary
1018length number support with GNU MP library.
1019
1020%description gmp -l pl.UTF-8
1021Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
1022liczbach o dowolnej długości.
1023
1024%package hash
1025Summary: HASH Message Digest Framework
1026Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
1027Group: Libraries
788e733c 1028URL: http://php.net/manual/en/book.gmp.php
c0240cb1 1029Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 1030Provides: php(hash) = %{hashver}
c0240cb1 1031%if %{with mhash}
1032Provides: php(mhash)
1033Provides: php-mhash = %{epoch}:%{version}-%{release}
1034Obsoletes: php-mhash < 4:5.3.0
1035%endif
d6634248 1036Obsoletes: php-hash < 4:5.3.28-7
13f02a12 1037Obsoletes: php-pecl-hash < %{hashver}
c0240cb1 1038
1039%description hash
1040Native implementations of common message digest algorithms using a
1041generic factory method.
1042
1043%description hash -l pl.UTF-8
1044Natywne implementacje popularnych algorytmów obliczania skrótów
1045wiadomości przy użyciu wspólnego interfejsu.
1046
1047%package iconv
1048Summary: iconv extension module for PHP
1049Summary(pl.UTF-8): Moduł iconv dla PHP
1050Group: Libraries
788e733c 1051URL: http://php.net/manual/en/book.iconv.php
c0240cb1 1052Requires: %{_libdir}/gconv
1053Requires: %{name}-common = %{epoch}:%{version}-%{release}
1054Requires: iconv
1055Provides: php(iconv)
d6634248 1056Obsoletes: php-iconv < 4:5.3.28-7
c0240cb1 1057
1058%description iconv
1059This is a dynamic shared object (DSO) for PHP that will add iconv
1060support.
1061
1062%description iconv -l pl.UTF-8
1063Moduł PHP dodający obsługę iconv.
1064
1065%package imap
1066Summary: IMAP extension module for PHP
1067Summary(pl.UTF-8): Moduł IMAP dla PHP
1068Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
1069Group: Libraries
788e733c 1070URL: http://php.net/manual/en/book.imap.php
c0240cb1 1071Requires: %{name}-common = %{epoch}:%{version}-%{release}
1072Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1073Requires: imap-lib >= 1:2007e-2
1074Provides: php(imap)
d6634248 1075Obsoletes: php-imap < 4:5.3.28-7
c0240cb1 1076
1077%description imap
1078This is a dynamic shared object (DSO) for PHP that will add IMAP
1079support.
1080
1081%description imap -l pl.UTF-8
1082Moduł PHP dodający obsługę skrzynek IMAP.
1083
1084%description imap -l pt_BR.UTF-8
1085Um módulo para aplicações PHP que usam IMAP.
1086
1087%package interbase
1088Summary: InterBase/Firebird database module for PHP
1089Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
1090Group: Libraries
788e733c 1091URL: http://php.net/manual/en/book.ibase.php
6cec851c
ER
1092%if %{with interbase_inst}
1093%{?requires_php_extension}
1094%else
c0240cb1 1095Requires: %{name}-common = %{epoch}:%{version}-%{release}
6cec851c 1096%endif
c0240cb1 1097Provides: php(interbase)
d6634248 1098Obsoletes: php-interbase < 4:5.3.28-7
c0240cb1 1099
1100%description interbase
1101This is a dynamic shared object (DSO) for PHP that will add InterBase
1102and Firebird database support.
1103
1104%description interbase -l pl.UTF-8
1105Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
1106
1107%package intl
1108Summary: Internationalization extension (ICU wrapper)
1109Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
1110Group: Libraries
788e733c 1111URL: http://php.net/intl
c0240cb1 1112Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 1113Provides: php(intl) = %{intlver}
d6634248 1114Obsoletes: php-intl < 4:5.3.28-7
13f02a12 1115Obsoletes: php-pecl-intl < %{intlver}
c0240cb1 1116
1117%description intl
1118Internationalization extension (further is referred as Intl) is a
1119wrapper for ICU library, enabling PHP programmers to perform
1120UCA-conformant collation and date/time/number/currency formatting in
1121their scripts.
1122
1123%description intl -l pl.UTF-8
1124Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1125interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1126wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1127daty/czasu/walut.
1128
1129%package json
1130Summary: PHP C extension for JSON serialization
1131Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
1132Group: Libraries
788e733c 1133URL: http://php.net/manual/en/book.json.php
c0240cb1 1134Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 1135Provides: php(json) = %{jsonver}
d6634248 1136Obsoletes: php-json < 4:5.3.28-7
13f02a12 1137Obsoletes: php-pecl-json < %{jsonver}
c0240cb1 1138
1139%description json
1140php-json is an extremely fast PHP C extension for JSON (JavaScript
1141Object Notation) serialisation.
1142
1143%description json -l pl.UTF-8
1144php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1145(JavaScript Object Notation).
1146
1147%package ldap
1148Summary: LDAP extension module for PHP
1149Summary(pl.UTF-8): Moduł LDAP dla PHP
1150Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1151Group: Libraries
788e733c 1152URL: http://php.net/manual/en/book.ldap.php
c0240cb1 1153Requires: %{name}-common = %{epoch}:%{version}-%{release}
1154Provides: php(ldap)
d6634248 1155Obsoletes: php-ldap < 4:5.3.28-7
c0240cb1 1156
1157%description ldap
1158This is a dynamic shared object (DSO) for PHP that will add LDAP
1159support.
1160
1161%description ldap -l pl.UTF-8
1162Moduł PHP dodający obsługę LDAP.
1163
1164%description ldap -l pt_BR.UTF-8
1165Um módulo para aplicações PHP que usam LDAP.
1166
1167%package mbstring
1168Summary: mbstring extension module for PHP
1169Summary(pl.UTF-8): Moduł mbstring dla PHP
1170Group: Libraries
788e733c 1171URL: http://php.net/manual/en/book.mbstring.php
c0240cb1 1172Requires: %{name}-common = %{epoch}:%{version}-%{release}
1173Provides: php(mbstring)
d6634248 1174Obsoletes: php-mbstring < 4:5.3.28-7
c0240cb1 1175
1176%description mbstring
1177This is a dynamic shared object (DSO) for PHP that will add multibyte
1178string support.
1179
1180%description mbstring -l pl.UTF-8
1181Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1182
1183%package mcrypt
1184Summary: mcrypt extension module for PHP
1185Summary(pl.UTF-8): Moduł mcrypt dla PHP
1186Group: Libraries
788e733c 1187URL: http://php.net/manual/en/book.mcrypt.php
c0240cb1 1188Requires: %{name}-common = %{epoch}:%{version}-%{release}
788e733c 1189Requires: libmcrypt >= 2.5.6
c0240cb1 1190Provides: php(mcrypt)
d6634248 1191Obsoletes: php-mcrypt < 4:5.3.28-7
c0240cb1 1192
1193%description mcrypt
1194This is a dynamic shared object (DSO) for PHP that will add mcrypt
1195support.
1196
1197%description mcrypt -l pl.UTF-8
1198Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
1199
1200%package mssql
1201Summary: MS SQL extension module for PHP
1202Summary(pl.UTF-8): Moduł MS SQL dla PHP
1203Group: Libraries
1204URL: http://www.php.net/manual/en/book.mssql.php
1205Requires: %{name}-common = %{epoch}:%{version}-%{release}
1206Provides: php(mssql)
d6634248 1207Obsoletes: php-mssql < 4:5.3.28-7
c0240cb1 1208
1209%description mssql
1210This is a dynamic shared object (DSO) for PHP that will add MS SQL
1211databases support through FreeTDS library.
1212
1213%description mssql -l pl.UTF-8
1214Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1215FreeTDS.
1216
1217%package mysql
1218Summary: MySQL database module for PHP
1219Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1220Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1221Group: Libraries
1222URL: http://www.php.net/manual/en/book.mysql.php
1223Requires: %{name}-common = %{epoch}:%{version}-%{release}
1224%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1225Provides: php(mysql)
d6634248 1226Obsoletes: php-mysql < 4:5.3.28-7
c0240cb1 1227
1228%description mysql
1229This is a dynamic shared object (DSO) for PHP that will add MySQL
1230database support.
1231
1232%description mysql -l pl.UTF-8
1233Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1234
1235%description mysql -l pt_BR.UTF-8
1236Um módulo para aplicações PHP que usam bancos de dados MySQL.
1237
1238%package mysqli
1239Summary: MySQLi module for PHP
1240Summary(pl.UTF-8): Moduł MySQLi dla PHP
1241Group: Libraries
788e733c 1242URL: http://php.net/manual/en/book.mysqli.php
c0240cb1 1243Requires: %{name}-common = %{epoch}:%{version}-%{release}
1244%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1245Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1246Provides: php(mysqli)
d6634248 1247Obsoletes: php-mysqli < 4:5.3.28-7
c0240cb1 1248
1249%description mysqli
1250This is a dynamic shared object (DSO) for PHP that will add MySQLi
1251(Improved MySQL) support. The difference between it and mysql module
1252is that it provides access to functionality of MySQL 4.1 and above.
1253
1254%description mysqli -l pl.UTF-8
1255Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1256Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1257MySQL w wersji 4.1 i nowszych.
1258
1259%package mysqlnd
1260Summary: MySQL Native Client Driver for PHP
1261Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1262Group: Libraries
788e733c 1263URL: http://php.net/manual/en/book.mysqlnd.php
c0240cb1 1264Requires: %{name}-common = %{epoch}:%{version}-%{release}
1265Provides: php(mysqlnd)
d6634248 1266Obsoletes: php-mysqlnd < 4:5.3.28-7
c0240cb1 1267
1268%description mysqlnd
1269MySQL Native Driver is a replacement for the MySQL Client Library
1270(libmysql).
1271
1272Because MySQL Native Driver is written as a PHP extension, it is
1273tightly coupled to the workings of PHP. This leads to gains in
1274efficiency, especially when it comes to memory usage, as the driver
1275uses the PHP memory management system. It also supports the PHP memory
1276limit. Using MySQL Native Driver leads to comparable or better
1277performance than using MySQL Client Library, it always ensures the
1278most efficient use of memory. One example of the memory efficiency is
1279the fact that when using the MySQL Client Library, each row is stored
1280in memory twice, whereas with the MySQL Native Driver each row is only
1281stored once in memory.
1282
1283%description mysqlnd -l pl.UTF-8
1284MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1285klienckiej MySQL (libmysql).
1286
1287Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1288ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1289jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1290system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1291z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1292biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1293Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1294każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1295tym sterowniku - tylko raz.
1296
1297%package oci8
1298Summary: Oracle 8+ database module for PHP
1299Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1300Group: Libraries
788e733c 1301URL: http://php.net/manual/en/book.oci8.php
6cec851c 1302%{?requires_php_extension}
c0240cb1 1303Provides: php(oci8)
d6634248 1304Obsoletes: php-oci8 < 4:5.3.28-7
80d82760
JB
1305# withdrawn module of similar functionality but different API
1306Obsoletes: php-oracle < 4:5.1.0
c0240cb1 1307
1308%description oci8
1309This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
13108, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1311
1312%description oci8 -l pl.UTF-8
1313Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1314poprzez interfejs Oracle8 Call-Interface (OCI8).
1315
1316%package odbc
1317Summary: ODBC extension module for PHP
1318Summary(pl.UTF-8): Moduł ODBC dla PHP
1319Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1320Group: Libraries
788e733c 1321URL: http://php.net/manual/en/book.uodbc.php
c0240cb1 1322Requires: %{name}-common = %{epoch}:%{version}-%{release}
1323Requires: unixODBC >= 2.1.1-3
1324Provides: php(odbc)
d6634248 1325Obsoletes: php-odbc < 4:5.3.28-7
c0240cb1 1326
1327%description odbc
1328This is a dynamic shared object (DSO) for PHP that will add ODBC
1329support.
1330
1331%description odbc -l pl.UTF-8
1332Moduł PHP ze wsparciem dla ODBC.
1333
1334%description odbc -l pt_BR.UTF-8
1335Um módulo para aplicações PHP que usam ODBC.
1336
8328535b
ER
1337%package opcache
1338Summary: Zend Optimizer+ - PHP code optimizer
43df1739 1339Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
8328535b
ER
1340Group: Libraries
1341URL: https://wiki.php.net/rfc/optimizerplus
1342Requires: %{name}-common = %{epoch}:%{version}-%{release}
1343Provides: php(opcache) = %{opcachever}
1344
1345%description opcache
1346The Zend OPcache provides faster PHP execution through opcode caching
1347and optimization. It improves PHP performance by storing precompiled
1348script bytecode in the shared memory. This eliminates the stages of
1349reading code from the disk and compiling it on future access. In
1350addition, it applies a few bytecode optimization patterns that make
1351code execution faster.
1352
43df1739
JB
1353%description opcache -l pl.UTF-8
1354Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1355i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1356przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1357Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1358dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1359czyniąc wykonywanie kodu szybszym.
1360
c0240cb1 1361%package openssl
1362Summary: OpenSSL extension module for PHP
1363Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1364Group: Libraries
788e733c 1365URL: http://php.net/manual/en/book.openssl.php
c0240cb1 1366Requires: %{name}-common = %{epoch}:%{version}-%{release}
1367Provides: php(openssl)
d6634248 1368Obsoletes: php-openssl < 4:5.3.28-7
c0240cb1 1369
1370%description openssl
1371This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1372support.
1373
1374%description openssl -l pl.UTF-8
1375Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1376
1377%package pcntl
1378Summary: Process Control extension module for PHP
1379Summary(pl.UTF-8): Moduł Process Control dla PHP
1380Group: Libraries
788e733c 1381URL: http://php.net/manual/en/book.pcntl.php
c0240cb1 1382Requires: %{name}-common = %{epoch}:%{version}-%{release}
1383Provides: php(pcntl)
d6634248 1384Obsoletes: php-pcntl < 4:5.3.28-7
c0240cb1 1385
1386%description pcntl
1387This is a dynamic shared object (DSO) for PHP that will add process
1388spawning and control support. It supports functions like fork(),
1389waitpid(), signal() etc.
1390
1391%description pcntl -l pl.UTF-8
1392Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1393Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1394
1395%package pcre
1396Summary: PCRE extension module for PHP
1397Summary(pl.UTF-8): Moduł PCRE dla PHP
1398Group: Libraries
1399Requires: %{name}-common = %{epoch}:%{version}-%{release}
1400Provides: php(pcre)
d6634248 1401Obsoletes: php-pcre < 4:5.3.28-7
c0240cb1 1402
1403%description pcre
1404This is a dynamic shared object (DSO) for PHP that will add Perl
1405Compatible Regular Expression support.
1406
1407%description pcre -l pl.UTF-8
1408Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1409(Perl Compatible Regular Expressions)
1410
1411%package pdo
1412Summary: PHP Data Objects (PDO)
1413Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1414Group: Libraries
788e733c 1415URL: http://php.net/manual/en/book.pdo.php
c0240cb1 1416Requires: %{name}-common = %{epoch}:%{version}-%{release}
1417Requires: %{name}-spl = %{epoch}:%{version}-%{release}
a6af2a14 1418Provides: %{name}(PDO_API) = %{php_pdo_api_version}
c0240cb1 1419Provides: php(pdo)
d6634248 1420Obsoletes: php-pdo < 4:5.3.28-7
6f59b7a7 1421Obsoletes: php-pecl-PDO < 1.1
c0240cb1 1422
1423%description pdo
1424This is a dynamic shared object (DSO) for PHP that will add PDO
1425support.
1426
1427%description pdo -l pl.UTF-8
1428Moduł PHP dodający obsługę PDO (PHP Data Objects).
1429
1430%package pdo-dblib
1431Summary: PHP Data Objects (PDO) FreeTDS support
1432Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1433Group: Libraries
788e733c 1434URL: http://php.net/manual/en/ref.pdo-dblib.php
c0240cb1 1435Requires: %{name}-common = %{epoch}:%{version}-%{release}
1436Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
174ce41e 1437Provides: php(pdo_dblib)
d6634248 1438Obsoletes: php-pdo-dblib < 4:5.3.28-7
c0240cb1 1439
1440%description pdo-dblib
1441This is a dynamic shared object (DSO) for PHP that will add PDO
1442FreeTDS support.
1443
1444%description pdo-dblib -l pl.UTF-8
1445Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1446interfejsu PDO.
1447
1448%package pdo-firebird
1449Summary: PHP Data Objects (PDO) Firebird support
1450Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1451Group: Libraries
788e733c 1452URL: http://php.net/manual/en/ref.pdo-firebird.php
c0240cb1 1453Requires: %{name}-common = %{epoch}:%{version}-%{release}
1454Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1455Provides: php(pdo-firebird)
de961fa1 1456Provides: php(pdo_firebird)
d6634248 1457Obsoletes: php-pdo-firebird < 4:5.3.28-7
6f59b7a7 1458Obsoletes: php-pecl-PDO_FIREBIRD < 0.3
c0240cb1 1459
1460%description pdo-firebird
1461This is a dynamic shared object (DSO) for PHP that will add PDO
1462Firebird support.
1463
1464%description pdo-firebird -l pl.UTF-8
1465Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1466interfejsu PDO.
1467
1468%package pdo-mysql
1469Summary: PHP Data Objects (PDO) MySQL support
1470Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1471Group: Libraries
788e733c 1472URL: http://php.net/manual/en/ref.pdo-mysql.php
c0240cb1 1473Requires: %{name}-common = %{epoch}:%{version}-%{release}
1474%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1475Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1476Provides: php(pdo-mysql)
de961fa1 1477Provides: php(pdo_mysql)
d6634248 1478Obsoletes: php-pdo-mysql < 4:5.3.28-7
6f59b7a7 1479Obsoletes: php-pecl-PDO_MYSQL < 1.1
c0240cb1 1480
1481%description pdo-mysql
1482This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1483support.
1484
1485%description pdo-mysql -l pl.UTF-8
1486Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1487interfejsu PDO.
1488
1489%package pdo-oci
1490Summary: PHP Data Objects (PDO) Oracle support
1491Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1492Group: Libraries
788e733c 1493URL: http://php.net/manual/en/ref.pdo-oci.php
6cec851c
ER
1494%{?requires_php_extension}
1495%{?requires_php_pdo_module}
c0240cb1 1496Provides: php(pdo-oci)
de961fa1 1497Provides: php(pdo_oci)
d6634248 1498Obsoletes: php-pdo-oci < 4:5.3.28-7
6f59b7a7 1499Obsoletes: php-pecl-PDO_OCI < 1.1
c0240cb1 1500
1501%description pdo-oci
1502This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1503support.
1504
1505%description pdo-oci -l pl.UTF-8
1506Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1507interfejsu PDO.
1508
1509%package pdo-odbc
1510Summary: PHP Data Objects (PDO) ODBC support
1511Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1512Group: Libraries
788e733c 1513URL: http://php.net/manual/en/ref.pdo-odbc.php
c0240cb1 1514Requires: %{name}-common = %{epoch}:%{version}-%{release}
1515Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1516Provides: php(pdo-odbc)
de961fa1 1517Provides: php(pdo_odbc)
d6634248 1518Obsoletes: php-pdo-odbc < 4:5.3.28-7
6f59b7a7 1519Obsoletes: php-pecl-PDO_ODBC < 1.1
c0240cb1 1520
1521%description pdo-odbc
1522This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1523support.
1524
1525%description pdo-odbc -l pl.UTF-8
1526Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1527interfejsu PDO.
1528
1529%package pdo-pgsql
1530Summary: PHP Data Objects (PDO) PostgreSQL support
1531Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1532Group: Libraries
788e733c 1533URL: http://php.net/manual/en/ref.pdo-pgsql.php
c0240cb1 1534Requires: %{name}-common = %{epoch}:%{version}-%{release}
1535Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1536Provides: php(pdo-pgsql)
de961fa1 1537Provides: php(pdo_pgsql)
d6634248 1538Obsoletes: php-pdo-pgsql < 4:5.3.28-7
c0240cb1 1539Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1540
1541%description pdo-pgsql
1542This is a dynamic shared object (DSO) for PHP that will add PDO
1543PostgreSQL support.
1544
1545%description pdo-pgsql -l pl.UTF-8
1546Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1547interfejsu PDO.
1548
1549%package pdo-sqlite
1550Summary: PHP Data Objects (PDO) SQLite support
1551Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1552Group: Libraries
788e733c 1553URL: http://php.net/manual/en/ref.pdo-sqlite.php
c0240cb1 1554Requires: %{name}-common = %{epoch}:%{version}-%{release}
1555Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1556Provides: php(pdo-sqlite)
de961fa1 1557Provides: php(pdo_sqlite)
d6634248 1558Obsoletes: php-pdo-sqlite < 4:5.3.28-7
6f59b7a7 1559Obsoletes: php-pecl-PDO_SQLITE < 1.1
c0240cb1 1560
1561%description pdo-sqlite
1562This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1563support.
1564
1565%description pdo-sqlite -l pl.UTF-8
1566Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1567interfejsu PDO.
1568
1569%package pgsql
1570Summary: PostgreSQL database module for PHP
1571Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1572Group: Libraries
788e733c 1573URL: http://php.net/manual/en/book.pgsql.php
c0240cb1 1574Requires: %{name}-common = %{epoch}:%{version}-%{release}
1575Provides: php(pgsql)
d6634248 1576Obsoletes: php-pgsql < 4:5.3.28-7
c0240cb1 1577
1578%description pgsql
1579This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1580database support.
1581
1582%description pgsql -l pl.UTF-8
1583Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1584
1585%description pgsql -l pt_BR.UTF-8
1586Um módulo para aplicações PHP que usam bancos de dados postgresql.
1587
1588%package phar
ca310036 1589Summary: Phar archive module for PHP
c0240cb1 1590Summary(pl.UTF-8): Moduł phar dla PHP
1591Group: Libraries
788e733c 1592URL: http://php.net/manual/en/book.phar.php
c0240cb1 1593Requires: %{name}-common = %{epoch}:%{version}-%{release}
97b0b310 1594Requires: %{name}-hash = %{epoch}:%{version}-%{release}
c0240cb1 1595Requires: %{name}-spl = %{epoch}:%{version}-%{release}
7a59d9eb 1596%{?with_alternatives:Requires: alternatives}
a2d3b4b6 1597Suggests: %{name}-cli
13f02a12
ER
1598# zlib is required by phar program, but as phar cli is optional should the dep be too
1599Suggests: %{name}-zlib
13f02a12
ER
1600Provides: php(phar) = %{pharver}
1601Obsoletes: php-pecl-phar < %{pharver}
d6634248 1602Obsoletes: php-phar < 4:5.3.28-7
3c2ec9fb 1603Conflicts: php-ioncube < 4.0.9
c0240cb1 1604
1605%description phar
1606This is a dynamic shared object (DSO) for PHP that will add phar
1607archive a support.
1608
1609%description phar -l pl.UTF-8
1610Moduł PHP umożliwiający dostęp do achiwów .phar.
1611
1612%package posix
1613Summary: POSIX extension module for PHP
1614Summary(pl.UTF-8): Moduł POSIX dla PHP
1615Group: Libraries
788e733c 1616URL: http://php.net/manual/en/book.posix.php
c0240cb1 1617Requires: %{name}-common = %{epoch}:%{version}-%{release}
1618Provides: php(posix)
d6634248 1619Obsoletes: php-posix < 4:5.3.28-7
c0240cb1 1620
1621%description posix
1622This is a dynamic shared object (DSO) for PHP that will add POSIX
1623functions support to PHP.
1624
1625%description posix -l pl.UTF-8
1626Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1627
1628%package pspell
1629Summary: pspell extension module for PHP
1630Summary(pl.UTF-8): Moduł pspell dla PHP
1631Group: Libraries
788e733c 1632URL: http://php.net/manual/en/book.pspell.php
c0240cb1 1633Requires: %{name}-common = %{epoch}:%{version}-%{release}
1634Provides: php(pspell)
d6634248 1635Obsoletes: php-pspell < 4:5.3.28-7
c0240cb1 1636
1637%description pspell
1638This is a dynamic shared object (DSO) for PHP that will add pspell
1639support to PHP. It allows to check the spelling of a word and offer
1640suggestions.
1641
1642%description pspell -l pl.UTF-8
1643Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1644sprawdzanie pisowni słowa i sugerowanie poprawek.
1645
1646%package readline
1647Summary: readline extension module for PHP
1648Summary(pl.UTF-8): Moduł readline dla PHP
1649Group: Libraries
788e733c 1650URL: http://php.net/manual/en/book.readline.php
c0240cb1 1651Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1652Provides: php(readline)
d6634248 1653Obsoletes: php-readline < 4:5.3.28-7
c0240cb1 1654
1655%description readline
1656This PHP module adds support for readline functions (only for cli and
1657cgi SAPIs).
1658
1659%description readline -l pl.UTF-8
1660Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1661
1662%package recode
1663Summary: recode extension module for PHP
1664Summary(pl.UTF-8): Moduł recode dla PHP
1665Group: Libraries
788e733c 1666URL: http://php.net/manual/en/book.recode.php
c0240cb1 1667Requires: %{name}-common = %{epoch}:%{version}-%{release}
1668Requires: recode >= 3.5d-3
1669Provides: php(recode)
d6634248 1670Obsoletes: php-recode < 4:5.3.28-7
c0240cb1 1671
1672%description recode
1673This is a dynamic shared object (DSO) for PHP that will add recode
1674support.
1675
1676%description recode -l pl.UTF-8
1677Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1678bibliotekę recode).
1679
1680%package session
1681Summary: session extension module for PHP
1682Summary(pl.UTF-8): Moduł session dla PHP
1683Group: Libraries
1684Requires: %{name}-common = %{epoch}:%{version}-%{release}
1685Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1686Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
7c02bb46 1687Suggests: tmpwatch
c0240cb1 1688Provides: php(session)
d6634248 1689Obsoletes: php-session < 4:5.3.28-7
c0240cb1 1690
1691%description session
1692This is a dynamic shared object (DSO) for PHP that will add session
1693support.
1694
1695%description session -l pl.UTF-8
1696Moduł PHP dodający obsługę sesji.
1697
1698%package shmop
1699Summary: Shared Memory Operations extension module for PHP
1700Summary(pl.UTF-8): Moduł shmop dla PHP
1701Group: Libraries
788e733c 1702URL: http://php.net/manual/en/book.shmop.php
c0240cb1 1703Requires: %{name}-common = %{epoch}:%{version}-%{release}
1704Provides: php(shmop)
d6634248 1705Obsoletes: php-shmop < 4:5.3.28-7
c0240cb1 1706
1707%description shmop
1708This is a dynamic shared object (DSO) for PHP that will add Shared
1709Memory Operations support.
1710
1711%description shmop -l pl.UTF-8
1712Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1713
1714%package simplexml
1715Summary: Simple XML extension module for PHP
1716Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1717Group: Libraries
788e733c 1718URL: http://php.net/manual/en/book.simplexml.php
c0240cb1 1719Requires: %{name}-common = %{epoch}:%{version}-%{release}
1720Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1721Provides: php(simplexml)
d6634248 1722Obsoletes: php-simplexml < 4:5.3.28-7
c0240cb1 1723
1724%description simplexml
1725This is a dynamic shared object (DSO) for PHP that will add Simple XML
1726support.
1727
1728%description simplexml -l pl.UTF-8
1729Moduł PHP dodający obsługę prostego XML-a.
1730
1731%package snmp
1732Summary: SNMP extension module for PHP
1733Summary(pl.UTF-8): Moduł SNMP dla PHP
1734Group: Libraries
788e733c 1735URL: http://php.net/manual/en/book.snmp.php
c0240cb1 1736Requires: %{name}-common = %{epoch}:%{version}-%{release}
1737Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
ee044483 1738Requires: %{name}-spl = %{epoch}:%{version}-%{release}
c0240cb1 1739Provides: php(snmp)
d6634248 1740Obsoletes: php-snmp < 4:5.3.28-7
c0240cb1 1741
1742%description snmp
1743This is a dynamic shared object (DSO) for PHP that will add SNMP
1744support.
1745
1746%description snmp -l pl.UTF-8
1747Moduł PHP dodający obsługę SNMP.
1748
1749%package soap
1750Summary: soap extension module for PHP
1751Summary(pl.UTF-8): Moduł soap dla PHP
1752Group: Libraries
788e733c 1753URL: http://php.net/manual/en/book.soap.php
c0240cb1 1754Requires: %{name}-common = %{epoch}:%{version}-%{release}
1755Provides: php(soap)
d6634248 1756Obsoletes: php-soap < 4:5.3.28-7
c0240cb1 1757
1758%description soap
1759This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1760support.
1761
1762%description soap -l pl.UTF-8
1763Moduł PHP dodający obsługę SOAP/WSDL.
1764
1765%package sockets
1766Summary: sockets extension module for PHP
1767Summary(pl.UTF-8): Moduł socket dla PHP
1768Group: Libraries
788e733c 1769URL: http://php.net/manual/en/book.sockets.php
c0240cb1 1770Requires: %{name}-common = %{epoch}:%{version}-%{release}
1771Provides: php(sockets)
d6634248 1772Obsoletes: php-sockets < 4:5.3.28-7
c0240cb1 1773
1774%description sockets
1775This is a dynamic shared object (DSO) for PHP that will add sockets
1776support.
1777
1778%description sockets -l pl.UTF-8
1779Moduł PHP dodający obsługę gniazdek.
1780
1781%package spl
1782Summary: Standard PHP Library module for PHP
1783Summary(pl.UTF-8): Moduł biblioteki standardowej (Standard PHP Library) dla PHP
1784Group: Libraries
1785URL: http://php.net/manual/en/book.spl.php
1786Requires: %{name}-common = %{epoch}:%{version}-%{release}
1787Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1788Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1789Provides: php(spl)
d6634248 1790Obsoletes: php-spl < 4:5.3.28-7
c0240cb1 1791
1792%description spl
1793This is a dynamic shared object (DSO) for PHP that will add Standard
1794PHP Library support.
1795
1796%description spl -l pl.UTF-8
1797Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
1798
c0240cb1 1799%package sqlite3
1800Summary: SQLite3 extension module for PHP
1801Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1802Group: Libraries
1803URL: http://php.net/manual/en/book.sqlite3.php
1804Requires: %{name}-common = %{epoch}:%{version}-%{release}
ce39c8ba 1805Provides: php(sqlite3) = %{sqlite3ver}
d6634248 1806Obsoletes: php-sqlite3 < 4:5.3.28-7
c0240cb1 1807
1808%description sqlite3
1809SQLite is a C library that implements an embeddable SQL database
1810engine. Programs that link with the SQLite library can have SQL
1811database access without running a separate RDBMS process.
1812
1813SQLite is not a client library used to connect to a big database
1814server. SQLite is the server. The SQLite library reads and writes
1815directly to and from the database files on disk.
1816
1817%description sqlite3 -l pl.UTF-8
1818SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1819bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1820dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1821RDBMS.
1822
1823SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1824baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1825zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1826dysku.
1827
1828%package sybase-ct
1829Summary: Sybase-CT extension module for PHP
1830Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1831Group: Libraries
1832URL: http://www.php.net/manual/en/book.sybase.php
1833Requires: %{name}-common = %{epoch}:%{version}-%{release}
1834Provides: php(sybase-ct)
1835Obsoletes: php-sybase
d6634248 1836Obsoletes: php-sybase-ct < 4:5.3.28-7
c0240cb1 1837
1838%description sybase-ct
1839This is a dynamic shared object (DSO) for PHP that will add Sybase and
1840MS SQL databases support through CT-lib.
1841
1842%description sybase-ct -l pl.UTF-8
1843Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1844CT-lib.
1845
1846%package sysvmsg
1847Summary: SysV msg extension module for PHP
1848Summary(pl.UTF-8): Moduł SysV msg dla PHP
1849Group: Libraries
788e733c 1850URL: http://php.net/manual/en/book.sem.php
c0240cb1 1851Requires: %{name}-common = %{epoch}:%{version}-%{release}
1852Provides: php(sysvmsg)
d6634248 1853Obsoletes: php-sysvmsg < 4:5.3.28-7
c0240cb1 1854
1855%description sysvmsg
1856This is a dynamic shared object (DSO) for PHP that will add SysV
1857message queues support.
1858
1859%description sysvmsg -l pl.UTF-8
1860Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1861
1862%package sysvsem
1863Summary: SysV sem extension module for PHP
1864Summary(pl.UTF-8): Moduł SysV sem dla PHP
1865Group: Libraries
788e733c 1866URL: http://php.net/manual/en/book.sem.php
c0240cb1 1867Requires: %{name}-common = %{epoch}:%{version}-%{release}
1868Provides: php(sysvsem)
d6634248 1869Obsoletes: php-sysvsem < 4:5.3.28-7
c0240cb1 1870
1871%description sysvsem
1872This is a dynamic shared object (DSO) for PHP that will add SysV
1873semaphores support.
1874
1875%description sysvsem -l pl.UTF-8
1876Moduł PHP umożliwiający korzystanie z semaforów SysV.
1877
1878%package sysvshm
1879Summary: SysV shm extension module for PHP
1880Summary(pl.UTF-8): Moduł SysV shm dla PHP
1881Group: Libraries
788e733c 1882URL: http://php.net/manual/en/book.sem.php
c0240cb1 1883Requires: %{name}-common = %{epoch}:%{version}-%{release}
1884Provides: php(sysvshm)
d6634248 1885Obsoletes: php-sysvshm < 4:5.3.28-7
c0240cb1 1886
1887%description sysvshm
1888This is a dynamic shared object (DSO) for PHP that will add SysV
1889Shared Memory support.
1890
1891%description sysvshm -l pl.UTF-8
1892Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1893
1894%package tests
1895Summary: Contains unit test files for PHP and extensions
1896Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1897Group: Libraries
1898URL: http://qa.php.net/
1899Requires: %{name}-cli
727d0e14
ER
1900%if "%{_rpmversion}" >= "5"
1901BuildArch: noarch
1902%endif
c0240cb1 1903
1904%description tests
13f02a12 1905This package contains unit tests for PHP and its extensions.
c0240cb1 1906
1907%description tests -l pl.UTF-8
13f02a12 1908Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
c0240cb1 1909
1910%package tidy
1911Summary: Tidy extension module for PHP
1912Summary(pl.UTF-8): Moduł Tidy dla PHP
1913Group: Libraries
788e733c 1914URL: http://php.net/manual/en/book.tidy.php
c0240cb1 1915Requires: %{name}-common = %{epoch}:%{version}-%{release}
1916Requires: tidy
1917Provides: php(tidy)
d6634248 1918Obsoletes: php-tidy < 4:5.3.28-7
c0240cb1 1919
1920%description tidy
1921This is a dynamic shared object (DSO) for PHP that will add Tidy
1922support.
1923
1924%description tidy -l pl.UTF-8
1925Moduł PHP umożliwiający korzystanie z tidy.
1926
1927%package tokenizer
1928Summary: tokenizer extension module for PHP
1929Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1930Group: Libraries
788e733c 1931URL: http://php.net/manual/en/book.tokenizer.php
c0240cb1 1932Requires: %{name}-common = %{epoch}:%{version}-%{release}
1933Provides: php(tokenizer)
d6634248 1934Obsoletes: php-tokenizer < 4:5.3.28-7
c0240cb1 1935
1936%description tokenizer
1937This is a dynamic shared object (DSO) for PHP that will add tokenizer
1938support.
1939
1940%description tokenizer -l pl.UTF-8
1941Moduł PHP dodający obsługę tokenizera do PHP.
1942
1943%package wddx
1944Summary: wddx extension module for PHP
1945Summary(pl.UTF-8): Moduł wddx dla PHP
1946Group: Libraries
788e733c 1947URL: http://php.net/manual/en/book.wddx.php
c0240cb1 1948Requires: %{name}-common = %{epoch}:%{version}-%{release}
1949# - wddx doesn't require session as it's disabled at compile time:
1950# if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1951# see also php.spec#rev1.120.2.22
1952#Requires: %{name}-session = %{epoch}:%{version}-%{release}
1953Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1954Provides: php(wddx)
d6634248 1955Obsoletes: php-wddx < 4:5.3.28-7
c0240cb1 1956
1957%description wddx
1958This is a dynamic shared object (DSO) for PHP that will add wddx
1959support.
1960
1961%description wddx -l pl.UTF-8
1962Moduł PHP umożliwiający korzystanie z wddx.
1963
1964%package xml
1965Summary: XML extension module for PHP
1966Summary(pl.UTF-8): Moduł XML dla PHP
1967Group: Libraries
788e733c 1968URL: http://php.net/manual/en/book.xml.php
c0240cb1 1969Requires: %{name}-common = %{epoch}:%{version}-%{release}
1970Provides: php(xml)
d6634248 1971Obsoletes: php-xml < 4:5.3.28-7
c0240cb1 1972
1973%description xml
1974This is a dynamic shared object (DSO) for PHP that will add XML
1975support. This extension lets you create XML parsers and then define
1976handlers for different XML events.
1977
1978%description xml -l pl.UTF-8
1979Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1980związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1981następnie definiować procedury obsługi dla różnych zdarzeń XML.
1982
1983%package xmlreader
1984Summary: XML Reader extension module for PHP
1985Summary(pl.UTF-8): Moduł XML Reader dla PHP
1986Group: Libraries
788e733c 1987URL: http://php.net/manual/en/book.xmlreader.php
c0240cb1 1988Requires: %{name}-common = %{epoch}:%{version}-%{release}
026b752b 1989Requires: %{name}-dom = %{epoch}:%{version}-%{release}
c0240cb1 1990Provides: php(xmlreader)
d6634248 1991Obsoletes: php-xmlreader < 4:5.3.28-7
c0240cb1 1992
1993%description xmlreader
1994This is a dynamic shared object (DSO) for PHP that will add XML Reader
1995support. The XMLReader extension is an XML Pull parser. The reader
1996acts as a cursor going forward on the document stream and stopping at
1997each node on the way.
1998
1999%description xmlreader -l pl.UTF-8
2000Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
2001działa jako kursor przechodzący przez strumień dokumentu i
2002zatrzymujący się na każdym węźle po drodze.
2003
2004%package xmlrpc
2005Summary: xmlrpc extension module for PHP
2006Summary(pl.UTF-8): Moduł xmlrpc dla PHP
2007Group: Libraries
788e733c 2008URL: http://php.net/manual/en/book.xmlrpc.php
c0240cb1 2009Requires: %{name}-common = %{epoch}:%{version}-%{release}
2010Requires: %{name}-xml = %{epoch}:%{version}-%{release}
2011Provides: php(xmlrpc)
d6634248 2012Obsoletes: php-xmlrpc < 4:5.3.28-7
c0240cb1 2013
2014%description xmlrpc
2015This is a dynamic shared object (DSO) for PHP that will add XMLRPC
2016support.
2017
2018%description xmlrpc -l pl.UTF-8
2019Moduł PHP dodający obsługę XMLRPC.
2020
2021%package xmlwriter
2022Summary: Fast, non-cached, forward-only means to write XML data
2023Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
2024Group: Libraries
788e733c 2025URL: http://php.net/manual/en/book.xmlwriter.php
c0240cb1 2026Requires: %{name}-common = %{epoch}:%{version}-%{release}
2027Provides: php(xmlwriter)
6f59b7a7 2028Obsoletes: php-pecl-xmlwriter < 2.1
d6634248 2029Obsoletes: php-xmlwriter < 4:5.3.28-7
c0240cb1 2030
2031%description xmlwriter
2032This extension wraps the libxml xmlWriter API. Represents a writer
2033that provides a non-cached, forward-only means of generating streams
2034or files containing XML data.
2035
2036%description xmlwriter -l pl.UTF-8
2037To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
2038zapisu dostarczającą nie cachowanych metod generowania strumieni lub
2039plików zawierających dane XML.
2040
2041%package xsl
2042Summary: xsl extension module for PHP
2043Summary(pl.UTF-8): Moduł xsl dla PHP
2044Group: Libraries
788e733c 2045URL: http://php.net/manual/en/book.xsl.php
c0240cb1 2046Requires: %{name}-common = %{epoch}:%{version}-%{release}
2047Requires: %{name}-dom = %{epoch}:%{version}-%{release}
2048Requires: libxslt >= 1.0.18
c0240cb1 2049Provides: php(xsl)
d6634248 2050Obsoletes: php-xsl < 4:5.3.28-7
0282b86e 2051# actually not true, functionality is similar, but API differs
c0240cb1 2052Obsoletes: php-xslt <= 3:4.3.8-1
2053
2054%description xsl
2055This is a dynamic shared object (DSO) for PHP that will add new XSL
2056support (using libxslt).
2057
2058%description xsl -l pl.UTF-8
2059Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
2060
2061%package zip
2062Summary: Zip management extension
2063Summary(pl.UTF-8): Zarządzanie archiwami zip
2064Group: Libraries
788e733c 2065URL: http://php.net/manual/en/book.zip.php
c0240cb1 2066Requires: %{name}-common = %{epoch}:%{version}-%{release}
3f5c4b2e 2067%{?with_system_libzip:Requires: libzip >= 0.10.1-2}
13f02a12
ER
2068Provides: php(zip) = %{zipver}
2069Obsoletes: php-pecl-zip < %{zipver}
d6634248 2070Obsoletes: php-zip < 4:5.3.28-7
c0240cb1 2071
2072%description zip
2073Zip is an extension to create, modify and read zip files.
2074
2075%description zip -l pl.UTF-8
2076Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
2077odczyt archiwów zip.
2078
2079%package zlib
2080Summary: Zlib extension module for PHP
2081Summary(pl.UTF-8): Moduł zlib dla PHP
2082Group: Libraries
788e733c 2083URL: http://php.net/manual/en/book.zlib.php
c0240cb1 2084Requires: %{name}-common = %{epoch}:%{version}-%{release}
2085Provides: php(zlib)
d6634248 2086Obsoletes: php-zlib < 4:5.3.28-7
c0240cb1 2087
2088%description zlib
2089This is a dynamic shared object (DSO) for PHP that will add zlib
2090compression support to PHP.
2091
2092%description zlib -l pl.UTF-8
2093Moduł PHP umożliwiający używanie kompresji zlib.
2094
2095%prep
8d42644e 2096%setup -q -n %{orgname}-%{version}%{?subver}
212b9ffa 2097cp -p php.ini-production php.ini
c0240cb1 2098%patch0 -p1
5eecc0ee 2099%patch1 -p1
c0240cb1 2100%patch2 -p1
2101%patch3 -p1
00459e59 2102%patch4 -p1
c0240cb1 2103%patch5 -p1
2104%patch6 -p1
c0240cb1 2105%patch7 -p1
8a89cecb 2106%{?with_milter:%patch8 -p1}
8b15d51c 2107%patch9 -p1
c0240cb1 2108%patch10 -p1
e52c962c
AM
2109
2110%patch12 -p1
2111
c0240cb1 2112%patch14 -p1
c0240cb1 2113%patch17 -p1
2114%patch18 -p1
c0240cb1 2115%patch21 -p1
2116%patch22 -p1
2117%patch23 -p1
2118%patch24 -p1
2119%patch25 -p1
2120%patch26 -p1
2121%patch27 -p1
2122%patch29 -p1
2123%patch31 -p1
c0240cb1 2124%if "%{pld_release}" != "ac"
2125%patch34 -p1
2126%endif
65ad3e6a 2127%{?with_sybase_ct:%patch35 -p1}
c0240cb1 2128%patch36 -p1
2129%patch37 -p1
2130%patch38 -p1
2131%patch39 -p1
2132%if %{with fpm}
ef84931a
ER
2133%if 0
2134# create split php-fpm.conf patch. review (restore other diffs) and commit
2135cp sapi/fpm/php-fpm.conf.in{,.orig}
2136%{__sed} -n -e '/; Start a new pool named/,$p' sapi/fpm/php-fpm.conf.in > sapi/fpm/php-fpm.conf-d.in
2137%{__sed} -i -e '/; Include one or more files/,/include=etc\/fpm\.d/d' sapi/fpm/php-fpm.conf.in
2138%{__sed} -i -e '/; Start a new pool named/,$d' sapi/fpm/php-fpm.conf.in
2139set +e
2140cd ..
2141diff -u %{orgname}-%{version}/sapi/fpm/php-fpm.conf.in{.orig,} > %{PATCH69}
2142diff -u /dev/null %{orgname}-%{version}/sapi/fpm/php-fpm.conf-d.in >> %{PATCH69}
2143exit 1
2144%else
8851ace1 2145%patch69 -p1
ef84931a 2146%endif
c0240cb1 2147%patch41 -p1
2148%patch42 -p1
2149%endif
2150%patch43 -p1
2151%patch44 -p1
02d2dcbb
ER
2152#%patch45 -p1 # imap annotations. fixme
2153#%patch46 -p1 # imap myrights. fixme
c0240cb1 2154%if %{with suhosin}
2155%patch47 -p1
2156%endif
c0240cb1 2157%patch50 -p1
2158%patch51 -p1
2159%patch52 -p1
2160%patch53 -p1
c0240cb1 2161%undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
2162%patch55 -p1
c0240cb1 2163%patch59 -p1
2164%patch60 -p1
c0240cb1 2165%patch62 -p1
13f02a12 2166%{?with_system_libzip:%patch65 -p1}
89f3bdfa 2167%patch66 -p1
f141d13b 2168%patch67 -p1
946a0956 2169%patch68 -p1
882aa900 2170%patch70 -p1
97b0b310 2171%patch72 -p1
f2b22b7e 2172%patch73 -p1
f7ba0866 2173%patch74 -p1
eab2b2d9 2174%patch75 -p1
25b3b9cc 2175%patch76 -p1
c0240cb1 2176
2da8b9ab
JP
2177sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
2178 run-tests.php
2179
1c3544dd 2180%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
c0240cb1 2181
2182# cleanup backups after patching
2183find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
2184
e974b7db
ER
2185# com_dotnet is Win32-only
2186%{__rm} -r ext/com_dotnet
2187
c0240cb1 2188# conflict seems to be resolved by recode patches
2189%{__rm} ext/recode/config9.m4
2190
2191# remove all bundled libraries not to link with them accidentally
c0240cb1 2192%{__rm} -r ext/sqlite3/libsqlite
2193#%{__rm} -r ext/bcmath/libbcmath
2194#%{__rm} -r ext/date/lib
2195#%{__rm} -r ext/fileinfo/libmagic
2196#%{__rm} -r ext/dba/libcdb
2197#%{__rm} -r ext/dba/libflatfile
2198#%{__rm} -r ext/dba/libinifile
2199#%{__rm} -r ext/gd/libgd
2200#%{__rm} -r ext/mbstring/libmbfl
2201#%{__rm} -r ext/mbstring/oniguruma
2202%{__rm} -r ext/pcre/pcrelib
2203#%{__rm} -r ext/soap/interop
2204%{__rm} -r ext/xmlrpc/libxmlrpc
2205#%{__rm} -r ext/zip/lib
3790806a 2206%{__rm} ext/date/lib/timezonedb.h
c0240cb1 2207
13f02a12 2208cp -pf Zend/LICENSE{,.Zend}
c0240cb1 2209install -p %{SOURCE13} dep-tests.sh
2210
2211# breaks build
2212sed -i -e 's#-fvisibility=hidden##g' configure*
2213
2214# disable broken tests
2215# says just "Terminated" twice and fails
7a59d9eb 2216%{__mv} sapi/cli/tests/022.phpt{,.broken}
c0240cb1 2217
a33e71d0
ER
2218# really dumb test, executable binary name is .libs/ something when building
2219# https://bugs.php.net/bug.php?id=54514
7a59d9eb 2220%{__mv} tests/basic/bug54514.phpt{,.disable}
a33e71d0
ER
2221
2222# breaks whole testsuite unexpectedly:
2223# Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2224# probably broken as zlib is built as shared
7a59d9eb 2225%{__mv} ext/soap/tests/server019.phpt{,disable}
d1a2645a 2226# Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
7a59d9eb 2227%{__mv} ext/soap/tests/server020.phpt{,disable}
f8be3881
ER
2228
2229# runs out of memory and kills carme vserver
2230# PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
7a59d9eb 2231%{__mv} Zend/tests/bug39438.phpt{,.disable}
a33e71d0 2232
c0240cb1 2233# php-5.3.3/ext/standard/tests/file/statpage.phpt
2234%{__rm} ext/standard/tests/file/statpage.phpt
2235
2236# idiotic test, it will fail if somebody else makes space on disk or if disk
2237# space is not yet allocated (xfs). report upstream to advice bogus test is
2238# probably pointless.
2239%{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2240
482166f6
ER
2241%ifarch %{x8664}
2242# all pdo_sqlite, sqlite3 tests die with Aborted on carme
2243%{__rm} -r ext/pdo_sqlite/tests
2244%{__rm} -r ext/sqlite3/tests
2245%endif
2246
4dcbdbb5
ER
2247# ----- Manage known as failed test -------
2248# affected by systzdata patch
2249%{__rm} ext/date/tests/timezone_location_get.phpt
2250%{__rm} ext/date/tests/timezone_version_get.phpt
2251%{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2252# Should be skipped but fails sometime
2253%{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2254# fails sometimes
2255%{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2256# causes stack exhausion
2257%{__rm} Zend/tests/bug54268.phpt
4dcbdbb5
ER
2258
2259# avoid issues when two builds run simultaneously
2260%ifarch %{x8664}
2261sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2262%endif
2263
bbf35c27
ER
2264# skip XFAILs
2265# no point testing stuff that is knowingly broken
4dcbdbb5 2266find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
bbf35c27 2267
482166f6
ER
2268env \
2269%ifarch %{ix86}
4dcbdbb5 2270ix86= x8664=: \
482166f6
ER
2271%endif
2272%ifarch %{x8664}
2273ix86=: x8664= \
dc101b85
JR
2274%endif
2275%ifarch x32
2276ix86=: x8664=: \
482166f6
ER
2277%endif
2278 sh -xe %{_sourcedir}/skip-tests.sh
c0240cb1 2279
2280%build
2281API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2282if [ $API != %{php_api_version} ]; then
2283 echo "Set %%define php_api_version to $API and re-run."
2284 exit 1
2285fi
2286
2287API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2288if [ $API != %{zend_module_api} ]; then
2289 echo "Set %%define zend_module_api to $API and re-run."
2290 exit 1
2291fi
2292
2293API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2294if [ $API != %{zend_extension_api} ]; then
2295 echo "Set %%define zend_extension_api to $API and re-run."
2296 exit 1
2297fi
2298
a6af2a14
ER
2299API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2300if [ $API != %{php_pdo_api_version} ]; then
2301 echo "Set %%define php_pdo_api_version to $API and re-run."
2302 exit 1
2303fi
2304
13f02a12
ER
2305# Check for some extension version
2306ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2307if test "$ver" != "%{fileinfover}"; then
2308 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2309 : Update the fileinfover macro and rebuild.
2310 exit 1
2311fi
2312ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2313if test "$ver" != "%{pharver}"; then
2314 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2315 : Update the pharver macro and rebuild.
2316 exit 1
2317fi
ce39c8ba
ER
2318ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2319if test "$ver" != "%{sqlite3ver}"; then
2320 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2321 : Update the sqlite3ver macro and rebuild.
2322 exit 1
2323fi
8d42644e 2324ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
13f02a12
ER
2325if test "$ver" != "%{zipver}"; then
2326 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2327 : Update the zipver macro and rebuild.
2328 exit 1
2329fi
2330ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2331if test "$ver" != "%{jsonver}"; then
2332 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2333 : Update the jsonver macro and rebuild.
2334 exit 1
2335fi
3790806a 2336ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h)
8328535b 2337if test "$ver" != "%{opcachever}"; then
3790806a 2338 : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
8328535b
ER
2339 : Update the opcachever macro and rebuild.
2340 exit 1
2341fi
8d42644e
ER
2342ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
2343if test "$ver" != "%{phpdbgver}"; then
2344 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
c3061867 2345 : Update the phpdbgver macro and rebuild.
8328535b
ER
2346 exit 1
2347fi
13f02a12
ER
2348ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2349if test "$ver" != "%{bz2ver}"; then
2350 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2351 : Update the bz2ver macro and rebuild.
2352 exit 1
2353fi
2354ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2355if test "$ver" != "%{enchantver}"; then
2356 : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2357 : Update the enchantver macro and rebuild.
2358 exit 1
2359fi
2360ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2361if test "$ver" != "%{hashver}"; then
2362 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2363 : Update the hashver macro and rebuild.
2364 exit 1
2365fi
2366ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2367if test "$ver" != "%{intlver}"; then
2368 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2369 : Update the intlver macro and rebuild.
2370 exit 1
2371fi
2372
c0240cb1 2373export EXTENSION_DIR="%{php_extensiondir}"
2374# configure once (for faster debugging purposes)
2375if [ ! -f _built-conf ]; then
2376 # now remove Makefile copies
212b9ffa 2377 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
c0240cb1 2378 %{__libtoolize}
2379 %{__aclocal}
2380 cp -f /usr/share/automake/config.* .
2381 ./buildconf --force
2382 touch _built-conf
2383fi
2384export PROG_SENDMAIL="/usr/lib/sendmail"
20b4895f 2385export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP -DOPENSSL_NO_SSL2 %{rpmcppflags} \
c0240cb1 2386 -I%{_includedir}/xmlrpc-epi"
2387
2388sapis="
2389cli
2390%if %{with cgi}
2391cgi-fcgi
2392%endif
2393%if %{with litespeed}
2394litespeed
2395%endif
2396%if %{with fpm}
2397fpm
2398%endif
13f02a12
ER
2399%if %{with embed}
2400embed
2401%endif
c0240cb1 2402%if %{with apache1}
2403apxs1
2404%endif
2405%if %{with apache2}
2406apxs2
2407%endif
def35a47
ER
2408%if %{with phpdbg}
2409phpdbg
2410%endif
212b9ffa
ER
2411%if %{with milter}
2412milter
c0240cb1 2413%endif
2414"
2415for sapi in $sapis; do
2416 : SAPI $sapi
2417 # skip if already configured (for faster debugging purposes)
2418 [ -f Makefile.$sapi ] && continue
2419
2420 sapi_args=''
2421 case $sapi in
2422 cgi-fcgi)
2423 sapi_args='--disable-cli'
2424 ;;
2425 cli)
2426 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2427 ;;
2428 fpm)
96ae08b1 2429 sapi_args='--disable-cli --disable-cgi --enable-fpm'
c0240cb1 2430 ;;
13f02a12 2431 embed)
82e4c42c 2432 sapi_args='--disable-cli --disable-cgi --enable-embed'
13f02a12 2433 ;;
c0240cb1 2434 apxs1)
2435 ver=$(rpm -q --qf '%{V}' apache1-devel)
96ae08b1 2436 sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver"
c0240cb1 2437 ;;
2438 apxs2)
2439 ver=$(rpm -q --qf '%{V}' apache-devel)
96ae08b1 2440 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
c0240cb1 2441 ;;
2442 litespeed)
def35a47
ER
2443 sapi_args='--disable-cli --disable-cgi --with-litespeed'
2444 ;;
2445 phpdbg)
2446 sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
c0240cb1 2447 ;;
212b9ffa
ER
2448 milter)
2449 sapi_args='--disable-cli --disable-cgi --with-milter'
c0240cb1 2450 ;;
2451 esac
2452
2453 %configure \
1c3544dd 2454 EXTRA_LDFLAGS="%{rpmldflags}" \
c0240cb1 2455 $sapi_args \
2456%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2457 --cache-file=config.cache \
2458%endif
2459 --with-libdir=%{_lib} \
2460 --with-config-file-path=%{_sysconfdir} \
2461 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
c0240cb1 2462 --with-system-tzdata \
a736dfa8 2463 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
c0240cb1 2464 %{?with_zts:--enable-maintainer-zts} \
2465 --enable-inline-optimization \
476107e3
ER
2466 %{__enable_disable bcmath bcmath shared} \
2467 %{__enable_disable calendar calendar shared} \
2468 %{__enable_disable ctype ctype shared} \
2469 %{__enable_disable dba dba shared} \
2470 %{__enable_disable dom dom shared} \
e2bde909 2471 %{?with_systemtap:--enable-dtrace} \
476107e3
ER
2472 %{__enable_disable exif exif shared} \
2473 %{__enable_disable fileinfo fileinfo shared} \
2474 %{__enable_disable ftp ftp shared} \
c0240cb1 2475 --enable-gd-native-ttf \
689a4e56 2476 %{?with_intl:--enable-intl=shared} \
c0240cb1 2477 --enable-libxml \
476107e3 2478 %{__enable_disable mbstring mbstring shared,all} \
c0240cb1 2479 --enable-mbregex \
476107e3
ER
2480 %{__enable_disable pcntl pcntl shared} \
2481 %{__enable_disable pdo pdo shared} \
2482 %{__enable_disable json json shared} \
2483 %{__enable_disable hash hash shared} \
c0240cb1 2484 --enable-xmlwriter=shared \
2485%if %{with fpm}
2486 --with-fpm-user=http \
2487 --with-fpm-group=http \
2488%endif
006a7eb1 2489%if %{with pdo_dblib}
c0240cb1 2490 --with-pdo-dblib=shared \
2491%endif
2492%if %{with interbase} && %{without interbase_inst}
2493 --with-pdo-firebird=shared,/usr \
2494%endif
2495 %{?with_mhash:--with-mhash=yes} \
2496 --with-mysql-sock=/var/lib/mysql/mysql.sock \
476107e3 2497 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
329b4394 2498 %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
c0240cb1 2499 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2500 %{?with_pgsql:--with-pdo-pgsql=shared} \
2501 %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
d8c3b589 2502 %{?with_webp:--with-vpx-dir=/usr} \
c0240cb1 2503 --without-libexpat-dir \
476107e3 2504 %{__enable_disable posix posix shared} \
c0240cb1 2505 --enable-shared \
476107e3 2506 %{__enable_disable session session shared} \
c0240cb1 2507 --enable-shmop=shared \
2508 --enable-simplexml=shared \
2509 --enable-sysvmsg=shared \
2510 --enable-sysvsem=shared \
2511 --enable-sysvshm=shared \
c0240cb1 2512 --enable-soap=shared \
2513 --enable-sockets=shared \
2514 --enable-tokenizer=shared \
c0240cb1 2515 %{?with_wddx:--enable-wddx=shared} \
2516 --enable-xml=shared \
2517 --enable-xmlreader=shared \
476107e3 2518 %{__with_without bz2 bz2 shared} \
c0240cb1 2519 %{__with_without curl curl shared} \
2520 --with-db4 \
476107e3 2521 %{__with_without iconv iconv shared} \
13f02a12 2522 %{?with_enchant:--with-enchant=shared,/usr} \
c0240cb1 2523 --with-freetype-dir=shared \
476107e3
ER
2524 %{__with_without gettext gettext shared} \
2525 %{__with_without gd gd shared%{?with_system_gd:,/usr}} \
c0240cb1 2526 --with-gdbm \
476107e3 2527 %{__with_without gmp gmp shared} \
c0240cb1 2528 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2529 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2530 --with-jpeg-dir=/usr \
2531 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
476107e3 2532 %{__with_without mcrypt mcrypt shared} \
c0240cb1 2533 %{?with_mm:--with-mm} \
2534 %{?with_mssql:--with-mssql=shared} \
81d9fe7d 2535 %{?with_mysqlnd:--enable-mysqlnd=shared} \
5fae5336 2536 %{__with_without mysql mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
81d9fe7d 2537 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
329b4394 2538 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
c4e1de8b 2539 %{__enable_disable opcache opcache shared} \
c0240cb1 2540 %{?with_openssl:--with-openssl=shared} \
2541 %{?with_kerberos5:--with-kerberos} \
36fd40c8 2542 --with-tcadb=/usr \
c0240cb1 2543 %{__with_without pcre pcre-regex /usr} \
2544 %{__enable_disable filter filter shared} \
2545 --with-pear=%{php_pear_dir} \
2546 %{__with_without pgsql pgsql shared,/usr} \
2547 %{__enable_disable phar phar shared} \
2548 --with-png-dir=/usr \
2549 %{?with_pspell:--with-pspell=shared} \
476107e3 2550 %{__with_without readline readline shared} \
c0240cb1 2551 %{?with_recode:--with-recode=shared} \
4b4c3c50 2552 %{__with_without ereg regex system} \
c0240cb1 2553 %{?with_snmp:--with-snmp=shared} \
2554 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
c0240cb1 2555 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2556 %{__with_without sqlite3 sqlite3 shared,/usr} \
2557 --with-t1lib=shared \
2558 %{?with_tidy:--with-tidy=shared} \
2559 %{?with_odbc:--with-unixODBC=shared,/usr} \
2560 %{__with_without xmlrpc xmlrpc shared,/usr} \
2561 --with-xsl=shared \
2562 --with-zlib=shared \
2563 --with-zlib-dir=shared,/usr \
13f02a12 2564 %{?with_system_libzip:--with-libzip} \
c0240cb1 2565 --enable-zip=shared,/usr \
2566
2567 # save for debug
2568 cp -f Makefile Makefile.$sapi
2569 cp -f main/php_config.h php_config.h.$sapi
2570 cp -f config.log config.log.$sapi
2571done
2572
2573# as we build each SAPI in own make, adjust php-config.in forehead
529e9ea3
ER
2574sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2575%{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
c0240cb1 2576
2577# must make libphp_common first, so modules can link against it.
2578cp -af php_config.h.cli main/php_config.h
2579cp -af Makefile.cli Makefile
2580%{__make} libphp_common.la
5467be0e
ER
2581# hack: MYSQLND_SHARED_LIBADD not initialized
2582%{__make} build-modules \
2583 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
c0240cb1 2584
2585%if %{with apache1}
2586%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2587%endif
2588
2589%if %{with apache2}
2590%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2591%endif
2592
2593%if %{with litespeed}
96ae08b1 2594%{__make} -f Makefile.litespeed litespeed
c0240cb1 2595%endif
2596
4d241919
ER
2597%if %{with embed}
2598%{__make} -f Makefile.embed libphp5.la
2599%endif
2600
def35a47 2601%if %{with phpdbg}
f1570176
ER
2602# PHP_READLINE_LIBS is empty, so force readline here
2603%{__make} -f Makefile.phpdbg phpdbg \
2604 PHPDBG_EXTRA_LIBS=-lreadline
def35a47
ER
2605%endif
2606
212b9ffa
ER
2607%if %{with milter}
2608%{__make} -f Makefile.milter milter
2609%endif
2610
c0240cb1 2611# CGI/FCGI
2612%if %{with cgi}
13f02a12 2613cp -pf php_config.h.cgi-fcgi main/php_config.h
c0240cb1 2614%{__make} -f Makefile.cgi-fcgi
3aeda88b 2615[ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
c0240cb1 2616%endif
2617
2618# PHP FPM
2619%if %{with fpm}
13f02a12 2620cp -pf php_config.h.fpm main/php_config.h
c0240cb1 2621%{__make} -f Makefile.fpm
3aeda88b 2622[ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
c0240cb1 2623%endif
2624
2625# CLI
13f02a12 2626cp -pf php_config.h.cli main/php_config.h
c0240cb1 2627%{__make} -f Makefile.cli
3aeda88b 2628[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
c0240cb1 2629
2630# check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2631./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x>&lt;</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2632
2633# Generate stub .ini files for each extension
2634rm -rf conf.d
2635install -d conf.d
2636generate_inifiles() {
2637 for so in modules/*.so; do
2638 mod=$(basename $so .so)
8328535b
ER
2639 ext=extension
2640 # opcache.so is zend extension
2641 nm $so | grep -q zend_extension_entry && ext=zend_extension
c0240cb1 2642 conf="$mod.ini"
2643 # xml needs to be loaded before wddx
2644 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2645 # pre needs to be loaded before SPL
2646 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2647 # spl needs to be loaded before mysqli
2648 [ "$mod" = "spl" ] && conf="SPL.ini"
2649 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2650 [ "$mod" = "session" ] && conf="Session.ini"
2651 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2652 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2653 echo "+ $conf"
2654 cat > conf.d/$conf <<-EOF
8328535b
ER
2655 ; Enable $mod $ext module
2656 $ext=$mod.so
c0240cb1 2657 EOF
2658 done
2659}
2660generate_inifiles
2661
2662# Check that the module inner-dependencies are intact
2663PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2664if grep -v OK dep-tests.log; then
2665 echo >&2 "The results above were not expected"
2666 exit 1
2667fi
2668
2669%if %{with gcov}
2670# Use CLI SAPI
13f02a12
ER
2671cp -pf php_config.h.cli main/php_config.h
2672cp -pf Makefile.cli Makefile
c0240cb1 2673%{__make} lcov
2674# you really don't want to package result of gcov build
2675exit 1
2676%endif
2677
c0240cb1 2678cat <<'EOF' > run-tests.sh
2679#!/bin/sh
2680export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
4dcbdbb5 2681export SKIP_ONLINE_TESTS=1
c0240cb1 2682unset TZ LANG LC_ALL || :
2683%{__make} test \
2684 EXTENSION_DIR=modules \
2685 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2686 RUN_TESTS_SETTINGS="-q $*"
2687EOF
2688chmod +x run-tests.sh
336b95c5
ER
2689
2690%if %{with tests}
2691# Run tests, using the CLI SAPI
2692cp -pf php_config.h.cli main/php_config.h
2693cp -pf Makefile.cli Makefile
2694
13ed24d5
ER
2695./run-tests.sh -w failed.log -s tests.log || {
2696rc=$?
c0240cb1 2697
2698# collect failed tests into cleanup script used in prep.
482166f6
ER
2699sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2700sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
c0240cb1 2701 >> %{_sourcedir}/skip-tests.sh
2702
482166f6
ER
2703# if on builders, dump test log
2704tty -q || cat tests.log
5279719f
ER
2705
2706test ! -s failed.log
13ed24d5
ER
2707exit $rc
2708}
c0240cb1 2709%endif
2710
2711%install
2712rm -rf $RPM_BUILD_ROOT
2713install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2714 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2715 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2716 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2717
13f02a12
ER
2718cp -pf php_config.h.cli main/php_config.h
2719cp -pf Makefile.cli Makefile
c0240cb1 2720%{__make} install \
b27ad7c4 2721 phpbuilddir=%{_libdir}/%{name}/build \
c0240cb1 2722 INSTALL_ROOT=$RPM_BUILD_ROOT
2723
7a59d9eb 2724%if %{without default_php}
fc1ec767 2725# version the .phar files
7a59d9eb
JB
2726%{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2727%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2728%endif
2729%if %{with alternatives}
39d2fa27
ER
2730# touch for ghost
2731%{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2732touch $RPM_BUILD_ROOT%{_bindir}/phar
2733touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
7a59d9eb 2734%endif
c0240cb1 2735
c04c07ff
ER
2736# version suffix
2737v=$(echo %{version} | cut -d. -f1-2)
2738
c0240cb1 2739# install Apache1 DSO module
2740%if %{with apache1}
13f02a12 2741libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
7a59d9eb 2742%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
f54bbd0a 2743ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so
c0240cb1 2744%endif
2745
2746# install Apache2 DSO module
2747%if %{with apache2}
13f02a12 2748libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
7a59d9eb 2749%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
f54bbd0a 2750ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
c0240cb1 2751%endif
2752
2753# install litespeed sapi
2754%if %{with litespeed}
f9101cd2 2755libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
c0240cb1 2756%endif
2757
def35a47
ER
2758%if %{with phpdbg}
2759%{__make} -f Makefile.phpdbg install-phpdbg \
be597059 2760 INSTALL="libtool --mode=install install -p" \
def35a47 2761 INSTALL_ROOT=$RPM_BUILD_ROOT
d770f494 2762
7a59d9eb 2763%if %{without default_php}
de7bfc89 2764# version the phpdbg files
7a59d9eb
JB
2765%{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2766%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2767%endif
def35a47
ER
2768%endif
2769
212b9ffa
ER
2770%if %{with milter}
2771%{__make} -f Makefile.milter install-milter \
2772 INSTALL_ROOT=$RPM_BUILD_ROOT
2773%endif
2774
13f02a12 2775libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
c0240cb1 2776
2777# install CGI/FCGI
2778%if %{with cgi}
13f02a12 2779# install-cgi
694e535c
ER
2780libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2781ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
13f02a12 2782cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
c0240cb1 2783%endif
2784
2785# install FCGI PM
2786%if %{with fpm}
2787install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
f9101cd2
ER
2788libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2789cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
13f02a12 2790cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
b604e307 2791cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
c0240cb1 2792install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
f9101cd2 2793install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
d307ed78
ER
2794install -d $RPM_BUILD_ROOT/etc/logrotate.d
2795cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
db9dad5e
ER
2796%if "%{pld_release}" == "ac"
2797%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2798%endif
d307ed78 2799
7a59d9eb 2800%if %{with alternatives}
7da71bbe
ER
2801# touch for ghost for alternatives
2802touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
7a59d9eb 2803%endif
7da71bbe 2804
f9101cd2 2805%{__sed} -i -e '
59064697
ER
2806 s#/usr/lib/php#%{php_extensiondir}#g
2807 s#/etc/php/#%{_sysconfdir}/#g
f9101cd2 2808 s#@processname@#%{name}-fpm#g
b604e307 2809' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf}
13f02a12
ER
2810%endif
2811
2812# install Embedded API
2813%if %{with embed}
13f02a12 2814# we could use install-headers from Makefile.embed, but that would reinstall all headers
82e4c42c 2815# install-sapi installs to wrong dir, so just do it all manually
13f02a12 2816install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
82e4c42c 2817install -p libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}
13f02a12 2818cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
c0240cb1 2819%endif
2820
2821# install CLI
580d93e0
ER
2822# versioned suffix is always installed
2823libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2824cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2825echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2826ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
c0240cb1 2827
f831b4f0 2828cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
13f02a12 2829cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
c0240cb1 2830
2831%if %{with apache1}
13f02a12
ER
2832cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2833cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2834%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
c0240cb1 2835%endif
2836
2837%if %{with apache2}
13f02a12
ER
2838cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2839cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2840%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
c0240cb1 2841%endif
2842
f831b4f0 2843# ensure that paths are correct for current php version and arch
37a42448 2844grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
f831b4f0 2845%{__sed} -i -e '
59064697
ER
2846 s#/usr/lib/php#%{php_extensiondir}#g
2847 s#/etc/php/#%{_sysconfdir}/#g
63bcb1b6 2848'
f831b4f0 2849
c0240cb1 2850install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
13f02a12 2851cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
c0240cb1 2852
2853# per SAPI ini directories
2854install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2855
2856# for CLI SAPI only
7a59d9eb 2857%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
c0240cb1 2858
2859# use system automake and {lib,sh}tool
77ee6bb7 2860ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
b27ad7c4 2861ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
77ee6bb7
ER
2862for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2863 f=%{_aclocaldir}/$fn
2864 test -f $f || continue
2865 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2866done
2867for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2868 f=/usr/share/libtool/$fn
2869 test -f $f || continue
2870 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2871 break
2872done
b27ad7c4 2873sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
c0240cb1 2874
2875# for php-pecl-mailparse
2876install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
13f02a12 2877cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
c0240cb1 2878
2879# tests
2880install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2881install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2882cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2883
13f02a12
ER
2884# fix install paths, avoid evil rpaths
2885sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
13f02a12 2886# better solution?
b27ad7c4 2887sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
13f02a12 2888
b343cce7
ER
2889# somewhy there are installed static versions we don't use
2890%if %{with apache1} || %{with apache2}
2891%{__rm} $RPM_BUILD_ROOT%{_libdir}/apache*/libphp*.a
2892%{__rm} $RPM_BUILD_ROOT%{_libdir}/libphp*.a
2893%{__rm} $RPM_BUILD_ROOT%{php_extensiondir}/*.a
2894%endif
2895
c0240cb1 2896%clean
2897rm -rf $RPM_BUILD_ROOT
2898
aa424f73 2899%post -n apache1-mod_%{name}
c0240cb1 2900if [ "$1" = "1" ]; then
2901 %service -q apache restart
2902fi
2903
aa424f73 2904%postun -n apache1-mod_%{name}
c0240cb1 2905if [ "$1" = "0" ]; then
2906 %service -q apache restart
2907fi
2908
aa424f73 2909%post -n apache-mod_%{name}
c0240cb1 2910if [ "$1" = "1" ]; then
2911 %service -q httpd restart
2912fi
2913
aa424f73 2914%postun -n apache-mod_%{name}
c0240cb1 2915if [ "$1" = "0" ]; then
2916 %service -q httpd restart
2917fi
2918
2919%pre fpm
2920%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2921
2922%post fpm
ff9cec3f
ER
2923/sbin/chkconfig --add %{name}-fpm
2924%service %{name}-fpm restart
7a59d9eb 2925%if %{with alternatives}
7da71bbe 2926update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
7a59d9eb 2927%endif
c0240cb1 2928
2929%preun fpm
8f7b6246 2930if [ "$1" = "0" ]; then
ff9cec3f
ER
2931 %service %{name}-fpm stop
2932 /sbin/chkconfig --del %{name}-fpm
7a59d9eb 2933%if %{with alternatives}
7da71bbe 2934 update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
7a59d9eb 2935%endif
c0240cb1 2936fi
2937
2938%postun fpm
2939if [ "$1" = "0" ]; then
2940 %userremove http
2941fi
2942
13f02a12
ER
2943%post embedded -p /sbin/ldconfig
2944%postun embedded -p /sbin/ldconfig
2945
1ac94d74 2946%posttrans common
c0240cb1 2947# PHP 5.3 requires timezone being setup, try setup it from tzdata
5d43dd0d
ER
2948if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2949 TIMEZONE=
2950 . /etc/sysconfig/timezone
2951 if [ "$TIMEZONE" ]; then
2952 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
c0240cb1 2953 fi
2954fi
2955
c0240cb1 2956# minimizing apache restarts logics. we restart webserver:
2957#
2958# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2959# 2. first install of extension (post: $1 = 1)
2960# 2. uninstall of extension (postun: $1 == 0)
2961#
2962# the strict internal deps between extensions (and apache modules) and
2963# common package are very important for all this to work.
2964
2965# restart webserver at the end of transaction
2966[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2967[ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2968
791b59e4 2969%triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
263ef8fe
ER
2970# migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2971# do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2972# this way we can stick to one trigger, instead of attaching one for each (sub)package!
2973for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2974 test -f "$f" || continue
2975 bn=${f#/etc/php/}
2976 dn=${bn%/*}
2977 fn=${bn#*/}
2978 test "$dn" = "$fn" && dn=
2979 fn=${fn%.rpmsave}
2980 nf=%{_sysconfdir}/$dn/$fn
2981 test -f "$nf" || continue
8f7b6246
TP
2982 cp -vfb $nf{,.rpmnew}
2983 cp -vfb $f $nf
396b93df
ER
2984 %{__sed} -i -e '
2985 s#%{_libdir}/php#%{_libdir}/%{name}#
2986 s#/etc/php#%{_sysconfdir}#
2987 ' $nf
263ef8fe 2988done
9f2b265f
ER
2989# switch to browscap package if the ini file has original value
2990%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
06903eea
ER
2991# disable browscap, if optional package not present
2992if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2993 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2994fi
9f2b265f 2995
f54bbd0a
AM
2996%triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 4:5.6.14-2
2997sed -i -e 's#modules/libphp5.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php.conf
2998
2999%triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:5.6.14-2
3000sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
3001
c0240cb1 3002# common macros called at extension post/postun scriptlet
39d2fa27 3003%define ext_post \
c0240cb1 3004if [ "$1" = "1" ]; then \
3005 %php_webserver_restart \
3006fi \
39d2fa27
ER
3007%{nil}
3008
3009%define ext_postun \
c0240cb1 3010if [ "$1" = "0" ]; then \
3011 %php_webserver_restart \
39d2fa27
ER
3012fi \
3013%{nil}
3014
3015%define extension_scripts() \
3016%post %1 \
3017%ext_post \
3018\
3019%postun %1 \
3ba2282e 3020%ext_postun \
c0240cb1 3021%{nil}
3022
3023# extension scripts defines
3024%extension_scripts bcmath
3025%extension_scripts bz2
3026%extension_scripts calendar
3027%extension_scripts ctype
3028%extension_scripts curl
3029%extension_scripts dba
3030%extension_scripts dom
13f02a12 3031%extension_scripts enchant
c0240cb1 3032%extension_scripts exif
3033%extension_scripts fileinfo
3034%extension_scripts filter
3035%extension_scripts ftp
3036%extension_scripts gd
3037%extension_scripts gettext
3038%extension_scripts gmp
3039%extension_scripts hash
3040%extension_scripts iconv
3041%extension_scripts imap
3042%extension_scripts interbase
3043%extension_scripts intl
3044%extension_scripts json
3045%extension_scripts ldap
3046%extension_scripts mbstring
3047%extension_scripts mcrypt
3048%extension_scripts mssql
3049%extension_scripts mysql
3050%extension_scripts mysqli
3051%extension_scripts mysqlnd
3052%extension_scripts oci8
3053%extension_scripts odbc
8328535b 3054%extension_scripts opcache
c0240cb1 3055%extension_scripts openssl
3056%extension_scripts pcre
e12b4121 3057%extension_scripts pdo
c0240cb1 3058%extension_scripts pdo-dblib
3059%extension_scripts pdo-firebird
56b7d841 3060%extension_scripts pdo-oci
c0240cb1 3061%extension_scripts pdo-mysql
3062%extension_scripts pdo-odbc
3063%extension_scripts pdo-pgsql
3064%extension_scripts pdo-sqlite
3065%extension_scripts pgsql
e12b4121 3066%extension_scripts pcntl
c0240cb1 3067%extension_scripts posix
3068%extension_scripts pspell
3069%extension_scripts recode
3070%extension_scripts session
3071%extension_scripts shmop
e12b4121 3072%extension_scripts simplexml
c0240cb1 3073%extension_scripts snmp
3074%extension_scripts soap
3075%extension_scripts sockets
3076%extension_scripts spl
c0240cb1 3077%extension_scripts sqlite3
3078%extension_scripts sybase-ct
3079%extension_scripts sysvmsg
3080%extension_scripts sysvsem
3081%extension_scripts sysvshm
3082%extension_scripts tidy
3083%extension_scripts tokenizer
3084%extension_scripts wddx
3085%extension_scripts xml
3086%extension_scripts xmlreader
3087%extension_scripts xmlrpc
3088%extension_scripts xmlwriter
3089%extension_scripts xsl
3090%extension_scripts zip
3091%extension_scripts zlib
3092
39d2fa27
ER
3093%post phar
3094%ext_post
7a59d9eb 3095%if %{with alternatives}
39d2fa27
ER
3096update-alternatives \
3097 --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
3098 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
7a59d9eb 3099%endif
39d2fa27
ER
3100
3101%postun phar
3102%ext_postun
7a59d9eb 3103%if %{with alternatives}
39d2fa27
ER
3104if [ $1 -eq 0 ]; then
3105 update-alternatives --remove phar %{_bindir}/phar || :
3106fi
7a59d9eb 3107%endif
39d2fa27 3108
c0240cb1 3109%if %{with apache1}
aa424f73 3110%files -n apache1-mod_%{name}
c0240cb1 3111%defattr(644,root,root,755)
3112%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
3113%dir %{_sysconfdir}/apache.d
3114%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
f54bbd0a 3115%attr(755,root,root) %{_libdir}/apache1/mod_php.so
c04c07ff 3116%attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
c0240cb1 3117%endif
3118
3119%if %{with apache2}
aa424f73 3120%files -n apache-mod_%{name}
c0240cb1 3121%defattr(644,root,root,755)
3122%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
c2fac5e2
AM
3123%attr(755,root,root) %{_libdir}/apache/mod_php.so
3124
3125%files -n apache-mod_%{name}-core
3126%defattr(644,root,root,755)
c0240cb1 3127%dir %{_sysconfdir}/apache2handler.d
3128%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
c04c07ff 3129%attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
c0240cb1 3130%endif
3131
3132%if %{with litespeed}
3133%files litespeed
3134%defattr(644,root,root,755)
aa424f73 3135%attr(755,root,root) %{_sbindir}/%{name}.litespeed
c0240cb1 3136%endif
3137
3138%if %{with cgi}
3139%files cgi
3140%defattr(644,root,root,755)
3141%dir %{_sysconfdir}/cgi-fcgi.d
3142%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
694e535c
ER
3143%attr(755,root,root) %{_bindir}/%{name}.cgi
3144%attr(755,root,root) %{_bindir}/%{name}.fcgi
c0240cb1 3145%endif
3146
13f02a12
ER
3147%if %{with embed}
3148%files embedded
3149%defattr(644,root,root,755)
82e4c42c 3150%attr(755,root,root) %{_libdir}/libphp5.so
13f02a12
ER
3151%endif
3152
c0240cb1 3153%files cli
3154%defattr(644,root,root,755)
3155%dir %{_sysconfdir}/cli.d
3156%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
580d93e0
ER
3157%attr(755,root,root) %{_bindir}/php%{ver_suffix}
3158%{_mandir}/man1/php%{ver_suffix}.1*
c0240cb1 3159
3160%files program
3161%defattr(644,root,root,755)
3162%attr(755,root,root) %{_bindir}/php
872bc3df 3163%{_mandir}/man1/php.1*
c0240cb1 3164
3165%if %{with fpm}
3166%files fpm
3167%defattr(644,root,root,755)
13f02a12 3168%doc sapi/fpm/{CREDITS,LICENSE}
c0240cb1 3169%dir %{_sysconfdir}/fpm.d
3170%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
b604e307 3171%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
f9101cd2 3172%attr(755,root,root) %{_sbindir}/%{name}-fpm
7a59d9eb 3173%if %{with alternatives}
7da71bbe 3174%ghost %{_sbindir}/php-fpm
7a59d9eb 3175%endif
f9101cd2
ER
3176%{_mandir}/man8/%{name}-fpm.8*
3177%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
3178%attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
c0240cb1 3179%endif
3180
c42c0fb8 3181%if %{with phpdbg}
8d42644e
ER
3182%files phpdbg
3183%defattr(644,root,root,755)
7a59d9eb
JB
3184%attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
3185%{_mandir}/man1/phpdbg%{php_suffix}.1*
c42c0fb8 3186%endif
8d42644e 3187
212b9ffa
ER
3188%if %{with milter}
3189%files milter
3190%defattr(644,root,root,755)
3191%attr(755,root,root) %{_bindir}/php-milter
3192%endif
3193
c0240cb1 3194%files common
3195%defattr(644,root,root,755)
f6e04c57 3196%doc CREDITS EXTENSIONS LICENSE NEWS README.namespaces UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-* .gdbinit
c0240cb1 3197%dir %{_sysconfdir}
3198%dir %{_sysconfdir}/conf.d
3199%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
140f4c8c 3200%if %{with apache1} || %{with apache2}
c0240cb1 3201%attr(755,root,root) %{_libdir}/libphp_common-*.so
140f4c8c 3202%endif
c0240cb1 3203%dir %{php_extensiondir}
3204
13f02a12
ER
3205%doc ext/session/mod_files.sh
3206
c0240cb1 3207%files devel
3208%defattr(644,root,root,755)
8d42644e 3209%doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
c0240cb1 3210%attr(755,root,root) %{_bindir}/phpize
3211%attr(755,root,root) %{_bindir}/php-config
140f4c8c 3212%if %{with apache1} || %{with apache2}
c0240cb1 3213%attr(755,root,root) %{_libdir}/libphp_common.so
140f4c8c
JK
3214%else
3215%attr(755,root,root) %{_libdir}/libphp_common.a
3216%endif
c0240cb1 3217%{_libdir}/libphp_common.la
3218%{_includedir}/php
b27ad7c4 3219%{_libdir}/%{name}/build
c0240cb1 3220%{_mandir}/man1/php-config.1*
3221%{_mandir}/man1/phpize.1*
3222
476107e3 3223%if %{with bcmath}
c0240cb1 3224%files bcmath
3225%defattr(644,root,root,755)
3226%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
3227%attr(755,root,root) %{php_extensiondir}/bcmath.so
476107e3 3228%endif
c0240cb1 3229
476107e3 3230%if %{with bz2}
c0240cb1 3231%files bz2
3232%defattr(644,root,root,755)
8cd9d573 3233%doc ext/bz2/CREDITS
c0240cb1 3234%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
3235%attr(755,root,root) %{php_extensiondir}/bz2.so
476107e3 3236%endif
c0240cb1 3237
476107e3 3238%if %{with calendar}
c0240cb1 3239%files calendar
3240%defattr(644,root,root,755)
8cd9d573 3241%doc ext/calendar/CREDITS
c0240cb1 3242%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
3243%attr(755,root,root) %{php_extensiondir}/calendar.so
476107e3 3244%endif
c0240cb1 3245
476107e3 3246%if %{with ctype}
c0240cb1 3247%files ctype
3248%defattr(644,root,root,755)
8cd9d573 3249%doc ext/calendar/CREDITS
c0240cb1 3250%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
3251%attr(755,root,root) %{php_extensiondir}/ctype.so
476107e3 3252%endif
c0240cb1 3253
3254%if %{with curl}
3255%files curl
3256%defattr(644,root,root,755)
8cd9d573 3257%doc ext/curl/CREDITS
c0240cb1 3258%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
3259%attr(755,root,root) %{php_extensiondir}/curl.so
3260%endif
3261
476107e3 3262%if %{with dba}
c0240cb1 3263%files dba
3264%defattr(644,root,root,755)
cd6e98f7 3265%doc ext/dba/{CREDITS,README}
c0240cb1 3266%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
3267%attr(755,root,root) %{php_extensiondir}/dba.so
476107e3 3268%endif
c0240cb1 3269
476107e3 3270%if %{with dom}
c0240cb1 3271%files dom
3272%defattr(644,root,root,755)
8cd9d573 3273%doc ext/dom/{CREDITS,TODO}
894cb112 3274%doc ext/dom/examples
c0240cb1 3275%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
3276%attr(755,root,root) %{php_extensiondir}/dom.so
476107e3 3277%endif
c0240cb1 3278
e5448b0f 3279%if %{with enchant}
13f02a12
ER
3280%files enchant
3281%defattr(644,root,root,755)
3282%doc ext/enchant/{CREDITS,docs/examples}
3283%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
3284%attr(755,root,root) %{php_extensiondir}/enchant.so
e5448b0f 3285%endif
13f02a12 3286
476107e3 3287%if %{with exif}
c0240cb1 3288%files exif
3289%defattr(644,root,root,755)
8cd9d573 3290%doc ext/exif/CREDITS
c0240cb1 3291%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
3292%attr(755,root,root) %{php_extensiondir}/exif.so
476107e3 3293%endif
c0240cb1 3294
476107e3 3295%if %{with fileinfo}
c0240cb1 3296%files fileinfo
3297%defattr(644,root,root,755)
8cd9d573 3298%doc ext/fileinfo/CREDITS
c0240cb1 3299%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3300%attr(755,root,root) %{php_extensiondir}/fileinfo.so
476107e3 3301%endif
c0240cb1 3302
3303%if %{with filter}
3304%files filter
3305%defattr(644,root,root,755)
8cd9d573 3306%doc ext/filter/{CREDITS,docs/*}
c0240cb1 3307%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3308%attr(755,root,root) %{php_extensiondir}/filter.so
3309%endif
3310
476107e3 3311%if %{with ftp}
c0240cb1 3312%files ftp
3313%defattr(644,root,root,755)
8cd9d573 3314%doc ext/ftp/CREDITS
c0240cb1 3315%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3316%attr(755,root,root) %{php_extensiondir}/ftp.so
476107e3 3317%endif
c0240cb1 3318
476107e3 3319%if %{with gd}
c0240cb1 3320%files gd
3321%defattr(644,root,root,755)
8cd9d573 3322%doc ext/gd/CREDITS
c0240cb1 3323%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3324%attr(755,root,root) %{php_extensiondir}/gd.so
476107e3 3325%endif
c0240cb1 3326
476107e3 3327%if %{with gettext}
c0240cb1 3328%files gettext
3329%defattr(644,root,root,755)
8cd9d573 3330%doc ext/gettext/CREDITS
c0240cb1 3331%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3332%attr(755,root,root) %{php_extensiondir}/gettext.so
476107e3 3333%endif
c0240cb1 3334
476107e3 3335%if %{with gmp}
c0240cb1 3336%files gmp
3337%defattr(644,root,root,755)
8cd9d573 3338%doc ext/gmp/{CREDITS,README,TODO}
c0240cb1 3339%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3340%attr(755,root,root) %{php_extensiondir}/gmp.so
476107e3 3341%endif
c0240cb1 3342
476107e3 3343%if %{with hash}
c0240cb1 3344%files hash
3345%defattr(644,root,root,755)
8cd9d573 3346%doc ext/hash/{CREDITS,README}
c0240cb1 3347%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
3348%attr(755,root,root) %{php_extensiondir}/hash.so
476107e3 3349%endif
c0240cb1 3350
476107e3 3351%if %{with iconv}
c0240cb1 3352%files iconv
3353%defattr(644,root,root,755)
8cd9d573 3354%doc ext/iconv/CREDITS
c0240cb1 3355%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3356%attr(755,root,root) %{php_extensiondir}/iconv.so
476107e3 3357%endif
c0240cb1 3358
3359%if %{with imap}
3360%files imap
3361%defattr(644,root,root,755)
8cd9d573 3362%doc ext/imap/CREDITS
c0240cb1 3363%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3364%attr(755,root,root) %{php_extensiondir}/imap.so
3365%endif
3366
3367%if %{with interbase}
3368%files interbase
3369%defattr(644,root,root,755)
8cd9d573 3370%doc ext/interbase/CREDITS
c0240cb1 3371%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3372%attr(755,root,root) %{php_extensiondir}/interbase.so
3373%endif
3374
689a4e56 3375%if %{with intl}
c0240cb1 3376%files intl
3377%defattr(644,root,root,755)
8cd9d573 3378%doc ext/intl/{CREDITS,TODO}
c0240cb1 3379%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3380%attr(755,root,root) %{php_extensiondir}/intl.so
689a4e56 3381%endif
c0240cb1 3382
476107e3 3383%if %{with json}
c0240cb1 3384%files json
3385%defattr(644,root,root,755)
8cd9d573 3386%doc ext/json/CREDITS
c0240cb1 3387%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3388%attr(755,root,root) %{php_extensiondir}/json.so
476107e3 3389%endif
c0240cb1 3390
3391%if %{with ldap}
3392%files ldap
3393%defattr(644,root,root,755)
8cd9d573 3394%doc ext/ldap/CREDITS
c0240cb1 3395%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3396%attr(755,root,root) %{php_extensiondir}/ldap.so
3397%endif
3398
476107e3 3399%if %{with mbstring}
c0240cb1 3400%files mbstring
3401%defattr(644,root,root,755)
8cd9d573 3402%doc ext/mbstring/{CREDITS,README*}
c0240cb1 3403%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3404%attr(755,root,root) %{php_extensiondir}/mbstring.so
476107e3 3405%endif
c0240cb1 3406
476107e3 3407%if %{with mcrypt}
c0240cb1 3408%files mcrypt
3409%defattr(644,root,root,755)
8cd9d573 3410%doc ext/mcrypt/{CREDITS,TODO}
c0240cb1 3411%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3412%attr(755,root,root) %{php_extensiondir}/mcrypt.so
476107e3 3413%endif
c0240cb1 3414
3415%if %{with mssql}
3416%files mssql
3417%defattr(644,root,root,755)
8cd9d573 3418%doc ext/mssql/CREDITS
c0240cb1 3419%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3420%attr(755,root,root) %{php_extensiondir}/mssql.so
3421%endif
3422
9cda7e6f 3423%if %{with mysql}
c0240cb1 3424%files mysql
3425%defattr(644,root,root,755)
8cd9d573 3426%doc ext/mysql/CREDITS
c0240cb1 3427%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3428%attr(755,root,root) %{php_extensiondir}/mysql.so
9cda7e6f 3429%endif
c0240cb1 3430
3431%if %{with mysqli}
3432%files mysqli
3433%defattr(644,root,root,755)
8cd9d573 3434%doc ext/mysqli/{CREDITS,TODO}
c0240cb1 3435%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3436%attr(755,root,root) %{php_extensiondir}/mysqli.so
3437%endif
3438
3439%if %{with mysqlnd}
3440%files mysqlnd
3441%defattr(644,root,root,755)
8cd9d573 3442%doc ext/mysqlnd/CREDITS
c0240cb1 3443%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3444%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3445%endif
3446
329b4394 3447%if %{with oci}
c0240cb1 3448%files oci8
3449%defattr(644,root,root,755)
580d93e0 3450%doc ext/oci8/{CREDITS,README}
c0240cb1 3451%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3452%attr(755,root,root) %{php_extensiondir}/oci8.so
3453%endif
3454
3455%if %{with odbc}
3456%files odbc
3457%defattr(644,root,root,755)
8cd9d573 3458%doc ext/odbc/CREDITS
c0240cb1 3459%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3460%attr(755,root,root) %{php_extensiondir}/odbc.so
3461%endif
3462
8328535b
ER
3463%if %{with opcache}
3464%files opcache
3465%defattr(644,root,root,755)
3466%doc ext/opcache/README
3467%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3468%attr(755,root,root) %{php_extensiondir}/opcache.so
3469%endif
3470
c0240cb1 3471%if %{with openssl}
3472%files openssl
3473%defattr(644,root,root,755)
8cd9d573 3474%doc ext/openssl/{CREDITS,README}
c0240cb1 3475%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3476%attr(755,root,root) %{php_extensiondir}/openssl.so
3477%endif
3478
476107e3 3479%if %{with pcntl}
c0240cb1 3480%files pcntl
3481%defattr(644,root,root,755)
8cd9d573 3482%doc ext/pcntl/{CREDITS,README}
c0240cb1 3483%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3484%attr(755,root,root) %{php_extensiondir}/pcntl.so
476107e3 3485%endif
c0240cb1 3486
3487%if %{with pcre}
3488%files pcre
3489%defattr(644,root,root,755)
8cd9d573 3490%doc ext/pcre/CREDITS
c0240cb1 3491%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3492%attr(755,root,root) %{php_extensiondir}/pcre.so
3493%endif
3494
476107e3 3495%if %{with pdo}
c0240cb1 3496%files pdo
3497%defattr(644,root,root,755)
8cd9d573 3498%doc ext/pdo/{CREDITS,README,TODO}
c0240cb1 3499%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3500%attr(755,root,root) %{php_extensiondir}/pdo.so
476107e3 3501%endif
c0240cb1 3502
006a7eb1 3503%if %{with pdo_dblib}
c0240cb1 3504%files pdo-dblib
3505%defattr(644,root,root,755)
8cd9d573 3506%doc ext/pdo_dblib/{CREDITS,README}
c0240cb1 3507%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3508%attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3509%endif
3510
3511%if %{with interbase} && !%{with interbase_inst}
3512%files pdo-firebird
3513%defattr(644,root,root,755)
8cd9d573 3514%doc ext/pdo_firebird/CREDITS
c0240cb1 3515%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3516%attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3517%endif
3518
476107e3 3519%if %{with pdo_mysql}
c0240cb1 3520%files pdo-mysql
3521%defattr(644,root,root,755)
8cd9d573 3522%doc ext/pdo_mysql/CREDITS
c0240cb1 3523%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3524%attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
476107e3 3525%endif
c0240cb1 3526
329b4394 3527%if %{with oci}
c0240cb1 3528%files pdo-oci
3529%defattr(644,root,root,755)
8cd9d573 3530%doc ext/pdo_oci/CREDITS
c0240cb1 3531%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3532%attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3533%endif
3534
3535%if %{with odbc}
3536%files pdo-odbc
3537%defattr(644,root,root,755)
8cd9d573 3538%doc ext/pdo_odbc/CREDITS
c0240cb1 3539%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3540%attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3541%endif
3542
3543%if %{with pgsql}
3544%files pdo-pgsql
3545%defattr(644,root,root,755)
8cd9d573 3546%doc ext/pdo_pgsql/CREDITS
c0240cb1 3547%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3548%attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3549%endif
3550
3551%if %{with pdo_sqlite}
3552%files pdo-sqlite
3553%defattr(644,root,root,755)
8cd9d573 3554%doc ext/pdo_sqlite/CREDITS
c0240cb1 3555%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3556%attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3557%endif
3558
3559%if %{with pgsql}
3560%files pgsql
3561%defattr(644,root,root,755)
8cd9d573 3562%doc ext/pgsql/{CREDITS,README}
c0240cb1 3563%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3564%attr(755,root,root) %{php_extensiondir}/pgsql.so
3565%endif
3566
3567%if %{with phar}
3568%files phar
3569%defattr(644,root,root,755)
8cd9d573 3570%doc ext/phar/{CREDITS,TODO}
c0240cb1 3571%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3572%attr(755,root,root) %{php_extensiondir}/phar.so
7a59d9eb
JB
3573%attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3574%{_mandir}/man1/phar%{php_suffix}.1*
3575%{_mandir}/man1/phar.phar.1*
3576%if %{with alternatives}
39d2fa27
ER
3577%ghost %{_bindir}/phar
3578%ghost %{_mandir}/man1/phar.1
7a59d9eb
JB
3579%else
3580%attr(755,root,root) %{_bindir}/phar
3581%endif
c0240cb1 3582%endif
3583
476107e3 3584%if %{with posix}
c0240cb1 3585%files posix
3586%defattr(644,root,root,755)
8cd9d573 3587%doc ext/posix/CREDITS
c0240cb1 3588%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3589%attr(755,root,root) %{php_extensiondir}/posix.so
476107e3 3590%endif
c0240cb1 3591
3592%if %{with pspell}
3593%files pspell
3594%defattr(644,root,root,755)
8cd9d573 3595%doc ext/pspell/{CREDITS,README}
c0240cb1 3596%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3597%attr(755,root,root) %{php_extensiondir}/pspell.so
3598%endif
3599
476107e3 3600%if %{with readline}
c0240cb1 3601%files readline
3602%defattr(644,root,root,755)
8cd9d573 3603%doc ext/readline/{CREDITS,README*}
c0240cb1 3604%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3605%attr(755,root,root) %{php_extensiondir}/readline.so
476107e3 3606%endif
c0240cb1 3607
3608%if %{with recode}
3609%files recode
3610%defattr(644,root,root,755)
8cd9d573 3611%doc ext/recode/CREDITS
c0240cb1 3612%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3613%attr(755,root,root) %{php_extensiondir}/recode.so
3614%endif
3615
476107e3 3616%if %{with session}
c0240cb1 3617%files session
3618%defattr(644,root,root,755)
8cd9d573 3619%doc ext/session/CREDITS
c0240cb1 3620%doc ext/session/mod_files.sh
3621%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3622%attr(755,root,root) %{php_extensiondir}/session.so
476107e3 3623%endif
c0240cb1 3624
3625%files shmop
3626%defattr(644,root,root,755)
8cd9d573 3627%doc ext/shmop/{CREDITS,README}
c0240cb1 3628%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3629%attr(755,root,root) %{php_extensiondir}/shmop.so
3630
3631%files simplexml
3632%defattr(644,root,root,755)
8cd9d573 3633%doc ext/simplexml/{CREDITS,README}
894cb112 3634%doc ext/simplexml/examples
c0240cb1 3635%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3636%attr(755,root,root) %{php_extensiondir}/simplexml.so
3637
3638%if %{with snmp}
3639%files snmp
3640%defattr(644,root,root,755)
8cd9d573 3641%doc ext/snmp/CREDITS
c0240cb1 3642%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3643%attr(755,root,root) %{php_extensiondir}/snmp.so
3644%endif
3645
3646%files soap
3647%defattr(644,root,root,755)
8cd9d573 3648%doc ext/soap/{CREDITS,TODO*}
c0240cb1 3649%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3650%attr(755,root,root) %{php_extensiondir}/soap.so
3651
3652%files sockets
3653%defattr(644,root,root,755)
8cd9d573 3654%doc ext/sockets/CREDITS
c0240cb1 3655%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3656%attr(755,root,root) %{php_extensiondir}/sockets.so
3657
3658%files spl
3659%defattr(644,root,root,755)
894cb112
ER
3660%doc ext/spl/{CREDITS,README,TODO}
3661%doc ext/spl/examples
c0240cb1 3662%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3663%attr(755,root,root) %{php_extensiondir}/spl.so
3664
c0240cb1 3665%if %{with sqlite3}
3666%files sqlite3
3667%defattr(644,root,root,755)
3668%doc ext/sqlite3/CREDITS
3669%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3670%attr(755,root,root) %{php_extensiondir}/sqlite3.so
3671%endif
3672
3673%if %{with sybase_ct}
3674%files sybase-ct
3675%defattr(644,root,root,755)
8cd9d573 3676%doc ext/sybase_ct/CREDITS
c0240cb1 3677%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3678%attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3679%endif
3680
3681%files sysvmsg
3682%defattr(644,root,root,755)
8cd9d573 3683%doc ext/sysvmsg/CREDITS
c0240cb1 3684%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3685%attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3686
3687%files sysvsem
3688%defattr(644,root,root,755)
8cd9d573 3689%doc ext/sysvsem/CREDITS
c0240cb1 3690%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3691%attr(755,root,root) %{php_extensiondir}/sysvsem.so
3692
3693%files sysvshm
3694%defattr(644,root,root,755)
8cd9d573 3695%doc ext/sysvshm/CREDITS
c0240cb1 3696%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3697%attr(755,root,root) %{php_extensiondir}/sysvshm.so
3698
3699%files tests
3700%defattr(644,root,root,755)
a3c07000 3701%dir %{php_data_dir}/tests
c0240cb1 3702%dir %{php_data_dir}/tests/php
3703%{php_data_dir}/tests/php/basic
3704%{php_data_dir}/tests/php/classes
3705%{php_data_dir}/tests/php/func
3706%{php_data_dir}/tests/php/lang
3707%{php_data_dir}/tests/php/output
3708%{php_data_dir}/tests/php/run-test
3709%{php_data_dir}/tests/php/security
3710%{php_data_dir}/tests/php/strings
3711%{php_data_dir}/tests/php/quicktester.inc
3712%attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3713
3714%if %{with tidy}
3715%files tidy
3716%defattr(644,root,root,755)
8cd9d573 3717%doc ext/tidy/{CREDITS,README}
894cb112 3718%doc ext/tidy/examples
c0240cb1 3719%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3720%attr(755,root,root) %{php_extensiondir}/tidy.so
3721%endif
3722
3723%files tokenizer
3724%defattr(644,root,root,755)
8cd9d573 3725%doc ext/tokenizer/CREDITS
c0240cb1 3726%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3727%attr(755,root,root) %{php_extensiondir}/tokenizer.so
3728
3729%if %{with wddx}
3730%files wddx
3731%defattr(644,root,root,755)
8cd9d573 3732%doc ext/wddx/CREDITS
c0240cb1 3733%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3734%attr(755,root,root) %{php_extensiondir}/wddx.so
3735%endif
3736
3737%files xml
3738%defattr(644,root,root,755)
8cd9d573 3739%doc ext/xml/CREDITS
c0240cb1 3740%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3741%attr(755,root,root) %{php_extensiondir}/xml.so
3742
3743%files xmlreader
3744%defattr(644,root,root,755)
894cb112
ER
3745%doc ext/xmlreader/{CREDITS,README,TODO}
3746%doc ext/xmlreader/examples
c0240cb1 3747%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3748%attr(755,root,root) %{php_extensiondir}/xmlreader.so
3749
3750%if %{with xmlrpc}
3751%files xmlrpc
3752%defattr(644,root,root,755)
8cd9d573 3753%doc ext/xmlrpc/CREDITS
c0240cb1 3754%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3755%attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3756%endif
3757
3758%files xmlwriter
3759%defattr(644,root,root,755)
8cd9d573 3760%doc ext/xmlwriter/{CREDITS,TODO}
894cb112 3761%doc ext/xmlwriter/examples
c0240cb1 3762%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3763%attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3764
3765%files xsl
3766%defattr(644,root,root,755)
8cd9d573 3767%doc ext/xsl/CREDITS
c0240cb1 3768%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3769%attr(755,root,root) %{php_extensiondir}/xsl.so
3770
3771%files zip
3772%defattr(644,root,root,755)
8cd9d573 3773%doc ext/zip/{CREDITS,TODO}
894cb112 3774%doc ext/zip/examples
c0240cb1 3775%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3776%attr(755,root,root) %{php_extensiondir}/zip.so
3777
3778%files zlib
3779%defattr(644,root,root,755)
8cd9d573 3780%doc ext/zlib/CREDITS
c0240cb1 3781%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3782%attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.899109 seconds and 4 git commands to generate.