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