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