]> git.pld-linux.org Git - packages/php.git/blame - php.spec
devel obsoletes php70-devel
[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
ddd998b3 129%define rel 1
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}
ad39e63a 140Version: 5.5.28
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
ad39e63a 149# Source0-md5: d0caf908b129f2538d942d756c4cb04e
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
c0240cb1 212URL: http://www.php.net/
213%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
214%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
9eb543e2 215BuildRequires: autoconf >= 2.59
c0240cb1 216BuildRequires: automake >= 1.4d
217BuildRequires: bison
218BuildRequires: bzip2-devel
219%{?with_curl:BuildRequires: curl-devel >= 7.12.0}
220BuildRequires: cyrus-sasl-devel
221BuildRequires: db-devel >= 4.0
222BuildRequires: elfutils-devel
13f02a12 223%{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
c0240cb1 224%{?with_kerberos5:BuildRequires: heimdal-devel}
3f5c4b2e 225%{?with_system_libzip:BuildRequires: libzip-devel >= 0.10.1-2}
81d9fe7d 226%{!?with_mysqlnd:BuildRequires: mysql-devel}
c0240cb1 227BuildRequires: pkgconfig
228BuildRequires: sed >= 4.0
229%if %{with mssql} || %{with sybase_ct}
230BuildRequires: freetds-devel >= 0.82
231%endif
7d68bd4f 232BuildRequires: freetype-devel >= 1:2.5.1
c0240cb1 233%if %{with system_gd}
73c5128c 234BuildRequires: gd-devel >= 2.1
c0240cb1 235%endif
236BuildRequires: gdbm-devel
237BuildRequires: gmp-devel
238%{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
9efb5102 239%{?with_intl:BuildRequires: libicu-devel >= 4.4}
c0240cb1 240BuildRequires: libjpeg-devel
241BuildRequires: libltdl-devel >= 1.4
242BuildRequires: libmcrypt-devel >= 2.4.4
243BuildRequires: libpng-devel >= 1.0.8
d8c3b589 244%{?with_webp:BuildRequires: libvpx-devel}
36fd40c8 245BuildRequires: tokyocabinet-devel
c0240cb1 246%if "%{pld_release}" != "ac"
247BuildRequires: libtool >= 2:2.2
248%else
249BuildRequires: libtool >= 1.4.3
250%endif
c0240cb1 251BuildRequires: libxml2-devel >= 1:2.7.6-4
252BuildRequires: libxslt-devel >= 1.1.0
253%{?with_mm:BuildRequires: mm-devel >= 1.3.0}
254%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
255%if %{with openssl} || %{with ldap}
256BuildRequires: openssl-devel >= 0.9.7d
257%endif
258%{?with_gcov:BuildRequires: lcov}
259%{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
260%{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
329b4394 261%{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
c0240cb1 262BuildRequires: pam-devel
263%{?with_pcre:BuildRequires: pcre-devel >= 8.10}
264BuildRequires: pkgconfig
265%{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
266%{?with_pgsql:BuildRequires: postgresql-devel}
267BuildRequires: readline-devel
268%{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
269BuildRequires: rpm >= 4.4.9-56
270BuildRequires: rpm-build >= 4.4.0
271BuildRequires: rpmbuild(macros) >= 1.566
9efb5102
ER
272BuildRequires: tar >= 1:1.22
273BuildRequires: xz
c0240cb1 274%if %{with sqlite3} || %{with pdo_sqlite}
275BuildRequires: sqlite3-devel >= 3.3.9
276%endif
277BuildRequires: t1lib-devel
278%{?with_tidy:BuildRequires: tidy-devel}
279%{?with_odbc:BuildRequires: unixODBC-devel}
280%{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
281BuildRequires: zlib-devel >= 1.0.9
282%if %{with apache1}
283BuildRequires: apache1-devel
284%endif
285%if %{with apache2}
286BuildRequires: apache-devel >= 2.0.52-2
287BuildRequires: apr-devel >= 1:1.0.0
288BuildRequires: apr-util-devel >= 1:1.0.0
289%endif
c0240cb1 290BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
291
cfb6f787
ER
292%define php_sysconfdir /etc/%{name}
293%define php_extensiondir %{_libdir}/%{name}
c0240cb1 294%define _sysconfdir %{php_sysconfdir}
295
296# must be in sync with source. extra check ensuring that it is so is done in %%build
9efb5102 297%define php_api_version 20121113
153a312d
ER
298%define zend_module_api 20121212
299%define zend_extension_api 220121212
a6af2a14 300%define php_pdo_api_version 20080721
c0240cb1 301
13f02a12
ER
302# Extension versions
303%define bz2ver 1.0
304%define enchantver 1.1.0
2e0e7ed6 305%define fileinfover 1.0.5
13f02a12
ER
306%define hashver 1.0
307%define intlver 1.1.0
308%define jsonver 1.2.1
ddd998b3 309%define opcachever 7.0.6-dev
ece5522f 310%define pharver 2.0.2
9efb5102 311%define sqlite3ver 0.7-dev
ce9aa3af 312%define zipver 1.11.0
13f02a12 313
a6af2a14 314%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
c0240cb1 315%define php_debug %{!?debug:0}%{?debug:1}
316
317%if %{with gcov}
318%undefine with_ccache
319%endif
320
329b4394 321%if %{with oci}
c0240cb1 322# ORACLE_HOME is required for oci8 ext to build
323%define _preserve_env %_preserve_env_base ORACLE_HOME
324%endif
325
326%description
327PHP is an HTML-embedded scripting language. PHP attempts to make it
328easy for developers to write dynamically generated web pages. PHP also
329offers built-in database integration for several commercial and
330non-commercial database management systems, so writing a
331database-enabled web page with PHP is fairly simple. The most common
332use of PHP coding is probably as a replacement for CGI scripts. The
333mod_php module enables the Apache web server to understand and process
334the embedded PHP language in web pages. This package contains PHP
335version %{version}.
336
337%description -l fr.UTF-8
338PHP est un langage de script embarque dans le HTM. PHP essaye de
339rendre simple aux developpeurs d'ecrire des pages web generees
340dynamiquement. PHP incorpore egalement une integration avec plusieurs
341systemes de gestion de bases de donnees commerciaux et
342non-connerciaux, qui rent facile la creation de pages web liees avec
343des bases de donnees. L'utilisation la plus commune de PHP est
344probablement en remplacement de scripts CGI. Le module mod_php permet
345au serveur web Apache de comprendre et de traiter le langage PHP
346integre dans des pages web. Ce package contient PHP version
347%{version}.
348
349%description -l pl.UTF-8
350PHP jest językiem skryptowym, którego polecenia umieszcza się w
351plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
352generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
353danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
354co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
355Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
356CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
357język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
358%{version}.
359
360%description -l pt_BR.UTF-8
361PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
362embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
363com algumas características únicas, específicas ao PHP. O objetivo da
364linguagem é permitir que desenvolvedores web escrevam páginas
365dinamicamente geradas de forma rápida.
366
367%description -l ru.UTF-8
368PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
369предлагает интерграцию с множеством СУБД, поэтому написание скриптов
370для работы с базами данных относительно просто. Наиболее популярное
371использование PHP - замена для CGI скриптов.
372
373%description -l uk.UTF-8
374PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
375пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
376роботи з базами даних є доволі простим. Найбільш популярне
377використання PHP - заміна для CGI скриптів.
378
aa424f73 379%package -n apache1-mod_%{name}
c0240cb1 380Summary: PHP DSO module for Apache 1.3.x
381Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
382Group: Development/Languages/PHP
c0240cb1 383Requires: %{name}-common = %{epoch}:%{version}-%{release}
384Requires: apache1(EAPI) >= 1.3.33-2
385Requires: apache1-mod_mime
386Provides: webserver(php) = %{version}
387Obsoletes: apache-mod_php < 1:4.1.1
d6634248 388Obsoletes: apache1-mod_php < 4:5.3.28-7
c0240cb1 389Obsoletes: phpfi
390
aa424f73 391%description -n apache1-mod_%{name}
c0240cb1 392PHP as DSO module for Apache 1.3.x.
393
aa424f73 394%description -n apache1-mod_%{name} -l pl.UTF-8
c0240cb1 395PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
396
aa424f73 397%package -n apache-mod_%{name}
c0240cb1 398Summary: PHP DSO module for Apache 2.x
399Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
400Group: Development/Languages/PHP
401Requires: %{name}-common = %{epoch}:%{version}-%{release}
402Requires: apache(modules-api) = %{apache_modules_api}
403Requires: apache-mod_mime
404Provides: webserver(php) = %{version}
d6634248 405Obsoletes: apache-mod_php < 4:5.3.28-7
c0240cb1 406Obsoletes: phpfi
407
aa424f73 408%description -n apache-mod_%{name}
c0240cb1 409PHP as DSO module for Apache 2.x.
410
aa424f73 411%description -n apache-mod_%{name} -l pl.UTF-8
c0240cb1 412PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
413
414%package litespeed
415Summary: PHP for litespeed HTTP server
416Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
417Group: Development/Languages/PHP
418Requires: %{name}-common = %{epoch}:%{version}-%{release}
2ca856d0 419Provides: php(litespeed)
c0240cb1 420Provides: webserver(php) = %{version}
d6634248 421Obsoletes: php-litespeed < 4:5.3.28-7
c0240cb1 422
423%description litespeed
424PHP for litespeed HTTP server.
425
426%description litespeed -l pl.UTF-8
427PHP dla serwera HTTP litespeed.
428
429%package cgi
430Summary: PHP as CGI/FastCGI program
431Summary(pl.UTF-8): PHP jako program CGI/FastCGI
432Group: Development/Languages/PHP
433Requires: %{name}-common = %{epoch}:%{version}-%{release}
434Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
435Provides: php(cgi)
436Provides: php(fcgi)
ecbcdf28 437Provides: webserver(php) = %{version}
d6634248 438Obsoletes: php-cgi < 4:5.3.28-7
c0240cb1 439Obsoletes: php-fcgi < 4:5.3.0
440
441%description cgi
442PHP as CGI or FastCGI program.
443
444%description cgi -l pl.UTF-8
445PHP jako program CGI lub FastCGI.
446
447%package cli
448Summary: PHP as CLI interpreter
449Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
450Group: Development/Languages/PHP
451Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 452Obsoletes: php-cli < 4:5.3.28-7
c0240cb1 453
454%description cli
455PHP as CLI interpreter.
456
457%description cli -l pl.UTF-8
458PHP jako interpreter działający z linii poleceń.
459
13f02a12
ER
460%package embedded
461Summary: PHP library for embedding in applications
0bbc8abe 462Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
13f02a12
ER
463Group: Libraries
464Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 465Obsoletes: php-embedded < 4:5.3.28-7
13f02a12
ER
466
467%description embedded
468The php-embedded package contains a library which can be embedded into
469applications to provide PHP scripting language support.
470
0bbc8abe 471%description embedded -l pl.UTF-8
cfb6f787 472Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
0bbc8abe
JB
473celu obsługi PHP jako języka skryptowego.
474
c0240cb1 475%package program
476Summary: /usr/bin/php symlink
477Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
478Group: Development/Languages/PHP
479Requires: %{name}-cli = %{epoch}:%{version}-%{release}
480Obsoletes: /usr/bin/php
e54798c7 481Obsoletes: php-program < 4:5.3.28-7
c0240cb1 482
483%description program
484Package providing /usr/bin/php symlink to PHP CLI.
485
486%description program -l pl.UTF-8
487Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
488
489%package fpm
490Summary: PHP FastCGI Process Manager
491Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
492Group: Development/Languages/PHP
493URL: http://www.php-fpm.org/
494Requires(post,preun): /sbin/chkconfig
495Requires(postun): /usr/sbin/userdel
496Requires(pre): /bin/id
497Requires(pre): /usr/sbin/useradd
498Requires: %{name}-common = %{epoch}:%{version}-%{release}
c0240cb1 499Requires: rc-scripts
2ca856d0 500Provides: php(fpm)
c0240cb1 501Provides: user(http)
502Provides: webserver(php) = %{version}
d6634248 503Obsoletes: php-fpm < 4:5.3.28-7
0443386d
TP
504%if "%{pld_release}" != "ac"
505Conflicts: logrotate < 3.8.0
506%endif
c0240cb1 507
508%description fpm
509PHP FastCGI Process Manager.
510
511%description fpm -l pl.UTF-8
512PHP FastCGI Process Manager - zarządca procesów FastCGI.
513
514%package common
515Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
516Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
517Summary(ru.UTF-8): Разделяемые библиотеки для PHP
518Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
519Group: Libraries
520Requires(post): sed >= 4.0
521# because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
522Requires: glibc >= 6:2.3.5
3f8f8051 523Requires: php-dirs >= 1.4
c0240cb1 524Requires: rpm-whiteout >= 1.28
525Requires: tzdata
d87d42cb
ER
526Provides: %{name}(debug) = %{php_debug}
527Provides: %{name}(modules_api) = %{php_api_version}
a6af2a14 528Provides: %{name}(thread-safety) = %{_zend_zts}
d87d42cb
ER
529Provides: %{name}(zend_extension_api) = %{zend_extension_api}
530Provides: %{name}(zend_module_api) = %{zend_module_api}
93e7acf8 531Provides: %{name}-core
d87d42cb
ER
532Provides: %{name}-date
533Provides: %{name}-ereg
534Provides: %{name}-reflection
535Provides: %{name}-standard
93e7acf8 536Provides: php(core) = %{version}
c0240cb1 537Provides: php(date)
538Provides: php(ereg)
c0240cb1 539Provides: php(libxml)
c0240cb1 540Provides: php(reflection)
541Provides: php(standard)
c0240cb1 542%{!?with_mysqlnd:Obsoletes: php-mysqlnd}
543%{?with_pcre:%requires_ge_to pcre pcre-devel}
9f2b265f 544Suggests: browscap
d6634248 545Obsoletes: php-common < 4:5.3.28-7
c0240cb1 546Obsoletes: php-pecl-domxml
547Conflicts: php4-common < 3:4.4.4-8
e2d9e36f 548Conflicts: php55-common < 4:5.5.10-4
c0240cb1 549Conflicts: rpm < 4.4.2-0.2
550
551%description common
552Common files needed by both Apache modules and CGI/CLI SAPIs.
553
554%description common -l pl.UTF-8
555Wspólne pliki dla modułu Apache'a i programu CGI.
556
557%description common -l ru.UTF-8
558Этот пакет содержит общие файлы для разных вариантов реализации PHP
559(самодостаточной и в качестве модуля Apache).
560
561%description common -l uk.UTF-8
562Цей пакет містить спільні файли для різних варіантів реалізації PHP
563(самодостатньої та в якості модуля Apache).
564
565%package devel
566Summary: Files for PHP modules development
567Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
568Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
569Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
570Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
571Group: Development/Languages/PHP
572Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 573Requires: autoconf >= 2.13
c0240cb1 574Requires: automake
575%if "%{pld_release}" != "ac"
576Requires: libtool >= 2:2.2
577%else
578Requires: libtool
579%endif
580%{?with_pcre:Requires: pcre-devel >= 8.10}
581Requires: shtool
e2ce7e4a 582Provides: php-devel = %{epoch}:%{version}-%{release}
cfb6f787 583Obsoletes: php-devel
c0240cb1 584Obsoletes: php-pear-devel
585Obsoletes: php4-devel
cfb6f787 586Obsoletes: php52-devel
6ef8f74a 587Obsoletes: php53-devel
dce223f2 588Obsoletes: php54-devel
d251846d 589Obsoletes: php56-devel
ab7a6ecf 590Obsoletes: php70-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
c0240cb1 2048
c0240cb1 2049sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
c0240cb1 2050
2051# cleanup backups after patching
2052find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
2053
2054# conflict seems to be resolved by recode patches
2055%{__rm} ext/recode/config9.m4
2056
2057# remove all bundled libraries not to link with them accidentally
c0240cb1 2058%{__rm} -r ext/sqlite3/libsqlite
2059#%{__rm} -r ext/bcmath/libbcmath
2060#%{__rm} -r ext/date/lib
2061#%{__rm} -r ext/fileinfo/libmagic
2062#%{__rm} -r ext/dba/libcdb
2063#%{__rm} -r ext/dba/libflatfile
2064#%{__rm} -r ext/dba/libinifile
2065#%{__rm} -r ext/gd/libgd
2066#%{__rm} -r ext/mbstring/libmbfl
2067#%{__rm} -r ext/mbstring/oniguruma
2068%{__rm} -r ext/pcre/pcrelib
2069#%{__rm} -r ext/soap/interop
2070%{__rm} -r ext/xmlrpc/libxmlrpc
2071#%{__rm} -r ext/zip/lib
3790806a 2072%{__rm} ext/date/lib/timezonedb.h
c0240cb1 2073
13f02a12 2074cp -pf Zend/LICENSE{,.Zend}
c0240cb1 2075install -p %{SOURCE13} dep-tests.sh
2076
2077# breaks build
2078sed -i -e 's#-fvisibility=hidden##g' configure*
2079
2080# disable broken tests
2081# says just "Terminated" twice and fails
2082mv sapi/cli/tests/022.phpt{,.broken}
2083
a33e71d0
ER
2084# really dumb test, executable binary name is .libs/ something when building
2085# https://bugs.php.net/bug.php?id=54514
2086mv tests/basic/bug54514.phpt{,.disable}
2087
2088# breaks whole testsuite unexpectedly:
2089# Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2090# probably broken as zlib is built as shared
2091mv ext/soap/tests/server019.phpt{,disable}
d1a2645a
ER
2092# Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
2093mv ext/soap/tests/server020.phpt{,disable}
f8be3881
ER
2094
2095# runs out of memory and kills carme vserver
2096# PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
2097mv Zend/tests/bug39438.phpt{,.disable}
a33e71d0 2098
c0240cb1 2099# php-5.3.3/ext/standard/tests/file/statpage.phpt
2100%{__rm} ext/standard/tests/file/statpage.phpt
2101
2102# idiotic test, it will fail if somebody else makes space on disk or if disk
2103# space is not yet allocated (xfs). report upstream to advice bogus test is
2104# probably pointless.
2105%{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2106
482166f6
ER
2107%ifarch %{x8664}
2108# all pdo_sqlite, sqlite3 tests die with Aborted on carme
2109%{__rm} -r ext/pdo_sqlite/tests
2110%{__rm} -r ext/sqlite3/tests
2111%endif
2112
bbf35c27
ER
2113# skip XFAILs
2114# no point testing stuff that is knowingly broken
2115find -name '*.phpt' | xargs grep XFAIL -l | xargs rm -v
2116
482166f6
ER
2117env \
2118%ifarch %{ix86}
2119ix86= x8664=:
2120%endif
2121%ifarch %{x8664}
2122ix86=: x8664= \
dc101b85
JR
2123%endif
2124%ifarch x32
2125ix86=: x8664=: \
482166f6
ER
2126%endif
2127 sh -xe %{_sourcedir}/skip-tests.sh
c0240cb1 2128
2129%build
2130API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2131if [ $API != %{php_api_version} ]; then
2132 echo "Set %%define php_api_version to $API and re-run."
2133 exit 1
2134fi
2135
2136API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2137if [ $API != %{zend_module_api} ]; then
2138 echo "Set %%define zend_module_api to $API and re-run."
2139 exit 1
2140fi
2141
2142API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2143if [ $API != %{zend_extension_api} ]; then
2144 echo "Set %%define zend_extension_api to $API and re-run."
2145 exit 1
2146fi
2147
a6af2a14
ER
2148API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2149if [ $API != %{php_pdo_api_version} ]; then
2150 echo "Set %%define php_pdo_api_version to $API and re-run."
2151 exit 1
2152fi
2153
13f02a12
ER
2154# Check for some extension version
2155ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2156if test "$ver" != "%{fileinfover}"; then
2157 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2158 : Update the fileinfover macro and rebuild.
2159 exit 1
2160fi
2161ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2162if test "$ver" != "%{pharver}"; then
2163 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2164 : Update the pharver macro and rebuild.
2165 exit 1
2166fi
ce39c8ba
ER
2167ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2168if test "$ver" != "%{sqlite3ver}"; then
2169 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2170 : Update the sqlite3ver macro and rebuild.
2171 exit 1
2172fi
13f02a12
ER
2173ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2174if test "$ver" != "%{zipver}"; then
2175 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2176 : Update the zipver macro and rebuild.
2177 exit 1
2178fi
2179ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2180if test "$ver" != "%{jsonver}"; then
2181 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2182 : Update the jsonver macro and rebuild.
2183 exit 1
2184fi
3790806a 2185ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h)
8328535b 2186if test "$ver" != "%{opcachever}"; then
3790806a 2187 : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
8328535b
ER
2188 : Update the opcachever macro and rebuild.
2189 exit 1
2190fi
13f02a12
ER
2191ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2192if test "$ver" != "%{bz2ver}"; then
2193 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2194 : Update the bz2ver macro and rebuild.
2195 exit 1
2196fi
2197ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2198if test "$ver" != "%{enchantver}"; then
2199 : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2200 : Update the enchantver macro and rebuild.
2201 exit 1
2202fi
2203ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2204if test "$ver" != "%{hashver}"; then
2205 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2206 : Update the hashver macro and rebuild.
2207 exit 1
2208fi
2209ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2210if test "$ver" != "%{intlver}"; then
2211 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2212 : Update the intlver macro and rebuild.
2213 exit 1
2214fi
2215
c0240cb1 2216export EXTENSION_DIR="%{php_extensiondir}"
2217# configure once (for faster debugging purposes)
2218if [ ! -f _built-conf ]; then
2219 # now remove Makefile copies
2220 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed}
2221 %{__libtoolize}
2222 %{__aclocal}
2223 cp -f /usr/share/automake/config.* .
2224 ./buildconf --force
2225 touch _built-conf
2226fi
2227export PROG_SENDMAIL="/usr/lib/sendmail"
2228export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2229 -I%{_includedir}/xmlrpc-epi"
2230
2231sapis="
2232cli
2233%if %{with cgi}
2234cgi-fcgi
2235%endif
2236%if %{with litespeed}
2237litespeed
2238%endif
2239%if %{with fpm}
2240fpm
2241%endif
13f02a12
ER
2242%if %{with embed}
2243embed
2244%endif
c0240cb1 2245%if %{with apache1}
2246apxs1
2247%endif
2248%if %{with apache2}
2249apxs2
2250%endif
2251"
2252for sapi in $sapis; do
2253 : SAPI $sapi
2254 # skip if already configured (for faster debugging purposes)
2255 [ -f Makefile.$sapi ] && continue
2256
2257 sapi_args=''
2258 case $sapi in
2259 cgi-fcgi)
2260 sapi_args='--disable-cli'
2261 ;;
2262 cli)
2263 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2264 ;;
2265 fpm)
96ae08b1 2266 sapi_args='--disable-cli --disable-cgi --enable-fpm'
c0240cb1 2267 ;;
13f02a12 2268 embed)
82e4c42c 2269 sapi_args='--disable-cli --disable-cgi --enable-embed'
13f02a12 2270 ;;
c0240cb1 2271 apxs1)
2272 ver=$(rpm -q --qf '%{V}' apache1-devel)
96ae08b1 2273 sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver"
c0240cb1 2274 ;;
2275 apxs2)
2276 ver=$(rpm -q --qf '%{V}' apache-devel)
96ae08b1 2277 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
c0240cb1 2278 ;;
2279 litespeed)
96ae08b1 2280 sapi_args='--disable-cli --disable-cgi --with-litespeed '
c0240cb1 2281 ;;
2282 esac
2283
2284 %configure \
2285 $sapi_args \
2286%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2287 --cache-file=config.cache \
2288%endif
2289 --with-libdir=%{_lib} \
2290 --with-config-file-path=%{_sysconfdir} \
2291 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
c0240cb1 2292 --with-system-tzdata \
2293 --%{!?debug:dis}%{?debug:en}able-debug \
2294 %{?with_zts:--enable-maintainer-zts} \
2295 --enable-inline-optimization \
2296 --enable-bcmath=shared \
2297 --enable-calendar=shared \
2298 --enable-ctype=shared \
2299 --enable-dba=shared \
2300 --enable-dom=shared \
2301 --enable-exif=shared \
2302 --enable-fileinfo=shared \
2303 --enable-ftp=shared \
2304 --enable-gd-native-ttf \
689a4e56 2305 %{?with_intl:--enable-intl=shared} \
c0240cb1 2306 --enable-libxml \
c0240cb1 2307 --enable-mbstring=shared,all \
2308 --enable-mbregex \
2309 --enable-pcntl=shared \
2310 --enable-pdo=shared \
2311 --enable-json=shared \
2312 --enable-hash=shared \
2313 --enable-xmlwriter=shared \
2314%if %{with fpm}
2315 --with-fpm-user=http \
2316 --with-fpm-group=http \
2317%endif
2318%if %{with mssql} || %{with sybase_ct}
2319 --with-pdo-dblib=shared \
2320%endif
2321%if %{with interbase} && %{without interbase_inst}
2322 --with-pdo-firebird=shared,/usr \
2323%endif
2324 %{?with_mhash:--with-mhash=yes} \
2325 --with-mysql-sock=/var/lib/mysql/mysql.sock \
81d9fe7d 2326 --with-pdo-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
329b4394 2327 %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
c0240cb1 2328 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2329 %{?with_pgsql:--with-pdo-pgsql=shared} \
2330 %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
d8c3b589 2331 %{?with_webp:--with-vpx-dir=/usr} \
c0240cb1 2332 --without-libexpat-dir \
2333 --enable-posix=shared \
2334 --enable-shared \
2335 --enable-session=shared \
2336 --enable-shmop=shared \
2337 --enable-simplexml=shared \
2338 --enable-sysvmsg=shared \
2339 --enable-sysvsem=shared \
2340 --enable-sysvshm=shared \
c0240cb1 2341 --enable-soap=shared \
2342 --enable-sockets=shared \
2343 --enable-tokenizer=shared \
c0240cb1 2344 %{?with_wddx:--enable-wddx=shared} \
2345 --enable-xml=shared \
2346 --enable-xmlreader=shared \
2347 --with-bz2=shared \
2348 %{__with_without curl curl shared} \
2349 --with-db4 \
2350 --with-iconv=shared \
13f02a12 2351 %{?with_enchant:--with-enchant=shared,/usr} \
c0240cb1 2352 --with-freetype-dir=shared \
2353 --with-gettext=shared \
2354 --with-gd=shared%{?with_system_gd:,/usr} \
2355 --with-gdbm \
2356 --with-gmp=shared \
2357 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2358 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2359 --with-jpeg-dir=/usr \
2360 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2361 --with-mcrypt=shared \
2362 %{?with_mm:--with-mm} \
2363 %{?with_mssql:--with-mssql=shared} \
81d9fe7d
ER
2364 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2365 --with-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
2366 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
329b4394 2367 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
8328535b 2368 %{?with_opcache:--enable-opcache=shared} \
c0240cb1 2369 %{?with_openssl:--with-openssl=shared} \
2370 %{?with_kerberos5:--with-kerberos} \
36fd40c8 2371 --with-tcadb=/usr \
c0240cb1 2372 %{__with_without pcre pcre-regex /usr} \
2373 %{__enable_disable filter filter shared} \
2374 --with-pear=%{php_pear_dir} \
2375 %{__with_without pgsql pgsql shared,/usr} \
2376 %{__enable_disable phar phar shared} \
2377 --with-png-dir=/usr \
2378 %{?with_pspell:--with-pspell=shared} \
2379 --with-readline=shared \
2380 %{?with_recode:--with-recode=shared} \
2381 --with-regex=system \
2382 %{?with_snmp:--with-snmp=shared} \
2383 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
c0240cb1 2384 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2385 %{__with_without sqlite3 sqlite3 shared,/usr} \
2386 --with-t1lib=shared \
2387 %{?with_tidy:--with-tidy=shared} \
2388 %{?with_odbc:--with-unixODBC=shared,/usr} \
2389 %{__with_without xmlrpc xmlrpc shared,/usr} \
2390 --with-xsl=shared \
2391 --with-zlib=shared \
2392 --with-zlib-dir=shared,/usr \
13f02a12 2393 %{?with_system_libzip:--with-libzip} \
c0240cb1 2394 --enable-zip=shared,/usr \
2395
2396 # save for debug
2397 cp -f Makefile Makefile.$sapi
2398 cp -f main/php_config.h php_config.h.$sapi
2399 cp -f config.log config.log.$sapi
2400done
2401
2402# as we build each SAPI in own make, adjust php-config.in forehead
529e9ea3
ER
2403sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2404%{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
c0240cb1 2405
2406# must make libphp_common first, so modules can link against it.
2407cp -af php_config.h.cli main/php_config.h
2408cp -af Makefile.cli Makefile
2409%{__make} libphp_common.la
2410%{__make} build-modules
2411
2412%if %{with apache1}
2413%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2414%endif
2415
2416%if %{with apache2}
2417%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2418%endif
2419
2420%if %{with litespeed}
96ae08b1 2421%{__make} -f Makefile.litespeed litespeed
c0240cb1 2422%endif
2423
4d241919
ER
2424%if %{with embed}
2425%{__make} -f Makefile.embed libphp5.la
2426%endif
2427
c0240cb1 2428# CGI/FCGI
2429%if %{with cgi}
13f02a12 2430cp -pf php_config.h.cgi-fcgi main/php_config.h
c0240cb1 2431%{__make} -f Makefile.cgi-fcgi
3aeda88b 2432[ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
c0240cb1 2433%endif
2434
2435# PHP FPM
2436%if %{with fpm}
13f02a12 2437cp -pf php_config.h.fpm main/php_config.h
c0240cb1 2438%{__make} -f Makefile.fpm
3aeda88b 2439[ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
c0240cb1 2440%endif
2441
2442# CLI
13f02a12 2443cp -pf php_config.h.cli main/php_config.h
c0240cb1 2444%{__make} -f Makefile.cli
3aeda88b 2445[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
c0240cb1 2446
2447# check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2448./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"]));'
2449
2450# Generate stub .ini files for each extension
2451rm -rf conf.d
2452install -d conf.d
2453generate_inifiles() {
2454 for so in modules/*.so; do
2455 mod=$(basename $so .so)
8328535b
ER
2456 ext=extension
2457 # opcache.so is zend extension
2458 nm $so | grep -q zend_extension_entry && ext=zend_extension
c0240cb1 2459 conf="$mod.ini"
2460 # xml needs to be loaded before wddx
2461 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2462 # pre needs to be loaded before SPL
2463 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2464 # spl needs to be loaded before mysqli
2465 [ "$mod" = "spl" ] && conf="SPL.ini"
2466 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2467 [ "$mod" = "session" ] && conf="Session.ini"
2468 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2469 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2470 echo "+ $conf"
2471 cat > conf.d/$conf <<-EOF
8328535b
ER
2472 ; Enable $mod $ext module
2473 $ext=$mod.so
c0240cb1 2474 EOF
2475 done
2476}
2477generate_inifiles
2478
2479# Check that the module inner-dependencies are intact
2480PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2481if grep -v OK dep-tests.log; then
2482 echo >&2 "The results above were not expected"
2483 exit 1
2484fi
2485
2486%if %{with gcov}
2487# Use CLI SAPI
13f02a12
ER
2488cp -pf php_config.h.cli main/php_config.h
2489cp -pf Makefile.cli Makefile
c0240cb1 2490%{__make} lcov
2491# you really don't want to package result of gcov build
2492exit 1
2493%endif
2494
c0240cb1 2495cat <<'EOF' > run-tests.sh
2496#!/bin/sh
2497export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2498unset TZ LANG LC_ALL || :
2499%{__make} test \
2500 EXTENSION_DIR=modules \
2501 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2502 RUN_TESTS_SETTINGS="-q $*"
2503EOF
2504chmod +x run-tests.sh
336b95c5
ER
2505
2506%if %{with tests}
2507# Run tests, using the CLI SAPI
2508cp -pf php_config.h.cli main/php_config.h
2509cp -pf Makefile.cli Makefile
2510
482166f6 2511./run-tests.sh -w failed.log -s tests.log
c0240cb1 2512
2513# collect failed tests into cleanup script used in prep.
482166f6
ER
2514sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2515sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
c0240cb1 2516 >> %{_sourcedir}/skip-tests.sh
2517
482166f6
ER
2518# if on builders, dump test log
2519tty -q || cat tests.log
5279719f
ER
2520
2521test ! -s failed.log
c0240cb1 2522%endif
2523
2524%install
2525rm -rf $RPM_BUILD_ROOT
2526install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2527 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2528 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2529 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2530
13f02a12
ER
2531cp -pf php_config.h.cli main/php_config.h
2532cp -pf Makefile.cli Makefile
c0240cb1 2533%{__make} install \
b27ad7c4 2534 phpbuilddir=%{_libdir}/%{name}/build \
c0240cb1 2535 INSTALL_ROOT=$RPM_BUILD_ROOT
2536
2537# make link relative
2538ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar
2539
c04c07ff
ER
2540# version suffix
2541v=$(echo %{version} | cut -d. -f1-2)
2542
c0240cb1 2543# install Apache1 DSO module
2544%if %{with apache1}
13f02a12 2545libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
c04c07ff
ER
2546mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2547ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
c0240cb1 2548%endif
2549
2550# install Apache2 DSO module
2551%if %{with apache2}
13f02a12 2552libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
c04c07ff
ER
2553mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2554ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
c0240cb1 2555%endif
2556
2557# install litespeed sapi
2558%if %{with litespeed}
f9101cd2 2559libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
c0240cb1 2560%endif
2561
13f02a12 2562libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
c0240cb1 2563
2564# install CGI/FCGI
2565%if %{with cgi}
13f02a12 2566# install-cgi
694e535c
ER
2567libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2568ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
13f02a12 2569cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
c0240cb1 2570%endif
2571
2572# install FCGI PM
2573%if %{with fpm}
2574install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
f9101cd2
ER
2575libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2576cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
13f02a12 2577cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
b604e307 2578cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
c0240cb1 2579install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
f9101cd2 2580install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
d307ed78
ER
2581install -d $RPM_BUILD_ROOT/etc/logrotate.d
2582cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
db9dad5e
ER
2583%if "%{pld_release}" == "ac"
2584%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2585%endif
d307ed78 2586
f9101cd2
ER
2587%{__sed} -i -e '
2588 s#/usr/lib/php#%{php_extensiondir}#
2589 s#/etc/php#%{_sysconfdir}#
2590 s#@processname@#%{name}-fpm#g
b604e307 2591' $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
2592%endif
2593
2594# install Embedded API
2595%if %{with embed}
13f02a12 2596# we could use install-headers from Makefile.embed, but that would reinstall all headers
82e4c42c 2597# install-sapi installs to wrong dir, so just do it all manually
13f02a12 2598install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
82e4c42c 2599install -p libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}
13f02a12 2600cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
c0240cb1 2601%endif
2602
2603# install CLI
580d93e0
ER
2604# versioned suffix is always installed
2605libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2606cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2607echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2608ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
c0240cb1 2609
f831b4f0 2610cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
13f02a12 2611cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
c0240cb1 2612
2613%if %{with apache1}
13f02a12
ER
2614cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2615cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2616%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
c0240cb1 2617%endif
2618
2619%if %{with apache2}
13f02a12
ER
2620cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2621cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2622%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
c0240cb1 2623%endif
2624
f831b4f0 2625# ensure that paths are correct for current php version and arch
37a42448 2626grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
f831b4f0
ER
2627%{__sed} -i -e '
2628 s#/usr/lib/php#%{php_extensiondir}#
2629 s#/etc/php#%{_sysconfdir}#
63bcb1b6 2630'
f831b4f0 2631
c0240cb1 2632install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
13f02a12 2633cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
c0240cb1 2634
2635# per SAPI ini directories
2636install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2637
2638# for CLI SAPI only
2639mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2640
2641# use system automake and {lib,sh}tool
77ee6bb7 2642ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
b27ad7c4 2643ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
77ee6bb7
ER
2644for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2645 f=%{_aclocaldir}/$fn
2646 test -f $f || continue
2647 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2648done
2649for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2650 f=/usr/share/libtool/$fn
2651 test -f $f || continue
2652 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2653 break
2654done
b27ad7c4 2655sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
c0240cb1 2656
2657# for php-pecl-mailparse
2658install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
13f02a12 2659cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
c0240cb1 2660
2661# tests
2662install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2663install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2664cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2665
13f02a12
ER
2666# fix install paths, avoid evil rpaths
2667sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
13f02a12 2668# better solution?
b27ad7c4 2669sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
13f02a12 2670
c0240cb1 2671%clean
2672rm -rf $RPM_BUILD_ROOT
2673
aa424f73 2674%post -n apache1-mod_%{name}
c0240cb1 2675if [ "$1" = "1" ]; then
2676 %service -q apache restart
2677fi
2678
aa424f73 2679%postun -n apache1-mod_%{name}
c0240cb1 2680if [ "$1" = "0" ]; then
2681 %service -q apache restart
2682fi
2683
aa424f73 2684%post -n apache-mod_%{name}
c0240cb1 2685if [ "$1" = "1" ]; then
2686 %service -q httpd restart
2687fi
2688
aa424f73 2689%postun -n apache-mod_%{name}
c0240cb1 2690if [ "$1" = "0" ]; then
2691 %service -q httpd restart
2692fi
2693
2694%pre fpm
2695%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2696
2697%post fpm
ff9cec3f
ER
2698/sbin/chkconfig --add %{name}-fpm
2699%service %{name}-fpm restart
c0240cb1 2700
2701%preun fpm
2ef5b611 2702if [ "$1" = "0" ]; then
ff9cec3f
ER
2703 %service %{name}-fpm stop
2704 /sbin/chkconfig --del %{name}-fpm
c0240cb1 2705fi
2706
2707%postun fpm
2708if [ "$1" = "0" ]; then
2709 %userremove http
2710fi
2711
13f02a12
ER
2712%post embedded -p /sbin/ldconfig
2713%postun embedded -p /sbin/ldconfig
2714
c0240cb1 2715%post common
2716# PHP 5.3 requires timezone being setup, try setup it from tzdata
5d43dd0d
ER
2717if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2718 TIMEZONE=
2719 . /etc/sysconfig/timezone
2720 if [ "$TIMEZONE" ]; then
2721 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
c0240cb1 2722 fi
2723fi
2724
2725%posttrans common
2726# minimizing apache restarts logics. we restart webserver:
2727#
2728# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2729# 2. first install of extension (post: $1 = 1)
2730# 2. uninstall of extension (postun: $1 == 0)
2731#
2732# the strict internal deps between extensions (and apache modules) and
2733# common package are very important for all this to work.
2734
2735# restart webserver at the end of transaction
2736[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2737[ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2738
263ef8fe
ER
2739%triggerpostun common -- php-common < 4:5.3.28-7
2740# migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2741# do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2742# this way we can stick to one trigger, instead of attaching one for each (sub)package!
2743for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2744 test -f "$f" || continue
2745 bn=${f#/etc/php/}
2746 dn=${bn%/*}
2747 fn=${bn#*/}
2748 test "$dn" = "$fn" && dn=
2749 fn=${fn%.rpmsave}
2750 nf=%{_sysconfdir}/$dn/$fn
2751 test -f "$nf" || continue
2ef5b611
TP
2752 cp -vfb $nf{,.rpmnew}
2753 cp -vfb $f $nf
396b93df
ER
2754 %{__sed} -i -e '
2755 s#%{_libdir}/php#%{_libdir}/%{name}#
2756 s#/etc/php#%{_sysconfdir}#
2757 ' $nf
263ef8fe
ER
2758done
2759
9f2b265f
ER
2760%triggerpostun common -- %{name}-common < 4:5.5.20-2, php-common < 4:5.5.20-2
2761# switch to browscap package if the ini file has original value
2762%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
06903eea
ER
2763# disable browscap, if optional package not present
2764if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2765 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2766fi
9f2b265f 2767
c0240cb1 2768# common macros called at extension post/postun scriptlet
2769%define extension_scripts() \
2770%post %1 \
2771if [ "$1" = "1" ]; then \
2772 %php_webserver_restart \
2773fi \
2774\
2775%postun %1 \
2776if [ "$1" = "0" ]; then \
2777 %php_webserver_restart \
2778fi
2779%{nil}
2780
2781# extension scripts defines
2782%extension_scripts bcmath
2783%extension_scripts bz2
2784%extension_scripts calendar
2785%extension_scripts ctype
2786%extension_scripts curl
2787%extension_scripts dba
2788%extension_scripts dom
13f02a12 2789%extension_scripts enchant
c0240cb1 2790%extension_scripts exif
2791%extension_scripts fileinfo
2792%extension_scripts filter
2793%extension_scripts ftp
2794%extension_scripts gd
2795%extension_scripts gettext
2796%extension_scripts gmp
2797%extension_scripts hash
2798%extension_scripts iconv
2799%extension_scripts imap
2800%extension_scripts interbase
2801%extension_scripts intl
2802%extension_scripts json
2803%extension_scripts ldap
2804%extension_scripts mbstring
2805%extension_scripts mcrypt
2806%extension_scripts mssql
2807%extension_scripts mysql
2808%extension_scripts mysqli
2809%extension_scripts mysqlnd
2810%extension_scripts oci8
2811%extension_scripts odbc
8328535b 2812%extension_scripts opcache
c0240cb1 2813%extension_scripts openssl
2814%extension_scripts pcre
e12b4121 2815%extension_scripts pdo
c0240cb1 2816%extension_scripts pdo-dblib
2817%extension_scripts pdo-firebird
56b7d841 2818%extension_scripts pdo-oci
c0240cb1 2819%extension_scripts pdo-mysql
2820%extension_scripts pdo-odbc
2821%extension_scripts pdo-pgsql
2822%extension_scripts pdo-sqlite
2823%extension_scripts pgsql
2824%extension_scripts phar
e12b4121 2825%extension_scripts pcntl
c0240cb1 2826%extension_scripts posix
2827%extension_scripts pspell
2828%extension_scripts recode
2829%extension_scripts session
2830%extension_scripts shmop
e12b4121 2831%extension_scripts simplexml
c0240cb1 2832%extension_scripts snmp
2833%extension_scripts soap
2834%extension_scripts sockets
2835%extension_scripts spl
c0240cb1 2836%extension_scripts sqlite3
2837%extension_scripts sybase-ct
2838%extension_scripts sysvmsg
2839%extension_scripts sysvsem
2840%extension_scripts sysvshm
2841%extension_scripts tidy
2842%extension_scripts tokenizer
2843%extension_scripts wddx
2844%extension_scripts xml
2845%extension_scripts xmlreader
2846%extension_scripts xmlrpc
2847%extension_scripts xmlwriter
2848%extension_scripts xsl
2849%extension_scripts zip
2850%extension_scripts zlib
2851
c0240cb1 2852%if %{with apache1}
aa424f73 2853%files -n apache1-mod_%{name}
c0240cb1 2854%defattr(644,root,root,755)
2855%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2856%dir %{_sysconfdir}/apache.d
2857%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2858%attr(755,root,root) %{_libdir}/apache1/libphp5.so
c04c07ff 2859%attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
c0240cb1 2860%endif
2861
2862%if %{with apache2}
aa424f73 2863%files -n apache-mod_%{name}
c0240cb1 2864%defattr(644,root,root,755)
2865%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2866%dir %{_sysconfdir}/apache2handler.d
2867%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2868%attr(755,root,root) %{_libdir}/apache/libphp5.so
c04c07ff 2869%attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
c0240cb1 2870%endif
2871
2872%if %{with litespeed}
2873%files litespeed
2874%defattr(644,root,root,755)
aa424f73 2875%attr(755,root,root) %{_sbindir}/%{name}.litespeed
c0240cb1 2876%endif
2877
2878%if %{with cgi}
2879%files cgi
2880%defattr(644,root,root,755)
2881%dir %{_sysconfdir}/cgi-fcgi.d
2882%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
694e535c
ER
2883%attr(755,root,root) %{_bindir}/%{name}.cgi
2884%attr(755,root,root) %{_bindir}/%{name}.fcgi
c0240cb1 2885%endif
2886
13f02a12
ER
2887%if %{with embed}
2888%files embedded
2889%defattr(644,root,root,755)
82e4c42c 2890%attr(755,root,root) %{_libdir}/libphp5.so
13f02a12
ER
2891%endif
2892
c0240cb1 2893%files cli
2894%defattr(644,root,root,755)
2895%dir %{_sysconfdir}/cli.d
2896%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
580d93e0
ER
2897%attr(755,root,root) %{_bindir}/php%{ver_suffix}
2898%{_mandir}/man1/php%{ver_suffix}.1*
c0240cb1 2899
2900%files program
2901%defattr(644,root,root,755)
2902%attr(755,root,root) %{_bindir}/php
872bc3df 2903%{_mandir}/man1/php.1*
c0240cb1 2904
2905%if %{with fpm}
2906%files fpm
2907%defattr(644,root,root,755)
13f02a12 2908%doc sapi/fpm/{CREDITS,LICENSE}
c0240cb1 2909%dir %{_sysconfdir}/fpm.d
2910%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
b604e307 2911%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
f9101cd2
ER
2912%attr(755,root,root) %{_sbindir}/%{name}-fpm
2913%{_mandir}/man8/%{name}-fpm.8*
2914%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2915%attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
c0240cb1 2916%endif
2917
2918%files common
2919%defattr(644,root,root,755)
13f02a12 2920%doc CREDITS EXTENSIONS LICENSE NEWS README.{PHP4-TO-PHP5-THIN-CHANGES,namespaces} UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-*
c0240cb1 2921%dir %{_sysconfdir}
2922%dir %{_sysconfdir}/conf.d
2923%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
c0240cb1 2924%attr(755,root,root) %{_libdir}/libphp_common-*.so
2925%dir %{php_extensiondir}
2926
13f02a12
ER
2927%doc ext/session/mod_files.sh
2928
c0240cb1 2929%files devel
2930%defattr(644,root,root,755)
13f02a12 2931%doc CODING_STANDARDS README.{EXTENSIONS,EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
c0240cb1 2932%attr(755,root,root) %{_bindir}/phpize
2933%attr(755,root,root) %{_bindir}/php-config
2934%attr(755,root,root) %{_libdir}/libphp_common.so
2935%{_libdir}/libphp_common.la
2936%{_includedir}/php
b27ad7c4 2937%{_libdir}/%{name}/build
c0240cb1 2938%{_mandir}/man1/php-config.1*
2939%{_mandir}/man1/phpize.1*
2940
2941%files bcmath
2942%defattr(644,root,root,755)
2943%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2944%attr(755,root,root) %{php_extensiondir}/bcmath.so
2945
2946%files bz2
2947%defattr(644,root,root,755)
8cd9d573 2948%doc ext/bz2/CREDITS
c0240cb1 2949%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2950%attr(755,root,root) %{php_extensiondir}/bz2.so
2951
2952%files calendar
2953%defattr(644,root,root,755)
8cd9d573 2954%doc ext/calendar/CREDITS
c0240cb1 2955%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2956%attr(755,root,root) %{php_extensiondir}/calendar.so
2957
2958%files ctype
2959%defattr(644,root,root,755)
8cd9d573 2960%doc ext/calendar/CREDITS
c0240cb1 2961%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2962%attr(755,root,root) %{php_extensiondir}/ctype.so
2963
2964%if %{with curl}
2965%files curl
2966%defattr(644,root,root,755)
8cd9d573 2967%doc ext/curl/CREDITS
c0240cb1 2968%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2969%attr(755,root,root) %{php_extensiondir}/curl.so
2970%endif
2971
2972%files dba
2973%defattr(644,root,root,755)
cd6e98f7 2974%doc ext/dba/{CREDITS,README}
c0240cb1 2975%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2976%attr(755,root,root) %{php_extensiondir}/dba.so
2977
2978%files dom
2979%defattr(644,root,root,755)
8cd9d573 2980%doc ext/dom/{CREDITS,TODO}
c0240cb1 2981%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2982%attr(755,root,root) %{php_extensiondir}/dom.so
2983
e5448b0f 2984%if %{with enchant}
13f02a12
ER
2985%files enchant
2986%defattr(644,root,root,755)
2987%doc ext/enchant/{CREDITS,docs/examples}
2988%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
2989%attr(755,root,root) %{php_extensiondir}/enchant.so
e5448b0f 2990%endif
13f02a12 2991
c0240cb1 2992%files exif
2993%defattr(644,root,root,755)
8cd9d573 2994%doc ext/exif/CREDITS
c0240cb1 2995%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2996%attr(755,root,root) %{php_extensiondir}/exif.so
2997
2998%files fileinfo
2999%defattr(644,root,root,755)
8cd9d573 3000%doc ext/fileinfo/CREDITS
c0240cb1 3001%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3002%attr(755,root,root) %{php_extensiondir}/fileinfo.so
3003
3004%if %{with filter}
3005%files filter
3006%defattr(644,root,root,755)
8cd9d573 3007%doc ext/filter/{CREDITS,docs/*}
c0240cb1 3008%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3009%attr(755,root,root) %{php_extensiondir}/filter.so
3010%endif
3011
3012%files ftp
3013%defattr(644,root,root,755)
8cd9d573 3014%doc ext/ftp/CREDITS
c0240cb1 3015%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3016%attr(755,root,root) %{php_extensiondir}/ftp.so
3017
3018%files gd
3019%defattr(644,root,root,755)
8cd9d573 3020%doc ext/gd/CREDITS
c0240cb1 3021%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3022%attr(755,root,root) %{php_extensiondir}/gd.so
3023
3024%files gettext
3025%defattr(644,root,root,755)
8cd9d573 3026%doc ext/gettext/CREDITS
c0240cb1 3027%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3028%attr(755,root,root) %{php_extensiondir}/gettext.so
3029
3030%files gmp
3031%defattr(644,root,root,755)
8cd9d573 3032%doc ext/gmp/{CREDITS,README,TODO}
c0240cb1 3033%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3034%attr(755,root,root) %{php_extensiondir}/gmp.so
3035
3036%files hash
3037%defattr(644,root,root,755)
8cd9d573 3038%doc ext/hash/{CREDITS,README}
c0240cb1 3039%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
3040%attr(755,root,root) %{php_extensiondir}/hash.so
3041
3042%files iconv
3043%defattr(644,root,root,755)
8cd9d573 3044%doc ext/iconv/CREDITS
c0240cb1 3045%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3046%attr(755,root,root) %{php_extensiondir}/iconv.so
3047
3048%if %{with imap}
3049%files imap
3050%defattr(644,root,root,755)
8cd9d573 3051%doc ext/imap/CREDITS
c0240cb1 3052%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3053%attr(755,root,root) %{php_extensiondir}/imap.so
3054%endif
3055
3056%if %{with interbase}
3057%files interbase
3058%defattr(644,root,root,755)
8cd9d573 3059%doc ext/interbase/CREDITS
c0240cb1 3060%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3061%attr(755,root,root) %{php_extensiondir}/interbase.so
3062%endif
3063
689a4e56 3064%if %{with intl}
c0240cb1 3065%files intl
3066%defattr(644,root,root,755)
8cd9d573 3067%doc ext/intl/{CREDITS,TODO}
c0240cb1 3068%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3069%attr(755,root,root) %{php_extensiondir}/intl.so
689a4e56 3070%endif
c0240cb1 3071
3072%files json
3073%defattr(644,root,root,755)
8cd9d573 3074%doc ext/json/CREDITS
c0240cb1 3075%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3076%attr(755,root,root) %{php_extensiondir}/json.so
3077
3078%if %{with ldap}
3079%files ldap
3080%defattr(644,root,root,755)
8cd9d573 3081%doc ext/ldap/CREDITS
c0240cb1 3082%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3083%attr(755,root,root) %{php_extensiondir}/ldap.so
3084%endif
3085
3086%files mbstring
3087%defattr(644,root,root,755)
8cd9d573 3088%doc ext/mbstring/{CREDITS,README*}
c0240cb1 3089%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3090%attr(755,root,root) %{php_extensiondir}/mbstring.so
3091
3092%files mcrypt
3093%defattr(644,root,root,755)
8cd9d573 3094%doc ext/mcrypt/{CREDITS,TODO}
c0240cb1 3095%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3096%attr(755,root,root) %{php_extensiondir}/mcrypt.so
3097
3098%if %{with mssql}
3099%files mssql
3100%defattr(644,root,root,755)
8cd9d573 3101%doc ext/mssql/CREDITS
c0240cb1 3102%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3103%attr(755,root,root) %{php_extensiondir}/mssql.so
3104%endif
3105
3106%files mysql
3107%defattr(644,root,root,755)
8cd9d573 3108%doc ext/mysql/CREDITS
c0240cb1 3109%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3110%attr(755,root,root) %{php_extensiondir}/mysql.so
3111
3112%if %{with mysqli}
3113%files mysqli
3114%defattr(644,root,root,755)
8cd9d573 3115%doc ext/mysqli/{CREDITS,TODO}
c0240cb1 3116%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3117%attr(755,root,root) %{php_extensiondir}/mysqli.so
3118%endif
3119
3120%if %{with mysqlnd}
3121%files mysqlnd
3122%defattr(644,root,root,755)
8cd9d573 3123%doc ext/mysqlnd/CREDITS
c0240cb1 3124%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3125%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3126%endif
3127
329b4394 3128%if %{with oci}
c0240cb1 3129%files oci8
3130%defattr(644,root,root,755)
580d93e0 3131%doc ext/oci8/{CREDITS,README}
c0240cb1 3132%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3133%attr(755,root,root) %{php_extensiondir}/oci8.so
3134%endif
3135
3136%if %{with odbc}
3137%files odbc
3138%defattr(644,root,root,755)
8cd9d573 3139%doc ext/odbc/CREDITS
c0240cb1 3140%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3141%attr(755,root,root) %{php_extensiondir}/odbc.so
3142%endif
3143
8328535b
ER
3144%if %{with opcache}
3145%files opcache
3146%defattr(644,root,root,755)
3147%doc ext/opcache/README
3148%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3149%attr(755,root,root) %{php_extensiondir}/opcache.so
3150%endif
3151
c0240cb1 3152%if %{with openssl}
3153%files openssl
3154%defattr(644,root,root,755)
8cd9d573 3155%doc ext/openssl/{CREDITS,README}
c0240cb1 3156%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3157%attr(755,root,root) %{php_extensiondir}/openssl.so
3158%endif
3159
3160%files pcntl
3161%defattr(644,root,root,755)
8cd9d573 3162%doc ext/pcntl/{CREDITS,README}
c0240cb1 3163%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3164%attr(755,root,root) %{php_extensiondir}/pcntl.so
3165
3166%if %{with pcre}
3167%files pcre
3168%defattr(644,root,root,755)
8cd9d573 3169%doc ext/pcre/CREDITS
c0240cb1 3170%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3171%attr(755,root,root) %{php_extensiondir}/pcre.so
3172%endif
3173
3174%files pdo
3175%defattr(644,root,root,755)
8cd9d573 3176%doc ext/pdo/{CREDITS,README,TODO}
c0240cb1 3177%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3178%attr(755,root,root) %{php_extensiondir}/pdo.so
3179
3180%if %{with mssql} || %{with sybase_ct}
3181%files pdo-dblib
3182%defattr(644,root,root,755)
8cd9d573 3183%doc ext/pdo_dblib/{CREDITS,README}
c0240cb1 3184%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3185%attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3186%endif
3187
3188%if %{with interbase} && !%{with interbase_inst}
3189%files pdo-firebird
3190%defattr(644,root,root,755)
8cd9d573 3191%doc ext/pdo_firebird/CREDITS
c0240cb1 3192%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3193%attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3194%endif
3195
3196%files pdo-mysql
3197%defattr(644,root,root,755)
8cd9d573 3198%doc ext/pdo_mysql/CREDITS
c0240cb1 3199%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3200%attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3201
329b4394 3202%if %{with oci}
c0240cb1 3203%files pdo-oci
3204%defattr(644,root,root,755)
8cd9d573 3205%doc ext/pdo_oci/CREDITS
c0240cb1 3206%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3207%attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3208%endif
3209
3210%if %{with odbc}
3211%files pdo-odbc
3212%defattr(644,root,root,755)
8cd9d573 3213%doc ext/pdo_odbc/CREDITS
c0240cb1 3214%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3215%attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3216%endif
3217
3218%if %{with pgsql}
3219%files pdo-pgsql
3220%defattr(644,root,root,755)
8cd9d573 3221%doc ext/pdo_pgsql/CREDITS
c0240cb1 3222%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3223%attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3224%endif
3225
3226%if %{with pdo_sqlite}
3227%files pdo-sqlite
3228%defattr(644,root,root,755)
8cd9d573 3229%doc ext/pdo_sqlite/CREDITS
c0240cb1 3230%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3231%attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3232%endif
3233
3234%if %{with pgsql}
3235%files pgsql
3236%defattr(644,root,root,755)
8cd9d573 3237%doc ext/pgsql/{CREDITS,README}
c0240cb1 3238%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3239%attr(755,root,root) %{php_extensiondir}/pgsql.so
3240%endif
3241
3242%if %{with phar}
3243%files phar
3244%defattr(644,root,root,755)
8cd9d573 3245%doc ext/phar/{CREDITS,TODO}
c0240cb1 3246%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3247%attr(755,root,root) %{php_extensiondir}/phar.so
3248%attr(755,root,root) %{_bindir}/phar
3249%attr(755,root,root) %{_bindir}/phar.phar
ece5522f
ŁK
3250%{_mandir}/man1/phar.1*
3251%{_mandir}/man1/phar.phar.1
c0240cb1 3252%endif
3253
3254%files posix
3255%defattr(644,root,root,755)
8cd9d573 3256%doc ext/posix/CREDITS
c0240cb1 3257%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3258%attr(755,root,root) %{php_extensiondir}/posix.so
3259
3260%if %{with pspell}
3261%files pspell
3262%defattr(644,root,root,755)
8cd9d573 3263%doc ext/pspell/{CREDITS,README}
c0240cb1 3264%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3265%attr(755,root,root) %{php_extensiondir}/pspell.so
3266%endif
3267
3268%files readline
3269%defattr(644,root,root,755)
8cd9d573 3270%doc ext/readline/{CREDITS,README*}
c0240cb1 3271%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3272%attr(755,root,root) %{php_extensiondir}/readline.so
3273
3274%if %{with recode}
3275%files recode
3276%defattr(644,root,root,755)
8cd9d573 3277%doc ext/recode/CREDITS
c0240cb1 3278%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3279%attr(755,root,root) %{php_extensiondir}/recode.so
3280%endif
3281
3282%files session
3283%defattr(644,root,root,755)
8cd9d573 3284%doc ext/session/CREDITS
c0240cb1 3285%doc ext/session/mod_files.sh
3286%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3287%attr(755,root,root) %{php_extensiondir}/session.so
3288
3289%files shmop
3290%defattr(644,root,root,755)
8cd9d573 3291%doc ext/shmop/{CREDITS,README}
c0240cb1 3292%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3293%attr(755,root,root) %{php_extensiondir}/shmop.so
3294
3295%files simplexml
3296%defattr(644,root,root,755)
8cd9d573 3297%doc ext/simplexml/{CREDITS,README}
c0240cb1 3298%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3299%attr(755,root,root) %{php_extensiondir}/simplexml.so
3300
3301%if %{with snmp}
3302%files snmp
3303%defattr(644,root,root,755)
8cd9d573 3304%doc ext/snmp/CREDITS
c0240cb1 3305%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3306%attr(755,root,root) %{php_extensiondir}/snmp.so
3307%endif
3308
3309%files soap
3310%defattr(644,root,root,755)
8cd9d573 3311%doc ext/soap/{CREDITS,TODO*}
c0240cb1 3312%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3313%attr(755,root,root) %{php_extensiondir}/soap.so
3314
3315%files sockets
3316%defattr(644,root,root,755)
8cd9d573 3317%doc ext/sockets/CREDITS
c0240cb1 3318%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3319%attr(755,root,root) %{php_extensiondir}/sockets.so
3320
3321%files spl
3322%defattr(644,root,root,755)
13f02a12 3323%doc ext/spl/{CREDITS,README,TODO,examples}
c0240cb1 3324%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3325%attr(755,root,root) %{php_extensiondir}/spl.so
3326
c0240cb1 3327%if %{with sqlite3}
3328%files sqlite3
3329%defattr(644,root,root,755)
3330%doc ext/sqlite3/CREDITS
3331%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3332%attr(755,root,root) %{php_extensiondir}/sqlite3.so
3333%endif
3334
3335%if %{with sybase_ct}
3336%files sybase-ct
3337%defattr(644,root,root,755)
8cd9d573 3338%doc ext/sybase_ct/CREDITS
c0240cb1 3339%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3340%attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3341%endif
3342
3343%files sysvmsg
3344%defattr(644,root,root,755)
8cd9d573 3345%doc ext/sysvmsg/CREDITS
c0240cb1 3346%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3347%attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3348
3349%files sysvsem
3350%defattr(644,root,root,755)
8cd9d573 3351%doc ext/sysvsem/CREDITS
c0240cb1 3352%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3353%attr(755,root,root) %{php_extensiondir}/sysvsem.so
3354
3355%files sysvshm
3356%defattr(644,root,root,755)
8cd9d573 3357%doc ext/sysvshm/CREDITS
c0240cb1 3358%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3359%attr(755,root,root) %{php_extensiondir}/sysvshm.so
3360
3361%files tests
3362%defattr(644,root,root,755)
a3c07000 3363%dir %{php_data_dir}/tests
c0240cb1 3364%dir %{php_data_dir}/tests/php
3365%{php_data_dir}/tests/php/basic
3366%{php_data_dir}/tests/php/classes
3367%{php_data_dir}/tests/php/func
3368%{php_data_dir}/tests/php/lang
3369%{php_data_dir}/tests/php/output
3370%{php_data_dir}/tests/php/run-test
3371%{php_data_dir}/tests/php/security
3372%{php_data_dir}/tests/php/strings
3373%{php_data_dir}/tests/php/quicktester.inc
3374%attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3375
3376%if %{with tidy}
3377%files tidy
3378%defattr(644,root,root,755)
8cd9d573 3379%doc ext/tidy/{CREDITS,README}
c0240cb1 3380%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3381%attr(755,root,root) %{php_extensiondir}/tidy.so
3382%endif
3383
3384%files tokenizer
3385%defattr(644,root,root,755)
8cd9d573 3386%doc ext/tokenizer/CREDITS
c0240cb1 3387%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3388%attr(755,root,root) %{php_extensiondir}/tokenizer.so
3389
3390%if %{with wddx}
3391%files wddx
3392%defattr(644,root,root,755)
8cd9d573 3393%doc ext/wddx/CREDITS
c0240cb1 3394%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3395%attr(755,root,root) %{php_extensiondir}/wddx.so
3396%endif
3397
3398%files xml
3399%defattr(644,root,root,755)
8cd9d573 3400%doc ext/xml/CREDITS
c0240cb1 3401%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3402%attr(755,root,root) %{php_extensiondir}/xml.so
3403
3404%files xmlreader
3405%defattr(644,root,root,755)
8cd9d573 3406%doc ext/xmlreader/{CREDITS,README,TODO,examples}
c0240cb1 3407%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3408%attr(755,root,root) %{php_extensiondir}/xmlreader.so
3409
3410%if %{with xmlrpc}
3411%files xmlrpc
3412%defattr(644,root,root,755)
8cd9d573 3413%doc ext/xmlrpc/CREDITS
c0240cb1 3414%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3415%attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3416%endif
3417
3418%files xmlwriter
3419%defattr(644,root,root,755)
8cd9d573 3420%doc ext/xmlwriter/{CREDITS,TODO}
c0240cb1 3421%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3422%attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3423
3424%files xsl
3425%defattr(644,root,root,755)
8cd9d573 3426%doc ext/xsl/CREDITS
c0240cb1 3427%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3428%attr(755,root,root) %{php_extensiondir}/xsl.so
3429
3430%files zip
3431%defattr(644,root,root,755)
8cd9d573 3432%doc ext/zip/{CREDITS,TODO}
c0240cb1 3433%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3434%attr(755,root,root) %{php_extensiondir}/zip.so
3435
3436%files zlib
3437%defattr(644,root,root,755)
8cd9d573 3438%doc ext/zlib/CREDITS
c0240cb1 3439%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3440%attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 2.303366 seconds and 4 git commands to generate.