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