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