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