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