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