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