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
112 %define php_suffix %{nil}
115 Summary: PHP: Hypertext Preprocessor
116 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
117 Summary(pl.UTF-8): Język skryptowy PHP
118 Summary(pt_BR.UTF-8): A linguagem de script PHP
119 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
120 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
121 Name: %{orgname}%{php_suffix}
127 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
128 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
129 Source2: %{orgname}-mod_%{orgname}.conf
130 Source3: %{orgname}-cgi-fcgi.ini
131 Source4: %{orgname}-cgi.ini
132 Source5: %{orgname}-apache.ini
133 Source6: %{orgname}-cli.ini
134 # Taken from: http://browsers.garykeith.com/downloads.asp
135 Source8: %{orgname}_browscap.ini
136 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
137 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
138 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
139 Source10: %{orgname}-fpm.init
140 Source11: %{orgname}-fpm.logrotate
141 Source12: %{orgname}-branch.sh
142 Source13: dep-tests.sh
143 Source14: skip-tests.sh
144 Patch100: https://php52-backports.googlecode.com/files/php52-backports-20130320.patch
145 # Patch100-md5: 8428acfb94d5804e00333db01f7cd8dd
146 Patch0: %{orgname}-shared.patch
147 Patch1: %{orgname}-pldlogo.patch
148 Patch2: %{orgname}-mail.patch
149 Patch3: %{orgname}-link-libs.patch
150 Patch4: %{orgname}-libpq_fs_h_path.patch
151 Patch5: %{orgname}-filter-shared.patch
152 Patch6: %{orgname}-build_modules.patch
153 Patch7: %{orgname}-sapi-ini-file.patch
154 Patch8: %{orgname}-no-metaccld.patch
155 Patch9: %{orgname}-sh.patch
156 Patch10: %{orgname}-ini.patch
157 Patch11: %{orgname}-acam.patch
158 Patch12: %{orgname}-threads-acfix.patch
159 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
160 Patch14: %{orgname}-no_pear_install.patch
161 Patch15: %{orgname}-zlib.patch
162 Patch16: %{orgname}-sybase-fix.patch
163 Patch17: %{orgname}-readline.patch
164 Patch18: %{orgname}-nohttpd.patch
165 Patch19: %{orgname}-gd_imagerotate_enable.patch
166 Patch20: %{orgname}-uint32_t.patch
167 Patch21: %{orgname}-dba-link.patch
168 Patch22: %{orgname}-both-apxs.patch
169 Patch23: %{orgname}-builddir.patch
170 Patch24: %{orgname}-zlib-for-getimagesize.patch
171 Patch25: %{orgname}-versioning.patch
172 Patch26: %{orgname}-pear.patch
173 Patch27: %{orgname}-config-dir.patch
174 Patch28: %{orgname}-bug-42952.patch
175 Patch29: %{orgname}-fcgi-graceful.patch
176 Patch30: %{orgname}-apr-apu.patch
177 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
178 Patch32: %{orgname}-curl-limit-speed.patch
179 Patch33: %{orgname}-mime_magic.patch
180 Patch34: %{orgname}-libtool.patch
181 Patch35: %{orgname}-tds.patch
182 Patch36: %{orgname}-mysql-charsetphpini.patch
183 Patch37: %{orgname}-mysqli-charsetphpini.patch
184 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
185 Patch39: %{orgname}-use-prog_sendmail.patch
186 Patch40: %{orgname}-fpm.patch
187 Patch41: %{orgname}-fpm-config.patch
188 Patch42: %{orgname}-fpm-initdir.patch
189 Patch43: %{orgname}-silent-session-cleanup.patch
190 Patch44: %{orgname}-include_path.patch
191 Patch45: %{orgname}-imap-annotations.patch
192 Patch46: %{orgname}-imap-myrights.patch
193 Patch47: suhosin.patch
194 Patch49: %{orgname}-m4-divert.patch
195 Patch50: extension-shared-optional-dep.patch
196 Patch51: spl-shared.patch
197 Patch52: %{orgname}-libpng.patch
198 Patch53: %{orgname}-gmp.patch
199 Patch54: fix-test-run.patch
200 Patch55: bug-52078-fileinode.patch
201 Patch56: %{orgname}-krb5.patch
202 Patch57: php-php_dl.patch
203 Patch58: php-svn-281516.patch
204 Patch59: %{orgname}-systzdata.patch
205 Patch60: bug-60986.patch
206 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
207 Patch65: system-libzip.patch
208 Patch66: bug-47930.patch
209 Patch67: php-db.patch
210 Patch68: php-libxml.patch
211 Patch69: bug-50563.patch
212 Patch70: php-crypt-null.patch
213 Patch71: php-apache24.patch
215 # Backport from 5.3.6
216 Patch311: php-5.3.6-bug-47435.patch
217 Patch314: php-5.3.6-39199.patch
219 #Patch333: php-5.3.7-bug-54924.patch
220 Patch355: php-5.3.7-bug-55323.patch
221 # Bug-323016 CVE-2012-0831
222 Patch402: php-5.2.17-bug-323016.patch
223 URL: https://code.google.com/p/php52-backports/
224 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
225 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
226 BuildRequires: autoconf >= 2.53
227 BuildRequires: automake >= 1.4d
229 BuildRequires: bzip2-devel
230 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
231 BuildRequires: cyrus-sasl-devel
232 BuildRequires: db-devel >= 4.0
233 BuildRequires: elfutils-devel
235 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
237 %{?with_fcgi:BuildRequires: fcgi-devel}
238 %{?with_fdf:BuildRequires: fdftk-devel}
240 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
241 BuildRequires: freetds-devel
242 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
244 BuildRequires: freetype-devel >= 2.0
245 %if %{with system_gd}
246 BuildRequires: gd-devel >= 2.0.28-4
247 BuildRequires: gd-devel(imagerotate) = 5.2.0
249 BuildRequires: gdbm-devel
250 BuildRequires: gmp-devel
251 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
252 BuildRequires: libjpeg-devel
253 BuildRequires: libltdl-devel >= 1.4
254 BuildRequires: libmcrypt-devel >= 2.4.4
255 BuildRequires: libpng-devel >= 1.0.8
256 BuildRequires: libtiff-devel
257 %if "%{pld_release}" != "ac"
258 BuildRequires: libtool >= 2:2.2
260 BuildRequires: libtool
262 BuildRequires: libwrap-devel
263 BuildRequires: libxml2-devel >= 1:2.7.6-4
264 BuildRequires: libxslt-devel >= 1.1.0
265 %{?with_mhash:BuildRequires: mhash-devel}
266 %{?with_ming:BuildRequires: ming-devel >= 0.3}
267 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
268 BuildRequires: mysql-devel >= 4.0.0
269 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
270 BuildRequires: ncurses-ext-devel
271 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
272 %if %{with openssl} || %{with ldap}
273 BuildRequires: openssl-devel >= 0.9.7d
275 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
276 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
277 BuildRequires: pam-devel
278 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
279 BuildRequires: pkgconfig
280 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
281 %{?with_pgsql:BuildRequires: postgresql-devel}
282 BuildRequires: readline-devel
283 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
284 BuildRequires: rpm >= 4.4.9-56
285 BuildRequires: rpm-build >= 4.4.0
286 BuildRequires: rpmbuild(macros) >= 1.519
287 %{?with_sqlite:BuildRequires: sqlite-devel}
288 %{?with_sqlite:BuildRequires: sqlite3-devel}
289 BuildRequires: t1lib-devel
290 %{?with_tidy:BuildRequires: tidy-devel}
291 %{?with_odbc:BuildRequires: unixODBC-devel}
292 BuildRequires: zlib-devel >= 1.0.9
294 BuildRequires: apache1-devel
297 BuildRequires: apache-devel >= 2.0.52-2
298 BuildRequires: apr-devel >= 1:1.0.0
299 BuildRequires: apr-util-devel >= 1:1.0.0
302 BuildRequires: judy-devel
303 BuildRequires: libevent-devel >= 1.4.7-3
305 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
307 %define php_sysconfdir /etc/%{name}
308 %define php_extensiondir %{_libdir}/%{name}
309 %define _sysconfdir %{php_sysconfdir}
311 # must be in sync with source. extra check ensuring that it is so is done in %%build
312 %define php_api_version 20041225
313 %define zend_module_api 20060613
314 %define zend_extension_api 220060519
315 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
316 %define php_debug %{!?debug:0}%{?debug:1}
319 # ORACLE_HOME is required for oci8 ext to build
320 %define _preserve_env %_preserve_env_base ORACLE_HOME
324 PHP is an HTML-embedded scripting language. PHP attempts to make it
325 easy for developers to write dynamically generated web pages. PHP also
326 offers built-in database integration for several commercial and
327 non-commercial database management systems, so writing a
328 database-enabled web page with PHP is fairly simple. The most common
329 use of PHP coding is probably as a replacement for CGI scripts. The
330 mod_php module enables the Apache web server to understand and process
331 the embedded PHP language in web pages. This package contains PHP
334 %description -l fr.UTF-8
335 PHP est un langage de script embarque dans le HTM. PHP essaye de
336 rendre simple aux developpeurs d'ecrire des pages web generees
337 dynamiquement. PHP incorpore egalement une integration avec plusieurs
338 systemes de gestion de bases de donnees commerciaux et
339 non-connerciaux, qui rent facile la creation de pages web liees avec
340 des bases de donnees. L'utilisation la plus commune de PHP est
341 probablement en remplacement de scripts CGI. Le module mod_php permet
342 au serveur web Apache de comprendre et de traiter le langage PHP
343 integre dans des pages web. Ce package contient PHP version
346 %description -l pl.UTF-8
347 PHP jest językiem skryptowym, którego polecenia umieszcza się w
348 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
349 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
350 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
351 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
352 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
353 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
354 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
357 %description -l pt_BR.UTF-8
358 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
359 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
360 com algumas características únicas, específicas ao PHP. O objetivo da
361 linguagem é permitir que desenvolvedores web escrevam páginas
362 dinamicamente geradas de forma rápida.
364 %description -l ru.UTF-8
365 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
366 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
367 для работы с базами данных относительно просто. Наиболее популярное
368 использование PHP - замена для CGI скриптов.
370 %description -l uk.UTF-8
371 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
372 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
373 роботи з базами даних є доволі простим. Найбільш популярне
374 використання PHP - заміна для CGI скриптів.
376 %package -n apache1-mod_%{name}
377 Summary: PHP DSO module for Apache 1.3.x
378 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
379 Group: Development/Languages/PHP
380 Requires(triggerpostun): sed >= 4.0
381 Requires: %{name}-common = %{epoch}:%{version}-%{release}
382 Requires: apache1(EAPI) >= 1.3.33-2
383 Requires: apache1-mod_mime
384 Provides: webserver(php) = %{version}
385 Obsoletes: apache-mod_php < 1:4.1.1
388 %description -n apache1-mod_%{name}
389 PHP as DSO module for Apache 1.3.x.
391 %description -n apache1-mod_%{name} -l pl.UTF-8
392 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
394 %package -n apache-mod_%{name}
395 Summary: PHP DSO module for Apache 2.x
396 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
397 Group: Development/Languages/PHP
398 Requires: %{name}-common = %{epoch}:%{version}-%{release}
399 Requires: apache(modules-api) = %{apache_modules_api}
400 Requires: apache-mod_mime
401 Provides: webserver(php) = %{version}
404 %description -n apache-mod_%{name}
405 PHP as DSO module for Apache 2.x.
407 %description -n apache-mod_%{name} -l pl.UTF-8
408 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
411 Summary: php as FastCGI program
412 Summary(pl.UTF-8): php jako program FastCGI
413 Group: Development/Languages/PHP
414 Requires: %{name}-common = %{epoch}:%{version}-%{release}
416 Provides: webserver(php) = %{version}
419 php as FastCGI program.
421 %description fcgi -l pl.UTF-8
422 php jako program FastCGI.
425 Summary: PHP as CGI/FastCGI program
426 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
427 Group: Development/Languages/PHP
428 Requires: %{name}-common = %{epoch}:%{version}-%{release}
430 Provides: webserver(php) = %{version}
431 %if "%{pld_release}" != "ac"
432 Conflicts: logrotate < 3.8.0
438 %description cgi -l pl.UTF-8
439 php jako program CGI.
442 Summary: PHP as CLI interpreter
443 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
444 Group: Development/Languages/PHP
445 Requires: %{name}-common = %{epoch}:%{version}-%{release}
448 PHP as CLI interpreter.
450 %description cli -l pl.UTF-8
451 PHP jako interpreter działający z linii poleceń.
454 Summary: /usr/bin/php symlink
455 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
456 Group: Development/Languages/PHP
457 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
458 Obsoletes: /usr/bin/php
461 Package providing /usr/bin/php symlink to PHP CLI.
463 %description program -l pl.UTF-8
464 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
467 Summary: PHP FastCGI Process Manager
468 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
469 Group: Development/Languages/PHP
470 URL: http://www.php-fpm.org/
471 Requires(post,preun): /sbin/chkconfig
472 Requires(postun): /usr/sbin/userdel
473 Requires(pre): /bin/id
474 Requires(pre): /usr/sbin/useradd
475 Requires: %{name}-common = %{epoch}:%{version}-%{release}
476 Requires: libevent >= 1.4.7-3
479 Provides: webserver(php) = %{version}
482 PHP FastCGI Process Manager.
484 %description fpm -l pl.UTF-8
485 PHP FastCGI Process Manager - zarządca procesów FastCGI.
488 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
489 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
490 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
491 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
493 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
494 Requires: glibc >= 6:2.3.5
495 Requires: php-dirs >= 1.4
496 Requires: rpm-whiteout >= 1.28
498 Provides: %{name}(debug) = %{php_debug}
499 Provides: %{name}(modules_api) = %{php_api_version}
500 Provides: %{name}(thread-safety) = %{zend_zts}
501 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
502 Provides: %{name}(zend_module_api) = %{zend_module_api}
503 Provides: %{name}-core
504 Provides: %{name}-date
505 Provides: %{name}-ereg
506 %{?with_zend_multibyte:Provides: %{name}-mbstring = %{epoch}:%{version}-%{release}}
507 Provides: %{name}-overload
508 Provides: %{name}-reflection
509 Provides: %{name}-standard
510 Provides: php(core) = %{version}
513 Provides: php(libxml)
514 %{?with_zend_multibyte:Provides: php(mbstring)}
515 Provides: php(modules_api) = %{php_api_version}
516 Provides: php(overload)
517 Provides: php(reflection)
518 Provides: php(standard)
519 # ensure backward compatibility for Titanium
520 # to be dropped in future but ask Titanium RM before doing so
521 %if "%{pld_release}" == "ti"
522 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
523 Requires: %{name}-session = %{epoch}:%{version}-%{release}
524 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
526 %if "%{pld_release}" == "ac"
527 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
528 Requires: %{name}-session = %{epoch}:%{version}-%{release}
529 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
531 %{!?with_mysqlnd:Obsoletes: php-mysqlnd}
532 %{?with_pcre:%requires_ge_to pcre pcre-devel}
533 Obsoletes: php-pecl-domxml
534 Conflicts: php-pecl-memcache < 3.0.4-2
535 Conflicts: php4-common < 3:4.4.4-8
536 Conflicts: rpm < 4.4.2-0.2
539 Common files needed by both Apache modules and CGI/CLI SAPI-s.
541 %description common -l pl.UTF-8
542 Wspólne pliki dla modułu Apache'a i programu CGI.
544 %description common -l ru.UTF-8
545 Этот пакет содержит общие файлы для разных вариантов реализации PHP
546 (самодостаточной и в качестве модуля Apache).
548 %description common -l uk.UTF-8
549 Цей пакет містить спільні файли для різних варіантів реалізації PHP
550 (самодостатньої та в якості модуля Apache).
553 Summary: Files for PHP modules development
554 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
555 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
556 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
557 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
558 Group: Development/Languages/PHP
559 Requires: %{name}-common = %{epoch}:%{version}-%{release}
562 %if "%{pld_release}" != "ac"
563 Requires: libtool >= 2:2.2
567 %{?with_pcre:Requires: pcre-devel >= 6.6}
570 Obsoletes: php-pear-devel
571 Obsoletes: php4-devel
572 Obsoletes: php53-devel
573 Obsoletes: php54-devel
576 The php-devel package lets you compile dynamic extensions to PHP.
577 Included here is the source for the PHP extensions. Instead of
578 recompiling the whole PHP binary to add support for, say, oracle,
579 install this package and use the new self-contained extensions
580 support. For more information, read the file
581 README.SELF-CONTAINED-EXTENSIONS.
583 %description devel -l pl.UTF-8
584 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
585 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
586 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
587 samodzielnych rozszerzeniach można znaleźć w pliku
588 README.SELF-CONTAINED-EXTENSIONS.
590 %description devel -l pt_BR.UTF-8
591 Este pacote contém arquivos usados no desenvolvimento de programas ou
594 %description devel -l ru.UTF-8
595 Пакет php-devel дает возможность компилировать динамические расширения
596 PHP. Пакет включает исходный код этих расширений. Вместо повторной
597 компиляции бинарного файла PHP для добавления, например, поддержки
598 oracle, установите этот пакет для компилирования отдельных расширений.
599 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
601 %description devel -l uk.UTF-8
602 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
603 До пакету включено вихідний код для розширень. Замість повторної
604 компіляції бінарного файлу PHP для додання, наприклад, підтримки
605 oracle, встановіть цей пакет для компіляції окремих розширень.
606 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
609 Summary: bcmath extension module for PHP
610 Summary(pl.UTF-8): Moduł bcmath dla PHP
612 URL: http://www.php.net/manual/en/book.bc.php
613 Requires: %{name}-common = %{epoch}:%{version}-%{release}
614 Provides: php(bcmath)
617 This is a dynamic shared object (DSO) for PHP that will add bc style
618 precision math functions support.
620 %description bcmath -l pl.UTF-8
621 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
622 matematycznych takich jak w programie bc.
625 Summary: Bzip2 extension module for PHP
626 Summary(pl.UTF-8): Moduł bzip2 dla PHP
628 URL: http://www.php.net/manual/en/book.bzip2.php
629 Requires: %{name}-common = %{epoch}:%{version}-%{release}
630 Provides: %{name}-bzip2 = %{epoch}:%{version}-%{release}
636 This is a dynamic shared object (DSO) for PHP that will add bzip2
637 compression support to PHP.
639 %description bz2 -l pl.UTF-8
640 Moduł PHP umożliwiający używanie kompresji bzip2.
643 Summary: Calendar extension module for PHP
644 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
646 URL: http://www.php.net/manual/en/book.calendar.php
647 Requires: %{name}-common = %{epoch}:%{version}-%{release}
648 Provides: php(calendar)
650 %description calendar
651 This is a dynamic shared object (DSO) for PHP that will add calendar
654 %description calendar -l pl.UTF-8
655 Moduł PHP dodający wsparcie dla kalendarza.
658 Summary: ctype extension module for PHP
659 Summary(pl.UTF-8): Moduł ctype dla PHP
661 URL: http://www.php.net/manual/en/book.ctype.php
662 Requires: %{name}-common = %{epoch}:%{version}-%{release}
666 This is a dynamic shared object (DSO) for PHP that will add ctype
669 %description ctype -l pl.UTF-8
670 Moduł PHP umożliwiający korzystanie z funkcji ctype.
673 Summary: curl extension module for PHP
674 Summary(pl.UTF-8): Moduł curl dla PHP
676 URL: http://www.php.net/manual/en/book.curl.php
677 Requires: %{name}-common = %{epoch}:%{version}-%{release}
681 This is a dynamic shared object (DSO) for PHP that will add curl
684 %description curl -l pl.UTF-8
685 Moduł PHP umożliwiający korzystanie z biblioteki curl.
688 Summary: DBA extension module for PHP
689 Summary(pl.UTF-8): Moduł DBA dla PHP
691 URL: http://www.php.net/manual/en/book.dba.php
692 Requires: %{name}-common = %{epoch}:%{version}-%{release}
696 This is a dynamic shared object (DSO) for PHP that will add flat-file
697 databases (DBA) support.
699 %description dba -l pl.UTF-8
700 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
704 Summary: DBase extension module for PHP
705 Summary(pl.UTF-8): Moduł DBase dla PHP
707 Requires: %{name}-common = %{epoch}:%{version}-%{release}
711 This is a dynamic shared object (DSO) for PHP that will add DBase
714 %description dbase -l pl.UTF-8
715 Moduł PHP ze wsparciem dla DBase.
718 Summary: DOM extension module for PHP
719 Summary(pl.UTF-8): Moduł DOM dla PHP
721 URL: http://www.php.net/manual/en/book.dom.php
722 Requires: %{name}-common = %{epoch}:%{version}-%{release}
724 # it has some compatibility functions
725 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
726 Provides: php(domxml)
727 Obsoletes: php-domxml <= 3:4.3.8-1
730 This is a dynamic shared object (DSO) for PHP that will add new DOM
733 %description dom -l pl.UTF-8
734 Moduł PHP dodający nową obsługę DOM.
737 Summary: exif extension module for PHP
738 Summary(pl.UTF-8): Moduł exif dla PHP
740 URL: http://www.php.net/manual/en/book.exif.php
741 Requires: %{name}-common = %{epoch}:%{version}-%{release}
745 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
746 support in image files.
748 %description exif -l pl.UTF-8
749 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
752 Summary: FDF extension module for PHP
753 Summary(pl.UTF-8): Moduł FDF dla PHP
755 URL: http://www.php.net/manual/en/book.fdf.php
756 Requires: %{name}-common = %{epoch}:%{version}-%{release}
760 This PHP module adds support for PDF Forms through Adobe FDFTK
763 %description fdf -l pl.UTF-8
764 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
768 Summary: Extension for safely dealing with input parameters
769 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
771 URL: http://www.php.net/manual/en/book.filter.php
772 Requires: %{name}-common = %{epoch}:%{version}-%{release}
773 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
774 Provides: php(filter)
775 Obsoletes: php-pecl-filter
778 We all know that you should always check input variables, but PHP does
779 not offer really good functionality for doing this in a safe way. The
780 Input Filter extension is meant to address this issue by implementing
781 a set of filters and mechanisms that users can use to safely access
784 %description filter -l pl.UTF-8
785 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
786 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
787 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
788 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
789 mogą bezpiecznie używać do dostępu do danych.
792 Summary: FTP extension module for PHP
793 Summary(pl.UTF-8): Moduł FTP dla PHP
795 URL: http://www.php.net/manual/en/book.ftp.php
796 Requires: %{name}-common = %{epoch}:%{version}-%{release}
800 This is a dynamic shared object (DSO) for PHP that will add FTP
803 %description ftp -l pl.UTF-8
804 Moduł PHP dodający obsługę protokołu FTP.
807 Summary: GD extension module for PHP
808 Summary(pl.UTF-8): Moduł GD dla PHP
810 URL: http://www.php.net/manual/en/book.image.php
811 Requires: %{name}-common = %{epoch}:%{version}-%{release}
812 %if %{with system_gd}
813 Requires: gd >= 2.0.28-4
815 Requires: gd(imagerotate) = 5.2.0
820 This is a dynamic shared object (DSO) for PHP that will add GD
821 support, allowing you to create and manipulate images with PHP.
823 %description gd -l pl.UTF-8
824 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
825 tworzenie i obróbkę obrazków.
828 Summary: gettext extension module for PHP
829 Summary(pl.UTF-8): Moduł gettext dla PHP
831 URL: http://www.php.net/manual/en/book.gettext.php
832 Requires: %{name}-common = %{epoch}:%{version}-%{release}
833 Provides: php(gettext)
836 This is a dynamic shared object (DSO) for PHP that will add gettext
839 %description gettext -l pl.UTF-8
840 Moduł PHP dodający obsługę lokalizacji przez gettext.
843 Summary: gmp extension module for PHP
844 Summary(pl.UTF-8): Moduł gmp dla PHP
846 URL: http://www.php.net/manual/en/book.gmp.php
847 Requires: %{name}-common = %{epoch}:%{version}-%{release}
851 This is a dynamic shared object (DSO) for PHP that will add arbitrary
852 length number support with GNU MP library.
854 %description gmp -l pl.UTF-8
855 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
856 liczbach o dowolnej długości.
859 Summary: HASH Message Digest Framework
860 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
862 URL: http://www.php.net/manual/en/book.gmp.php
863 Requires: %{name}-common = %{epoch}:%{version}-%{release}
865 Obsoletes: php-pecl-hash
868 Native implementations of common message digest algorithms using a
869 generic factory method.
871 %description hash -l pl.UTF-8
872 Natywne implementacje popularnych algorytmów obliczania skrótów
873 wiadomości przy użyciu wspólnego interfejsu.
876 Summary: iconv extension module for PHP
877 Summary(pl.UTF-8): Moduł iconv dla PHP
879 URL: http://www.php.net/manual/en/book.iconv.php
880 Requires: %{_libdir}/gconv
881 Requires: %{name}-common = %{epoch}:%{version}-%{release}
886 This is a dynamic shared object (DSO) for PHP that will add iconv
889 %description iconv -l pl.UTF-8
890 Moduł PHP dodający obsługę iconv.
893 Summary: IMAP extension module for PHP
894 Summary(pl.UTF-8): Moduł IMAP dla PHP
895 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
897 URL: http://www.php.net/manual/en/book.imap.php
898 Requires: %{name}-common = %{epoch}:%{version}-%{release}
902 This is a dynamic shared object (DSO) for PHP that will add IMAP
905 %description imap -l pl.UTF-8
906 Moduł PHP dodający obsługę skrzynek IMAP.
908 %description imap -l pt_BR.UTF-8
909 Um módulo para aplicações PHP que usam IMAP.
912 Summary: InterBase/Firebird database module for PHP
913 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
915 URL: http://www.php.net/manual/en/book.ibase.php
916 Requires: %{name}-common = %{epoch}:%{version}-%{release}
917 Provides: php(interbase)
918 %{?with_interbase_inst:Autoreq: false}
920 %description interbase
921 This is a dynamic shared object (DSO) for PHP that will add InterBase
922 and Firebird database support.
924 %description interbase -l pl.UTF-8
925 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
928 Summary: PHP C extension for JSON serialization
929 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
931 URL: http://www.php.net/manual/en/book.json.php
932 Requires: %{name}-common = %{epoch}:%{version}-%{release}
934 Obsoletes: php-pecl-json
937 php-json is an extremely fast PHP C extension for JSON (JavaScript
938 Object Notation) serialisation.
940 %description json -l pl.UTF-8
941 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
942 (JavaScript Object Notation).
945 Summary: LDAP extension module for PHP
946 Summary(pl.UTF-8): Moduł LDAP dla PHP
947 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
949 URL: http://www.php.net/manual/en/book.ldap.php
950 Requires: %{name}-common = %{epoch}:%{version}-%{release}
954 This is a dynamic shared object (DSO) for PHP that will add LDAP
957 %description ldap -l pl.UTF-8
958 Moduł PHP dodający obsługę LDAP.
960 %description ldap -l pt_BR.UTF-8
961 Um módulo para aplicações PHP que usam LDAP.
964 Summary: mbstring extension module for PHP
965 Summary(pl.UTF-8): Moduł mbstring dla PHP
967 URL: http://www.php.net/manual/en/book.mbstring.php
968 Requires: %{name}-common = %{epoch}:%{version}-%{release}
969 Provides: php(mbstring)
971 %description mbstring
972 This is a dynamic shared object (DSO) for PHP that will add multibyte
975 %description mbstring -l pl.UTF-8
976 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
979 Summary: mcrypt extension module for PHP
980 Summary(pl.UTF-8): Moduł mcrypt dla PHP
982 URL: http://www.php.net/manual/en/book.mcrypt.php
983 Requires: %{name}-common = %{epoch}:%{version}-%{release}
984 Provides: php(mcrypt)
987 This is a dynamic shared object (DSO) for PHP that will add mcrypt
990 %description mcrypt -l pl.UTF-8
991 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
994 Summary: mhash extension module for PHP
995 Summary(pl.UTF-8): Moduł mhash dla PHP
997 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1001 This is a dynamic shared object (DSO) for PHP that will add mhash
1004 %description mhash -l pl.UTF-8
1005 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1008 Summary: mime_magic extension module for PHP
1009 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1011 Requires: %{magic_mime}
1012 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1013 Provides: php(mime_magic)
1015 %description mime_magic
1016 This PHP module adds support for MIME type lookup via file magic
1017 numbers using magic.mime database.
1019 %description mime_magic -l pl.UTF-8
1020 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1021 znaczników plików z użyciem bazy danych magic.mime.
1024 Summary: ming extension module for PHP
1025 Summary(pl.UTF-8): Moduł ming dla PHP
1027 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1028 Requires: ming >= 0.3
1032 This is a dynamic shared object (DSO) for PHP that will add ming
1033 (Flash - .swf files) support.
1035 %description ming -l pl.UTF-8
1036 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1040 Summary: MS SQL extension module for PHP
1041 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1043 URL: http://www.php.net/manual/en/book.mssql.php
1044 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1045 Provides: php(mssql)
1048 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1049 databases support through FreeTDS library.
1051 %description mssql -l pl.UTF-8
1052 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1056 Summary: MySQL database module for PHP
1057 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1058 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1060 URL: http://www.php.net/manual/en/book.mysql.php
1061 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1062 Provides: php(mysql)
1065 This is a dynamic shared object (DSO) for PHP that will add MySQL
1068 %description mysql -l pl.UTF-8
1069 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1071 %description mysql -l pt_BR.UTF-8
1072 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1075 Summary: MySQLi module for PHP
1076 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1078 URL: http://www.php.net/manual/en/book.mysqli.php
1079 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1080 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1081 Requires: mysql-libs >= 4.1.0
1082 Provides: php(mysqli)
1085 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1086 (Improved MySQL) support. The difference between it and mysql module
1087 is that it provides access to functionality of MySQL 4.1 and above.
1089 %description mysqli -l pl.UTF-8
1090 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1091 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1092 MySQL w wersji 4.1 i nowszych.
1095 Summary: ncurses module for PHP
1096 Summary(pl.UTF-8): Moduł ncurses dla PHP
1098 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1099 Provides: php(ncurses)
1101 %description ncurses
1102 This PHP module adds support for ncurses functions (only for cli and
1105 %description ncurses -l pl.UTF-8
1106 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1109 Summary: Oracle 8+ database module for PHP
1110 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1112 URL: http://www.php.net/manual/en/book.oci8.php
1113 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1118 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1119 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1121 %description oci8 -l pl.UTF-8
1122 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1123 poprzez interfejs Oracle8 Call-Interface (OCI8).
1126 Summary: ODBC extension module for PHP
1127 Summary(pl.UTF-8): Moduł ODBC dla PHP
1128 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1130 URL: http://www.php.net/manual/en/book.uodbc.php
1131 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1132 Requires: unixODBC >= 2.1.1-3
1136 This is a dynamic shared object (DSO) for PHP that will add ODBC
1139 %description odbc -l pl.UTF-8
1140 Moduł PHP ze wsparciem dla ODBC.
1142 %description odbc -l pt_BR.UTF-8
1143 Um módulo para aplicações PHP que usam ODBC.
1146 Summary: OpenSSL extension module for PHP
1147 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1149 URL: http://www.php.net/manual/en/book.openssl.php
1150 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1151 Provides: php(openssl)
1153 %description openssl
1154 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1157 %description openssl -l pl.UTF-8
1158 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1161 Summary: Process Control extension module for PHP
1162 Summary(pl.UTF-8): Moduł Process Control dla PHP
1164 URL: http://www.php.net/manual/en/book.pcntl.php
1165 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1166 Provides: php(pcntl)
1169 This is a dynamic shared object (DSO) for PHP that will add process
1170 spawning and control support. It supports functions like fork(),
1171 waitpid(), signal() etc.
1173 %description pcntl -l pl.UTF-8
1174 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1175 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1178 Summary: PCRE extension module for PHP
1179 Summary(pl.UTF-8): Moduł PCRE dla PHP
1181 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1185 This is a dynamic shared object (DSO) for PHP that will add Perl
1186 Compatible Regular Expression support.
1188 %description pcre -l pl.UTF-8
1189 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1190 (Perl Compatible Regular Expressions)
1193 Summary: PHP Data Objects (PDO)
1194 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1196 URL: http://www.php.net/manual/en/book.pdo.php
1197 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1198 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1200 Obsoletes: php-pecl-PDO
1203 This is a dynamic shared object (DSO) for PHP that will add PDO
1206 %description pdo -l pl.UTF-8
1207 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1210 Summary: PHP Data Objects (PDO) FreeTDS support
1211 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1213 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1214 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1215 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1216 Provides: php(dblib)
1218 %description pdo-dblib
1219 This is a dynamic shared object (DSO) for PHP that will add PDO
1222 %description pdo-dblib -l pl.UTF-8
1223 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1226 %package pdo-firebird
1227 Summary: PHP Data Objects (PDO) Firebird support
1228 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1230 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1231 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1232 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1233 Provides: php(pdo-firebird)
1234 Obsoletes: php-pecl-PDO_FIREBIRD
1236 %description pdo-firebird
1237 This is a dynamic shared object (DSO) for PHP that will add PDO
1240 %description pdo-firebird -l pl.UTF-8
1241 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1245 Summary: PHP Data Objects (PDO) MySQL support
1246 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1248 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1249 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1250 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1251 Provides: php(pdo-mysql)
1252 Obsoletes: php-pecl-PDO_MYSQL
1254 %description pdo-mysql
1255 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1258 %description pdo-mysql -l pl.UTF-8
1259 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1263 Summary: PHP Data Objects (PDO) Oracle support
1264 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1266 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1267 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1268 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1269 Provides: php(pdo-oci)
1270 Obsoletes: php-pecl-PDO_OCI
1272 %description pdo-oci
1273 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1276 %description pdo-oci -l pl.UTF-8
1277 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1281 Summary: PHP Data Objects (PDO) ODBC support
1282 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1284 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1285 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1286 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1287 Provides: php(pdo-odbc)
1288 Obsoletes: php-pecl-PDO_ODBC
1290 %description pdo-odbc
1291 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1294 %description pdo-odbc -l pl.UTF-8
1295 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1299 Summary: PHP Data Objects (PDO) PostgreSQL support
1300 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1302 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1303 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1304 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1305 Provides: php(pdo-pgsql)
1306 Provides: php-pecl-PDO_PGSQL
1307 Obsoletes: php-pecl-PDO_PGSQL
1309 %description pdo-pgsql
1310 This is a dynamic shared object (DSO) for PHP that will add PDO
1313 %description pdo-pgsql -l pl.UTF-8
1314 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1318 Summary: PHP Data Objects (PDO) SQLite support
1319 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1321 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1322 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1323 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1324 Provides: php(pdo-sqlite)
1325 Obsoletes: php-pecl-PDO_SQLITE
1327 %description pdo-sqlite
1328 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1331 %description pdo-sqlite -l pl.UTF-8
1332 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1336 Summary: PostgreSQL database module for PHP
1337 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1339 URL: http://www.php.net/manual/en/book.pgsql.php
1340 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1341 Provides: php(pgsql)
1344 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1347 %description pgsql -l pl.UTF-8
1348 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1350 %description pgsql -l pt_BR.UTF-8
1351 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1354 Summary: POSIX extension module for PHP
1355 Summary(pl.UTF-8): Moduł POSIX dla PHP
1357 URL: http://www.php.net/manual/en/book.posix.php
1358 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1359 Provides: php(posix)
1362 This is a dynamic shared object (DSO) for PHP that will add POSIX
1363 functions support to PHP.
1365 %description posix -l pl.UTF-8
1366 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1369 Summary: pspell extension module for PHP
1370 Summary(pl.UTF-8): Moduł pspell dla PHP
1372 URL: http://www.php.net/manual/en/book.pspell.php
1373 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1374 Provides: php(pspell)
1377 This is a dynamic shared object (DSO) for PHP that will add pspell
1378 support to PHP. It allows to check the spelling of a word and offer
1381 %description pspell -l pl.UTF-8
1382 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1383 sprawdzanie pisowni słowa i sugerowanie poprawek.
1386 Summary: readline extension module for PHP
1387 Summary(pl.UTF-8): Moduł readline dla PHP
1389 URL: http://www.php.net/manual/en/book.readline.php
1390 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1391 Provides: php(readline)
1393 %description readline
1394 This PHP module adds support for readline functions (only for cli and
1397 %description readline -l pl.UTF-8
1398 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1401 Summary: recode extension module for PHP
1402 Summary(pl.UTF-8): Moduł recode dla PHP
1404 URL: http://www.php.net/manual/en/book.recode.php
1405 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1406 Requires: recode >= 3.5d-3
1407 Provides: php(recode)
1410 This is a dynamic shared object (DSO) for PHP that will add recode
1413 %description recode -l pl.UTF-8
1414 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1418 Summary: session extension module for PHP
1419 Summary(pl.UTF-8): Moduł session dla PHP
1421 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1422 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1423 Provides: php(session)
1425 %description session
1426 This is a dynamic shared object (DSO) for PHP that will add session
1429 %description session -l pl.UTF-8
1430 Moduł PHP dodający obsługę sesji.
1433 Summary: Shared Memory Operations extension module for PHP
1434 Summary(pl.UTF-8): Moduł shmop dla PHP
1436 URL: http://www.php.net/manual/en/book.shmop.php
1437 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1438 Provides: php(shmop)
1441 This is a dynamic shared object (DSO) for PHP that will add Shared
1442 Memory Operations support.
1444 %description shmop -l pl.UTF-8
1445 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1448 Summary: Simple XML extension module for PHP
1449 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1451 URL: http://www.php.net/manual/en/book.simplexml.php
1452 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1453 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1454 Provides: php(simplexml)
1456 %description simplexml
1457 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1460 %description simplexml -l pl.UTF-8
1461 Moduł PHP dodający obsługę prostego XML-a.
1464 Summary: SNMP extension module for PHP
1465 Summary(pl.UTF-8): Moduł SNMP dla PHP
1467 URL: http://www.php.net/manual/en/book.snmp.php
1468 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1469 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1473 This is a dynamic shared object (DSO) for PHP that will add SNMP
1476 %description snmp -l pl.UTF-8
1477 Moduł PHP dodający obsługę SNMP.
1480 Summary: soap extension module for PHP
1481 Summary(pl.UTF-8): Moduł soap dla PHP
1483 URL: http://www.php.net/manual/en/book.soap.php
1484 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1488 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1491 %description soap -l pl.UTF-8
1492 Moduł PHP dodający obsługę SOAP/WSDL.
1495 Summary: sockets extension module for PHP
1496 Summary(pl.UTF-8): Moduł socket dla PHP
1498 URL: http://www.php.net/manual/en/book.sockets.php
1499 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1500 Provides: php(sockets)
1502 %description sockets
1503 This is a dynamic shared object (DSO) for PHP that will add sockets
1506 %description sockets -l pl.UTF-8
1507 Moduł PHP dodający obsługę gniazdek.
1510 Summary: Standard PHP Library module for PHP
1511 Summary(pl.UTF-8): Moduł SPL dla PHP
1513 URL: http://php.net/manual/en/book.spl.php
1514 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1515 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1516 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1520 This is a dynamic shared object (DSO) for PHP that will add Standard
1521 PHP Library support.
1523 %description spl -l pl.UTF-8
1524 Moduł PHP dodający obsługę gniazdek.
1527 Summary: SQLite extension module for PHP
1528 Summary(pl.UTF-8): Moduł SQLite dla PHP
1530 URL: http://www.php.net/manual/en/book.sqlite.php
1531 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1532 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1533 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1534 Provides: php(sqlite)
1537 SQLite is a C library that implements an embeddable SQL database
1538 engine. Programs that link with the SQLite library can have SQL
1539 database access without running a separate RDBMS process.
1541 SQLite is not a client library used to connect to a big database
1542 server. SQLite is the server. The SQLite library reads and writes
1543 directly to and from the database files on disk.
1545 %description sqlite -l pl.UTF-8
1546 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1547 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1548 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1551 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1552 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1553 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1557 Summary: Sybase DB extension module for PHP
1558 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1560 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1561 Provides: php(sybase)
1562 Obsoletes: php-sybase-ct
1563 Conflicts: php-sybase-ct
1566 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1567 MS SQL databases support through SYBDB library. Currently Sybase
1568 module is not maintained. Using Sybase-CT module is recommended
1571 %description sybase -l pl.UTF-8
1572 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1573 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1574 Zaleca się używanie modułu Sybase-CT.
1577 Summary: Sybase-CT extension module for PHP
1578 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1580 URL: http://www.php.net/manual/en/book.sybase.php
1581 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1582 Provides: php(sybase-ct)
1583 Obsoletes: php-sybase
1584 Conflicts: php-sybase
1586 %description sybase-ct
1587 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1588 MS SQL databases support through CT-lib.
1590 %description sybase-ct -l pl.UTF-8
1591 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1595 Summary: SysV msg extension module for PHP
1596 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1598 URL: http://www.php.net/manual/en/book.sem.php
1599 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1600 Provides: php(sysvmsg)
1602 %description sysvmsg
1603 This is a dynamic shared object (DSO) for PHP that will add SysV
1604 message queues support.
1606 %description sysvmsg -l pl.UTF-8
1607 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1610 Summary: SysV sem extension module for PHP
1611 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1613 URL: http://www.php.net/manual/en/book.sem.php
1614 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1615 Provides: php(sysvsem)
1617 %description sysvsem
1618 This is a dynamic shared object (DSO) for PHP that will add SysV
1621 %description sysvsem -l pl.UTF-8
1622 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1625 Summary: SysV shm extension module for PHP
1626 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1628 URL: http://www.php.net/manual/en/book.shmop.php
1629 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1630 Provides: php(sysvshm)
1632 %description sysvshm
1633 This is a dynamic shared object (DSO) for PHP that will add SysV
1634 Shared Memory support.
1636 %description sysvshm -l pl.UTF-8
1637 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1640 Summary: Contains unit test files for PHP and extensions
1641 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1643 URL: http://qa.php.net/
1644 Requires: %{name}-cli
1647 This package contains unit tests for PHP and it's extensions.
1649 %description tests -l pl.UTF-8
1650 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1653 Summary: Tidy extension module for PHP
1654 Summary(pl.UTF-8): Moduł Tidy dla PHP
1656 URL: http://www.php.net/manual/en/book.tidy.php
1657 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1662 This is a dynamic shared object (DSO) for PHP that will add Tidy
1665 %description tidy -l pl.UTF-8
1666 Moduł PHP umożliwiający korzystanie z tidy.
1669 Summary: tokenizer extension module for PHP
1670 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1672 URL: http://www.php.net/manual/en/book.tokenizer.php
1673 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1674 Provides: php(tokenizer)
1676 %description tokenizer
1677 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1680 %description tokenizer -l pl.UTF-8
1681 Moduł PHP dodający obsługę tokenizera do PHP.
1684 Summary: wddx extension module for PHP
1685 Summary(pl.UTF-8): Moduł wddx dla PHP
1687 URL: http://www.php.net/manual/en/book.wddx.php
1688 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1689 # - wddx doesn't require session as it's disabled at compile time:
1690 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1691 # see also php.spec#rev1.120.2.22
1692 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1693 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1697 This is a dynamic shared object (DSO) for PHP that will add wddx
1700 %description wddx -l pl.UTF-8
1701 Moduł PHP umożliwiający korzystanie z wddx.
1704 Summary: XML extension module for PHP
1705 Summary(pl.UTF-8): Moduł XML dla PHP
1707 URL: http://www.php.net/manual/en/book.xml.php
1708 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1712 This is a dynamic shared object (DSO) for PHP that will add XML
1713 support. This extension lets you create XML parsers and then define
1714 handlers for different XML events.
1716 %description xml -l pl.UTF-8
1717 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1718 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1719 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1722 Summary: XML Reader extension module for PHP
1723 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1725 URL: http://www.php.net/manual/en/book.xmlreader.php
1726 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1727 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1728 Provides: php(xmlreader)
1730 %description xmlreader
1731 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1732 support. The XMLReader extension is an XML Pull parser. The reader
1733 acts as a cursor going forward on the document stream and stopping at
1734 each node on the way.
1736 %description xmlreader -l pl.UTF-8
1737 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1738 działa jako kursor przechodzący przez strumień dokumentu i
1739 zatrzymujący się na każdym węźle po drodze.
1742 Summary: xmlrpc extension module for PHP
1743 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1745 URL: http://www.php.net/manual/en/book.xmlrpc.php
1746 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1747 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1748 Provides: php(xmlrpc)
1751 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1754 %description xmlrpc -l pl.UTF-8
1755 Moduł PHP dodający obsługę XMLRPC.
1758 Summary: Fast, non-cached, forward-only means to write XML data
1759 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1761 URL: http://www.php.net/manual/en/book.xmlwriter.php
1762 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1763 Provides: php(xmlwriter)
1764 Obsoletes: php-pecl-xmlwriter
1766 %description xmlwriter
1767 This extension wraps the libxml xmlWriter API. Represents a writer
1768 that provides a non-cached, forward-only means of generating streams
1769 or files containing XML data.
1771 %description xmlwriter -l pl.UTF-8
1772 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1773 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1774 plików zawierających dane XML.
1777 Summary: xsl extension module for PHP
1778 Summary(pl.UTF-8): Moduł xsl dla PHP
1780 URL: http://www.php.net/manual/en/book.xsl.php
1781 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1782 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1783 Requires: libxslt >= 1.0.18
1784 # actually not true, functionality is similar, but API differs
1786 Obsoletes: php-xslt <= 3:4.3.8-1
1789 This is a dynamic shared object (DSO) for PHP that will add new XSL
1790 support (using libxslt).
1792 %description xsl -l pl.UTF-8
1793 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1796 Summary: Zip management extension
1797 Summary(pl.UTF-8): Zarządzanie archiwami zip
1799 URL: http://www.php.net/manual/en/book.zip.php
1800 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1801 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1803 Obsoletes: php-pecl-zip
1806 Zip is an extension to create, modify and read zip files.
1808 %description zip -l pl.UTF-8
1809 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1810 odczyt archiwów zip.
1813 Summary: Zlib extension module for PHP
1814 Summary(pl.UTF-8): Moduł zlib dla PHP
1816 URL: http://www.php.net/manual/en/book.zlib.php
1817 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1821 This is a dynamic shared object (DSO) for PHP that will add zlib
1822 compression support to PHP.
1824 %description zlib -l pl.UTF-8
1825 Moduł PHP umożliwiający używanie kompresji zlib.
1828 %setup -q -n %{orgname}-%{version}
1831 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1844 cp php.ini-dist php.ini
1846 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1856 %if %{with system_gd}
1865 %{?with_versioning:%patch25 -p1}
1868 %{__tar} jxf %{SOURCE9}
1869 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1870 mv $v/$v gentoo-patchset
1871 for a in gentoo-patchset/*.patch; do
1884 %if "%{pld_release}" != "ac"
1889 # mysql default charset for mysql/mysql/pdo-mysql extensions
1921 %{?with_system_libzip:%patch65 -p1}
1929 # Bugfix backport from 5.3.6
1930 %patch311 -p1 -b .bug-47435
1931 %patch314 -p1 -b .bug-39199
1932 # Bugfix backport from 5.3.7
1933 #accert %patch333 -p1 -b .bug-54924
1934 #soap %patch355 -p1 -b .bug-55323
1935 # causes regression -> magic_quotes_gpc setting cannot be changed
1936 #%%patch402 -p1 -b .bug-323016
1938 # conflict seems to be resolved by recode patches
1939 rm -f ext/recode/config9.m4
1941 # remove all bundled libraries not to link with them accidentally
1942 #rm -rf ext/sqlite/libsqlite
1943 #rm -rf ext/bcmath/libbcmath
1944 #rm -rf ext/date/lib
1945 #rm -rf ext/dba/libcdb
1946 #rm -rf ext/dba/libflatfile
1947 #rm -rf ext/dba/libinifile
1948 #rm -rf ext/gd/libgd
1949 #rm -rf ext/mbstring/libmbfl
1950 #rm -rf ext/mbstring/oniguruma
1951 rm -rf ext/pcre/pcrelib
1952 rm -rf ext/pdo_sqlite/sqlite
1953 #rm -rf ext/soap/interop
1954 %if %{with system_xmlrpc_epi}
1955 rm -rf ext/xmlrpc/libxmlrpc
1959 # this test hungs on ac-ppc
1960 #mv ext/reflection/tests/007.php{,ignore}
1961 # this test gets killed by itself
1962 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1965 cp -af Zend/LICENSE{,.Zend}
1966 install -p %{SOURCE13} dep-tests.sh
1968 # disable broken tests
1969 # says just "Terminated" twice and fails
1970 mv sapi/cli/tests/022.phpt{,.broken}
1972 sh -xe %{_sourcedir}/skip-tests.sh
1975 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1976 if [ $API != %{php_api_version} ]; then
1977 echo "Set %%define php_api_version to $API and re-run."
1981 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1982 if [ $API != %{zend_module_api} ]; then
1983 echo "Set %%define zend_module_api to $API and re-run."
1987 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1988 if [ $API != %{zend_extension_api} ]; then
1989 echo "Set %%define zend_extension_api to $API and re-run."
1993 export EXTENSION_DIR="%{php_extensiondir}"
1994 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1995 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1998 cp -f /usr/share/automake/config.* .
2002 export PROG_SENDMAIL="/usr/lib/sendmail"
2019 for sapi in $sapis; do
2021 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2026 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2029 sapi_args='--disable-cgi'
2032 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2035 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2038 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2039 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2042 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2043 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2048 FORCE_APACHE_VERSION="${apache_ver}" \
2050 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2051 --cache-file=config.cache \
2053 --with-libdir=%{_lib} \
2054 --with-config-file-path=%{_sysconfdir} \
2055 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2056 --with-exec-dir=%{_bindir} \
2057 --with-system-tzdata \
2058 --%{!?debug:dis}%{?debug:en}able-debug \
2059 %{?with_zts:--enable-maintainer-zts} \
2060 %{?with_suhosin:--enable-suhosin} \
2061 %{?with_zend_multibyte:--enable-zend-multibyte} \
2062 --enable-inline-optimization \
2063 --enable-bcmath=shared \
2064 --enable-calendar=shared \
2065 --enable-ctype=shared \
2066 --enable-dba=shared \
2067 --enable-dom=shared \
2068 --enable-exif=shared \
2069 --enable-ftp=shared \
2070 --enable-gd-native-ttf \
2071 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2073 --enable-magic-quotes \
2074 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2076 --enable-pcntl=shared \
2077 --enable-pdo=shared \
2078 --enable-json=shared \
2079 --enable-hash=shared \
2080 --enable-xmlwriter=shared \
2082 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2083 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2084 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2086 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2087 --with-pdo-dblib=shared \
2089 %if %{with interbase} && !%{with interbase_inst}
2090 --with-pdo-firebird=shared,/usr \
2092 --with-pdo-mysql=shared \
2093 %{?with_oci8:--with-pdo-oci=shared} \
2094 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2095 %{?with_pgsql:--with-pdo-pgsql=shared} \
2096 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2097 --enable-posix=shared \
2098 --enable-reflection \
2100 --enable-session=shared \
2101 --enable-shmop=shared \
2102 --enable-simplexml=shared \
2103 --enable-spl=shared \
2104 --enable-sysvmsg=shared \
2105 --enable-sysvsem=shared \
2106 --enable-sysvshm=shared \
2107 --enable-safe-mode \
2108 --enable-soap=shared \
2109 --enable-sockets=shared \
2110 --enable-tokenizer=shared \
2111 --enable-ucd-snmp-hack \
2112 %{?with_wddx:--enable-wddx=shared} \
2113 --enable-xml=shared \
2114 --enable-xmlreader=shared \
2116 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2118 --enable-dbase=shared \
2119 --without-libexpat-dir \
2120 %{?with_fdf:--with-fdftk=shared} \
2121 --with-iconv=shared \
2122 --with-freetype-dir=shared \
2123 --with-gettext=shared \
2124 --with-gd=shared%{?with_system_gd:,/usr} \
2127 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2128 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2129 --with-jpeg-dir=/usr \
2130 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2131 --with-mcrypt=shared \
2132 %{?with_mhash:--with-mhash=shared} \
2133 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2134 %{?with_ming:--with-ming=shared} \
2135 %{?with_mm:--with-mm} \
2136 %{?with_mssql:--with-mssql=shared} \
2137 --with-mysql=shared,/usr \
2138 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2139 %{?with_mysqli:--with-mysqli=shared} \
2140 --with-ncurses=shared \
2141 %{?with_oci8:--with-oci8=shared} \
2142 %{?with_openssl:--with-openssl=shared} \
2144 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2145 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2146 --with-pear=%{php_pear_dir} \
2147 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2148 --with-png-dir=/usr \
2149 %{?with_pspell:--with-pspell=shared} \
2150 --with-readline=shared \
2151 %{?with_recode:--with-recode=shared} \
2153 %{?with_snmp:--with-snmp=shared} \
2154 %{?with_sybase:--with-sybase=shared,/usr} \
2155 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2156 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2157 --with-t1lib=shared \
2158 %{?with_tidy:--with-tidy=shared} \
2159 %{?with_odbc:--with-unixODBC=shared,/usr} \
2160 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2162 --with-zlib=shared \
2163 --with-zlib-dir=shared,/usr \
2164 %{?with_system_libzip:--with-libzip} \
2165 --enable-zip=shared,/usr \
2167 cp -f Makefile Makefile.$sapi
2168 cp -f main/php_config.h php_config.h.$sapi
2169 cp -f config.log config.log.$sapi
2172 # as we build each SAPI in own make, adjust php-config.in forehead
2173 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2174 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2176 # must make this first, so modules can link against it.
2177 %{__make} libphp_common.la
2178 %{__make} build-modules
2181 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2185 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2189 cp -af php_config.h.cgi main/php_config.h
2190 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2191 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2192 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2196 cp -af php_config.h.fcgi main/php_config.h
2197 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2198 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2199 cp -r sapi/cgi sapi/fcgi
2200 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2204 cp -af php_config.h.fpm main/php_config.h
2205 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2206 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2207 cp -r sapi/cgi sapi/fpm
2208 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2212 cp -af php_config.h.cli main/php_config.h
2213 %{__make} sapi/cli/php -f Makefile.cli
2214 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2216 # check for stupid xml parse breakage where < and > just get lost in parse result
2217 ./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"]));'
2219 # Generate stub .ini files for each extension
2222 generate_inifiles() {
2223 for so in modules/*.so; do
2224 mod=$(basename $so .so)
2226 # xml needs to be loaded before wddx
2227 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2228 # pre needs to be loaded before SPL
2229 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2230 # spl needs to be loaded before mysqli
2231 [ "$mod" = "spl" ] && conf="SPL.ini"
2232 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2233 [ "$mod" = "session" ] && conf="Session.ini"
2235 cat > conf.d/$conf <<-EOF
2236 ; Enable $mod extension module
2243 # Check that the module inner-dependencies are intact
2244 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2245 if grep -v OK dep-tests.log; then
2246 echo >&2 "The results above were not expected"
2247 # TEMP: ac-i386 builder is broken
2255 # Run tests, using the CLI SAPI
2256 cp -af php_config.h.cli main/php_config.h
2257 cp -af Makefile.cli Makefile
2258 # sybase modules collide, remove one
2259 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2261 cat <<'EOF' > run-tests.sh
2263 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2264 unset TZ LANG LC_ALL || :
2267 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2268 RUN_TESTS_SETTINGS="-q $*"
2270 chmod +x run-tests.sh
2271 ./run-tests.sh -w failed.log -s test.log
2273 # collect failed tests into cleanup script used in prep.
2274 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2275 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2276 >> %{_sourcedir}/skip-tests.sh
2278 failed=$(wc -l < tests-failed.log)
2279 if [ "$failed" != 0 ]; then
2285 rm -rf $RPM_BUILD_ROOT
2286 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2287 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2288 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2289 $RPM_BUILD_ROOT%{_mandir}/man1 \
2291 # install the Apache modules' files
2292 %{__make} install-headers install-build install-modules install-programs \
2293 INSTALL_ROOT=$RPM_BUILD_ROOT
2296 v=$(echo %{version} | cut -d. -f1-2)
2298 # install Apache1 DSO module
2300 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2301 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2302 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2305 # install Apache2 DSO module
2307 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2308 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2309 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2312 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2313 # fix install paths, avoid evil rpaths
2314 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2316 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2319 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2323 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2328 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2329 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2330 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2331 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2332 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2333 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2334 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2335 %if "%{pld_release}" == "ac"
2336 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2340 s#/usr/lib/php#%{php_extensiondir}#
2341 s#/etc/php#%{_sysconfdir}#
2342 s#@processname@#%{name}-fpm#g
2343 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2347 # without suffix, install as php.cli
2348 %if "%{?php_suffix}" == ""
2349 %define phpfn %{name}.cli
2351 %define phpfn %{name}
2353 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2354 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2355 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2356 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2357 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2359 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2361 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2363 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2364 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2365 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2368 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2369 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2370 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2374 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2375 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2376 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2379 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2380 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2382 # ensure that paths are correct for current php version and arch
2383 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2385 s#/usr/lib/php#%{php_extensiondir}#g
2386 s#/etc/php#%{_sysconfdir}#g
2389 # per SAPI ini directories
2390 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2393 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2395 # use system automake and {lib,sh}tool
2396 %if "%{pld_release}" != "ac"
2397 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2398 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2399 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2401 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2403 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2404 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2406 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2408 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2409 # isn't installed by install-headers make target, we do it manually here.
2410 # this header file is required by e.g. filter PECL extension
2411 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2412 # for php-pecl-mailparse
2413 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2414 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2417 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2418 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2419 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2422 rm -rf $RPM_BUILD_ROOT
2424 %post -n apache1-mod_%{name}
2425 if [ "$1" = "1" ]; then
2426 %service -q apache restart
2429 %postun -n apache1-mod_%{name}
2430 if [ "$1" = "0" ]; then
2431 %service -q apache restart
2434 %post -n apache-mod_%{name}
2435 if [ "$1" = "1" ]; then
2436 %service -q httpd restart
2439 %postun -n apache-mod_%{name}
2440 if [ "$1" = "0" ]; then
2441 %service -q httpd restart
2445 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2448 /sbin/chkconfig --add %{name}-fpm
2449 %service %{name}-fpm restart
2452 if [ "$1" = 0 ]; then
2453 %service %{name}-fpm stop
2454 /sbin/chkconfig --del %{name}-fpm
2458 if [ "$1" = "0" ]; then
2462 %post common -p /sbin/ldconfig
2463 %postun common -p /sbin/ldconfig
2466 # minimizing apache restarts logics. we restart webserver:
2468 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2469 # 2. first install of extension (post: $1 = 1)
2470 # 2. uninstall of extension (postun: $1 == 0)
2472 # the strict internal deps between extensions (and apache modules) and
2473 # common package are very important for all this to work.
2475 # restart webserver at the end of transaction
2476 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2477 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2479 # common macros called at extension post/postun scriptlet
2480 %define extension_scripts() \
2482 if [ "$1" = "1" ]; then \
2483 %php_webserver_restart \
2487 if [ "$1" = "0" ]; then \
2488 %php_webserver_restart \
2492 # extension scripts defines
2493 %extension_scripts bcmath
2494 %extension_scripts bz2
2495 %extension_scripts calendar
2496 %extension_scripts ctype
2497 %extension_scripts curl
2498 %extension_scripts dba
2499 %extension_scripts dbase
2500 %extension_scripts dom
2501 %extension_scripts exif
2502 %extension_scripts fdf
2503 %extension_scripts filter
2504 %extension_scripts ftp
2505 %extension_scripts gd
2506 %extension_scripts gettext
2507 %extension_scripts gmp
2508 %extension_scripts hash
2509 %extension_scripts iconv
2510 %extension_scripts imap
2511 %extension_scripts interbase
2512 %extension_scripts json
2513 %extension_scripts ldap
2514 %extension_scripts mbstring
2515 %extension_scripts mcrypt
2516 %extension_scripts mhash
2517 %extension_scripts mime_magic
2518 %extension_scripts ming
2519 %extension_scripts mssql
2520 %extension_scripts mysql
2521 %extension_scripts mysqli
2522 %extension_scripts oci8
2523 %extension_scripts odbc
2524 %extension_scripts openssl
2525 %extension_scripts pcntl
2526 %extension_scripts pcre
2527 %extension_scripts pdo
2528 %extension_scripts pdo-dblib
2529 %extension_scripts pdo-firebird
2530 %extension_scripts pdo-oci
2531 %extension_scripts pdo-mysql
2532 %extension_scripts pdo-odbc
2533 %extension_scripts pdo-pgsql
2534 %extension_scripts pdo-sqlite
2535 %extension_scripts pgsql
2536 %extension_scripts posix
2537 %extension_scripts pspell
2538 %extension_scripts recode
2539 %extension_scripts session
2540 %extension_scripts simplexml
2541 %extension_scripts shmop
2542 %extension_scripts snmp
2543 %extension_scripts soap
2544 %extension_scripts sockets
2545 %extension_scripts spl
2546 %extension_scripts sqlite
2547 %extension_scripts sybase
2548 %extension_scripts sybase-ct
2549 %extension_scripts sysvmsg
2550 %extension_scripts sysvsem
2551 %extension_scripts sysvshm
2552 %extension_scripts tidy
2553 %extension_scripts tokenizer
2554 %extension_scripts wddx
2555 %extension_scripts xml
2556 %extension_scripts xmlreader
2557 %extension_scripts xmlrpc
2558 %extension_scripts xmlwriter
2559 %extension_scripts xsl
2560 %extension_scripts zip
2561 %extension_scripts zlib
2564 %files -n apache1-mod_%{name}
2565 %defattr(644,root,root,755)
2566 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2567 %dir %{_sysconfdir}/apache.d
2568 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2569 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2570 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2574 %files -n apache-mod_%{name}
2575 %defattr(644,root,root,755)
2576 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2577 %dir %{_sysconfdir}/apache2handler.d
2578 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2579 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2580 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2585 %defattr(644,root,root,755)
2586 %doc sapi/cgi/README.FastCGI
2587 %dir %{_sysconfdir}/cgi-fcgi.d
2588 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2589 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2593 %defattr(644,root,root,755)
2594 %dir %{_sysconfdir}/cgi.d
2595 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2596 %attr(755,root,root) %{_bindir}/%{name}.cgi
2599 %defattr(644,root,root,755)
2600 %dir %{_sysconfdir}/cli.d
2601 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2602 %attr(755,root,root) %{_bindir}/%{phpfn}
2603 %{_mandir}/man1/%{phpfn}.1*
2606 %defattr(644,root,root,755)
2607 %attr(755,root,root) %{_bindir}/php
2608 %{_mandir}/man1/php.1*
2612 %defattr(644,root,root,755)
2613 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2614 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2615 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2616 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2620 %defattr(644,root,root,755)
2622 %doc CREDITS Zend/ZEND_CHANGES
2623 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2624 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2627 %dir %{_sysconfdir}/conf.d
2628 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2629 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2630 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2631 %dir %{php_extensiondir}
2634 %defattr(644,root,root,755)
2635 %doc README.UNIX-BUILD-SYSTEM
2636 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2637 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2638 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2639 %attr(755,root,root) %{_bindir}/phpize
2640 %attr(755,root,root) %{_bindir}/php-config
2641 %attr(755,root,root) %{_libdir}/libphp_common.so
2642 %{_libdir}/libphp_common.la
2644 %{_libdir}/php/build
2645 %{_mandir}/man1/php-config.1*
2646 %{_mandir}/man1/phpize.1*
2649 %defattr(644,root,root,755)
2650 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2651 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2654 %defattr(644,root,root,755)
2655 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2656 %attr(755,root,root) %{php_extensiondir}/bz2.so
2659 %defattr(644,root,root,755)
2660 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2661 %attr(755,root,root) %{php_extensiondir}/calendar.so
2664 %defattr(644,root,root,755)
2665 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2666 %attr(755,root,root) %{php_extensiondir}/ctype.so
2670 %defattr(644,root,root,755)
2671 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2672 %attr(755,root,root) %{php_extensiondir}/curl.so
2676 %defattr(644,root,root,755)
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2678 %attr(755,root,root) %{php_extensiondir}/dba.so
2681 %defattr(644,root,root,755)
2682 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2683 %attr(755,root,root) %{php_extensiondir}/dbase.so
2686 %defattr(644,root,root,755)
2687 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2688 %attr(755,root,root) %{php_extensiondir}/dom.so
2692 %defattr(644,root,root,755)
2693 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2694 %attr(755,root,root) %{php_extensiondir}/fdf.so
2699 %defattr(644,root,root,755)
2700 %doc README.input_filter
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2702 %attr(755,root,root) %{php_extensiondir}/filter.so
2706 %defattr(644,root,root,755)
2707 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2708 %attr(755,root,root) %{php_extensiondir}/exif.so
2711 %defattr(644,root,root,755)
2712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2713 %attr(755,root,root) %{php_extensiondir}/ftp.so
2716 %defattr(644,root,root,755)
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2718 %attr(755,root,root) %{php_extensiondir}/gd.so
2721 %defattr(644,root,root,755)
2722 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2723 %attr(755,root,root) %{php_extensiondir}/gettext.so
2726 %defattr(644,root,root,755)
2727 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2728 %attr(755,root,root) %{php_extensiondir}/gmp.so
2731 %defattr(644,root,root,755)
2732 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2733 %attr(755,root,root) %{php_extensiondir}/hash.so
2736 %defattr(644,root,root,755)
2737 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2738 %attr(755,root,root) %{php_extensiondir}/iconv.so
2742 %defattr(644,root,root,755)
2743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2744 %attr(755,root,root) %{php_extensiondir}/imap.so
2747 %if %{with interbase}
2749 %defattr(644,root,root,755)
2750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2751 %attr(755,root,root) %{php_extensiondir}/interbase.so
2755 %defattr(644,root,root,755)
2756 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2757 %attr(755,root,root) %{php_extensiondir}/json.so
2761 %defattr(644,root,root,755)
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2763 %attr(755,root,root) %{php_extensiondir}/ldap.so
2766 %if %{without zend_multibyte}
2768 %defattr(644,root,root,755)
2769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2770 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2774 %defattr(644,root,root,755)
2775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2776 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2780 %defattr(644,root,root,755)
2781 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2782 %attr(755,root,root) %{php_extensiondir}/mhash.so
2785 %if %{with mime_magic}
2787 %defattr(644,root,root,755)
2788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2789 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2794 %defattr(644,root,root,755)
2795 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2796 %attr(755,root,root) %{php_extensiondir}/ming.so
2801 %defattr(644,root,root,755)
2802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2803 %attr(755,root,root) %{php_extensiondir}/mssql.so
2807 %defattr(644,root,root,755)
2808 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2809 %attr(755,root,root) %{php_extensiondir}/mysql.so
2813 %defattr(644,root,root,755)
2814 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2815 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2819 %defattr(644,root,root,755)
2820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2821 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2825 %defattr(644,root,root,755)
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2827 %attr(755,root,root) %{php_extensiondir}/oci8.so
2832 %defattr(644,root,root,755)
2833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2834 %attr(755,root,root) %{php_extensiondir}/odbc.so
2839 %defattr(644,root,root,755)
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2841 %attr(755,root,root) %{php_extensiondir}/openssl.so
2845 %defattr(644,root,root,755)
2846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2847 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2851 %defattr(644,root,root,755)
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2853 %attr(755,root,root) %{php_extensiondir}/pcre.so
2857 %defattr(644,root,root,755)
2858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2859 %attr(755,root,root) %{php_extensiondir}/pdo.so
2861 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2865 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2868 %if %{with interbase} && !%{with interbase_inst}
2870 %defattr(644,root,root,755)
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2872 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2876 %defattr(644,root,root,755)
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2878 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2882 %defattr(644,root,root,755)
2883 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2884 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2889 %defattr(644,root,root,755)
2890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2891 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2896 %defattr(644,root,root,755)
2897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2898 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2903 %defattr(644,root,root,755)
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2905 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2910 %defattr(644,root,root,755)
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2912 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2916 %defattr(644,root,root,755)
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2918 %attr(755,root,root) %{php_extensiondir}/posix.so
2922 %defattr(644,root,root,755)
2923 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2924 %attr(755,root,root) %{php_extensiondir}/pspell.so
2928 %defattr(644,root,root,755)
2929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2930 %attr(755,root,root) %{php_extensiondir}/readline.so
2934 %defattr(644,root,root,755)
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2936 %attr(755,root,root) %{php_extensiondir}/recode.so
2940 %defattr(644,root,root,755)
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2942 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2945 %defattr(644,root,root,755)
2946 %doc ext/session/mod_files.sh
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2948 %attr(755,root,root) %{php_extensiondir}/session.so
2951 %defattr(644,root,root,755)
2952 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2953 %attr(755,root,root) %{php_extensiondir}/shmop.so
2957 %defattr(644,root,root,755)
2958 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2959 %attr(755,root,root) %{php_extensiondir}/snmp.so
2963 %defattr(644,root,root,755)
2964 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2965 %attr(755,root,root) %{php_extensiondir}/soap.so
2968 %defattr(644,root,root,755)
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2970 %attr(755,root,root) %{php_extensiondir}/sockets.so
2973 %defattr(644,root,root,755)
2974 %doc ext/spl/{CREDITS,README,TODO}
2975 %doc ext/spl/examples
2976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2977 %attr(755,root,root) %{php_extensiondir}/spl.so
2981 %defattr(644,root,root,755)
2982 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2983 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2988 %defattr(644,root,root,755)
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2990 %attr(755,root,root) %{php_extensiondir}/sybase.so
2993 %if %{with sybase_ct}
2995 %defattr(644,root,root,755)
2996 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2997 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3001 %defattr(644,root,root,755)
3002 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3003 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3006 %defattr(644,root,root,755)
3007 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3008 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3011 %defattr(644,root,root,755)
3012 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3013 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3016 %defattr(644,root,root,755)
3017 %dir %{php_data_dir}/tests
3018 %dir %{php_data_dir}/tests/php
3019 %{php_data_dir}/tests/php/basic
3020 %{php_data_dir}/tests/php/classes
3021 %{php_data_dir}/tests/php/func
3022 %{php_data_dir}/tests/php/lang
3023 %{php_data_dir}/tests/php/output
3024 %{php_data_dir}/tests/php/run-test
3025 %{php_data_dir}/tests/php/security
3026 %{php_data_dir}/tests/php/strings
3027 %{php_data_dir}/tests/php/quicktester.inc
3028 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3030 # random junk, didn't check, maybe can be just removed
3031 %{php_data_dir}/tests/php/bin-info.inc
3032 %{php_data_dir}/tests/php/foo*
3033 %{php_data_dir}/tests/php/odbc*.php
3034 %{php_data_dir}/tests/php/recurse
3035 %{php_data_dir}/tests/php/run.*
3036 %{php_data_dir}/tests/php/scan_cases
3037 %{php_data_dir}/tests/php/test*
3041 %defattr(644,root,root,755)
3042 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3043 %attr(755,root,root) %{php_extensiondir}/tidy.so
3047 %defattr(644,root,root,755)
3048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3049 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3053 %defattr(644,root,root,755)
3054 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3055 %attr(755,root,root) %{php_extensiondir}/wddx.so
3059 %defattr(644,root,root,755)
3060 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3061 %attr(755,root,root) %{php_extensiondir}/xml.so
3064 %defattr(644,root,root,755)
3065 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3066 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3070 %defattr(644,root,root,755)
3071 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3072 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3076 %defattr(644,root,root,755)
3077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3078 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3081 %defattr(644,root,root,755)
3082 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3083 %attr(755,root,root) %{php_extensiondir}/xsl.so
3086 %defattr(644,root,root,755)
3087 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3088 %attr(755,root,root) %{php_extensiondir}/zip.so
3091 %defattr(644,root,root,755)
3092 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3093 %attr(755,root,root) %{php_extensiondir}/zlib.so