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:
9 # - removed from php 5.2:
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
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)
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)
70 %define apxs1 /usr/sbin/apxs1
71 %define apxs2 /usr/sbin/apxs
73 # some problems with apache 2.x
78 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
79 %undefine with_interbase
81 %if "%{pld_release}" == "th"
83 # ppc disabled (broken on th-ppc)
84 %undefine with_interbase
88 %ifnarch %{ix86} %{x8664}
89 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
93 %if %{without apache1} && %{without apache2}
94 ERROR: You need to select at least one Apache SAPI to build shared modules.
97 # filter depends on pcre
102 %if "%{pld_release}" == "ac"
103 %define magic_mime /usr/share/file/magic.mime
105 %define magic_mime /usr/share/misc/magic.mime
109 %if "%{pld_release}" == "th"
110 %define php_suffix 52
111 %define _noautoreqdep libphp_common.*
113 %define php_suffix %{nil}
116 Summary: PHP: Hypertext Preprocessor
117 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
118 Summary(pl.UTF-8): Język skryptowy PHP
119 Summary(pt_BR.UTF-8): A linguagem de script PHP
120 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
121 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
122 Name: %{orgname}%{php_suffix}
128 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
129 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
130 Source2: %{orgname}-mod_%{orgname}.conf
131 Source3: %{orgname}-cgi-fcgi.ini
132 Source4: %{orgname}-cgi.ini
133 Source5: %{orgname}-apache.ini
134 Source6: %{orgname}-cli.ini
135 # Taken from: http://browsers.garykeith.com/downloads.asp
136 Source8: %{orgname}_browscap.ini
137 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
138 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
139 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
140 Source10: %{orgname}-fpm.init
141 Source11: %{orgname}-fpm.logrotate
142 Source12: %{orgname}-branch.sh
143 Source13: dep-tests.sh
144 Source14: skip-tests.sh
145 Patch100: https://php52-backports.googlecode.com/files/php52-backports-20130320.patch
146 # Patch100-md5: 8428acfb94d5804e00333db01f7cd8dd
147 Patch0: %{orgname}-shared.patch
148 Patch1: %{orgname}-pldlogo.patch
149 Patch2: %{orgname}-mail.patch
150 Patch3: %{orgname}-link-libs.patch
151 Patch4: %{orgname}-libpq_fs_h_path.patch
152 Patch5: %{orgname}-filter-shared.patch
153 Patch6: %{orgname}-build_modules.patch
154 Patch7: %{orgname}-sapi-ini-file.patch
155 Patch8: %{orgname}-no-metaccld.patch
156 Patch9: %{orgname}-sh.patch
157 Patch10: %{orgname}-ini.patch
158 Patch11: %{orgname}-acam.patch
159 Patch12: %{orgname}-threads-acfix.patch
160 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
161 Patch14: %{orgname}-no_pear_install.patch
162 Patch15: %{orgname}-zlib.patch
163 Patch16: %{orgname}-sybase-fix.patch
164 Patch17: %{orgname}-readline.patch
165 Patch18: %{orgname}-nohttpd.patch
166 Patch19: %{orgname}-gd_imagerotate_enable.patch
167 Patch20: %{orgname}-uint32_t.patch
168 Patch21: %{orgname}-dba-link.patch
169 Patch22: %{orgname}-both-apxs.patch
170 Patch23: %{orgname}-builddir.patch
171 Patch24: %{orgname}-zlib-for-getimagesize.patch
172 Patch25: %{orgname}-versioning.patch
173 Patch26: %{orgname}-pear.patch
174 Patch27: %{orgname}-config-dir.patch
175 Patch28: %{orgname}-bug-42952.patch
176 Patch29: %{orgname}-fcgi-graceful.patch
177 Patch30: %{orgname}-apr-apu.patch
178 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
179 Patch32: %{orgname}-curl-limit-speed.patch
180 Patch33: %{orgname}-mime_magic.patch
181 Patch34: %{orgname}-libtool.patch
182 Patch35: %{orgname}-tds.patch
183 Patch36: %{orgname}-mysql-charsetphpini.patch
184 Patch37: %{orgname}-mysqli-charsetphpini.patch
185 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
186 Patch39: %{orgname}-use-prog_sendmail.patch
187 Patch40: %{orgname}-fpm.patch
188 Patch41: %{orgname}-fpm-config.patch
189 Patch42: %{orgname}-fpm-initdir.patch
190 Patch43: %{orgname}-silent-session-cleanup.patch
191 Patch44: %{orgname}-include_path.patch
192 Patch45: %{orgname}-imap-annotations.patch
193 Patch46: %{orgname}-imap-myrights.patch
194 Patch47: suhosin.patch
195 Patch49: %{orgname}-m4-divert.patch
196 Patch50: extension-shared-optional-dep.patch
197 Patch51: spl-shared.patch
198 Patch52: %{orgname}-libpng.patch
199 Patch53: %{orgname}-gmp.patch
200 Patch54: fix-test-run.patch
201 Patch55: bug-52078-fileinode.patch
202 Patch56: %{orgname}-krb5.patch
203 Patch57: php-php_dl.patch
204 Patch58: php-svn-281516.patch
205 Patch59: %{orgname}-systzdata.patch
206 Patch60: bug-60986.patch
207 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
208 Patch65: system-libzip.patch
209 Patch66: bug-47930.patch
210 Patch67: php-db.patch
211 Patch68: php-libxml.patch
212 Patch69: bug-50563.patch
213 Patch70: php-crypt-null.patch
214 Patch71: php-apache24.patch
216 # Backport from 5.3.6
217 Patch311: php-5.3.6-bug-47435.patch
218 Patch314: php-5.3.6-39199.patch
220 #Patch333: php-5.3.7-bug-54924.patch
221 Patch355: php-5.3.7-bug-55323.patch
222 # Bug-323016 CVE-2012-0831
223 Patch402: php-5.2.17-bug-323016.patch
224 URL: https://code.google.com/p/php52-backports/
225 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
226 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
227 BuildRequires: autoconf >= 2.53
228 BuildRequires: automake >= 1.4d
230 BuildRequires: bzip2-devel
231 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
232 BuildRequires: cyrus-sasl-devel
233 BuildRequires: db-devel >= 4.0
234 BuildRequires: elfutils-devel
236 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
238 %{?with_fcgi:BuildRequires: fcgi-devel}
239 %{?with_fdf:BuildRequires: fdftk-devel}
241 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
242 BuildRequires: freetds-devel
243 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
245 BuildRequires: freetype-devel >= 2.0
246 %if %{with system_gd}
247 BuildRequires: gd-devel >= 2.0.28-4
248 BuildRequires: gd-devel(imagerotate) = 5.2.0
250 BuildRequires: gdbm-devel
251 BuildRequires: gmp-devel
252 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
253 BuildRequires: libjpeg-devel
254 BuildRequires: libltdl-devel >= 1.4
255 BuildRequires: libmcrypt-devel >= 2.4.4
256 BuildRequires: libpng-devel >= 1.0.8
257 BuildRequires: libtiff-devel
258 %if "%{pld_release}" != "ac"
259 BuildRequires: libtool >= 2:2.2
261 BuildRequires: libtool
263 BuildRequires: libwrap-devel
264 BuildRequires: libxml2-devel >= 1:2.7.6-4
265 BuildRequires: libxslt-devel >= 1.1.0
266 %{?with_mhash:BuildRequires: mhash-devel}
267 %{?with_ming:BuildRequires: ming-devel >= 0.3}
268 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
269 BuildRequires: mysql-devel >= 4.0.0
270 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
271 BuildRequires: ncurses-ext-devel
272 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
273 %if %{with openssl} || %{with ldap}
274 BuildRequires: openssl-devel >= 0.9.7d
276 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
277 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
278 BuildRequires: pam-devel
279 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
280 BuildRequires: pkgconfig
281 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
282 %{?with_pgsql:BuildRequires: postgresql-devel}
283 BuildRequires: readline-devel
284 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
285 BuildRequires: rpm >= 4.4.9-56
286 BuildRequires: rpm-build >= 4.4.0
287 BuildRequires: rpmbuild(macros) >= 1.519
288 %{?with_sqlite:BuildRequires: sqlite-devel}
289 %{?with_sqlite:BuildRequires: sqlite3-devel}
290 BuildRequires: t1lib-devel
291 %{?with_tidy:BuildRequires: tidy-devel}
292 %{?with_odbc:BuildRequires: unixODBC-devel}
293 BuildRequires: zlib-devel >= 1.0.9
295 BuildRequires: apache1-devel
298 BuildRequires: apache-devel >= 2.0.52-2
299 BuildRequires: apr-devel >= 1:1.0.0
300 BuildRequires: apr-util-devel >= 1:1.0.0
303 BuildRequires: judy-devel
304 BuildRequires: libevent-devel >= 1.4.7-3
306 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
308 %define php_sysconfdir /etc/%{name}
309 %define php_extensiondir %{_libdir}/%{name}
310 %define _sysconfdir %{php_sysconfdir}
312 # must be in sync with source. extra check ensuring that it is so is done in %%build
313 %define php_api_version 20041225
314 %define zend_module_api 20060613
315 %define zend_extension_api 220060519
316 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
317 %define php_debug %{!?debug:0}%{?debug:1}
320 # ORACLE_HOME is required for oci8 ext to build
321 %define _preserve_env %_preserve_env_base ORACLE_HOME
325 PHP is an HTML-embedded scripting language. PHP attempts to make it
326 easy for developers to write dynamically generated web pages. PHP also
327 offers built-in database integration for several commercial and
328 non-commercial database management systems, so writing a
329 database-enabled web page with PHP is fairly simple. The most common
330 use of PHP coding is probably as a replacement for CGI scripts. The
331 mod_php module enables the Apache web server to understand and process
332 the embedded PHP language in web pages. This package contains PHP
335 %description -l fr.UTF-8
336 PHP est un langage de script embarque dans le HTM. PHP essaye de
337 rendre simple aux developpeurs d'ecrire des pages web generees
338 dynamiquement. PHP incorpore egalement une integration avec plusieurs
339 systemes de gestion de bases de donnees commerciaux et
340 non-connerciaux, qui rent facile la creation de pages web liees avec
341 des bases de donnees. L'utilisation la plus commune de PHP est
342 probablement en remplacement de scripts CGI. Le module mod_php permet
343 au serveur web Apache de comprendre et de traiter le langage PHP
344 integre dans des pages web. Ce package contient PHP version
347 %description -l pl.UTF-8
348 PHP jest językiem skryptowym, którego polecenia umieszcza się w
349 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
350 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
351 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
352 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
353 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
354 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
355 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
358 %description -l pt_BR.UTF-8
359 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
360 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
361 com algumas características únicas, específicas ao PHP. O objetivo da
362 linguagem é permitir que desenvolvedores web escrevam páginas
363 dinamicamente geradas de forma rápida.
365 %description -l ru.UTF-8
366 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
367 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
368 для работы с базами данных относительно просто. Наиболее популярное
369 использование PHP - замена для CGI скриптов.
371 %description -l uk.UTF-8
372 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
373 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
374 роботи з базами даних є доволі простим. Найбільш популярне
375 використання PHP - заміна для CGI скриптів.
377 %package -n apache1-mod_%{name}
378 Summary: PHP DSO module for Apache 1.3.x
379 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
380 Group: Development/Languages/PHP
381 Requires(triggerpostun): sed >= 4.0
382 Requires: %{name}-common = %{epoch}:%{version}-%{release}
383 Requires: apache1(EAPI) >= 1.3.33-2
384 Requires: apache1-mod_mime
385 Provides: webserver(php) = %{version}
386 Obsoletes: apache-mod_php < 1:4.1.1
389 %description -n apache1-mod_%{name}
390 PHP as DSO module for Apache 1.3.x.
392 %description -n apache1-mod_%{name} -l pl.UTF-8
393 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
395 %package -n apache-mod_%{name}
396 Summary: PHP DSO module for Apache 2.x
397 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
398 Group: Development/Languages/PHP
399 Requires: %{name}-common = %{epoch}:%{version}-%{release}
400 Requires: apache(modules-api) = %{apache_modules_api}
401 Requires: apache-mod_mime
402 Provides: webserver(php) = %{version}
405 %description -n apache-mod_%{name}
406 PHP as DSO module for Apache 2.x.
408 %description -n apache-mod_%{name} -l pl.UTF-8
409 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
412 Summary: php as FastCGI program
413 Summary(pl.UTF-8): php jako program FastCGI
414 Group: Development/Languages/PHP
415 Requires: %{name}-common = %{epoch}:%{version}-%{release}
417 Provides: webserver(php) = %{version}
420 php as FastCGI program.
422 %description fcgi -l pl.UTF-8
423 php jako program FastCGI.
426 Summary: PHP as CGI/FastCGI program
427 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
428 Group: Development/Languages/PHP
429 Requires: %{name}-common = %{epoch}:%{version}-%{release}
431 Provides: webserver(php) = %{version}
432 %if "%{pld_release}" != "ac"
433 Conflicts: logrotate < 3.8.0
439 %description cgi -l pl.UTF-8
440 php jako program CGI.
443 Summary: PHP as CLI interpreter
444 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
445 Group: Development/Languages/PHP
446 Requires: %{name}-common = %{epoch}:%{version}-%{release}
449 PHP as CLI interpreter.
451 %description cli -l pl.UTF-8
452 PHP jako interpreter działający z linii poleceń.
455 Summary: /usr/bin/php symlink
456 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
457 Group: Development/Languages/PHP
458 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
459 Obsoletes: /usr/bin/php
462 Package providing /usr/bin/php symlink to PHP CLI.
464 %description program -l pl.UTF-8
465 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
468 Summary: PHP FastCGI Process Manager
469 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
470 Group: Development/Languages/PHP
471 URL: http://www.php-fpm.org/
472 Requires(post,preun): /sbin/chkconfig
473 Requires(postun): /usr/sbin/userdel
474 Requires(pre): /bin/id
475 Requires(pre): /usr/sbin/useradd
476 Requires: %{name}-common = %{epoch}:%{version}-%{release}
477 Requires: libevent >= 1.4.7-3
480 Provides: webserver(php) = %{version}
483 PHP FastCGI Process Manager.
485 %description fpm -l pl.UTF-8
486 PHP FastCGI Process Manager - zarządca procesów FastCGI.
489 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
490 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
491 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
492 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
494 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
495 Requires: glibc >= 6:2.3.5
496 Requires: php-dirs >= 1.4
497 Requires: rpm-whiteout >= 1.28
499 Provides: %{name}(debug) = %{php_debug}
500 Provides: %{name}(modules_api) = %{php_api_version}
501 Provides: %{name}(thread-safety) = %{zend_zts}
502 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
503 Provides: %{name}(zend_module_api) = %{zend_module_api}
504 Provides: %{name}-core
505 Provides: %{name}-date
506 Provides: %{name}-ereg
507 %{?with_zend_multibyte:Provides: %{name}-mbstring = %{epoch}:%{version}-%{release}}
508 Provides: %{name}-overload
509 Provides: %{name}-reflection
510 Provides: %{name}-standard
511 Provides: php(core) = %{version}
514 Provides: php(libxml)
515 %{?with_zend_multibyte:Provides: php(mbstring)}
516 Provides: php(modules_api) = %{php_api_version}
517 Provides: php(overload)
518 Provides: php(reflection)
519 Provides: php(standard)
520 # ensure backward compatibility for Titanium
521 # to be dropped in future but ask Titanium RM before doing so
522 %if "%{pld_release}" == "ti"
523 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
524 Requires: %{name}-session = %{epoch}:%{version}-%{release}
525 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
527 %if "%{pld_release}" == "ac"
528 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
529 Requires: %{name}-session = %{epoch}:%{version}-%{release}
530 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
532 %{!?with_mysqlnd:Obsoletes: php-mysqlnd}
533 %{?with_pcre:%requires_ge_to pcre pcre-devel}
534 Obsoletes: php-pecl-domxml
535 Conflicts: php-pecl-memcache < 3.0.4-2
536 Conflicts: php4-common < 3:4.4.4-8
537 Conflicts: rpm < 4.4.2-0.2
540 Common files needed by both Apache modules and CGI/CLI SAPI-s.
542 %description common -l pl.UTF-8
543 Wspólne pliki dla modułu Apache'a i programu CGI.
545 %description common -l ru.UTF-8
546 Этот пакет содержит общие файлы для разных вариантов реализации PHP
547 (самодостаточной и в качестве модуля Apache).
549 %description common -l uk.UTF-8
550 Цей пакет містить спільні файли для різних варіантів реалізації PHP
551 (самодостатньої та в якості модуля Apache).
554 Summary: Files for PHP modules development
555 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
556 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
557 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
558 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
559 Group: Development/Languages/PHP
560 Requires: %{name}-common = %{epoch}:%{version}-%{release}
563 %if "%{pld_release}" != "ac"
564 Requires: libtool >= 2:2.2
568 %{?with_pcre:Requires: pcre-devel >= 6.6}
571 Obsoletes: php-pear-devel
572 Obsoletes: php4-devel
573 Obsoletes: php53-devel
574 Obsoletes: php54-devel
577 The php-devel package lets you compile dynamic extensions to PHP.
578 Included here is the source for the PHP extensions. Instead of
579 recompiling the whole PHP binary to add support for, say, oracle,
580 install this package and use the new self-contained extensions
581 support. For more information, read the file
582 README.SELF-CONTAINED-EXTENSIONS.
584 %description devel -l pl.UTF-8
585 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
586 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
587 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
588 samodzielnych rozszerzeniach można znaleźć w pliku
589 README.SELF-CONTAINED-EXTENSIONS.
591 %description devel -l pt_BR.UTF-8
592 Este pacote contém arquivos usados no desenvolvimento de programas ou
595 %description devel -l ru.UTF-8
596 Пакет php-devel дает возможность компилировать динамические расширения
597 PHP. Пакет включает исходный код этих расширений. Вместо повторной
598 компиляции бинарного файла PHP для добавления, например, поддержки
599 oracle, установите этот пакет для компилирования отдельных расширений.
600 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
602 %description devel -l uk.UTF-8
603 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
604 До пакету включено вихідний код для розширень. Замість повторної
605 компіляції бінарного файлу PHP для додання, наприклад, підтримки
606 oracle, встановіть цей пакет для компіляції окремих розширень.
607 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
610 Summary: bcmath extension module for PHP
611 Summary(pl.UTF-8): Moduł bcmath dla PHP
613 URL: http://www.php.net/manual/en/book.bc.php
614 Requires: %{name}-common = %{epoch}:%{version}-%{release}
615 Provides: php(bcmath)
618 This is a dynamic shared object (DSO) for PHP that will add bc style
619 precision math functions support.
621 %description bcmath -l pl.UTF-8
622 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
623 matematycznych takich jak w programie bc.
626 Summary: Bzip2 extension module for PHP
627 Summary(pl.UTF-8): Moduł bzip2 dla PHP
629 URL: http://www.php.net/manual/en/book.bzip2.php
630 Requires: %{name}-common = %{epoch}:%{version}-%{release}
631 Provides: %{name}-bzip2 = %{epoch}:%{version}-%{release}
637 This is a dynamic shared object (DSO) for PHP that will add bzip2
638 compression support to PHP.
640 %description bz2 -l pl.UTF-8
641 Moduł PHP umożliwiający używanie kompresji bzip2.
644 Summary: Calendar extension module for PHP
645 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
647 URL: http://www.php.net/manual/en/book.calendar.php
648 Requires: %{name}-common = %{epoch}:%{version}-%{release}
649 Provides: php(calendar)
651 %description calendar
652 This is a dynamic shared object (DSO) for PHP that will add calendar
655 %description calendar -l pl.UTF-8
656 Moduł PHP dodający wsparcie dla kalendarza.
659 Summary: ctype extension module for PHP
660 Summary(pl.UTF-8): Moduł ctype dla PHP
662 URL: http://www.php.net/manual/en/book.ctype.php
663 Requires: %{name}-common = %{epoch}:%{version}-%{release}
667 This is a dynamic shared object (DSO) for PHP that will add ctype
670 %description ctype -l pl.UTF-8
671 Moduł PHP umożliwiający korzystanie z funkcji ctype.
674 Summary: curl extension module for PHP
675 Summary(pl.UTF-8): Moduł curl dla PHP
677 URL: http://www.php.net/manual/en/book.curl.php
678 Requires: %{name}-common = %{epoch}:%{version}-%{release}
682 This is a dynamic shared object (DSO) for PHP that will add curl
685 %description curl -l pl.UTF-8
686 Moduł PHP umożliwiający korzystanie z biblioteki curl.
689 Summary: DBA extension module for PHP
690 Summary(pl.UTF-8): Moduł DBA dla PHP
692 URL: http://www.php.net/manual/en/book.dba.php
693 Requires: %{name}-common = %{epoch}:%{version}-%{release}
697 This is a dynamic shared object (DSO) for PHP that will add flat-file
698 databases (DBA) support.
700 %description dba -l pl.UTF-8
701 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
705 Summary: DBase extension module for PHP
706 Summary(pl.UTF-8): Moduł DBase dla PHP
708 Requires: %{name}-common = %{epoch}:%{version}-%{release}
712 This is a dynamic shared object (DSO) for PHP that will add DBase
715 %description dbase -l pl.UTF-8
716 Moduł PHP ze wsparciem dla DBase.
719 Summary: DOM extension module for PHP
720 Summary(pl.UTF-8): Moduł DOM dla PHP
722 URL: http://www.php.net/manual/en/book.dom.php
723 Requires: %{name}-common = %{epoch}:%{version}-%{release}
725 # it has some compatibility functions
726 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
727 Provides: php(domxml)
728 Obsoletes: php-domxml <= 3:4.3.8-1
731 This is a dynamic shared object (DSO) for PHP that will add new DOM
734 %description dom -l pl.UTF-8
735 Moduł PHP dodający nową obsługę DOM.
738 Summary: exif extension module for PHP
739 Summary(pl.UTF-8): Moduł exif dla PHP
741 URL: http://www.php.net/manual/en/book.exif.php
742 Requires: %{name}-common = %{epoch}:%{version}-%{release}
746 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
747 support in image files.
749 %description exif -l pl.UTF-8
750 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
753 Summary: FDF extension module for PHP
754 Summary(pl.UTF-8): Moduł FDF dla PHP
756 URL: http://www.php.net/manual/en/book.fdf.php
757 Requires: %{name}-common = %{epoch}:%{version}-%{release}
761 This PHP module adds support for PDF Forms through Adobe FDFTK
764 %description fdf -l pl.UTF-8
765 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
769 Summary: Extension for safely dealing with input parameters
770 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
772 URL: http://www.php.net/manual/en/book.filter.php
773 Requires: %{name}-common = %{epoch}:%{version}-%{release}
774 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
775 Provides: php(filter)
776 Obsoletes: php-pecl-filter
779 We all know that you should always check input variables, but PHP does
780 not offer really good functionality for doing this in a safe way. The
781 Input Filter extension is meant to address this issue by implementing
782 a set of filters and mechanisms that users can use to safely access
785 %description filter -l pl.UTF-8
786 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
787 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
788 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
789 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
790 mogą bezpiecznie używać do dostępu do danych.
793 Summary: FTP extension module for PHP
794 Summary(pl.UTF-8): Moduł FTP dla PHP
796 URL: http://www.php.net/manual/en/book.ftp.php
797 Requires: %{name}-common = %{epoch}:%{version}-%{release}
801 This is a dynamic shared object (DSO) for PHP that will add FTP
804 %description ftp -l pl.UTF-8
805 Moduł PHP dodający obsługę protokołu FTP.
808 Summary: GD extension module for PHP
809 Summary(pl.UTF-8): Moduł GD dla PHP
811 URL: http://www.php.net/manual/en/book.image.php
812 Requires: %{name}-common = %{epoch}:%{version}-%{release}
813 %if %{with system_gd}
814 Requires: gd >= 2.0.28-4
816 Requires: gd(imagerotate) = 5.2.0
821 This is a dynamic shared object (DSO) for PHP that will add GD
822 support, allowing you to create and manipulate images with PHP.
824 %description gd -l pl.UTF-8
825 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
826 tworzenie i obróbkę obrazków.
829 Summary: gettext extension module for PHP
830 Summary(pl.UTF-8): Moduł gettext dla PHP
832 URL: http://www.php.net/manual/en/book.gettext.php
833 Requires: %{name}-common = %{epoch}:%{version}-%{release}
834 Provides: php(gettext)
837 This is a dynamic shared object (DSO) for PHP that will add gettext
840 %description gettext -l pl.UTF-8
841 Moduł PHP dodający obsługę lokalizacji przez gettext.
844 Summary: gmp extension module for PHP
845 Summary(pl.UTF-8): Moduł gmp dla PHP
847 URL: http://www.php.net/manual/en/book.gmp.php
848 Requires: %{name}-common = %{epoch}:%{version}-%{release}
852 This is a dynamic shared object (DSO) for PHP that will add arbitrary
853 length number support with GNU MP library.
855 %description gmp -l pl.UTF-8
856 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
857 liczbach o dowolnej długości.
860 Summary: HASH Message Digest Framework
861 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
863 URL: http://www.php.net/manual/en/book.gmp.php
864 Requires: %{name}-common = %{epoch}:%{version}-%{release}
866 Obsoletes: php-pecl-hash
869 Native implementations of common message digest algorithms using a
870 generic factory method.
872 %description hash -l pl.UTF-8
873 Natywne implementacje popularnych algorytmów obliczania skrótów
874 wiadomości przy użyciu wspólnego interfejsu.
877 Summary: iconv extension module for PHP
878 Summary(pl.UTF-8): Moduł iconv dla PHP
880 URL: http://www.php.net/manual/en/book.iconv.php
881 Requires: %{_libdir}/gconv
882 Requires: %{name}-common = %{epoch}:%{version}-%{release}
887 This is a dynamic shared object (DSO) for PHP that will add iconv
890 %description iconv -l pl.UTF-8
891 Moduł PHP dodający obsługę iconv.
894 Summary: IMAP extension module for PHP
895 Summary(pl.UTF-8): Moduł IMAP dla PHP
896 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
898 URL: http://www.php.net/manual/en/book.imap.php
899 Requires: %{name}-common = %{epoch}:%{version}-%{release}
903 This is a dynamic shared object (DSO) for PHP that will add IMAP
906 %description imap -l pl.UTF-8
907 Moduł PHP dodający obsługę skrzynek IMAP.
909 %description imap -l pt_BR.UTF-8
910 Um módulo para aplicações PHP que usam IMAP.
913 Summary: InterBase/Firebird database module for PHP
914 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
916 URL: http://www.php.net/manual/en/book.ibase.php
917 Requires: %{name}-common = %{epoch}:%{version}-%{release}
918 Provides: php(interbase)
919 %{?with_interbase_inst:Autoreq: false}
921 %description interbase
922 This is a dynamic shared object (DSO) for PHP that will add InterBase
923 and Firebird database support.
925 %description interbase -l pl.UTF-8
926 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
929 Summary: PHP C extension for JSON serialization
930 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
932 URL: http://www.php.net/manual/en/book.json.php
933 Requires: %{name}-common = %{epoch}:%{version}-%{release}
935 Obsoletes: php-pecl-json
938 php-json is an extremely fast PHP C extension for JSON (JavaScript
939 Object Notation) serialisation.
941 %description json -l pl.UTF-8
942 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
943 (JavaScript Object Notation).
946 Summary: LDAP extension module for PHP
947 Summary(pl.UTF-8): Moduł LDAP dla PHP
948 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
950 URL: http://www.php.net/manual/en/book.ldap.php
951 Requires: %{name}-common = %{epoch}:%{version}-%{release}
955 This is a dynamic shared object (DSO) for PHP that will add LDAP
958 %description ldap -l pl.UTF-8
959 Moduł PHP dodający obsługę LDAP.
961 %description ldap -l pt_BR.UTF-8
962 Um módulo para aplicações PHP que usam LDAP.
965 Summary: mbstring extension module for PHP
966 Summary(pl.UTF-8): Moduł mbstring dla PHP
968 URL: http://www.php.net/manual/en/book.mbstring.php
969 Requires: %{name}-common = %{epoch}:%{version}-%{release}
970 Provides: php(mbstring)
972 %description mbstring
973 This is a dynamic shared object (DSO) for PHP that will add multibyte
976 %description mbstring -l pl.UTF-8
977 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
980 Summary: mcrypt extension module for PHP
981 Summary(pl.UTF-8): Moduł mcrypt dla PHP
983 URL: http://www.php.net/manual/en/book.mcrypt.php
984 Requires: %{name}-common = %{epoch}:%{version}-%{release}
985 Provides: php(mcrypt)
988 This is a dynamic shared object (DSO) for PHP that will add mcrypt
991 %description mcrypt -l pl.UTF-8
992 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
995 Summary: mhash extension module for PHP
996 Summary(pl.UTF-8): Moduł mhash dla PHP
998 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1002 This is a dynamic shared object (DSO) for PHP that will add mhash
1005 %description mhash -l pl.UTF-8
1006 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1009 Summary: mime_magic extension module for PHP
1010 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1012 Requires: %{magic_mime}
1013 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1014 Provides: php(mime_magic)
1016 %description mime_magic
1017 This PHP module adds support for MIME type lookup via file magic
1018 numbers using magic.mime database.
1020 %description mime_magic -l pl.UTF-8
1021 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1022 znaczników plików z użyciem bazy danych magic.mime.
1025 Summary: ming extension module for PHP
1026 Summary(pl.UTF-8): Moduł ming dla PHP
1028 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1029 Requires: ming >= 0.3
1033 This is a dynamic shared object (DSO) for PHP that will add ming
1034 (Flash - .swf files) support.
1036 %description ming -l pl.UTF-8
1037 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1041 Summary: MS SQL extension module for PHP
1042 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1044 URL: http://www.php.net/manual/en/book.mssql.php
1045 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1046 Provides: php(mssql)
1049 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1050 databases support through FreeTDS library.
1052 %description mssql -l pl.UTF-8
1053 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1057 Summary: MySQL database module for PHP
1058 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1059 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1061 URL: http://www.php.net/manual/en/book.mysql.php
1062 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1063 Provides: php(mysql)
1066 This is a dynamic shared object (DSO) for PHP that will add MySQL
1069 %description mysql -l pl.UTF-8
1070 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1072 %description mysql -l pt_BR.UTF-8
1073 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1076 Summary: MySQLi module for PHP
1077 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1079 URL: http://www.php.net/manual/en/book.mysqli.php
1080 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1081 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1082 Requires: mysql-libs >= 4.1.0
1083 Provides: php(mysqli)
1086 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1087 (Improved MySQL) support. The difference between it and mysql module
1088 is that it provides access to functionality of MySQL 4.1 and above.
1090 %description mysqli -l pl.UTF-8
1091 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1092 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1093 MySQL w wersji 4.1 i nowszych.
1096 Summary: ncurses module for PHP
1097 Summary(pl.UTF-8): Moduł ncurses dla PHP
1099 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1100 Provides: php(ncurses)
1102 %description ncurses
1103 This PHP module adds support for ncurses functions (only for cli and
1106 %description ncurses -l pl.UTF-8
1107 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1110 Summary: Oracle 8+ database module for PHP
1111 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1113 URL: http://www.php.net/manual/en/book.oci8.php
1114 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1119 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1120 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1122 %description oci8 -l pl.UTF-8
1123 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1124 poprzez interfejs Oracle8 Call-Interface (OCI8).
1127 Summary: ODBC extension module for PHP
1128 Summary(pl.UTF-8): Moduł ODBC dla PHP
1129 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1131 URL: http://www.php.net/manual/en/book.uodbc.php
1132 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1133 Requires: unixODBC >= 2.1.1-3
1137 This is a dynamic shared object (DSO) for PHP that will add ODBC
1140 %description odbc -l pl.UTF-8
1141 Moduł PHP ze wsparciem dla ODBC.
1143 %description odbc -l pt_BR.UTF-8
1144 Um módulo para aplicações PHP que usam ODBC.
1147 Summary: OpenSSL extension module for PHP
1148 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1150 URL: http://www.php.net/manual/en/book.openssl.php
1151 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1152 Provides: php(openssl)
1154 %description openssl
1155 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1158 %description openssl -l pl.UTF-8
1159 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1162 Summary: Process Control extension module for PHP
1163 Summary(pl.UTF-8): Moduł Process Control dla PHP
1165 URL: http://www.php.net/manual/en/book.pcntl.php
1166 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1167 Provides: php(pcntl)
1170 This is a dynamic shared object (DSO) for PHP that will add process
1171 spawning and control support. It supports functions like fork(),
1172 waitpid(), signal() etc.
1174 %description pcntl -l pl.UTF-8
1175 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1176 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1179 Summary: PCRE extension module for PHP
1180 Summary(pl.UTF-8): Moduł PCRE dla PHP
1182 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1186 This is a dynamic shared object (DSO) for PHP that will add Perl
1187 Compatible Regular Expression support.
1189 %description pcre -l pl.UTF-8
1190 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1191 (Perl Compatible Regular Expressions)
1194 Summary: PHP Data Objects (PDO)
1195 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1197 URL: http://www.php.net/manual/en/book.pdo.php
1198 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1199 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1201 Obsoletes: php-pecl-PDO
1204 This is a dynamic shared object (DSO) for PHP that will add PDO
1207 %description pdo -l pl.UTF-8
1208 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1211 Summary: PHP Data Objects (PDO) FreeTDS support
1212 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1214 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1215 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1216 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1217 Provides: php(dblib)
1219 %description pdo-dblib
1220 This is a dynamic shared object (DSO) for PHP that will add PDO
1223 %description pdo-dblib -l pl.UTF-8
1224 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1227 %package pdo-firebird
1228 Summary: PHP Data Objects (PDO) Firebird support
1229 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1231 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1232 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1233 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1234 Provides: php(pdo-firebird)
1235 Obsoletes: php-pecl-PDO_FIREBIRD
1237 %description pdo-firebird
1238 This is a dynamic shared object (DSO) for PHP that will add PDO
1241 %description pdo-firebird -l pl.UTF-8
1242 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1246 Summary: PHP Data Objects (PDO) MySQL support
1247 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1249 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1250 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1251 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1252 Provides: php(pdo-mysql)
1253 Obsoletes: php-pecl-PDO_MYSQL
1255 %description pdo-mysql
1256 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1259 %description pdo-mysql -l pl.UTF-8
1260 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1264 Summary: PHP Data Objects (PDO) Oracle support
1265 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1267 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1268 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1269 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1270 Provides: php(pdo-oci)
1271 Obsoletes: php-pecl-PDO_OCI
1273 %description pdo-oci
1274 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1277 %description pdo-oci -l pl.UTF-8
1278 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1282 Summary: PHP Data Objects (PDO) ODBC support
1283 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1285 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1286 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1287 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1288 Provides: php(pdo-odbc)
1289 Obsoletes: php-pecl-PDO_ODBC
1291 %description pdo-odbc
1292 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1295 %description pdo-odbc -l pl.UTF-8
1296 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1300 Summary: PHP Data Objects (PDO) PostgreSQL support
1301 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1303 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1304 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1305 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1306 Provides: php(pdo-pgsql)
1307 Provides: php-pecl-PDO_PGSQL
1308 Obsoletes: php-pecl-PDO_PGSQL
1310 %description pdo-pgsql
1311 This is a dynamic shared object (DSO) for PHP that will add PDO
1314 %description pdo-pgsql -l pl.UTF-8
1315 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1319 Summary: PHP Data Objects (PDO) SQLite support
1320 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1322 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1323 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1324 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1325 Provides: php(pdo-sqlite)
1326 Obsoletes: php-pecl-PDO_SQLITE
1328 %description pdo-sqlite
1329 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1332 %description pdo-sqlite -l pl.UTF-8
1333 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1337 Summary: PostgreSQL database module for PHP
1338 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1340 URL: http://www.php.net/manual/en/book.pgsql.php
1341 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1342 Provides: php(pgsql)
1345 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1348 %description pgsql -l pl.UTF-8
1349 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1351 %description pgsql -l pt_BR.UTF-8
1352 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1355 Summary: POSIX extension module for PHP
1356 Summary(pl.UTF-8): Moduł POSIX dla PHP
1358 URL: http://www.php.net/manual/en/book.posix.php
1359 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1360 Provides: php(posix)
1363 This is a dynamic shared object (DSO) for PHP that will add POSIX
1364 functions support to PHP.
1366 %description posix -l pl.UTF-8
1367 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1370 Summary: pspell extension module for PHP
1371 Summary(pl.UTF-8): Moduł pspell dla PHP
1373 URL: http://www.php.net/manual/en/book.pspell.php
1374 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1375 Provides: php(pspell)
1378 This is a dynamic shared object (DSO) for PHP that will add pspell
1379 support to PHP. It allows to check the spelling of a word and offer
1382 %description pspell -l pl.UTF-8
1383 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1384 sprawdzanie pisowni słowa i sugerowanie poprawek.
1387 Summary: readline extension module for PHP
1388 Summary(pl.UTF-8): Moduł readline dla PHP
1390 URL: http://www.php.net/manual/en/book.readline.php
1391 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1392 Provides: php(readline)
1394 %description readline
1395 This PHP module adds support for readline functions (only for cli and
1398 %description readline -l pl.UTF-8
1399 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1402 Summary: recode extension module for PHP
1403 Summary(pl.UTF-8): Moduł recode dla PHP
1405 URL: http://www.php.net/manual/en/book.recode.php
1406 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1407 Requires: recode >= 3.5d-3
1408 Provides: php(recode)
1411 This is a dynamic shared object (DSO) for PHP that will add recode
1414 %description recode -l pl.UTF-8
1415 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1419 Summary: session extension module for PHP
1420 Summary(pl.UTF-8): Moduł session dla PHP
1422 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1423 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1424 Provides: php(session)
1426 %description session
1427 This is a dynamic shared object (DSO) for PHP that will add session
1430 %description session -l pl.UTF-8
1431 Moduł PHP dodający obsługę sesji.
1434 Summary: Shared Memory Operations extension module for PHP
1435 Summary(pl.UTF-8): Moduł shmop dla PHP
1437 URL: http://www.php.net/manual/en/book.shmop.php
1438 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1439 Provides: php(shmop)
1442 This is a dynamic shared object (DSO) for PHP that will add Shared
1443 Memory Operations support.
1445 %description shmop -l pl.UTF-8
1446 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1449 Summary: Simple XML extension module for PHP
1450 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1452 URL: http://www.php.net/manual/en/book.simplexml.php
1453 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1454 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1455 Provides: php(simplexml)
1457 %description simplexml
1458 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1461 %description simplexml -l pl.UTF-8
1462 Moduł PHP dodający obsługę prostego XML-a.
1465 Summary: SNMP extension module for PHP
1466 Summary(pl.UTF-8): Moduł SNMP dla PHP
1468 URL: http://www.php.net/manual/en/book.snmp.php
1469 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1470 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1474 This is a dynamic shared object (DSO) for PHP that will add SNMP
1477 %description snmp -l pl.UTF-8
1478 Moduł PHP dodający obsługę SNMP.
1481 Summary: soap extension module for PHP
1482 Summary(pl.UTF-8): Moduł soap dla PHP
1484 URL: http://www.php.net/manual/en/book.soap.php
1485 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1489 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1492 %description soap -l pl.UTF-8
1493 Moduł PHP dodający obsługę SOAP/WSDL.
1496 Summary: sockets extension module for PHP
1497 Summary(pl.UTF-8): Moduł socket dla PHP
1499 URL: http://www.php.net/manual/en/book.sockets.php
1500 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1501 Provides: php(sockets)
1503 %description sockets
1504 This is a dynamic shared object (DSO) for PHP that will add sockets
1507 %description sockets -l pl.UTF-8
1508 Moduł PHP dodający obsługę gniazdek.
1511 Summary: Standard PHP Library module for PHP
1512 Summary(pl.UTF-8): Moduł SPL dla PHP
1514 URL: http://php.net/manual/en/book.spl.php
1515 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1516 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1517 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1521 This is a dynamic shared object (DSO) for PHP that will add Standard
1522 PHP Library support.
1524 %description spl -l pl.UTF-8
1525 Moduł PHP dodający obsługę gniazdek.
1528 Summary: SQLite extension module for PHP
1529 Summary(pl.UTF-8): Moduł SQLite dla PHP
1531 URL: http://www.php.net/manual/en/book.sqlite.php
1532 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1533 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1534 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1535 Provides: php(sqlite)
1538 SQLite is a C library that implements an embeddable SQL database
1539 engine. Programs that link with the SQLite library can have SQL
1540 database access without running a separate RDBMS process.
1542 SQLite is not a client library used to connect to a big database
1543 server. SQLite is the server. The SQLite library reads and writes
1544 directly to and from the database files on disk.
1546 %description sqlite -l pl.UTF-8
1547 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1548 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1549 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1552 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1553 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1554 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1558 Summary: Sybase DB extension module for PHP
1559 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1561 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1562 Provides: php(sybase)
1563 Obsoletes: php-sybase-ct
1564 Conflicts: php-sybase-ct
1567 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1568 MS SQL databases support through SYBDB library. Currently Sybase
1569 module is not maintained. Using Sybase-CT module is recommended
1572 %description sybase -l pl.UTF-8
1573 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1574 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1575 Zaleca się używanie modułu Sybase-CT.
1578 Summary: Sybase-CT extension module for PHP
1579 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1581 URL: http://www.php.net/manual/en/book.sybase.php
1582 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1583 Provides: php(sybase-ct)
1584 Obsoletes: php-sybase
1585 Conflicts: php-sybase
1587 %description sybase-ct
1588 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1589 MS SQL databases support through CT-lib.
1591 %description sybase-ct -l pl.UTF-8
1592 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1596 Summary: SysV msg extension module for PHP
1597 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1599 URL: http://www.php.net/manual/en/book.sem.php
1600 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1601 Provides: php(sysvmsg)
1603 %description sysvmsg
1604 This is a dynamic shared object (DSO) for PHP that will add SysV
1605 message queues support.
1607 %description sysvmsg -l pl.UTF-8
1608 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1611 Summary: SysV sem extension module for PHP
1612 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1614 URL: http://www.php.net/manual/en/book.sem.php
1615 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1616 Provides: php(sysvsem)
1618 %description sysvsem
1619 This is a dynamic shared object (DSO) for PHP that will add SysV
1622 %description sysvsem -l pl.UTF-8
1623 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1626 Summary: SysV shm extension module for PHP
1627 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1629 URL: http://www.php.net/manual/en/book.shmop.php
1630 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1631 Provides: php(sysvshm)
1633 %description sysvshm
1634 This is a dynamic shared object (DSO) for PHP that will add SysV
1635 Shared Memory support.
1637 %description sysvshm -l pl.UTF-8
1638 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1641 Summary: Contains unit test files for PHP and extensions
1642 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1644 URL: http://qa.php.net/
1645 Requires: %{name}-cli
1648 This package contains unit tests for PHP and it's extensions.
1650 %description tests -l pl.UTF-8
1651 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1654 Summary: Tidy extension module for PHP
1655 Summary(pl.UTF-8): Moduł Tidy dla PHP
1657 URL: http://www.php.net/manual/en/book.tidy.php
1658 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1663 This is a dynamic shared object (DSO) for PHP that will add Tidy
1666 %description tidy -l pl.UTF-8
1667 Moduł PHP umożliwiający korzystanie z tidy.
1670 Summary: tokenizer extension module for PHP
1671 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1673 URL: http://www.php.net/manual/en/book.tokenizer.php
1674 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1675 Provides: php(tokenizer)
1677 %description tokenizer
1678 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1681 %description tokenizer -l pl.UTF-8
1682 Moduł PHP dodający obsługę tokenizera do PHP.
1685 Summary: wddx extension module for PHP
1686 Summary(pl.UTF-8): Moduł wddx dla PHP
1688 URL: http://www.php.net/manual/en/book.wddx.php
1689 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1690 # - wddx doesn't require session as it's disabled at compile time:
1691 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1692 # see also php.spec#rev1.120.2.22
1693 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1694 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1698 This is a dynamic shared object (DSO) for PHP that will add wddx
1701 %description wddx -l pl.UTF-8
1702 Moduł PHP umożliwiający korzystanie z wddx.
1705 Summary: XML extension module for PHP
1706 Summary(pl.UTF-8): Moduł XML dla PHP
1708 URL: http://www.php.net/manual/en/book.xml.php
1709 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1713 This is a dynamic shared object (DSO) for PHP that will add XML
1714 support. This extension lets you create XML parsers and then define
1715 handlers for different XML events.
1717 %description xml -l pl.UTF-8
1718 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1719 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1720 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1723 Summary: XML Reader extension module for PHP
1724 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1726 URL: http://www.php.net/manual/en/book.xmlreader.php
1727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1728 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1729 Provides: php(xmlreader)
1731 %description xmlreader
1732 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1733 support. The XMLReader extension is an XML Pull parser. The reader
1734 acts as a cursor going forward on the document stream and stopping at
1735 each node on the way.
1737 %description xmlreader -l pl.UTF-8
1738 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1739 działa jako kursor przechodzący przez strumień dokumentu i
1740 zatrzymujący się na każdym węźle po drodze.
1743 Summary: xmlrpc extension module for PHP
1744 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1746 URL: http://www.php.net/manual/en/book.xmlrpc.php
1747 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1748 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1749 Provides: php(xmlrpc)
1752 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1755 %description xmlrpc -l pl.UTF-8
1756 Moduł PHP dodający obsługę XMLRPC.
1759 Summary: Fast, non-cached, forward-only means to write XML data
1760 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1762 URL: http://www.php.net/manual/en/book.xmlwriter.php
1763 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1764 Provides: php(xmlwriter)
1765 Obsoletes: php-pecl-xmlwriter
1767 %description xmlwriter
1768 This extension wraps the libxml xmlWriter API. Represents a writer
1769 that provides a non-cached, forward-only means of generating streams
1770 or files containing XML data.
1772 %description xmlwriter -l pl.UTF-8
1773 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1774 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1775 plików zawierających dane XML.
1778 Summary: xsl extension module for PHP
1779 Summary(pl.UTF-8): Moduł xsl dla PHP
1781 URL: http://www.php.net/manual/en/book.xsl.php
1782 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1783 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1784 Requires: libxslt >= 1.0.18
1785 # actually not true, functionality is similar, but API differs
1787 Obsoletes: php-xslt <= 3:4.3.8-1
1790 This is a dynamic shared object (DSO) for PHP that will add new XSL
1791 support (using libxslt).
1793 %description xsl -l pl.UTF-8
1794 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1797 Summary: Zip management extension
1798 Summary(pl.UTF-8): Zarządzanie archiwami zip
1800 URL: http://www.php.net/manual/en/book.zip.php
1801 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1802 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1804 Obsoletes: php-pecl-zip
1807 Zip is an extension to create, modify and read zip files.
1809 %description zip -l pl.UTF-8
1810 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1811 odczyt archiwów zip.
1814 Summary: Zlib extension module for PHP
1815 Summary(pl.UTF-8): Moduł zlib dla PHP
1817 URL: http://www.php.net/manual/en/book.zlib.php
1818 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1822 This is a dynamic shared object (DSO) for PHP that will add zlib
1823 compression support to PHP.
1825 %description zlib -l pl.UTF-8
1826 Moduł PHP umożliwiający używanie kompresji zlib.
1829 %setup -q -n %{orgname}-%{version}
1832 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1845 cp php.ini-dist php.ini
1847 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1857 %if %{with system_gd}
1866 %{?with_versioning:%patch25 -p1}
1869 %{__tar} jxf %{SOURCE9}
1870 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1871 mv $v/$v gentoo-patchset
1872 for a in gentoo-patchset/*.patch; do
1885 %if "%{pld_release}" != "ac"
1890 # mysql default charset for mysql/mysql/pdo-mysql extensions
1922 %{?with_system_libzip:%patch65 -p1}
1930 # Bugfix backport from 5.3.6
1931 %patch311 -p1 -b .bug-47435
1932 %patch314 -p1 -b .bug-39199
1933 # Bugfix backport from 5.3.7
1934 #accert %patch333 -p1 -b .bug-54924
1935 #soap %patch355 -p1 -b .bug-55323
1936 # causes regression -> magic_quotes_gpc setting cannot be changed
1937 #%%patch402 -p1 -b .bug-323016
1939 # conflict seems to be resolved by recode patches
1940 rm -f ext/recode/config9.m4
1942 # remove all bundled libraries not to link with them accidentally
1943 #rm -rf ext/sqlite/libsqlite
1944 #rm -rf ext/bcmath/libbcmath
1945 #rm -rf ext/date/lib
1946 #rm -rf ext/dba/libcdb
1947 #rm -rf ext/dba/libflatfile
1948 #rm -rf ext/dba/libinifile
1949 #rm -rf ext/gd/libgd
1950 #rm -rf ext/mbstring/libmbfl
1951 #rm -rf ext/mbstring/oniguruma
1952 rm -rf ext/pcre/pcrelib
1953 rm -rf ext/pdo_sqlite/sqlite
1954 #rm -rf ext/soap/interop
1955 %if %{with system_xmlrpc_epi}
1956 rm -rf ext/xmlrpc/libxmlrpc
1960 # this test hungs on ac-ppc
1961 #mv ext/reflection/tests/007.php{,ignore}
1962 # this test gets killed by itself
1963 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1966 cp -af Zend/LICENSE{,.Zend}
1967 install -p %{SOURCE13} dep-tests.sh
1969 # disable broken tests
1970 # says just "Terminated" twice and fails
1971 mv sapi/cli/tests/022.phpt{,.broken}
1973 sh -xe %{_sourcedir}/skip-tests.sh
1976 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1977 if [ $API != %{php_api_version} ]; then
1978 echo "Set %%define php_api_version to $API and re-run."
1982 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1983 if [ $API != %{zend_module_api} ]; then
1984 echo "Set %%define zend_module_api to $API and re-run."
1988 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1989 if [ $API != %{zend_extension_api} ]; then
1990 echo "Set %%define zend_extension_api to $API and re-run."
1994 export EXTENSION_DIR="%{php_extensiondir}"
1995 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1996 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1999 cp -f /usr/share/automake/config.* .
2003 export PROG_SENDMAIL="/usr/lib/sendmail"
2020 for sapi in $sapis; do
2022 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2027 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2030 sapi_args='--disable-cgi'
2033 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2036 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2039 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2040 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2043 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2044 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2049 FORCE_APACHE_VERSION="${apache_ver}" \
2051 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2052 --cache-file=config.cache \
2054 --with-libdir=%{_lib} \
2055 --with-config-file-path=%{_sysconfdir} \
2056 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2057 --with-exec-dir=%{_bindir} \
2058 --with-system-tzdata \
2059 --%{!?debug:dis}%{?debug:en}able-debug \
2060 %{?with_zts:--enable-maintainer-zts} \
2061 %{?with_suhosin:--enable-suhosin} \
2062 %{?with_zend_multibyte:--enable-zend-multibyte} \
2063 --enable-inline-optimization \
2064 --enable-bcmath=shared \
2065 --enable-calendar=shared \
2066 --enable-ctype=shared \
2067 --enable-dba=shared \
2068 --enable-dom=shared \
2069 --enable-exif=shared \
2070 --enable-ftp=shared \
2071 --enable-gd-native-ttf \
2072 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2074 --enable-magic-quotes \
2075 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2077 --enable-pcntl=shared \
2078 --enable-pdo=shared \
2079 --enable-json=shared \
2080 --enable-hash=shared \
2081 --enable-xmlwriter=shared \
2083 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2084 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2085 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2087 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2088 --with-pdo-dblib=shared \
2090 %if %{with interbase} && !%{with interbase_inst}
2091 --with-pdo-firebird=shared,/usr \
2093 --with-pdo-mysql=shared \
2094 %{?with_oci8:--with-pdo-oci=shared} \
2095 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2096 %{?with_pgsql:--with-pdo-pgsql=shared} \
2097 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2098 --enable-posix=shared \
2099 --enable-reflection \
2101 --enable-session=shared \
2102 --enable-shmop=shared \
2103 --enable-simplexml=shared \
2104 --enable-spl=shared \
2105 --enable-sysvmsg=shared \
2106 --enable-sysvsem=shared \
2107 --enable-sysvshm=shared \
2108 --enable-safe-mode \
2109 --enable-soap=shared \
2110 --enable-sockets=shared \
2111 --enable-tokenizer=shared \
2112 --enable-ucd-snmp-hack \
2113 %{?with_wddx:--enable-wddx=shared} \
2114 --enable-xml=shared \
2115 --enable-xmlreader=shared \
2117 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2119 --enable-dbase=shared \
2120 --without-libexpat-dir \
2121 %{?with_fdf:--with-fdftk=shared} \
2122 --with-iconv=shared \
2123 --with-freetype-dir=shared \
2124 --with-gettext=shared \
2125 --with-gd=shared%{?with_system_gd:,/usr} \
2128 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2129 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2130 --with-jpeg-dir=/usr \
2131 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2132 --with-mcrypt=shared \
2133 %{?with_mhash:--with-mhash=shared} \
2134 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2135 %{?with_ming:--with-ming=shared} \
2136 %{?with_mm:--with-mm} \
2137 %{?with_mssql:--with-mssql=shared} \
2138 --with-mysql=shared,/usr \
2139 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2140 %{?with_mysqli:--with-mysqli=shared} \
2141 --with-ncurses=shared \
2142 %{?with_oci8:--with-oci8=shared} \
2143 %{?with_openssl:--with-openssl=shared} \
2145 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2146 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2147 --with-pear=%{php_pear_dir} \
2148 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2149 --with-png-dir=/usr \
2150 %{?with_pspell:--with-pspell=shared} \
2151 --with-readline=shared \
2152 %{?with_recode:--with-recode=shared} \
2154 %{?with_snmp:--with-snmp=shared} \
2155 %{?with_sybase:--with-sybase=shared,/usr} \
2156 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2157 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2158 --with-t1lib=shared \
2159 %{?with_tidy:--with-tidy=shared} \
2160 %{?with_odbc:--with-unixODBC=shared,/usr} \
2161 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2163 --with-zlib=shared \
2164 --with-zlib-dir=shared,/usr \
2165 %{?with_system_libzip:--with-libzip} \
2166 --enable-zip=shared,/usr \
2168 cp -f Makefile Makefile.$sapi
2169 cp -f main/php_config.h php_config.h.$sapi
2170 cp -f config.log config.log.$sapi
2173 # as we build each SAPI in own make, adjust php-config.in forehead
2174 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2175 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2177 # must make this first, so modules can link against it.
2178 %{__make} libphp_common.la
2179 %{__make} build-modules
2182 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2186 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2190 cp -af php_config.h.cgi main/php_config.h
2191 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2192 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2193 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2197 cp -af php_config.h.fcgi main/php_config.h
2198 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2199 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2200 cp -r sapi/cgi sapi/fcgi
2201 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2205 cp -af php_config.h.fpm main/php_config.h
2206 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2207 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2208 cp -r sapi/cgi sapi/fpm
2209 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2213 cp -af php_config.h.cli main/php_config.h
2214 %{__make} sapi/cli/php -f Makefile.cli
2215 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2217 # check for stupid xml parse breakage where < and > just get lost in parse result
2218 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x><</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2220 # Generate stub .ini files for each extension
2223 generate_inifiles() {
2224 for so in modules/*.so; do
2225 mod=$(basename $so .so)
2227 # xml needs to be loaded before wddx
2228 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2229 # pre needs to be loaded before SPL
2230 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2231 # spl needs to be loaded before mysqli
2232 [ "$mod" = "spl" ] && conf="SPL.ini"
2233 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2234 [ "$mod" = "session" ] && conf="Session.ini"
2236 cat > conf.d/$conf <<-EOF
2237 ; Enable $mod extension module
2244 # Check that the module inner-dependencies are intact
2245 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2246 if grep -v OK dep-tests.log; then
2247 echo >&2 "The results above were not expected"
2248 # TEMP: ac-i386 builder is broken
2256 # Run tests, using the CLI SAPI
2257 cp -af php_config.h.cli main/php_config.h
2258 cp -af Makefile.cli Makefile
2259 # sybase modules collide, remove one
2260 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2262 cat <<'EOF' > run-tests.sh
2264 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2265 unset TZ LANG LC_ALL || :
2268 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2269 RUN_TESTS_SETTINGS="-q $*"
2271 chmod +x run-tests.sh
2272 ./run-tests.sh -w failed.log -s test.log
2274 # collect failed tests into cleanup script used in prep.
2275 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2276 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2277 >> %{_sourcedir}/skip-tests.sh
2279 failed=$(wc -l < tests-failed.log)
2280 if [ "$failed" != 0 ]; then
2286 rm -rf $RPM_BUILD_ROOT
2287 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2288 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2289 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2290 $RPM_BUILD_ROOT%{_mandir}/man1 \
2292 # install the Apache modules' files
2293 %{__make} install-headers install-build install-modules install-programs \
2294 INSTALL_ROOT=$RPM_BUILD_ROOT
2297 v=$(echo %{version} | cut -d. -f1-2)
2299 # install Apache1 DSO module
2301 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2302 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2303 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2306 # install Apache2 DSO module
2308 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2309 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2310 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2313 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2314 # fix install paths, avoid evil rpaths
2315 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2317 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2320 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2324 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2329 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2330 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2331 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2332 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2333 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2334 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2335 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2336 %if "%{pld_release}" == "ac"
2337 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2341 s#/usr/lib/php#%{php_extensiondir}#
2342 s#/etc/php#%{_sysconfdir}#
2343 s#@processname@#%{name}-fpm#g
2344 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2348 # without suffix, install as php.cli
2349 %if "%{?php_suffix}" == ""
2350 %define phpfn %{name}.cli
2352 %define phpfn %{name}
2354 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2355 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2356 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2357 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2358 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2360 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2362 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2364 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2365 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2366 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2369 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2370 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2371 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2375 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2376 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2377 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2380 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2381 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2383 # ensure that paths are correct for current php version and arch
2384 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2386 s#/usr/lib/php#%{php_extensiondir}#g
2387 s#/etc/php#%{_sysconfdir}#g
2390 # per SAPI ini directories
2391 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2394 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2396 # use system automake and {lib,sh}tool
2397 %if "%{pld_release}" != "ac"
2398 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2399 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2400 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2402 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2404 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2405 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2407 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2409 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2410 # isn't installed by install-headers make target, we do it manually here.
2411 # this header file is required by e.g. filter PECL extension
2412 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2413 # for php-pecl-mailparse
2414 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2415 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2418 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2419 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2420 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2423 rm -rf $RPM_BUILD_ROOT
2425 %post -n apache1-mod_%{name}
2426 if [ "$1" = "1" ]; then
2427 %service -q apache restart
2430 %postun -n apache1-mod_%{name}
2431 if [ "$1" = "0" ]; then
2432 %service -q apache restart
2435 %post -n apache-mod_%{name}
2436 if [ "$1" = "1" ]; then
2437 %service -q httpd restart
2440 %postun -n apache-mod_%{name}
2441 if [ "$1" = "0" ]; then
2442 %service -q httpd restart
2446 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2449 /sbin/chkconfig --add %{name}-fpm
2450 %service %{name}-fpm restart
2453 if [ "$1" = 0 ]; then
2454 %service %{name}-fpm stop
2455 /sbin/chkconfig --del %{name}-fpm
2459 if [ "$1" = "0" ]; then
2463 %post common -p /sbin/ldconfig
2464 %postun common -p /sbin/ldconfig
2467 # minimizing apache restarts logics. we restart webserver:
2469 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2470 # 2. first install of extension (post: $1 = 1)
2471 # 2. uninstall of extension (postun: $1 == 0)
2473 # the strict internal deps between extensions (and apache modules) and
2474 # common package are very important for all this to work.
2476 # restart webserver at the end of transaction
2477 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2478 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2480 # common macros called at extension post/postun scriptlet
2481 %define extension_scripts() \
2483 if [ "$1" = "1" ]; then \
2484 %php_webserver_restart \
2488 if [ "$1" = "0" ]; then \
2489 %php_webserver_restart \
2493 # extension scripts defines
2494 %extension_scripts bcmath
2495 %extension_scripts bz2
2496 %extension_scripts calendar
2497 %extension_scripts ctype
2498 %extension_scripts curl
2499 %extension_scripts dba
2500 %extension_scripts dbase
2501 %extension_scripts dom
2502 %extension_scripts exif
2503 %extension_scripts fdf
2504 %extension_scripts filter
2505 %extension_scripts ftp
2506 %extension_scripts gd
2507 %extension_scripts gettext
2508 %extension_scripts gmp
2509 %extension_scripts hash
2510 %extension_scripts iconv
2511 %extension_scripts imap
2512 %extension_scripts interbase
2513 %extension_scripts json
2514 %extension_scripts ldap
2515 %extension_scripts mbstring
2516 %extension_scripts mcrypt
2517 %extension_scripts mhash
2518 %extension_scripts mime_magic
2519 %extension_scripts ming
2520 %extension_scripts mssql
2521 %extension_scripts mysql
2522 %extension_scripts mysqli
2523 %extension_scripts oci8
2524 %extension_scripts odbc
2525 %extension_scripts openssl
2526 %extension_scripts pcntl
2527 %extension_scripts pcre
2528 %extension_scripts pdo
2529 %extension_scripts pdo-dblib
2530 %extension_scripts pdo-firebird
2531 %extension_scripts pdo-oci
2532 %extension_scripts pdo-mysql
2533 %extension_scripts pdo-odbc
2534 %extension_scripts pdo-pgsql
2535 %extension_scripts pdo-sqlite
2536 %extension_scripts pgsql
2537 %extension_scripts posix
2538 %extension_scripts pspell
2539 %extension_scripts recode
2540 %extension_scripts session
2541 %extension_scripts simplexml
2542 %extension_scripts shmop
2543 %extension_scripts snmp
2544 %extension_scripts soap
2545 %extension_scripts sockets
2546 %extension_scripts spl
2547 %extension_scripts sqlite
2548 %extension_scripts sybase
2549 %extension_scripts sybase-ct
2550 %extension_scripts sysvmsg
2551 %extension_scripts sysvsem
2552 %extension_scripts sysvshm
2553 %extension_scripts tidy
2554 %extension_scripts tokenizer
2555 %extension_scripts wddx
2556 %extension_scripts xml
2557 %extension_scripts xmlreader
2558 %extension_scripts xmlrpc
2559 %extension_scripts xmlwriter
2560 %extension_scripts xsl
2561 %extension_scripts zip
2562 %extension_scripts zlib
2565 %files -n apache1-mod_%{name}
2566 %defattr(644,root,root,755)
2567 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2568 %dir %{_sysconfdir}/apache.d
2569 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2570 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2571 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2575 %files -n apache-mod_%{name}
2576 %defattr(644,root,root,755)
2577 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2578 %dir %{_sysconfdir}/apache2handler.d
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2580 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2581 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2586 %defattr(644,root,root,755)
2587 %doc sapi/cgi/README.FastCGI
2588 %dir %{_sysconfdir}/cgi-fcgi.d
2589 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2590 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2594 %defattr(644,root,root,755)
2595 %dir %{_sysconfdir}/cgi.d
2596 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2597 %attr(755,root,root) %{_bindir}/%{name}.cgi
2600 %defattr(644,root,root,755)
2601 %dir %{_sysconfdir}/cli.d
2602 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2603 %attr(755,root,root) %{_bindir}/%{phpfn}
2604 %{_mandir}/man1/%{phpfn}.1*
2607 %defattr(644,root,root,755)
2608 %attr(755,root,root) %{_bindir}/php
2609 %{_mandir}/man1/php.1*
2613 %defattr(644,root,root,755)
2614 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2615 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2616 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2617 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2621 %defattr(644,root,root,755)
2623 %doc CREDITS Zend/ZEND_CHANGES
2624 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2625 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2628 %dir %{_sysconfdir}/conf.d
2629 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2630 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2631 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2632 %dir %{php_extensiondir}
2635 %defattr(644,root,root,755)
2636 %doc README.UNIX-BUILD-SYSTEM
2637 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2638 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2639 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2640 %attr(755,root,root) %{_bindir}/phpize
2641 %attr(755,root,root) %{_bindir}/php-config
2642 %attr(755,root,root) %{_libdir}/libphp_common.so
2643 %{_libdir}/libphp_common.la
2645 %{_libdir}/php/build
2646 %{_mandir}/man1/php-config.1*
2647 %{_mandir}/man1/phpize.1*
2650 %defattr(644,root,root,755)
2651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2652 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2657 %attr(755,root,root) %{php_extensiondir}/bz2.so
2660 %defattr(644,root,root,755)
2661 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2662 %attr(755,root,root) %{php_extensiondir}/calendar.so
2665 %defattr(644,root,root,755)
2666 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2667 %attr(755,root,root) %{php_extensiondir}/ctype.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2673 %attr(755,root,root) %{php_extensiondir}/curl.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2679 %attr(755,root,root) %{php_extensiondir}/dba.so
2682 %defattr(644,root,root,755)
2683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2684 %attr(755,root,root) %{php_extensiondir}/dbase.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2689 %attr(755,root,root) %{php_extensiondir}/dom.so
2693 %defattr(644,root,root,755)
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2695 %attr(755,root,root) %{php_extensiondir}/fdf.so
2700 %defattr(644,root,root,755)
2701 %doc README.input_filter
2702 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2703 %attr(755,root,root) %{php_extensiondir}/filter.so
2707 %defattr(644,root,root,755)
2708 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2709 %attr(755,root,root) %{php_extensiondir}/exif.so
2712 %defattr(644,root,root,755)
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2714 %attr(755,root,root) %{php_extensiondir}/ftp.so
2717 %defattr(644,root,root,755)
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2719 %attr(755,root,root) %{php_extensiondir}/gd.so
2722 %defattr(644,root,root,755)
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2724 %attr(755,root,root) %{php_extensiondir}/gettext.so
2727 %defattr(644,root,root,755)
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2729 %attr(755,root,root) %{php_extensiondir}/gmp.so
2732 %defattr(644,root,root,755)
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2734 %attr(755,root,root) %{php_extensiondir}/hash.so
2737 %defattr(644,root,root,755)
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2739 %attr(755,root,root) %{php_extensiondir}/iconv.so
2743 %defattr(644,root,root,755)
2744 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2745 %attr(755,root,root) %{php_extensiondir}/imap.so
2748 %if %{with interbase}
2750 %defattr(644,root,root,755)
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2752 %attr(755,root,root) %{php_extensiondir}/interbase.so
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2758 %attr(755,root,root) %{php_extensiondir}/json.so
2762 %defattr(644,root,root,755)
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2764 %attr(755,root,root) %{php_extensiondir}/ldap.so
2767 %if %{without zend_multibyte}
2769 %defattr(644,root,root,755)
2770 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2771 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2775 %defattr(644,root,root,755)
2776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2777 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2781 %defattr(644,root,root,755)
2782 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2783 %attr(755,root,root) %{php_extensiondir}/mhash.so
2786 %if %{with mime_magic}
2788 %defattr(644,root,root,755)
2789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2790 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2795 %defattr(644,root,root,755)
2796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2797 %attr(755,root,root) %{php_extensiondir}/ming.so
2802 %defattr(644,root,root,755)
2803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2804 %attr(755,root,root) %{php_extensiondir}/mssql.so
2808 %defattr(644,root,root,755)
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2810 %attr(755,root,root) %{php_extensiondir}/mysql.so
2814 %defattr(644,root,root,755)
2815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2816 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2820 %defattr(644,root,root,755)
2821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2822 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2826 %defattr(644,root,root,755)
2827 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2828 %attr(755,root,root) %{php_extensiondir}/oci8.so
2833 %defattr(644,root,root,755)
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2835 %attr(755,root,root) %{php_extensiondir}/odbc.so
2840 %defattr(644,root,root,755)
2841 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2842 %attr(755,root,root) %{php_extensiondir}/openssl.so
2846 %defattr(644,root,root,755)
2847 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2848 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2852 %defattr(644,root,root,755)
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2854 %attr(755,root,root) %{php_extensiondir}/pcre.so
2858 %defattr(644,root,root,755)
2859 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2860 %attr(755,root,root) %{php_extensiondir}/pdo.so
2862 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2864 %defattr(644,root,root,755)
2865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2866 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2869 %if %{with interbase} && !%{with interbase_inst}
2871 %defattr(644,root,root,755)
2872 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2873 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2877 %defattr(644,root,root,755)
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2879 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2883 %defattr(644,root,root,755)
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2885 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2890 %defattr(644,root,root,755)
2891 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2892 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2897 %defattr(644,root,root,755)
2898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2899 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2904 %defattr(644,root,root,755)
2905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2906 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2911 %defattr(644,root,root,755)
2912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2913 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2917 %defattr(644,root,root,755)
2918 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2919 %attr(755,root,root) %{php_extensiondir}/posix.so
2923 %defattr(644,root,root,755)
2924 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2925 %attr(755,root,root) %{php_extensiondir}/pspell.so
2929 %defattr(644,root,root,755)
2930 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2931 %attr(755,root,root) %{php_extensiondir}/readline.so
2935 %defattr(644,root,root,755)
2936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2937 %attr(755,root,root) %{php_extensiondir}/recode.so
2941 %defattr(644,root,root,755)
2942 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2943 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2946 %defattr(644,root,root,755)
2947 %doc ext/session/mod_files.sh
2948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2949 %attr(755,root,root) %{php_extensiondir}/session.so
2952 %defattr(644,root,root,755)
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2954 %attr(755,root,root) %{php_extensiondir}/shmop.so
2958 %defattr(644,root,root,755)
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2960 %attr(755,root,root) %{php_extensiondir}/snmp.so
2964 %defattr(644,root,root,755)
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2966 %attr(755,root,root) %{php_extensiondir}/soap.so
2969 %defattr(644,root,root,755)
2970 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2971 %attr(755,root,root) %{php_extensiondir}/sockets.so
2974 %defattr(644,root,root,755)
2975 %doc ext/spl/{CREDITS,README,TODO}
2976 %doc ext/spl/examples
2977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2978 %attr(755,root,root) %{php_extensiondir}/spl.so
2982 %defattr(644,root,root,755)
2983 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2984 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2989 %defattr(644,root,root,755)
2990 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2991 %attr(755,root,root) %{php_extensiondir}/sybase.so
2994 %if %{with sybase_ct}
2996 %defattr(644,root,root,755)
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2998 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3004 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3009 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3014 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3017 %defattr(644,root,root,755)
3018 %dir %{php_data_dir}/tests
3019 %dir %{php_data_dir}/tests/php
3020 %{php_data_dir}/tests/php/basic
3021 %{php_data_dir}/tests/php/classes
3022 %{php_data_dir}/tests/php/func
3023 %{php_data_dir}/tests/php/lang
3024 %{php_data_dir}/tests/php/output
3025 %{php_data_dir}/tests/php/run-test
3026 %{php_data_dir}/tests/php/security
3027 %{php_data_dir}/tests/php/strings
3028 %{php_data_dir}/tests/php/quicktester.inc
3029 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3031 # random junk, didn't check, maybe can be just removed
3032 %{php_data_dir}/tests/php/bin-info.inc
3033 %{php_data_dir}/tests/php/foo*
3034 %{php_data_dir}/tests/php/odbc*.php
3035 %{php_data_dir}/tests/php/recurse
3036 %{php_data_dir}/tests/php/run.*
3037 %{php_data_dir}/tests/php/scan_cases
3038 %{php_data_dir}/tests/php/test*
3042 %defattr(644,root,root,755)
3043 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3044 %attr(755,root,root) %{php_extensiondir}/tidy.so
3048 %defattr(644,root,root,755)
3049 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3050 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3054 %defattr(644,root,root,755)
3055 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3056 %attr(755,root,root) %{php_extensiondir}/wddx.so
3060 %defattr(644,root,root,755)
3061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3062 %attr(755,root,root) %{php_extensiondir}/xml.so
3065 %defattr(644,root,root,755)
3066 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3067 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3071 %defattr(644,root,root,755)
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3073 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3077 %defattr(644,root,root,755)
3078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3079 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3082 %defattr(644,root,root,755)
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3084 %attr(755,root,root) %{php_extensiondir}/xsl.so
3087 %defattr(644,root,root,755)
3088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3089 %attr(755,root,root) %{php_extensiondir}/zip.so
3092 %defattr(644,root,root,755)
3093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3094 %attr(755,root,root) %{php_extensiondir}/zlib.so