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