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