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