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