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