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