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