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