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