]> git.pld-linux.org Git - packages/php.git/blame - php.spec
Rel 6; add workaround to https://bugs.php.net/bug.php?id=79589
[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)
02d2dcbb 10# --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base install directory BUNDLED
c0240cb1 11# TODO:
ef621865
ER
12# - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
13# - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
14# - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
15# - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
c0240cb1 16# - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
17# - wddx: restore session support (not compiled in due DL extension check)
c0240cb1 18# - modularize standard (output from pure php -m)?
c0240cb1 19# - some mods should be shared:
20#$ php -m
21# [PHP Modules]
fd6ab0c1 22# Core
c0240cb1 23# date
c0240cb1 24# libxml
25# Reflection
8d42644e 26# standard
c0240cb1 27#
28# Conditional build:
9f90add1
JB
29# - packaging options
30%bcond_without alternatives # use alternatives system to select default phar and php-fpm
31%bcond_with default_php # build this PHP as default PHP in system (disables alternatives)
24cbb89e
ER
32# - General options:
33%bcond_without embed # disable building Embedded API
24cbb89e 34%bcond_with gcov # Enable Code coverage reporting
24cbb89e 35%bcond_without kerberos5 # without Kerberos5 support
e2bde909 36%bcond_with systemtap # systemtap/DTrace support
24cbb89e 37%bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
24cbb89e 38%bcond_with zts # Zend Thread Safety
1ccf1801 39%bcond_with debug # Zend Debug Build
24cbb89e 40# - SAPI
24cbb89e
ER
41%bcond_without apache2 # disable building Apache 2.x SAPI
42%bcond_without cgi # disable CGI/FCGI SAPI
43%bcond_without fpm # disable FPM SAPI
44%bcond_without litespeed # build litespeed SAPI
45%bcond_with milter # disable Milter SAPI
46%bcond_without phpdbg # disable phpdbg SAPI
47# - Extensions
476107e3
ER
48%bcond_without bcmath # without bcmath extension module
49%bcond_without bz2 # without bz2 extension module
50%bcond_without calendar # without calendar extension module
51%bcond_without ctype # without ctype extension module
c0240cb1 52%bcond_without curl # without CURL extension module
476107e3
ER
53%bcond_without dba # without DBA extension module
54%bcond_without dom # without DOM extension module
13f02a12 55%bcond_without enchant # without Enchant extension module
476107e3
ER
56%bcond_without exif # without EXIF extension module
57%bcond_without fileinfo # without fileinfo extension module
d8c3b589 58%bcond_without filter # without filter extension module
476107e3
ER
59%bcond_without ftp # without FTP extension module
60%bcond_without gd # without GD extension module
61%bcond_without gettext # without gettext extension module
62%bcond_without gmp # without gmp extension module
63%bcond_without hash # without hash extension module
64%bcond_without iconv # without iconv extension module
c0240cb1 65%bcond_without imap # without IMAP extension module
66%bcond_without interbase # without InterBase extension module
689a4e56 67%bcond_without intl # without Intl extension module
476107e3 68%bcond_without json # without json extension module
c0240cb1 69%bcond_without ldap # without LDAP extension module
476107e3 70%bcond_without mbstring # without mbstring extension module
c0240cb1 71%bcond_without mhash # without mhash extension (supported by hash extension)
9361e182 72%bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
24cbb89e
ER
73%bcond_without mysqlnd # without mysqlnd support in mysql related extensions
74%bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
c0240cb1 75%bcond_without odbc # without ODBC extension module
8328535b 76%bcond_without opcache # without Enable Zend OPcache extension support
c0240cb1 77%bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
476107e3 78%bcond_without pcntl # without pcntl extension module
c0240cb1 79%bcond_without pcre # without PCRE extension module
476107e3 80%bcond_without pdo # without PDO extension module
006a7eb1 81%bcond_without pdo_dblib # without PDO dblib extension module
476107e3 82%bcond_without pdo_mysql # without PDO MySQL extension module
24cbb89e 83%bcond_without pdo_sqlite # without PDO SQLite extension module
c0240cb1 84%bcond_without pgsql # without PostgreSQL extension module
476107e3
ER
85%bcond_without phar # without Phar extension module
86%bcond_without posix # without POSIX extension module
c0240cb1 87%bcond_without pspell # without pspell extension module
476107e3 88%bcond_without readline # without readline extension module
c0240cb1 89%bcond_without recode # without recode extension module
476107e3 90%bcond_without session # without session extension module
c0240cb1 91%bcond_without snmp # without SNMP extension module
3747e21b 92%bcond_without sodium # without sodium extension module
c0240cb1 93%bcond_without sqlite2 # without SQLite extension module
94%bcond_without sqlite3 # without SQLite3 extension module
c0240cb1 95%bcond_without tidy # without Tidy extension module
96%bcond_without wddx # without WDDX extension module
97%bcond_without xmlrpc # without XML-RPC extension module
36dd0868 98%bcond_without xsl # without xsl 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
8587bcb6 105%bcond_without system_libzip # system libzip
9f90add1 106%bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
c0240cb1 107
108%define apxs1 /usr/sbin/apxs1
109%define apxs2 /usr/sbin/apxs
c0240cb1 110
111# disable all sapis
112%if %{with gcov}
c0240cb1 113%undefine with_apache2
114%undefine with_cgi
115%undefine with_litespeed
116%endif
117
9f90add1
JB
118%if %{with default_php}
119%undefine with_alternatives
120%endif
121
c0240cb1 122# mm is not thread safe
123%if %{with zts}
124%undefine with_mm
125%endif
126
212b9ffa
ER
127# milter requires ZTS
128%if %{with milter} && %{without zts}
129%undefine with_milter
130%endif
131
dc101b85 132%ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha
c0240cb1 133# ppc disabled (broken on th-ppc)
134%undefine with_interbase
135%endif
136
dc101b85 137%ifnarch %{ix86} %{x8664} x32
c0240cb1 138# unsupported, see sapi/cgi/fpm/fpm_atomic.h
139%undefine with_fpm
140%endif
141
c0240cb1 142# filter depends on pcre
143%if %{without pcre}
144%undefine with_filter
145%endif
146
580d93e0 147%define orgname php
5c8bd0f5 148%define ver_suffix 72
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}
67ac52eb 157Version: 7.2.34
78dd4571 158Release: 6
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
d6a5453c 165Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
67ac52eb 166# Source0-md5: adb64072b9b7e4634844a72512239a34
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
ER
182Patch5: %{orgname}-filter-shared.patch
183Patch6: %{orgname}-build_modules.patch
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
200Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
a3c07000 201Patch34: %{orgname}-libtool.patch
a3c07000
ER
202Patch39: %{orgname}-use-prog_sendmail.patch
203Patch41: %{orgname}-fpm-config.patch
204Patch42: %{orgname}-fpm-shared.patch
205Patch43: %{orgname}-silent-session-cleanup.patch
206Patch44: %{orgname}-include_path.patch
207Patch45: %{orgname}-imap-annotations.patch
208Patch46: %{orgname}-imap-myrights.patch
c0240cb1 209Patch50: extension-shared-optional-dep.patch
210Patch51: spl-shared.patch
211Patch52: pcre-shared.patch
212Patch53: fix-test-run.patch
c0240cb1 213Patch55: bug-52078-fileinode.patch
a3c07000
ER
214Patch59: %{orgname}-systzdata.patch
215Patch60: %{orgname}-oracle-instantclient.patch
89f3bdfa 216Patch66: php-db.patch
f141d13b 217Patch67: mysql-lib-ver-mismatch.patch
18d0d716
AM
218# https://bugs.php.net/bug.php?id=68344
219Patch68: php-mysql-ssl-context.patch
882aa900 220Patch70: mysqlnd-ssl.patch
55cbf8a6 221Patch71: libdb-info.patch
56b53eba 222Patch72: phar-hash-shared.patch
2cb22466 223Patch73: icu69.patch
6a9cce28 224Patch74: openssl.patch
b4f9f2c8 225Patch75: icu70.patch
6d018365 226URL: http://php.net/
c0240cb1 227%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
228%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
9eb543e2 229BuildRequires: autoconf >= 2.59
c0240cb1 230BuildRequires: automake >= 1.4d
231BuildRequires: bison
6d018365 232BuildRequires: bzip2-devel >= 1.0.0
c0240cb1 233%{?with_curl:BuildRequires: curl-devel >= 7.12.0}
6d018365 234BuildRequires: cyrus-sasl-devel >= 2
c0240cb1 235BuildRequires: db-devel >= 4.0
236BuildRequires: elfutils-devel
13f02a12 237%{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
c0240cb1 238%{?with_kerberos5:BuildRequires: heimdal-devel}
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}
591a626b 251%{?with_argon2:BuildRequires: libargon2-devel >= 20161029}
9efb5102 252%{?with_intl:BuildRequires: libicu-devel >= 4.4}
c0240cb1 253BuildRequires: libjpeg-devel
254BuildRequires: libltdl-devel >= 1.4
c0240cb1 255BuildRequires: libpng-devel >= 1.0.8
591a626b 256%{?with_sodium:BuildRequires: libsodium-devel >= 1.0.8}
5b279587 257%{?with_intl:BuildRequires: libstdc++-devel}
cc167b4a 258%{?with_webp:BuildRequires: libwebp-devel}
c0240cb1 259%if "%{pld_release}" != "ac"
46a247ad 260BuildRequires: libtool >= 2:2.4.6
c0240cb1 261%else
262BuildRequires: libtool >= 1.4.3
263%endif
c0240cb1 264BuildRequires: libxml2-devel >= 1:2.7.6-4
36dd0868 265%{?with_xsl:BuildRequires: libxslt-devel >= 1.1.0}
0bd075a3 266%{?with_system_libzip:BuildRequires: libzip-devel >= 1.3.1}
5bb0ecd6 267%{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
c0240cb1 268%{?with_mm:BuildRequires: mm-devel >= 1.3.0}
5bb0ecd6 269%{!?with_mysqli:BuildRequires: mysql-devel >= 4.1.13}
fd3b1dfb 270%{!?with_pdo_mysql:BuildRequires: mysql-devel}
5bb0ecd6 271%{?with_snmp:BuildRequires: net-snmp-devel >= 5.3}
06a32300 272BuildRequires: oniguruma-devel
c0240cb1 273%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
274%if %{with openssl} || %{with ldap}
3ed7c16a 275BuildRequires: openssl-devel >= 1.0.1
c0240cb1 276%endif
329b4394 277%{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
c0240cb1 278BuildRequires: pam-devel
279%{?with_pcre:BuildRequires: pcre-devel >= 8.10}
280BuildRequires: pkgconfig
c0240cb1 281%{?with_pgsql:BuildRequires: postgresql-devel}
282BuildRequires: readline-devel
283%{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
284BuildRequires: rpm >= 4.4.9-56
285BuildRequires: rpm-build >= 4.4.0
286BuildRequires: rpmbuild(macros) >= 1.566
5bb0ecd6 287BuildRequires: sed >= 4.0
c0240cb1 288%if %{with sqlite3} || %{with pdo_sqlite}
289BuildRequires: sqlite3-devel >= 3.3.9
290%endif
5bb0ecd6
JB
291%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
292BuildRequires: tar >= 1:1.22
c0240cb1 293%{?with_tidy:BuildRequires: tidy-devel}
5bb0ecd6 294BuildRequires: tokyocabinet-devel
c0240cb1 295%{?with_odbc:BuildRequires: unixODBC-devel}
296%{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
5bb0ecd6
JB
297BuildRequires: xz
298BuildRequires: zlib-devel >= 1.2.0.4
c0240cb1 299%if %{with apache2}
300BuildRequires: apache-devel >= 2.0.52-2
301BuildRequires: apr-devel >= 1:1.0.0
302BuildRequires: apr-util-devel >= 1:1.0.0
303%endif
c0240cb1 304BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
305
cfb6f787
ER
306%define php_sysconfdir /etc/%{name}
307%define php_extensiondir %{_libdir}/%{name}
c0240cb1 308%define _sysconfdir %{php_sysconfdir}
309
310# must be in sync with source. extra check ensuring that it is so is done in %%build
8d10a61f
ER
311%define php_api_version 20170718
312%define zend_module_api 20170718
313%define zend_extension_api 320170718
5c8bd0f5 314%define php_pdo_api_version 20170320
c0240cb1 315
13f02a12
ER
316# Extension versions
317%define bz2ver 1.0
3e7ae526 318%define enchantver %{version}
2e0e7ed6 319%define fileinfover 1.0.5
13f02a12
ER
320%define hashver 1.0
321%define intlver 1.1.0
8d10a61f 322%define jsonver 1.6.0
ece5522f 323%define pharver 2.0.2
f2e92818 324%define sqlite3ver %{version}
981a3721 325%define zipver 1.15.4
e7f4e76b 326%define phpdbgver 0.5.0
3747e21b 327%define sodiumver %{version}
13f02a12 328
a6af2a14 329%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
1ccf1801 330%define php_debug %{!?with_debug:0}%{?with_debug:1}
c0240cb1 331
332%if %{with gcov}
333%undefine with_ccache
334%endif
335
329b4394 336%if %{with oci}
c0240cb1 337# ORACLE_HOME is required for oci8 ext to build
338%define _preserve_env %_preserve_env_base ORACLE_HOME
339%endif
340
341%description
342PHP is an HTML-embedded scripting language. PHP attempts to make it
343easy for developers to write dynamically generated web pages. PHP also
344offers built-in database integration for several commercial and
345non-commercial database management systems, so writing a
346database-enabled web page with PHP is fairly simple. The most common
347use of PHP coding is probably as a replacement for CGI scripts. The
348mod_php module enables the Apache web server to understand and process
349the embedded PHP language in web pages. This package contains PHP
350version %{version}.
351
352%description -l fr.UTF-8
353PHP est un langage de script embarque dans le HTM. PHP essaye de
354rendre simple aux developpeurs d'ecrire des pages web generees
355dynamiquement. PHP incorpore egalement une integration avec plusieurs
356systemes de gestion de bases de donnees commerciaux et
357non-connerciaux, qui rent facile la creation de pages web liees avec
358des bases de donnees. L'utilisation la plus commune de PHP est
359probablement en remplacement de scripts CGI. Le module mod_php permet
360au serveur web Apache de comprendre et de traiter le langage PHP
361integre dans des pages web. Ce package contient PHP version
362%{version}.
363
364%description -l pl.UTF-8
365PHP jest językiem skryptowym, którego polecenia umieszcza się w
366plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
367generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
368danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
369co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
370Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
371CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
372język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
373%{version}.
374
375%description -l pt_BR.UTF-8
376PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
377embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
378com algumas características únicas, específicas ao PHP. O objetivo da
379linguagem é permitir que desenvolvedores web escrevam páginas
380dinamicamente geradas de forma rápida.
381
382%description -l ru.UTF-8
383PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
384предлагает интерграцию с множеством СУБД, поэтому написание скриптов
385для работы с базами данных относительно просто. Наиболее популярное
386использование PHP - замена для CGI скриптов.
387
388%description -l uk.UTF-8
389PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
390пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
391роботи з базами даних є доволі простим. Найбільш популярне
392використання PHP - заміна для CGI скриптів.
393
aa424f73 394%package -n apache-mod_%{name}
52126be2
AM
395Summary: PHP support for Apache 2.x
396Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
c0240cb1 397Group: Development/Languages/PHP
398Requires: %{name}-common = %{epoch}:%{version}-%{release}
fd3b1dfb 399Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
c0240cb1 400Provides: webserver(php) = %{version}
d6634248 401Obsoletes: apache-mod_php < 4:5.3.28-7
c0240cb1 402Obsoletes: phpfi
403
aa424f73 404%description -n apache-mod_%{name}
52126be2 405PHP support for Apache 2.x.
c0240cb1 406
aa424f73 407%description -n apache-mod_%{name} -l pl.UTF-8
52126be2
AM
408Wsparcie PHP dla Apache 2.x.
409
410%package -n apache-mod_%{name}-core
411Summary: PHP DSO module for Apache 2.x
412Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
413Group: Development/Languages/PHP
414Requires: %{name}-common = %{epoch}:%{version}-%{release}
415Requires: apache(modules-api) = %{apache_modules_api}
416Requires: apache-mod_mime
417
418%description -n apache-mod_%{name}-core
419PHP as DSO module for Apache 2.x.
420
421%description -n apache-mod_%{name}-core -l pl.UTF-8
c0240cb1 422PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
423
424%package litespeed
425Summary: PHP for litespeed HTTP server
426Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
427Group: Development/Languages/PHP
428Requires: %{name}-common = %{epoch}:%{version}-%{release}
2ca856d0 429Provides: php(litespeed)
c0240cb1 430Provides: webserver(php) = %{version}
d6634248 431Obsoletes: php-litespeed < 4:5.3.28-7
c0240cb1 432
433%description litespeed
434PHP for litespeed HTTP server.
435
436%description litespeed -l pl.UTF-8
437PHP dla serwera HTTP litespeed.
438
439%package cgi
440Summary: PHP as CGI/FastCGI program
441Summary(pl.UTF-8): PHP jako program CGI/FastCGI
442Group: Development/Languages/PHP
443Requires: %{name}-common = %{epoch}:%{version}-%{release}
444Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
445Provides: php(cgi)
446Provides: php(fcgi)
ecbcdf28 447Provides: webserver(php) = %{version}
d6634248 448Obsoletes: php-cgi < 4:5.3.28-7
c0240cb1 449Obsoletes: php-fcgi < 4:5.3.0
450
451%description cgi
452PHP as CGI or FastCGI program.
453
454%description cgi -l pl.UTF-8
455PHP jako program CGI lub FastCGI.
456
457%package cli
458Summary: PHP as CLI interpreter
459Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
460Group: Development/Languages/PHP
461Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 462Obsoletes: php-cli < 4:5.3.28-7
c0240cb1 463
464%description cli
465PHP as CLI interpreter.
466
467%description cli -l pl.UTF-8
468PHP jako interpreter działający z linii poleceń.
469
13f02a12
ER
470%package embedded
471Summary: PHP library for embedding in applications
0bbc8abe 472Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
13f02a12
ER
473Group: Libraries
474Requires: %{name}-common = %{epoch}:%{version}-%{release}
d6634248 475Obsoletes: php-embedded < 4:5.3.28-7
13f02a12
ER
476
477%description embedded
478The php-embedded package contains a library which can be embedded into
479applications to provide PHP scripting language support.
480
0bbc8abe 481%description embedded -l pl.UTF-8
cfb6f787 482Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
0bbc8abe
JB
483celu obsługi PHP jako języka skryptowego.
484
c0240cb1 485%package program
486Summary: /usr/bin/php symlink
487Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
488Group: Development/Languages/PHP
489Requires: %{name}-cli = %{epoch}:%{version}-%{release}
e54798c7 490Obsoletes: php-program < 4:5.3.28-7
b3504347
AG
491Obsoletes: php4-program
492Obsoletes: php52-program
493Obsoletes: php53-program
494Obsoletes: php54-program
495Obsoletes: php55-program
496Obsoletes: php56-program
497Obsoletes: php70-program
498Obsoletes: php71-program
499Obsoletes: php73-program
500Obsoletes: php74-program
501Obsoletes: php80-program
622164a8 502Obsoletes: php81-program
c0240cb1 503
504%description program
505Package providing /usr/bin/php symlink to PHP CLI.
506
507%description program -l pl.UTF-8
508Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
509
510%package fpm
511Summary: PHP FastCGI Process Manager
512Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
513Group: Development/Languages/PHP
6d018365 514URL: http://php-fpm.org/
c0240cb1 515Requires(post,preun): /sbin/chkconfig
516Requires(postun): /usr/sbin/userdel
517Requires(pre): /bin/id
518Requires(pre): /usr/sbin/useradd
519Requires: %{name}-common = %{epoch}:%{version}-%{release}
9f90add1 520%{?with_alternatives:Requires: alternatives}
b8fc749a 521Requires: php-dirs >= 1.4-2
c0240cb1 522Requires: rc-scripts
354a4dcd 523Provides: php(fcgi)
2ca856d0 524Provides: php(fpm)
c0240cb1 525Provides: user(http)
526Provides: webserver(php) = %{version}
d6634248 527Obsoletes: php-fpm < 4:5.3.28-7
4c94999c
TP
528%if "%{pld_release}" != "ac"
529Conflicts: logrotate < 3.8.0
530%endif
c0240cb1 531
532%description fpm
533PHP FastCGI Process Manager.
534
535%description fpm -l pl.UTF-8
536PHP FastCGI Process Manager - zarządca procesów FastCGI.
537
8d42644e
ER
538%package phpdbg
539Summary: The debugging platform for PHP 5.4+
9f90add1 540Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
8d42644e
ER
541Group: Development/Languages/PHP
542Requires: %{name}-common = %{epoch}:%{version}-%{release}
543Provides: php(phpdbg) = %{phpdbgver}
544
545%description phpdbg
546phpdbg - The interactive PHP debugger.
547
548Implemented as a SAPI module, phpdbg can excert complete control over
549the environment without impacting the functionality or performance of
550your code.
551
552phpdbg aims to be a lightweight, powerful, easy to use debugging
553platform for PHP 5.4+
554
9f90add1
JB
555%description phpdbg -l pl.UTF-8
556phpdbg - interaktywny debugger dla PHP.
557
558Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
559nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
560
561Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
562platforma diagnostyczna dla PHP 5.4+.
563
c0240cb1 564%package common
565Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
566Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
567Summary(ru.UTF-8): Разделяемые библиотеки для PHP
568Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
569Group: Libraries
570Requires(post): sed >= 4.0
571# because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
572Requires: glibc >= 6:2.3.5
3f8f8051 573Requires: php-dirs >= 1.4
c0240cb1 574Requires: rpm-whiteout >= 1.28
575Requires: tzdata
5bb0ecd6 576Requires: zlib >= 1.2.0.4
d87d42cb
ER
577Provides: %{name}(debug) = %{php_debug}
578Provides: %{name}(modules_api) = %{php_api_version}
a6af2a14 579Provides: %{name}(thread-safety) = %{_zend_zts}
d87d42cb
ER
580Provides: %{name}(zend_extension_api) = %{zend_extension_api}
581Provides: %{name}(zend_module_api) = %{zend_module_api}
93e7acf8 582Provides: %{name}-core
d87d42cb 583Provides: %{name}-date
d87d42cb
ER
584Provides: %{name}-reflection
585Provides: %{name}-standard
93e7acf8 586Provides: php(core) = %{version}
c0240cb1 587Provides: php(date)
c0240cb1 588Provides: php(libxml)
c0240cb1 589Provides: php(reflection)
590Provides: php(standard)
19367d1b 591%{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
c0240cb1 592%{?with_pcre:%requires_ge_to pcre pcre-devel}
9f2b265f 593Suggests: browscap
d6634248 594Obsoletes: php-common < 4:5.3.28-7
5f8c3b48
JB
595# withdrawn modules
596Obsoletes: php-filepro < 4:5.2.0
597Obsoletes: php-hwapi < 4:5.2.0
598Obsoletes: php-hyperwave < 3:5.0.0
599Obsoletes: php-java < 3:5.0.0
600Obsoletes: php-mcal < 3:5.0.0
c0240cb1 601Obsoletes: php-pecl-domxml
5f8c3b48 602Obsoletes: php-qtdom < 3:5.0.0
c0240cb1 603Conflicts: php4-common < 3:4.4.4-8
e2d9e36f 604Conflicts: php55-common < 4:5.5.10-4
c0240cb1 605Conflicts: rpm < 4.4.2-0.2
606
607%description common
608Common files needed by both Apache modules and CGI/CLI SAPIs.
609
610%description common -l pl.UTF-8
611Wspólne pliki dla modułu Apache'a i programu CGI.
612
613%description common -l ru.UTF-8
614Этот пакет содержит общие файлы для разных вариантов реализации PHP
615(самодостаточной и в качестве модуля Apache).
616
617%description common -l uk.UTF-8
618Цей пакет містить спільні файли для різних варіантів реалізації PHP
619(самодостатньої та в якості модуля Apache).
620
621%package devel
622Summary: Files for PHP modules development
623Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
624Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
625Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
626Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
627Group: Development/Languages/PHP
628Requires: %{name}-common = %{epoch}:%{version}-%{release}
13f02a12 629Requires: autoconf >= 2.13
c0240cb1 630Requires: automake
631%if "%{pld_release}" != "ac"
46a247ad 632Requires: libtool >= 2:2.4.6
c0240cb1 633%else
634Requires: libtool
635%endif
636%{?with_pcre:Requires: pcre-devel >= 8.10}
637Requires: shtool
e2ce7e4a 638Provides: php-devel = %{epoch}:%{version}-%{release}
cfb6f787 639Obsoletes: php-devel
c0240cb1 640Obsoletes: php-pear-devel
641Obsoletes: php4-devel
cfb6f787 642Obsoletes: php52-devel
6ef8f74a 643Obsoletes: php53-devel
dce223f2 644Obsoletes: php54-devel
dd9bd131 645Obsoletes: php55-devel
0854825d 646Obsoletes: php56-devel
6a2c96a5 647Obsoletes: php70-devel
dd012511 648Obsoletes: php71-devel
bf286d84 649Obsoletes: php73-devel
622164a8
ER
650Obsoletes: php74-devel
651Obsoletes: php80-devel
652Obsoletes: php81-devel
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
c0240cb1 895Obsoletes: php-pecl-filter
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
c0240cb1 1326Obsoletes: php-pecl-PDO
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
c0240cb1 1363Obsoletes: php-pecl-PDO_FIREBIRD
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
c0240cb1 1384Obsoletes: php-pecl-PDO_MYSQL
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
c0240cb1 1404Obsoletes: php-pecl-PDO_OCI
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
c0240cb1 1424Obsoletes: php-pecl-PDO_ODBC
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
c0240cb1 1464Obsoletes: php-pecl-PDO_SQLITE
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
591a626b 1688Summary(pl.UTF-8): Interfejs do biblioteki kryptograficznej Sodium
3747e21b
ER
1689Group: Libraries
1690URL: https://paragonie.com/book/pecl-libsodium
1691Requires: %{name}-common = %{epoch}:%{version}-%{release}
1692Provides: php(sodium) = %{sodiumver}
1693
1694%description sodium
1695A simple, low-level PHP extension for libsodium.
1696
591a626b
JB
1697%description sodium -l pl.UTF-8
1698Proste, niskopoziomowe rozszerzenie PHP wykorzystując libsodium.
1699
c0240cb1 1700%package spl
1701Summary: Standard PHP Library module for PHP
1702Summary(pl.UTF-8): Moduł biblioteki standardowej (Standard PHP Library) dla PHP
1703Group: Libraries
1704URL: http://php.net/manual/en/book.spl.php
1705Requires: %{name}-common = %{epoch}:%{version}-%{release}
1706Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1707Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1708Provides: php(spl)
d6634248 1709Obsoletes: php-spl < 4:5.3.28-7
c0240cb1 1710
1711%description spl
1712This is a dynamic shared object (DSO) for PHP that will add Standard
1713PHP Library support.
1714
1715%description spl -l pl.UTF-8
1716Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
1717
c0240cb1 1718%package sqlite3
1719Summary: SQLite3 extension module for PHP
1720Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1721Group: Libraries
1722URL: http://php.net/manual/en/book.sqlite3.php
1723Requires: %{name}-common = %{epoch}:%{version}-%{release}
ce39c8ba 1724Provides: php(sqlite3) = %{sqlite3ver}
d6634248 1725Obsoletes: php-sqlite3 < 4:5.3.28-7
c0240cb1 1726
1727%description sqlite3
1728SQLite is a C library that implements an embeddable SQL database
1729engine. Programs that link with the SQLite library can have SQL
1730database access without running a separate RDBMS process.
1731
1732SQLite is not a client library used to connect to a big database
1733server. SQLite is the server. The SQLite library reads and writes
1734directly to and from the database files on disk.
1735
1736%description sqlite3 -l pl.UTF-8
1737SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1738bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1739dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1740RDBMS.
1741
1742SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1743baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1744zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1745dysku.
1746
c0240cb1 1747%package sysvmsg
1748Summary: SysV msg extension module for PHP
1749Summary(pl.UTF-8): Moduł SysV msg dla PHP
1750Group: Libraries
6d018365 1751URL: http://php.net/manual/en/book.sem.php
c0240cb1 1752Requires: %{name}-common = %{epoch}:%{version}-%{release}
1753Provides: php(sysvmsg)
d6634248 1754Obsoletes: php-sysvmsg < 4:5.3.28-7
c0240cb1 1755
1756%description sysvmsg
1757This is a dynamic shared object (DSO) for PHP that will add SysV
1758message queues support.
1759
1760%description sysvmsg -l pl.UTF-8
1761Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1762
1763%package sysvsem
1764Summary: SysV sem extension module for PHP
1765Summary(pl.UTF-8): Moduł SysV sem dla PHP
1766Group: Libraries
6d018365 1767URL: http://php.net/manual/en/book.sem.php
c0240cb1 1768Requires: %{name}-common = %{epoch}:%{version}-%{release}
1769Provides: php(sysvsem)
d6634248 1770Obsoletes: php-sysvsem < 4:5.3.28-7
c0240cb1 1771
1772%description sysvsem
1773This is a dynamic shared object (DSO) for PHP that will add SysV
1774semaphores support.
1775
1776%description sysvsem -l pl.UTF-8
1777Moduł PHP umożliwiający korzystanie z semaforów SysV.
1778
1779%package sysvshm
1780Summary: SysV shm extension module for PHP
1781Summary(pl.UTF-8): Moduł SysV shm dla PHP
1782Group: Libraries
6d018365 1783URL: http://php.net/manual/en/book.sem.php
c0240cb1 1784Requires: %{name}-common = %{epoch}:%{version}-%{release}
1785Provides: php(sysvshm)
d6634248 1786Obsoletes: php-sysvshm < 4:5.3.28-7
c0240cb1 1787
1788%description sysvshm
1789This is a dynamic shared object (DSO) for PHP that will add SysV
1790Shared Memory support.
1791
1792%description sysvshm -l pl.UTF-8
1793Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1794
1795%package tests
1796Summary: Contains unit test files for PHP and extensions
1797Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1798Group: Libraries
1799URL: http://qa.php.net/
1800Requires: %{name}-cli
b8be6127
ER
1801%if "%{_rpmversion}" >= "5"
1802BuildArch: noarch
1803%endif
c0240cb1 1804
1805%description tests
13f02a12 1806This package contains unit tests for PHP and its extensions.
c0240cb1 1807
1808%description tests -l pl.UTF-8
13f02a12 1809Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
c0240cb1 1810
1811%package tidy
1812Summary: Tidy extension module for PHP
1813Summary(pl.UTF-8): Moduł Tidy dla PHP
1814Group: Libraries
6d018365 1815URL: http://php.net/manual/en/book.tidy.php
c0240cb1 1816Requires: %{name}-common = %{epoch}:%{version}-%{release}
1817Requires: tidy
1818Provides: php(tidy)
d6634248 1819Obsoletes: php-tidy < 4:5.3.28-7
c0240cb1 1820
1821%description tidy
1822This is a dynamic shared object (DSO) for PHP that will add Tidy
1823support.
1824
1825%description tidy -l pl.UTF-8
1826Moduł PHP umożliwiający korzystanie z tidy.
1827
1828%package tokenizer
1829Summary: tokenizer extension module for PHP
1830Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1831Group: Libraries
6d018365 1832URL: http://php.net/manual/en/book.tokenizer.php
c0240cb1 1833Requires: %{name}-common = %{epoch}:%{version}-%{release}
1834Provides: php(tokenizer)
d6634248 1835Obsoletes: php-tokenizer < 4:5.3.28-7
c0240cb1 1836
1837%description tokenizer
1838This is a dynamic shared object (DSO) for PHP that will add tokenizer
1839support.
1840
1841%description tokenizer -l pl.UTF-8
1842Moduł PHP dodający obsługę tokenizera do PHP.
1843
1844%package wddx
1845Summary: wddx extension module for PHP
1846Summary(pl.UTF-8): Moduł wddx dla PHP
1847Group: Libraries
6d018365 1848URL: http://php.net/manual/en/book.wddx.php
c0240cb1 1849Requires: %{name}-common = %{epoch}:%{version}-%{release}
1850# - wddx doesn't require session as it's disabled at compile time:
1851# if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1852# see also php.spec#rev1.120.2.22
1853#Requires: %{name}-session = %{epoch}:%{version}-%{release}
1854Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1855Provides: php(wddx)
d6634248 1856Obsoletes: php-wddx < 4:5.3.28-7
c0240cb1 1857
1858%description wddx
1859This is a dynamic shared object (DSO) for PHP that will add wddx
1860support.
1861
1862%description wddx -l pl.UTF-8
1863Moduł PHP umożliwiający korzystanie z wddx.
1864
1865%package xml
1866Summary: XML extension module for PHP
1867Summary(pl.UTF-8): Moduł XML dla PHP
1868Group: Libraries
6d018365 1869URL: http://php.net/manual/en/book.xml.php
c0240cb1 1870Requires: %{name}-common = %{epoch}:%{version}-%{release}
1871Provides: php(xml)
d6634248 1872Obsoletes: php-xml < 4:5.3.28-7
c0240cb1 1873
1874%description xml
1875This is a dynamic shared object (DSO) for PHP that will add XML
1876support. This extension lets you create XML parsers and then define
1877handlers for different XML events.
1878
1879%description xml -l pl.UTF-8
1880Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1881związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1882następnie definiować procedury obsługi dla różnych zdarzeń XML.
1883
1884%package xmlreader
1885Summary: XML Reader extension module for PHP
1886Summary(pl.UTF-8): Moduł XML Reader dla PHP
1887Group: Libraries
6d018365 1888URL: http://php.net/manual/en/book.xmlreader.php
c0240cb1 1889Requires: %{name}-common = %{epoch}:%{version}-%{release}
026b752b 1890Requires: %{name}-dom = %{epoch}:%{version}-%{release}
c0240cb1 1891Provides: php(xmlreader)
d6634248 1892Obsoletes: php-xmlreader < 4:5.3.28-7
c0240cb1 1893
1894%description xmlreader
1895This is a dynamic shared object (DSO) for PHP that will add XML Reader
1896support. The XMLReader extension is an XML Pull parser. The reader
1897acts as a cursor going forward on the document stream and stopping at
1898each node on the way.
1899
1900%description xmlreader -l pl.UTF-8
1901Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1902działa jako kursor przechodzący przez strumień dokumentu i
1903zatrzymujący się na każdym węźle po drodze.
1904
1905%package xmlrpc
1906Summary: xmlrpc extension module for PHP
1907Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1908Group: Libraries
6d018365 1909URL: http://php.net/manual/en/book.xmlrpc.php
c0240cb1 1910Requires: %{name}-common = %{epoch}:%{version}-%{release}
1911Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1912Provides: php(xmlrpc)
d6634248 1913Obsoletes: php-xmlrpc < 4:5.3.28-7
c0240cb1 1914
1915%description xmlrpc
1916This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1917support.
1918
1919%description xmlrpc -l pl.UTF-8
1920Moduł PHP dodający obsługę XMLRPC.
1921
1922%package xmlwriter
1923Summary: Fast, non-cached, forward-only means to write XML data
1924Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1925Group: Libraries
6d018365 1926URL: http://php.net/manual/en/book.xmlwriter.php
c0240cb1 1927Requires: %{name}-common = %{epoch}:%{version}-%{release}
1928Provides: php(xmlwriter)
1929Obsoletes: php-pecl-xmlwriter
d6634248 1930Obsoletes: php-xmlwriter < 4:5.3.28-7
c0240cb1 1931
1932%description xmlwriter
1933This extension wraps the libxml xmlWriter API. Represents a writer
1934that provides a non-cached, forward-only means of generating streams
1935or files containing XML data.
1936
1937%description xmlwriter -l pl.UTF-8
1938To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1939zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1940plików zawierających dane XML.
1941
1942%package xsl
1943Summary: xsl extension module for PHP
1944Summary(pl.UTF-8): Moduł xsl dla PHP
1945Group: Libraries
6d018365 1946URL: http://php.net/manual/en/book.xsl.php
c0240cb1 1947Requires: %{name}-common = %{epoch}:%{version}-%{release}
1948Requires: %{name}-dom = %{epoch}:%{version}-%{release}
5bb0ecd6 1949Requires: libxslt >= 1.1.0
c0240cb1 1950Provides: php(xsl)
d6634248 1951Obsoletes: php-xsl < 4:5.3.28-7
0282b86e 1952# actually not true, functionality is similar, but API differs
c0240cb1 1953Obsoletes: php-xslt <= 3:4.3.8-1
1954
1955%description xsl
1956This is a dynamic shared object (DSO) for PHP that will add new XSL
1957support (using libxslt).
1958
1959%description xsl -l pl.UTF-8
1960Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1961
1962%package zip
1963Summary: Zip management extension
1964Summary(pl.UTF-8): Zarządzanie archiwami zip
1965Group: Libraries
6d018365 1966URL: http://php.net/manual/en/book.zip.php
c0240cb1 1967Requires: %{name}-common = %{epoch}:%{version}-%{release}
0bd075a3 1968%{?with_system_libzip:Requires: libzip >= 1.3.1}
13f02a12
ER
1969Provides: php(zip) = %{zipver}
1970Obsoletes: php-pecl-zip < %{zipver}
d6634248 1971Obsoletes: php-zip < 4:5.3.28-7
c0240cb1 1972
1973%description zip
1974Zip is an extension to create, modify and read zip files.
1975
1976%description zip -l pl.UTF-8
1977Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1978odczyt archiwów zip.
1979
1980%package zlib
1981Summary: Zlib extension module for PHP
1982Summary(pl.UTF-8): Moduł zlib dla PHP
1983Group: Libraries
6d018365 1984URL: http://php.net/manual/en/book.zlib.php
c0240cb1 1985Requires: %{name}-common = %{epoch}:%{version}-%{release}
1986Provides: php(zlib)
d6634248 1987Obsoletes: php-zlib < 4:5.3.28-7
c0240cb1 1988
1989%description zlib
1990This is a dynamic shared object (DSO) for PHP that will add zlib
1991compression support to PHP.
1992
1993%description zlib -l pl.UTF-8
1994Moduł PHP umożliwiający używanie kompresji zlib.
1995
1996%prep
14cf8d28 1997%setup -q -n %{orgname}-%{version}%{?subver}
212b9ffa 1998cp -p php.ini-production php.ini
c0240cb1 1999%patch0 -p1
5eecc0ee 2000%patch1 -p1
0fde374e 2001%patch2 -p1
c0240cb1 2002%patch3 -p1
bf071fdd 2003%patch4 -p1
c0240cb1 2004%patch5 -p1
2005%patch6 -p1
c0240cb1 2006%patch7 -p1
8a89cecb 2007%{?with_milter:%patch8 -p1}
8b15d51c 2008%patch9 -p1
c0240cb1 2009%patch10 -p1
c0240cb1 2010%patch14 -p1
c0240cb1 2011%patch17 -p1
2012%patch18 -p1
c0240cb1 2013%patch21 -p1
2014%patch22 -p1
2015%patch23 -p1
2016%patch24 -p1
2017%patch25 -p1
2018%patch26 -p1
2019%patch27 -p1
2020%patch29 -p1
2021%patch31 -p1
c0240cb1 2022%if "%{pld_release}" != "ac"
2023%patch34 -p1
2024%endif
c0240cb1 2025%patch39 -p1
c0240cb1 2026%patch41 -p1
2027%patch42 -p1
c0240cb1 2028%patch43 -p1
2029%patch44 -p1
02d2dcbb
ER
2030#%patch45 -p1 # imap annotations. fixme
2031#%patch46 -p1 # imap myrights. fixme
c0240cb1 2032%patch50 -p1
0f6cc514 2033%patch51 -p1 -b .spl-shared
f389261f 2034%patch52 -p1 -b .pcre-shared
c0240cb1 2035%patch53 -p1
c0240cb1 2036%undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
2037%patch55 -p1
0f6cc514
ER
2038%patch59 -p1 -b .systzdata
2039%if %{with instantclient}
2040%patch60 -p1 -b .instantclient
2041%endif
89f3bdfa 2042%patch66 -p1
f141d13b 2043%patch67 -p1
d16c36e5 2044#%patch68 -p1 DROP or update to 7.0 APIs
882aa900 2045%patch70 -p1
55cbf8a6 2046%patch71 -p1
0f6cc514 2047%patch72 -p1 -b .phar-shared
2cb22466 2048%patch73 -p1
6a9cce28 2049%patch74 -p1
b4f9f2c8 2050%patch75 -p1
c0240cb1 2051
f05a6200
AM
2052sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
2053 run-tests.php
2054
e19c578b 2055%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
c0240cb1 2056
2057# cleanup backups after patching
2058find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
2059
4efaf422
ER
2060# com_dotnet is Win32-only
2061%{__rm} -r ext/com_dotnet
2062
c0240cb1 2063# conflict seems to be resolved by recode patches
2064%{__rm} ext/recode/config9.m4
2065
2066# remove all bundled libraries not to link with them accidentally
c0240cb1 2067%{__rm} -r ext/sqlite3/libsqlite
2068#%{__rm} -r ext/bcmath/libbcmath
2069#%{__rm} -r ext/date/lib
2070#%{__rm} -r ext/fileinfo/libmagic
2071#%{__rm} -r ext/dba/libcdb
2072#%{__rm} -r ext/dba/libflatfile
2073#%{__rm} -r ext/dba/libinifile
2074#%{__rm} -r ext/gd/libgd
2075#%{__rm} -r ext/mbstring/libmbfl
06a32300 2076%{__rm} -r ext/mbstring/oniguruma
c0240cb1 2077%{__rm} -r ext/pcre/pcrelib
2078#%{__rm} -r ext/soap/interop
2079%{__rm} -r ext/xmlrpc/libxmlrpc
2080#%{__rm} -r ext/zip/lib
3790806a 2081%{__rm} ext/date/lib/timezonedb.h
c0240cb1 2082
13f02a12 2083cp -pf Zend/LICENSE{,.Zend}
c0240cb1 2084install -p %{SOURCE13} dep-tests.sh
2085
2086# breaks build
2087sed -i -e 's#-fvisibility=hidden##g' configure*
2088
2089# disable broken tests
2090# says just "Terminated" twice and fails
9f90add1 2091%{__mv} sapi/cli/tests/022.phpt{,.broken}
c0240cb1 2092
a33e71d0
ER
2093# really dumb test, executable binary name is .libs/ something when building
2094# https://bugs.php.net/bug.php?id=54514
9f90add1 2095%{__mv} tests/basic/bug54514.phpt{,.disable}
a33e71d0
ER
2096
2097# breaks whole testsuite unexpectedly:
2098# Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2099# probably broken as zlib is built as shared
9f90add1 2100%{__mv} ext/soap/tests/server019.phpt{,disable}
d1a2645a 2101# Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
9f90add1 2102%{__mv} ext/soap/tests/server020.phpt{,disable}
f8be3881
ER
2103
2104# runs out of memory and kills carme vserver
2105# PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
9f90add1 2106%{__mv} Zend/tests/bug39438.phpt{,.disable}
a33e71d0 2107
c0240cb1 2108# php-5.3.3/ext/standard/tests/file/statpage.phpt
2109%{__rm} ext/standard/tests/file/statpage.phpt
2110
2111# idiotic test, it will fail if somebody else makes space on disk or if disk
2112# space is not yet allocated (xfs). report upstream to advice bogus test is
2113# probably pointless.
2114%{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2115
482166f6
ER
2116%ifarch %{x8664}
2117# all pdo_sqlite, sqlite3 tests die with Aborted on carme
2118%{__rm} -r ext/pdo_sqlite/tests
2119%{__rm} -r ext/sqlite3/tests
2120%endif
2121
52d029e0
ER
2122# ----- Manage known as failed test -------
2123# affected by systzdata patch
2124%{__rm} ext/date/tests/timezone_location_get.phpt
2125%{__rm} ext/date/tests/timezone_version_get.phpt
2126%{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2127# Should be skipped but fails sometime
2128%{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2129# fails sometimes
2130%{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2131# causes stack exhausion
2132%{__rm} Zend/tests/bug54268.phpt
2133%{__rm} Zend/tests/bug68412.phpt
2134
2135# avoid issues when two builds run simultaneously
2136%ifarch %{x8664}
2137sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2138%endif
2139
bbf35c27
ER
2140# skip XFAILs
2141# no point testing stuff that is knowingly broken
52d029e0 2142find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
bbf35c27 2143
482166f6
ER
2144env \
2145%ifarch %{ix86}
52d029e0 2146ix86= x8664=: \
482166f6
ER
2147%endif
2148%ifarch %{x8664}
2149ix86=: x8664= \
dc101b85
JR
2150%endif
2151%ifarch x32
2152ix86=: x8664=: \
482166f6
ER
2153%endif
2154 sh -xe %{_sourcedir}/skip-tests.sh
c0240cb1 2155
2156%build
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
ER
2181# Check for some extension version
2182ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2183if test "$ver" != "%{fileinfover}"; then
2184 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2185 : Update the fileinfover macro and rebuild.
2186 exit 1
2187fi
2188ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2189if test "$ver" != "%{pharver}"; then
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
13f02a12
ER
2222ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2223if test "$ver" != "%{bz2ver}"; then
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
f4ee12ea 2232ver=$(awk '/#define PHP_HASH_VERSION/ {print $3}' ext/hash/php_hash.h | xargs)
13f02a12
ER
2233if test "$ver" != "%{hashver}"; then
2234 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2235 : Update the hashver macro and rebuild.
2236 exit 1
2237fi
2238ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2239if test "$ver" != "%{intlver}"; then
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"
3e7f45eb
JB
2259%if %{with intl}
2260# icu 59+ C++ API requires C++ >= 11
2261CXXFLAGS="%{rpmcxxflags} -std=c++11"
2262%endif
c0240cb1 2263
2264sapis="
2265cli
2266%if %{with cgi}
2267cgi-fcgi
2268%endif
2269%if %{with litespeed}
2270litespeed
2271%endif
2272%if %{with fpm}
2273fpm
2274%endif
13f02a12
ER
2275%if %{with embed}
2276embed
2277%endif
c0240cb1 2278%if %{with apache2}
2279apxs2
2280%endif
def35a47
ER
2281%if %{with phpdbg}
2282phpdbg
2283%endif
212b9ffa
ER
2284%if %{with milter}
2285milter
c0240cb1 2286%endif
2287"
2288for sapi in $sapis; do
2289 : SAPI $sapi
2290 # skip if already configured (for faster debugging purposes)
2291 [ -f Makefile.$sapi ] && continue
2292
2293 sapi_args=''
2294 case $sapi in
2295 cgi-fcgi)
f43c9977 2296 sapi_args='--enable-cgi'
c0240cb1 2297 ;;
2298 cli)
f43c9977 2299 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
c0240cb1 2300 ;;
2301 fpm)
f43c9977 2302 sapi_args='--enable-fpm'
c0240cb1 2303 ;;
13f02a12 2304 embed)
f43c9977 2305 sapi_args='--enable-embed'
13f02a12 2306 ;;
c0240cb1 2307 apxs2)
2308 ver=$(rpm -q --qf '%{V}' apache-devel)
f43c9977 2309 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
c0240cb1 2310 ;;
2311 litespeed)
f43c9977 2312 sapi_args='--with-litespeed'
def35a47
ER
2313 ;;
2314 phpdbg)
f43c9977 2315 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
c0240cb1 2316 ;;
212b9ffa 2317 milter)
f43c9977 2318 sapi_args='--with-milter'
c0240cb1 2319 ;;
2320 esac
2321
2322 %configure \
e19c578b 2323 EXTRA_LDFLAGS="%{rpmldflags}" \
f43c9977
ER
2324 --disable-cgi \
2325 --disable-cli \
2326 --disable-phpdbg \
c0240cb1 2327 $sapi_args \
2328%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2329 --cache-file=config.cache \
2330%endif
2331 --with-libdir=%{_lib} \
2332 --with-config-file-path=%{_sysconfdir} \
2333 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
c0240cb1 2334 --with-system-tzdata \
152101b1 2335 %{?with_argon2:--with-password-argon2} \
1ccf1801 2336 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
c0240cb1 2337 %{?with_zts:--enable-maintainer-zts} \
2338 --enable-inline-optimization \
476107e3
ER
2339 %{__enable_disable bcmath bcmath shared} \
2340 %{__enable_disable calendar calendar shared} \
2341 %{__enable_disable ctype ctype shared} \
2342 %{__enable_disable dba dba shared} \
2343 %{__enable_disable dom dom shared} \
e2bde909 2344 %{?with_systemtap:--enable-dtrace} \
476107e3
ER
2345 %{__enable_disable exif exif shared} \
2346 %{__enable_disable fileinfo fileinfo shared} \
2347 %{__enable_disable ftp ftp shared} \
689a4e56 2348 %{?with_intl:--enable-intl=shared} \
c0240cb1 2349 --enable-libxml \
476107e3 2350 %{__enable_disable mbstring mbstring shared,all} \
06a32300 2351 --with-onig=/usr \
c0240cb1 2352 --enable-mbregex \
476107e3
ER
2353 %{__enable_disable pcntl pcntl shared} \
2354 %{__enable_disable pdo pdo shared} \
2355 %{__enable_disable json json shared} \
2356 %{__enable_disable hash hash shared} \
c0240cb1 2357 --enable-xmlwriter=shared \
2358%if %{with fpm}
2359 --with-fpm-user=http \
2360 --with-fpm-group=http \
2361%endif
006a7eb1 2362%if %{with pdo_dblib}
c0240cb1 2363 --with-pdo-dblib=shared \
2364%endif
2365%if %{with interbase} && %{without interbase_inst}
2366 --with-pdo-firebird=shared,/usr \
2367%endif
2368 %{?with_mhash:--with-mhash=yes} \
2369 --with-mysql-sock=/var/lib/mysql/mysql.sock \
476107e3 2370 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
329b4394 2371 %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
c0240cb1 2372 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2373 %{?with_pgsql:--with-pdo-pgsql=shared} \
2374 %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
332bf1f4 2375 %{?with_webp:--with-webp-dir=/usr} \
c0240cb1 2376 --without-libexpat-dir \
476107e3 2377 %{__enable_disable posix posix shared} \
c0240cb1 2378 --enable-shared \
476107e3 2379 %{__enable_disable session session shared} \
c0240cb1 2380 --enable-shmop=shared \
2381 --enable-simplexml=shared \
2382 --enable-sysvmsg=shared \
2383 --enable-sysvsem=shared \
2384 --enable-sysvshm=shared \
c0240cb1 2385 --enable-soap=shared \
2386 --enable-sockets=shared \
3747e21b 2387 %{__with_without sodium sodium shared} \
c0240cb1 2388 --enable-tokenizer=shared \
c0240cb1 2389 %{?with_wddx:--enable-wddx=shared} \
2390 --enable-xml=shared \
2391 --enable-xmlreader=shared \
476107e3 2392 %{__with_without bz2 bz2 shared} \
c0240cb1 2393 %{__with_without curl curl shared} \
2394 --with-db4 \
476107e3 2395 %{__with_without iconv iconv shared} \
13f02a12 2396 %{?with_enchant:--with-enchant=shared,/usr} \
c0240cb1 2397 --with-freetype-dir=shared \
476107e3
ER
2398 %{__with_without gettext gettext shared} \
2399 %{__with_without gd gd shared%{?with_system_gd:,/usr}} \
c0240cb1 2400 --with-gdbm \
476107e3 2401 %{__with_without gmp gmp shared} \
c0240cb1 2402 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2403 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2404 --with-jpeg-dir=/usr \
2405 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
c0240cb1 2406 %{?with_mm:--with-mm} \
81d9fe7d 2407 %{?with_mysqlnd:--enable-mysqlnd=shared} \
81d9fe7d 2408 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
329b4394 2409 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
c4e1de8b 2410 %{__enable_disable opcache opcache shared} \
c0240cb1 2411 %{?with_openssl:--with-openssl=shared} \
2412 %{?with_kerberos5:--with-kerberos} \
36fd40c8 2413 --with-tcadb=/usr \
c0240cb1 2414 %{__with_without pcre pcre-regex /usr} \
2415 %{__enable_disable filter filter shared} \
2416 --with-pear=%{php_pear_dir} \
2417 %{__with_without pgsql pgsql shared,/usr} \
2418 %{__enable_disable phar phar shared} \
2419 --with-png-dir=/usr \
2420 %{?with_pspell:--with-pspell=shared} \
476107e3 2421 %{__with_without readline readline shared} \
c0240cb1 2422 %{?with_recode:--with-recode=shared} \
c0240cb1 2423 %{?with_snmp:--with-snmp=shared} \
c0240cb1 2424 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2425 %{__with_without sqlite3 sqlite3 shared,/usr} \
c0240cb1 2426 %{?with_tidy:--with-tidy=shared} \
2427 %{?with_odbc:--with-unixODBC=shared,/usr} \
2428 %{__with_without xmlrpc xmlrpc shared,/usr} \
36dd0868 2429 %{?with_xsl:--with-xsl=shared} \
c0240cb1 2430 --with-zlib=shared \
2431 --with-zlib-dir=shared,/usr \
13f02a12 2432 %{?with_system_libzip:--with-libzip} \
c0240cb1 2433 --enable-zip=shared,/usr \
2434
2435 # save for debug
2436 cp -f Makefile Makefile.$sapi
2437 cp -f main/php_config.h php_config.h.$sapi
2438 cp -f config.log config.log.$sapi
2439done
2440
2441# as we build each SAPI in own make, adjust php-config.in forehead
529e9ea3
ER
2442sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2443%{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
c0240cb1 2444
2445# must make libphp_common first, so modules can link against it.
2446cp -af php_config.h.cli main/php_config.h
2447cp -af Makefile.cli Makefile
2448%{__make} libphp_common.la
5467be0e
ER
2449# hack: MYSQLND_SHARED_LIBADD not initialized
2450%{__make} build-modules \
2451 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
c0240cb1 2452
c0240cb1 2453%if %{with apache2}
f4ee12ea 2454%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
c0240cb1 2455%endif
2456
2457%if %{with litespeed}
96ae08b1 2458%{__make} -f Makefile.litespeed litespeed
c0240cb1 2459%endif
2460
4d241919 2461%if %{with embed}
f4ee12ea 2462%{__make} -f Makefile.embed libphp7.la
4d241919
ER
2463%endif
2464
def35a47 2465%if %{with phpdbg}
f1570176
ER
2466# PHP_READLINE_LIBS is empty, so force readline here
2467%{__make} -f Makefile.phpdbg phpdbg \
2468 PHPDBG_EXTRA_LIBS=-lreadline
def35a47
ER
2469%endif
2470
212b9ffa
ER
2471%if %{with milter}
2472%{__make} -f Makefile.milter milter
2473%endif
2474
c0240cb1 2475# CGI/FCGI
2476%if %{with cgi}
13f02a12 2477cp -pf php_config.h.cgi-fcgi main/php_config.h
c0240cb1 2478%{__make} -f Makefile.cgi-fcgi
3aeda88b 2479[ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
c0240cb1 2480%endif
2481
2482# PHP FPM
2483%if %{with fpm}
13f02a12 2484cp -pf php_config.h.fpm main/php_config.h
c0240cb1 2485%{__make} -f Makefile.fpm
3aeda88b 2486[ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
c0240cb1 2487%endif
2488
2489# CLI
13f02a12 2490cp -pf php_config.h.cli main/php_config.h
c0240cb1 2491%{__make} -f Makefile.cli
3aeda88b 2492[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
c0240cb1 2493
2494# check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2495./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"]));'
2496
2497# Generate stub .ini files for each extension
2498rm -rf conf.d
2499install -d conf.d
2500generate_inifiles() {
2501 for so in modules/*.so; do
2502 mod=$(basename $so .so)
8328535b
ER
2503 ext=extension
2504 # opcache.so is zend extension
2505 nm $so | grep -q zend_extension_entry && ext=zend_extension
c0240cb1 2506 conf="$mod.ini"
2507 # xml needs to be loaded before wddx
2508 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2509 # pre needs to be loaded before SPL
2510 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2511 # spl needs to be loaded before mysqli
2512 [ "$mod" = "spl" ] && conf="SPL.ini"
2513 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2514 [ "$mod" = "session" ] && conf="Session.ini"
cc302397
JR
2515 # hash needs to be loaded before mysqlnd
2516 [ "$mod" = "hash" ] && conf="Hash.ini"
1957589a 2517 # mysqlnd needs to be loaded before mysqli,pdo_mysqli
c0240cb1 2518 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2519 echo "+ $conf"
2520 cat > conf.d/$conf <<-EOF
8328535b
ER
2521 ; Enable $mod $ext module
2522 $ext=$mod.so
c0240cb1 2523 EOF
2524 done
2525}
2526generate_inifiles
4d1c1e42 2527cp -p %{_sourcedir}/opcache.ini conf.d
c0240cb1 2528
2529# Check that the module inner-dependencies are intact
2530PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2531if grep -v OK dep-tests.log; then
2532 echo >&2 "The results above were not expected"
2533 exit 1
2534fi
2535
2536%if %{with gcov}
2537# Use CLI SAPI
13f02a12
ER
2538cp -pf php_config.h.cli main/php_config.h
2539cp -pf Makefile.cli Makefile
c0240cb1 2540%{__make} lcov
2541# you really don't want to package result of gcov build
2542exit 1
2543%endif
2544
c0240cb1 2545cat <<'EOF' > run-tests.sh
2546#!/bin/sh
2547export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
52d029e0 2548export SKIP_ONLINE_TESTS=1
c0240cb1 2549unset TZ LANG LC_ALL || :
2550%{__make} test \
2551 EXTENSION_DIR=modules \
2552 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2553 RUN_TESTS_SETTINGS="-q $*"
2554EOF
2555chmod +x run-tests.sh
336b95c5
ER
2556
2557%if %{with tests}
2558# Run tests, using the CLI SAPI
2559cp -pf php_config.h.cli main/php_config.h
2560cp -pf Makefile.cli Makefile
2561
13ed24d5
ER
2562./run-tests.sh -w failed.log -s tests.log || {
2563rc=$?
c0240cb1 2564
2565# collect failed tests into cleanup script used in prep.
482166f6
ER
2566sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2567sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
c0240cb1 2568 >> %{_sourcedir}/skip-tests.sh
2569
482166f6
ER
2570# if on builders, dump test log
2571tty -q || cat tests.log
5279719f
ER
2572
2573test ! -s failed.log
13ed24d5
ER
2574exit $rc
2575}
c0240cb1 2576%endif
2577
2578%install
2579rm -rf $RPM_BUILD_ROOT
2580install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2581 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2582 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2583 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2584
13f02a12
ER
2585cp -pf php_config.h.cli main/php_config.h
2586cp -pf Makefile.cli Makefile
c0240cb1 2587%{__make} install \
b27ad7c4 2588 phpbuilddir=%{_libdir}/%{name}/build \
c0240cb1 2589 INSTALL_ROOT=$RPM_BUILD_ROOT
2590
9f90add1 2591%if %{without default_php}
fc1ec767 2592# version the .phar files
9f90add1
JB
2593%{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2594%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2595%endif
2596%if %{with alternatives}
82885e7c
ER
2597# touch for ghost
2598%{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2599touch $RPM_BUILD_ROOT%{_bindir}/phar
2600touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
9f90add1 2601%endif
c0240cb1 2602
c04c07ff
ER
2603# version suffix
2604v=$(echo %{version} | cut -d. -f1-2)
2605
c0240cb1 2606# install Apache2 DSO module
2607%if %{with apache2}
f4ee12ea 2608libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
9f90add1 2609%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so
c0917211 2610ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
c0240cb1 2611%endif
2612
2613# install litespeed sapi
2614%if %{with litespeed}
f9101cd2 2615libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
c0240cb1 2616%endif
2617
def35a47
ER
2618%if %{with phpdbg}
2619%{__make} -f Makefile.phpdbg install-phpdbg \
9629b3c0 2620 INSTALL="libtool --mode=install install -p" \
def35a47 2621 INSTALL_ROOT=$RPM_BUILD_ROOT
65366fc5 2622
9f90add1 2623%if %{without default_php}
0283e230 2624# version the phpdbg files
9f90add1
JB
2625%{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2626%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2627%endif
def35a47
ER
2628%endif
2629
212b9ffa
ER
2630%if %{with milter}
2631%{__make} -f Makefile.milter install-milter \
2632 INSTALL_ROOT=$RPM_BUILD_ROOT
2633%endif
2634
13f02a12 2635libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
c0240cb1 2636
2637# install CGI/FCGI
2638%if %{with cgi}
13f02a12 2639# install-cgi
694e535c
ER
2640libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2641ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
13f02a12 2642cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
c0240cb1 2643%endif
2644
2645# install FCGI PM
2646%if %{with fpm}
abb829c9 2647install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
f9101cd2
ER
2648libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2649cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
13f02a12 2650cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
abb829c9 2651cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
c0240cb1 2652install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
f9101cd2 2653install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
d307ed78
ER
2654install -d $RPM_BUILD_ROOT/etc/logrotate.d
2655cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
db9dad5e
ER
2656%if "%{pld_release}" == "ac"
2657%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2658%endif
d307ed78 2659
9f90add1 2660%if %{with alternatives}
745b6497
ER
2661# touch for ghost for alternatives
2662touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
9f90add1 2663%endif
745b6497 2664
f9101cd2
ER
2665%{__sed} -i -e '
2666 s#/usr/lib/php#%{php_extensiondir}#
c05f80f0 2667 s#/etc/php/#%{_sysconfdir}/#
f9101cd2 2668 s#@processname@#%{name}-fpm#g
abb829c9 2669' $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
2670%endif
2671
2672# install Embedded API
2673%if %{with embed}
13f02a12 2674# we could use install-headers from Makefile.embed, but that would reinstall all headers
82e4c42c 2675# install-sapi installs to wrong dir, so just do it all manually
13f02a12 2676install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
f4ee12ea 2677install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}
13f02a12 2678cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
c0240cb1 2679%endif
2680
2681# install CLI
580d93e0
ER
2682# versioned suffix is always installed
2683libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2684cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2685echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2686ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
c0240cb1 2687
f831b4f0 2688cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
13f02a12 2689cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
c0240cb1 2690
c0240cb1 2691%if %{with apache2}
13f02a12
ER
2692cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2693cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
f4ee12ea 2694%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la
c0240cb1 2695%endif
2696
f831b4f0 2697# ensure that paths are correct for current php version and arch
37a42448 2698grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
f831b4f0
ER
2699%{__sed} -i -e '
2700 s#/usr/lib/php#%{php_extensiondir}#
2701 s#/etc/php#%{_sysconfdir}#
63bcb1b6 2702'
f831b4f0 2703
c0240cb1 2704install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
13f02a12 2705cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
c0240cb1 2706
2707# per SAPI ini directories
2708install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2709
2710# for CLI SAPI only
9f90add1 2711%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
c0240cb1 2712
2713# use system automake and {lib,sh}tool
77ee6bb7 2714ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
b27ad7c4 2715ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
77ee6bb7
ER
2716for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2717 f=%{_aclocaldir}/$fn
2718 test -f $f || continue
2719 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2720done
2721for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2722 f=/usr/share/libtool/$fn
2723 test -f $f || continue
2724 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2725 break
2726done
b27ad7c4 2727sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
c0240cb1 2728
2729# for php-pecl-mailparse
2730install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
13f02a12 2731cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
c0240cb1 2732
2733# tests
2734install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2735install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2736cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2737
13f02a12
ER
2738# fix install paths, avoid evil rpaths
2739sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
13f02a12 2740# better solution?
b27ad7c4 2741sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
13f02a12 2742
c0240cb1 2743%clean
2744rm -rf $RPM_BUILD_ROOT
2745
aa424f73 2746%post -n apache-mod_%{name}
c0240cb1 2747if [ "$1" = "1" ]; then
2748 %service -q httpd restart
2749fi
2750
aa424f73 2751%postun -n apache-mod_%{name}
c0240cb1 2752if [ "$1" = "0" ]; then
2753 %service -q httpd restart
2754fi
2755
2756%pre fpm
2757%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2758
2759%post fpm
ff9cec3f
ER
2760/sbin/chkconfig --add %{name}-fpm
2761%service %{name}-fpm restart
9f90add1 2762%if %{with alternatives}
745b6497 2763update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
9f90add1 2764%endif
c0240cb1 2765
2766%preun fpm
8f7b6246 2767if [ "$1" = "0" ]; then
ff9cec3f
ER
2768 %service %{name}-fpm stop
2769 /sbin/chkconfig --del %{name}-fpm
9f90add1 2770%if %{with alternatives}
745b6497 2771 update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
9f90add1 2772%endif
c0240cb1 2773fi
2774
2775%postun fpm
2776if [ "$1" = "0" ]; then
2777 %userremove http
2778fi
2779
13f02a12
ER
2780%post embedded -p /sbin/ldconfig
2781%postun embedded -p /sbin/ldconfig
2782
dbdace4c 2783%posttrans common
c0240cb1 2784# PHP 5.3 requires timezone being setup, try setup it from tzdata
5d43dd0d
ER
2785if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2786 TIMEZONE=
2787 . /etc/sysconfig/timezone
2788 if [ "$TIMEZONE" ]; then
2789 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
c0240cb1 2790 fi
2791fi
2792
c0240cb1 2793# minimizing apache restarts logics. we restart webserver:
2794#
2795# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2796# 2. first install of extension (post: $1 = 1)
2797# 2. uninstall of extension (postun: $1 == 0)
2798#
2799# the strict internal deps between extensions (and apache modules) and
2800# common package are very important for all this to work.
2801
2802# restart webserver at the end of transaction
2803[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2804[ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2805
417f416b 2806%triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
263ef8fe
ER
2807# migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2808# do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2809# this way we can stick to one trigger, instead of attaching one for each (sub)package!
2810for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2811 test -f "$f" || continue
2812 bn=${f#/etc/php/}
2813 dn=${bn%/*}
2814 fn=${bn#*/}
2815 test "$dn" = "$fn" && dn=
2816 fn=${fn%.rpmsave}
2817 nf=%{_sysconfdir}/$dn/$fn
2818 test -f "$nf" || continue
8f7b6246
TP
2819 cp -vfb $nf{,.rpmnew}
2820 cp -vfb $f $nf
396b93df
ER
2821 %{__sed} -i -e '
2822 s#%{_libdir}/php#%{_libdir}/%{name}#
2823 s#/etc/php#%{_sysconfdir}#
2824 ' $nf
263ef8fe 2825done
9f2b265f
ER
2826# switch to browscap package if the ini file has original value
2827%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
06903eea
ER
2828# disable browscap, if optional package not present
2829if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2830 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2831fi
9f2b265f 2832
c0917211
AM
2833%triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2834sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2835
c0240cb1 2836# common macros called at extension post/postun scriptlet
82885e7c 2837%define ext_post \
c0240cb1 2838if [ "$1" = "1" ]; then \
2839 %php_webserver_restart \
2840fi \
82885e7c
ER
2841%{nil}
2842
2843%define ext_postun \
c0240cb1 2844if [ "$1" = "0" ]; then \
2845 %php_webserver_restart \
82885e7c
ER
2846fi \
2847%{nil}
2848
2849%define extension_scripts() \
2850%post %1 \
2851%ext_post \
2852\
2853%postun %1 \
e09847ae 2854%ext_postun \
c0240cb1 2855%{nil}
2856
2857# extension scripts defines
2858%extension_scripts bcmath
2859%extension_scripts bz2
2860%extension_scripts calendar
2861%extension_scripts ctype
2862%extension_scripts curl
2863%extension_scripts dba
2864%extension_scripts dom
13f02a12 2865%extension_scripts enchant
c0240cb1 2866%extension_scripts exif
2867%extension_scripts fileinfo
2868%extension_scripts filter
2869%extension_scripts ftp
2870%extension_scripts gd
2871%extension_scripts gettext
2872%extension_scripts gmp
2873%extension_scripts hash
2874%extension_scripts iconv
2875%extension_scripts imap
2876%extension_scripts interbase
2877%extension_scripts intl
2878%extension_scripts json
2879%extension_scripts ldap
2880%extension_scripts mbstring
c0240cb1 2881%extension_scripts mysqli
2882%extension_scripts mysqlnd
2883%extension_scripts oci8
2884%extension_scripts odbc
8328535b 2885%extension_scripts opcache
c0240cb1 2886%extension_scripts openssl
2887%extension_scripts pcre
e12b4121 2888%extension_scripts pdo
c0240cb1 2889%extension_scripts pdo-dblib
2890%extension_scripts pdo-firebird
56b7d841 2891%extension_scripts pdo-oci
c0240cb1 2892%extension_scripts pdo-mysql
2893%extension_scripts pdo-odbc
2894%extension_scripts pdo-pgsql
2895%extension_scripts pdo-sqlite
2896%extension_scripts pgsql
e12b4121 2897%extension_scripts pcntl
c0240cb1 2898%extension_scripts posix
2899%extension_scripts pspell
2900%extension_scripts recode
2901%extension_scripts session
2902%extension_scripts shmop
e12b4121 2903%extension_scripts simplexml
c0240cb1 2904%extension_scripts snmp
2905%extension_scripts soap
2906%extension_scripts sockets
3747e21b 2907%extension_scripts sodium
c0240cb1 2908%extension_scripts spl
c0240cb1 2909%extension_scripts sqlite3
c0240cb1 2910%extension_scripts sysvmsg
2911%extension_scripts sysvsem
2912%extension_scripts sysvshm
2913%extension_scripts tidy
2914%extension_scripts tokenizer
2915%extension_scripts wddx
2916%extension_scripts xml
2917%extension_scripts xmlreader
2918%extension_scripts xmlrpc
2919%extension_scripts xmlwriter
2920%extension_scripts xsl
2921%extension_scripts zip
2922%extension_scripts zlib
2923
82885e7c
ER
2924%post phar
2925%ext_post
9f90add1 2926%if %{with alternatives}
82885e7c
ER
2927update-alternatives \
2928 --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
2929 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
9f90add1 2930%endif
82885e7c
ER
2931
2932%postun phar
2933%ext_postun
9f90add1 2934%if %{with alternatives}
82885e7c
ER
2935if [ $1 -eq 0 ]; then
2936 update-alternatives --remove phar %{_bindir}/phar || :
2937fi
9f90add1 2938%endif
82885e7c 2939
c0240cb1 2940%if %{with apache2}
aa424f73 2941%files -n apache-mod_%{name}
c0240cb1 2942%defattr(644,root,root,755)
2943%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
52126be2
AM
2944%attr(755,root,root) %{_libdir}/apache/mod_php.so
2945
2946%files -n apache-mod_%{name}-core
2947%defattr(644,root,root,755)
c0240cb1 2948%dir %{_sysconfdir}/apache2handler.d
2949%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
f4ee12ea 2950%attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so
c0240cb1 2951%endif
2952
2953%if %{with litespeed}
2954%files litespeed
2955%defattr(644,root,root,755)
aa424f73 2956%attr(755,root,root) %{_sbindir}/%{name}.litespeed
c0240cb1 2957%endif
2958
2959%if %{with cgi}
2960%files cgi
2961%defattr(644,root,root,755)
2962%dir %{_sysconfdir}/cgi-fcgi.d
2963%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
694e535c
ER
2964%attr(755,root,root) %{_bindir}/%{name}.cgi
2965%attr(755,root,root) %{_bindir}/%{name}.fcgi
c0240cb1 2966%endif
2967
13f02a12
ER
2968%if %{with embed}
2969%files embedded
2970%defattr(644,root,root,755)
f4ee12ea 2971%attr(755,root,root) %{_libdir}/libphp7.so
13f02a12
ER
2972%endif
2973
c0240cb1 2974%files cli
2975%defattr(644,root,root,755)
2976%dir %{_sysconfdir}/cli.d
2977%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
580d93e0
ER
2978%attr(755,root,root) %{_bindir}/php%{ver_suffix}
2979%{_mandir}/man1/php%{ver_suffix}.1*
c0240cb1 2980
2981%files program
2982%defattr(644,root,root,755)
2983%attr(755,root,root) %{_bindir}/php
872bc3df 2984%{_mandir}/man1/php.1*
c0240cb1 2985
2986%if %{with fpm}
2987%files fpm
2988%defattr(644,root,root,755)
13f02a12 2989%doc sapi/fpm/{CREDITS,LICENSE}
abb829c9 2990%dir %{_sysconfdir}/php-fpm.d
c0240cb1 2991%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
abb829c9 2992%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
f9101cd2 2993%attr(755,root,root) %{_sbindir}/%{name}-fpm
9f90add1 2994%if %{with alternatives}
745b6497 2995%ghost %{_sbindir}/php-fpm
9f90add1 2996%endif
f9101cd2
ER
2997%{_mandir}/man8/%{name}-fpm.8*
2998%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2999%attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
c0240cb1 3000%endif
3001
c42c0fb8 3002%if %{with phpdbg}
8d42644e
ER
3003%files phpdbg
3004%defattr(644,root,root,755)
9f90add1
JB
3005%attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
3006%{_mandir}/man1/phpdbg%{php_suffix}.1*
c42c0fb8 3007%endif
8d42644e 3008
212b9ffa
ER
3009%if %{with milter}
3010%files milter
3011%defattr(644,root,root,755)
3012%attr(755,root,root) %{_bindir}/php-milter
3013%endif
3014
c0240cb1 3015%files common
3016%defattr(644,root,root,755)
7ead0585 3017%doc CREDITS EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
c0240cb1 3018%dir %{_sysconfdir}
3019%dir %{_sysconfdir}/conf.d
3020%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
c0240cb1 3021%attr(755,root,root) %{_libdir}/libphp_common-*.so
3022%dir %{php_extensiondir}
3023
13f02a12
ER
3024%doc ext/session/mod_files.sh
3025
c0240cb1 3026%files devel
3027%defattr(644,root,root,755)
8d42644e 3028%doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
c0240cb1 3029%attr(755,root,root) %{_bindir}/phpize
3030%attr(755,root,root) %{_bindir}/php-config
3031%attr(755,root,root) %{_libdir}/libphp_common.so
3032%{_libdir}/libphp_common.la
3033%{_includedir}/php
b27ad7c4 3034%{_libdir}/%{name}/build
c0240cb1 3035%{_mandir}/man1/php-config.1*
3036%{_mandir}/man1/phpize.1*
3037
476107e3 3038%if %{with bcmath}
c0240cb1 3039%files bcmath
3040%defattr(644,root,root,755)
3041%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
3042%attr(755,root,root) %{php_extensiondir}/bcmath.so
476107e3 3043%endif
c0240cb1 3044
476107e3 3045%if %{with bz2}
c0240cb1 3046%files bz2
3047%defattr(644,root,root,755)
8cd9d573 3048%doc ext/bz2/CREDITS
c0240cb1 3049%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
3050%attr(755,root,root) %{php_extensiondir}/bz2.so
476107e3 3051%endif
c0240cb1 3052
476107e3 3053%if %{with calendar}
c0240cb1 3054%files calendar
3055%defattr(644,root,root,755)
8cd9d573 3056%doc ext/calendar/CREDITS
c0240cb1 3057%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
3058%attr(755,root,root) %{php_extensiondir}/calendar.so
476107e3 3059%endif
c0240cb1 3060
476107e3 3061%if %{with ctype}
c0240cb1 3062%files ctype
3063%defattr(644,root,root,755)
8cd9d573 3064%doc ext/calendar/CREDITS
c0240cb1 3065%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
3066%attr(755,root,root) %{php_extensiondir}/ctype.so
476107e3 3067%endif
c0240cb1 3068
3069%if %{with curl}
3070%files curl
3071%defattr(644,root,root,755)
8cd9d573 3072%doc ext/curl/CREDITS
c0240cb1 3073%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
3074%attr(755,root,root) %{php_extensiondir}/curl.so
3075%endif
3076
476107e3 3077%if %{with dba}
c0240cb1 3078%files dba
3079%defattr(644,root,root,755)
cd6e98f7 3080%doc ext/dba/{CREDITS,README}
c0240cb1 3081%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
3082%attr(755,root,root) %{php_extensiondir}/dba.so
476107e3 3083%endif
c0240cb1 3084
476107e3 3085%if %{with dom}
c0240cb1 3086%files dom
3087%defattr(644,root,root,755)
8cd9d573 3088%doc ext/dom/{CREDITS,TODO}
894cb112 3089%doc ext/dom/examples
c0240cb1 3090%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
3091%attr(755,root,root) %{php_extensiondir}/dom.so
476107e3 3092%endif
c0240cb1 3093
e5448b0f 3094%if %{with enchant}
13f02a12
ER
3095%files enchant
3096%defattr(644,root,root,755)
3097%doc ext/enchant/{CREDITS,docs/examples}
3098%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
3099%attr(755,root,root) %{php_extensiondir}/enchant.so
e5448b0f 3100%endif
13f02a12 3101
476107e3 3102%if %{with exif}
c0240cb1 3103%files exif
3104%defattr(644,root,root,755)
8cd9d573 3105%doc ext/exif/CREDITS
c0240cb1 3106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
3107%attr(755,root,root) %{php_extensiondir}/exif.so
476107e3 3108%endif
c0240cb1 3109
476107e3 3110%if %{with fileinfo}
c0240cb1 3111%files fileinfo
3112%defattr(644,root,root,755)
8cd9d573 3113%doc ext/fileinfo/CREDITS
c0240cb1 3114%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3115%attr(755,root,root) %{php_extensiondir}/fileinfo.so
476107e3 3116%endif
c0240cb1 3117
3118%if %{with filter}
3119%files filter
3120%defattr(644,root,root,755)
8cd9d573 3121%doc ext/filter/{CREDITS,docs/*}
c0240cb1 3122%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3123%attr(755,root,root) %{php_extensiondir}/filter.so
3124%endif
3125
476107e3 3126%if %{with ftp}
c0240cb1 3127%files ftp
3128%defattr(644,root,root,755)
8cd9d573 3129%doc ext/ftp/CREDITS
c0240cb1 3130%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3131%attr(755,root,root) %{php_extensiondir}/ftp.so
476107e3 3132%endif
c0240cb1 3133
476107e3 3134%if %{with gd}
c0240cb1 3135%files gd
3136%defattr(644,root,root,755)
8cd9d573 3137%doc ext/gd/CREDITS
c0240cb1 3138%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3139%attr(755,root,root) %{php_extensiondir}/gd.so
476107e3 3140%endif
c0240cb1 3141
476107e3 3142%if %{with gettext}
c0240cb1 3143%files gettext
3144%defattr(644,root,root,755)
8cd9d573 3145%doc ext/gettext/CREDITS
c0240cb1 3146%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3147%attr(755,root,root) %{php_extensiondir}/gettext.so
476107e3 3148%endif
c0240cb1 3149
476107e3 3150%if %{with gmp}
c0240cb1 3151%files gmp
3152%defattr(644,root,root,755)
8cd9d573 3153%doc ext/gmp/{CREDITS,README,TODO}
c0240cb1 3154%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3155%attr(755,root,root) %{php_extensiondir}/gmp.so
476107e3 3156%endif
c0240cb1 3157
476107e3 3158%if %{with hash}
c0240cb1 3159%files hash
3160%defattr(644,root,root,755)
8cd9d573 3161%doc ext/hash/{CREDITS,README}
cc302397 3162%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Hash.ini
c0240cb1 3163%attr(755,root,root) %{php_extensiondir}/hash.so
476107e3 3164%endif
c0240cb1 3165
476107e3 3166%if %{with iconv}
c0240cb1 3167%files iconv
3168%defattr(644,root,root,755)
8cd9d573 3169%doc ext/iconv/CREDITS
c0240cb1 3170%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3171%attr(755,root,root) %{php_extensiondir}/iconv.so
476107e3 3172%endif
c0240cb1 3173
3174%if %{with imap}
3175%files imap
3176%defattr(644,root,root,755)
8cd9d573 3177%doc ext/imap/CREDITS
c0240cb1 3178%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3179%attr(755,root,root) %{php_extensiondir}/imap.so
3180%endif
3181
3182%if %{with interbase}
3183%files interbase
3184%defattr(644,root,root,755)
8cd9d573 3185%doc ext/interbase/CREDITS
c0240cb1 3186%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3187%attr(755,root,root) %{php_extensiondir}/interbase.so
3188%endif
3189
689a4e56 3190%if %{with intl}
c0240cb1 3191%files intl
3192%defattr(644,root,root,755)
8cd9d573 3193%doc ext/intl/{CREDITS,TODO}
c0240cb1 3194%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3195%attr(755,root,root) %{php_extensiondir}/intl.so
689a4e56 3196%endif
c0240cb1 3197
476107e3 3198%if %{with json}
c0240cb1 3199%files json
3200%defattr(644,root,root,755)
8cd9d573 3201%doc ext/json/CREDITS
c0240cb1 3202%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3203%attr(755,root,root) %{php_extensiondir}/json.so
476107e3 3204%endif
c0240cb1 3205
3206%if %{with ldap}
3207%files ldap
3208%defattr(644,root,root,755)
8cd9d573 3209%doc ext/ldap/CREDITS
c0240cb1 3210%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3211%attr(755,root,root) %{php_extensiondir}/ldap.so
3212%endif
3213
476107e3 3214%if %{with mbstring}
c0240cb1 3215%files mbstring
3216%defattr(644,root,root,755)
8cd9d573 3217%doc ext/mbstring/{CREDITS,README*}
c0240cb1 3218%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3219%attr(755,root,root) %{php_extensiondir}/mbstring.so
476107e3 3220%endif
c0240cb1 3221
c0240cb1 3222%if %{with mysqli}
3223%files mysqli
3224%defattr(644,root,root,755)
8cd9d573 3225%doc ext/mysqli/{CREDITS,TODO}
c0240cb1 3226%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3227%attr(755,root,root) %{php_extensiondir}/mysqli.so
3228%endif
3229
3230%if %{with mysqlnd}
3231%files mysqlnd
3232%defattr(644,root,root,755)
8cd9d573 3233%doc ext/mysqlnd/CREDITS
c0240cb1 3234%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3235%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3236%endif
3237
329b4394 3238%if %{with oci}
c0240cb1 3239%files oci8
3240%defattr(644,root,root,755)
580d93e0 3241%doc ext/oci8/{CREDITS,README}
c0240cb1 3242%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3243%attr(755,root,root) %{php_extensiondir}/oci8.so
3244%endif
3245
3246%if %{with odbc}
3247%files odbc
3248%defattr(644,root,root,755)
8cd9d573 3249%doc ext/odbc/CREDITS
c0240cb1 3250%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3251%attr(755,root,root) %{php_extensiondir}/odbc.so
3252%endif
3253
8328535b
ER
3254%if %{with opcache}
3255%files opcache
3256%defattr(644,root,root,755)
3257%doc ext/opcache/README
3258%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3259%attr(755,root,root) %{php_extensiondir}/opcache.so
3260%endif
3261
c0240cb1 3262%if %{with openssl}
3263%files openssl
3264%defattr(644,root,root,755)
8cd9d573 3265%doc ext/openssl/{CREDITS,README}
c0240cb1 3266%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3267%attr(755,root,root) %{php_extensiondir}/openssl.so
3268%endif
3269
476107e3 3270%if %{with pcntl}
c0240cb1 3271%files pcntl
3272%defattr(644,root,root,755)
8cd9d573 3273%doc ext/pcntl/{CREDITS,README}
c0240cb1 3274%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3275%attr(755,root,root) %{php_extensiondir}/pcntl.so
476107e3 3276%endif
c0240cb1 3277
3278%if %{with pcre}
3279%files pcre
3280%defattr(644,root,root,755)
8cd9d573 3281%doc ext/pcre/CREDITS
c0240cb1 3282%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3283%attr(755,root,root) %{php_extensiondir}/pcre.so
3284%endif
3285
476107e3 3286%if %{with pdo}
c0240cb1 3287%files pdo
3288%defattr(644,root,root,755)
8cd9d573 3289%doc ext/pdo/{CREDITS,README,TODO}
c0240cb1 3290%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3291%attr(755,root,root) %{php_extensiondir}/pdo.so
476107e3 3292%endif
c0240cb1 3293
006a7eb1 3294%if %{with pdo_dblib}
c0240cb1 3295%files pdo-dblib
3296%defattr(644,root,root,755)
8cd9d573 3297%doc ext/pdo_dblib/{CREDITS,README}
c0240cb1 3298%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3299%attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3300%endif
3301
3302%if %{with interbase} && !%{with interbase_inst}
3303%files pdo-firebird
3304%defattr(644,root,root,755)
8cd9d573 3305%doc ext/pdo_firebird/CREDITS
c0240cb1 3306%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3307%attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3308%endif
3309
476107e3 3310%if %{with pdo_mysql}
c0240cb1 3311%files pdo-mysql
3312%defattr(644,root,root,755)
8cd9d573 3313%doc ext/pdo_mysql/CREDITS
c0240cb1 3314%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3315%attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
476107e3 3316%endif
c0240cb1 3317
329b4394 3318%if %{with oci}
c0240cb1 3319%files pdo-oci
3320%defattr(644,root,root,755)
8cd9d573 3321%doc ext/pdo_oci/CREDITS
c0240cb1 3322%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3323%attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3324%endif
3325
3326%if %{with odbc}
3327%files pdo-odbc
3328%defattr(644,root,root,755)
8cd9d573 3329%doc ext/pdo_odbc/CREDITS
c0240cb1 3330%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3331%attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3332%endif
3333
3334%if %{with pgsql}
3335%files pdo-pgsql
3336%defattr(644,root,root,755)
8cd9d573 3337%doc ext/pdo_pgsql/CREDITS
c0240cb1 3338%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3339%attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3340%endif
3341
3342%if %{with pdo_sqlite}
3343%files pdo-sqlite
3344%defattr(644,root,root,755)
8cd9d573 3345%doc ext/pdo_sqlite/CREDITS
c0240cb1 3346%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3347%attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3348%endif
3349
3350%if %{with pgsql}
3351%files pgsql
3352%defattr(644,root,root,755)
8cd9d573 3353%doc ext/pgsql/{CREDITS,README}
c0240cb1 3354%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3355%attr(755,root,root) %{php_extensiondir}/pgsql.so
3356%endif
3357
3358%if %{with phar}
3359%files phar
3360%defattr(644,root,root,755)
8cd9d573 3361%doc ext/phar/{CREDITS,TODO}
c0240cb1 3362%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3363%attr(755,root,root) %{php_extensiondir}/phar.so
9f90add1
JB
3364%attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3365%{_mandir}/man1/phar%{php_suffix}.1*
3366%{_mandir}/man1/phar.phar.1*
3367%if %{with alternatives}
82885e7c
ER
3368%ghost %{_bindir}/phar
3369%ghost %{_mandir}/man1/phar.1
9f90add1
JB
3370%else
3371%attr(755,root,root) %{_bindir}/phar
3372%endif
c0240cb1 3373%endif
3374
476107e3 3375%if %{with posix}
c0240cb1 3376%files posix
3377%defattr(644,root,root,755)
8cd9d573 3378%doc ext/posix/CREDITS
c0240cb1 3379%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3380%attr(755,root,root) %{php_extensiondir}/posix.so
476107e3 3381%endif
c0240cb1 3382
3383%if %{with pspell}
3384%files pspell
3385%defattr(644,root,root,755)
8cd9d573 3386%doc ext/pspell/{CREDITS,README}
c0240cb1 3387%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3388%attr(755,root,root) %{php_extensiondir}/pspell.so
3389%endif
3390
476107e3 3391%if %{with readline}
c0240cb1 3392%files readline
3393%defattr(644,root,root,755)
8cd9d573 3394%doc ext/readline/{CREDITS,README*}
c0240cb1 3395%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3396%attr(755,root,root) %{php_extensiondir}/readline.so
476107e3 3397%endif
c0240cb1 3398
3399%if %{with recode}
3400%files recode
3401%defattr(644,root,root,755)
8cd9d573 3402%doc ext/recode/CREDITS
c0240cb1 3403%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3404%attr(755,root,root) %{php_extensiondir}/recode.so
3405%endif
3406
476107e3 3407%if %{with session}
c0240cb1 3408%files session
3409%defattr(644,root,root,755)
8cd9d573 3410%doc ext/session/CREDITS
c0240cb1 3411%doc ext/session/mod_files.sh
3412%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3413%attr(755,root,root) %{php_extensiondir}/session.so
476107e3 3414%endif
c0240cb1 3415
3416%files shmop
3417%defattr(644,root,root,755)
8cd9d573 3418%doc ext/shmop/{CREDITS,README}
c0240cb1 3419%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3420%attr(755,root,root) %{php_extensiondir}/shmop.so
3421
3422%files simplexml
3423%defattr(644,root,root,755)
8cd9d573 3424%doc ext/simplexml/{CREDITS,README}
894cb112 3425%doc ext/simplexml/examples
c0240cb1 3426%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3427%attr(755,root,root) %{php_extensiondir}/simplexml.so
3428
3429%if %{with snmp}
3430%files snmp
3431%defattr(644,root,root,755)
8cd9d573 3432%doc ext/snmp/CREDITS
c0240cb1 3433%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3434%attr(755,root,root) %{php_extensiondir}/snmp.so
3435%endif
3436
3437%files soap
3438%defattr(644,root,root,755)
8cd9d573 3439%doc ext/soap/{CREDITS,TODO*}
c0240cb1 3440%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3441%attr(755,root,root) %{php_extensiondir}/soap.so
3442
3443%files sockets
3444%defattr(644,root,root,755)
8cd9d573 3445%doc ext/sockets/CREDITS
c0240cb1 3446%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3447%attr(755,root,root) %{php_extensiondir}/sockets.so
3448
3747e21b
ER
3449%if %{with sodium}
3450%files sodium
3451%defattr(644,root,root,755)
3452%doc ext/sodium/{README.md,CREDITS}
3453%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sodium.ini
3454%attr(755,root,root) %{php_extensiondir}/sodium.so
3455%endif
3456
c0240cb1 3457%files spl
3458%defattr(644,root,root,755)
894cb112
ER
3459%doc ext/spl/{CREDITS,README,TODO}
3460%doc ext/spl/examples
c0240cb1 3461%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3462%attr(755,root,root) %{php_extensiondir}/spl.so
3463
c0240cb1 3464%if %{with sqlite3}
3465%files sqlite3
3466%defattr(644,root,root,755)
3467%doc ext/sqlite3/CREDITS
3468%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3469%attr(755,root,root) %{php_extensiondir}/sqlite3.so
3470%endif
3471
c0240cb1 3472%files sysvmsg
3473%defattr(644,root,root,755)
8cd9d573 3474%doc ext/sysvmsg/CREDITS
c0240cb1 3475%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3476%attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3477
3478%files sysvsem
3479%defattr(644,root,root,755)
8cd9d573 3480%doc ext/sysvsem/CREDITS
c0240cb1 3481%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3482%attr(755,root,root) %{php_extensiondir}/sysvsem.so
3483
3484%files sysvshm
3485%defattr(644,root,root,755)
8cd9d573 3486%doc ext/sysvshm/CREDITS
c0240cb1 3487%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3488%attr(755,root,root) %{php_extensiondir}/sysvshm.so
3489
3490%files tests
3491%defattr(644,root,root,755)
a3c07000 3492%dir %{php_data_dir}/tests
c0240cb1 3493%dir %{php_data_dir}/tests/php
3494%{php_data_dir}/tests/php/basic
3495%{php_data_dir}/tests/php/classes
3496%{php_data_dir}/tests/php/func
3497%{php_data_dir}/tests/php/lang
3498%{php_data_dir}/tests/php/output
3499%{php_data_dir}/tests/php/run-test
3500%{php_data_dir}/tests/php/security
3501%{php_data_dir}/tests/php/strings
3502%{php_data_dir}/tests/php/quicktester.inc
3503%attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3504
3505%if %{with tidy}
3506%files tidy
3507%defattr(644,root,root,755)
8cd9d573 3508%doc ext/tidy/{CREDITS,README}
894cb112 3509%doc ext/tidy/examples
c0240cb1 3510%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3511%attr(755,root,root) %{php_extensiondir}/tidy.so
3512%endif
3513
3514%files tokenizer
3515%defattr(644,root,root,755)
8cd9d573 3516%doc ext/tokenizer/CREDITS
c0240cb1 3517%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3518%attr(755,root,root) %{php_extensiondir}/tokenizer.so
3519
3520%if %{with wddx}
3521%files wddx
3522%defattr(644,root,root,755)
8cd9d573 3523%doc ext/wddx/CREDITS
c0240cb1 3524%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3525%attr(755,root,root) %{php_extensiondir}/wddx.so
3526%endif
3527
3528%files xml
3529%defattr(644,root,root,755)
8cd9d573 3530%doc ext/xml/CREDITS
c0240cb1 3531%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3532%attr(755,root,root) %{php_extensiondir}/xml.so
3533
3534%files xmlreader
3535%defattr(644,root,root,755)
894cb112
ER
3536%doc ext/xmlreader/{CREDITS,README,TODO}
3537%doc ext/xmlreader/examples
c0240cb1 3538%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3539%attr(755,root,root) %{php_extensiondir}/xmlreader.so
3540
3541%if %{with xmlrpc}
3542%files xmlrpc
3543%defattr(644,root,root,755)
8cd9d573 3544%doc ext/xmlrpc/CREDITS
c0240cb1 3545%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3546%attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3547%endif
3548
3549%files xmlwriter
3550%defattr(644,root,root,755)
8cd9d573 3551%doc ext/xmlwriter/{CREDITS,TODO}
894cb112 3552%doc ext/xmlwriter/examples
c0240cb1 3553%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3554%attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3555
36dd0868 3556%if %{with xsl}
c0240cb1 3557%files xsl
3558%defattr(644,root,root,755)
8cd9d573 3559%doc ext/xsl/CREDITS
c0240cb1 3560%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3561%attr(755,root,root) %{php_extensiondir}/xsl.so
36dd0868 3562%endif
c0240cb1 3563
3564%files zip
3565%defattr(644,root,root,755)
8cd9d573 3566%doc ext/zip/{CREDITS,TODO}
894cb112 3567%doc ext/zip/examples
c0240cb1 3568%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3569%attr(755,root,root) %{php_extensiondir}/zip.so
3570
3571%files zlib
3572%defattr(644,root,root,755)
8cd9d573 3573%doc ext/zlib/CREDITS
c0240cb1 3574%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3575%attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.967819 seconds and 4 git commands to generate.