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