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