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