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