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