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