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