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