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