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