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