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