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