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_with default_php # use this PHP as default PHP in distro
37 %bcond_without curl # without CURL extension module
38 %bcond_without filter # without filter extension module
39 %bcond_without imap # without IMAP extension module
40 %bcond_without interbase # without InterBase extension module
41 %bcond_without ldap # without LDAP extension module
42 %bcond_without mhash # without mhash extension module
43 %bcond_without mime_magic # without mime-magic module
44 %bcond_with ming # with ming extension module
45 %bcond_without mm # without mm support for session storage
46 %bcond_without mssql # without MS SQL extension module
47 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
48 %bcond_without odbc # without ODBC extension module
49 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
50 %bcond_without pcre # without PCRE extension module
51 %bcond_without pgsql # without PostgreSQL extension module
52 %bcond_without pspell # without pspell extension module
53 %bcond_without recode # without recode extension module
54 %bcond_without snmp # without SNMP extension module
55 %bcond_without sqlite # without SQLite extension module
56 %bcond_without sybase # without Sybase extension module
57 %bcond_without sybase_ct # without Sybase-CT extension module
58 %bcond_without tidy # without Tidy extension module
59 %bcond_without wddx # without WDDX extension module
60 %bcond_without xmlrpc # without XML-RPC extension module
61 %bcond_without apache1 # disable building Apache 1.3.x module
62 %bcond_without apache2 # disable building Apache 2.x module
63 %bcond_without fcgi # disable building FCGI SAPI
64 %bcond_with zts # disable Zend Thread Safety
65 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
66 %bcond_without suhosin # with suhosin patch
67 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
68 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
69 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
71 %define apxs1 /usr/sbin/apxs1
72 %define apxs2 /usr/sbin/apxs
74 # some problems with apache 2.x
79 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
80 %undefine with_interbase
82 %if "%{pld_release}" == "th"
84 # ppc disabled (broken on th-ppc)
85 %undefine with_interbase
89 %ifnarch %{ix86} %{x8664}
90 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
94 %if %{without apache1} && %{without apache2}
95 ERROR: You need to select at least one Apache SAPI to build shared modules.
98 # filter depends on pcre
100 %undefine with_filter
103 %if "%{pld_release}" == "ac"
104 %define magic_mime /usr/share/file/magic.mime
105 %define _noautoreqdep libphp_common.*
106 # if commandline --without was given. respect that
107 %if 0%{!?_without_default_php:1}
108 %define with_default_php 1
111 %define magic_mime /usr/share/misc/magic.mime
116 %define ver_suffix 52
117 %define php_suffix %{!?with_default_php:%{ver_suffix}}
118 %define backport_date 20130717
119 Summary: PHP: Hypertext Preprocessor
120 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
121 Summary(pl.UTF-8): Język skryptowy PHP
122 Summary(pt_BR.UTF-8): A linguagem de script PHP
123 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
124 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
125 Name: %{orgname}%{php_suffix}
127 Release: %{backport_date}.%{rel}
131 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
132 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
133 Source2: %{orgname}-mod_%{orgname}.conf
134 Source3: %{orgname}-cgi-fcgi.ini
135 Source4: %{orgname}-cgi.ini
136 Source5: %{orgname}-apache.ini
137 Source6: %{orgname}-cli.ini
138 # Taken from: http://browsers.garykeith.com/downloads.asp
139 Source8: %{orgname}_browscap.ini
140 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
141 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
142 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
143 Source10: %{orgname}-fpm.init
144 Source11: %{orgname}-fpm.logrotate
145 Source12: %{orgname}-branch.sh
146 Source13: dep-tests.sh
147 Source14: skip-tests.sh
148 Patch100: https://php52-backports.googlecode.com/files/php52-backports-%{backport_date}.patch
149 # Patch100-md5: 80014a8f7894d4e893a8b1292b8b3032
150 Patch0: %{orgname}-shared.patch
151 Patch1: %{orgname}-pldlogo.patch
152 Patch2: %{orgname}-mail.patch
153 Patch3: %{orgname}-link-libs.patch
154 Patch4: %{orgname}-libpq_fs_h_path.patch
155 Patch5: %{orgname}-filter-shared.patch
156 Patch6: %{orgname}-build_modules.patch
157 Patch7: %{orgname}-sapi-ini-file.patch
158 Patch8: %{orgname}-no-metaccld.patch
159 Patch9: %{orgname}-sh.patch
160 Patch10: %{orgname}-ini.patch
161 Patch11: %{orgname}-acam.patch
162 Patch12: %{orgname}-threads-acfix.patch
163 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
164 Patch14: %{orgname}-no_pear_install.patch
165 Patch15: %{orgname}-zlib.patch
166 Patch16: %{orgname}-sybase-fix.patch
167 Patch17: %{orgname}-readline.patch
168 Patch18: %{orgname}-nohttpd.patch
169 Patch19: %{orgname}-gd_imagerotate_enable.patch
170 Patch20: %{orgname}-uint32_t.patch
171 Patch21: %{orgname}-dba-link.patch
172 Patch22: %{orgname}-both-apxs.patch
173 Patch23: %{orgname}-builddir.patch
174 Patch24: %{orgname}-zlib-for-getimagesize.patch
175 Patch25: %{orgname}-versioning.patch
176 Patch26: %{orgname}-pear.patch
177 Patch27: %{orgname}-config-dir.patch
178 Patch28: %{orgname}-bug-42952.patch
179 Patch29: %{orgname}-fcgi-graceful.patch
180 Patch30: %{orgname}-apr-apu.patch
181 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
182 Patch32: %{orgname}-curl-limit-speed.patch
183 Patch33: %{orgname}-mime_magic.patch
184 Patch34: %{orgname}-libtool.patch
185 Patch35: %{orgname}-tds.patch
186 Patch36: %{orgname}-mysql-charsetphpini.patch
187 Patch37: %{orgname}-mysqli-charsetphpini.patch
188 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
189 Patch39: %{orgname}-use-prog_sendmail.patch
190 Patch40: %{orgname}-fpm.patch
191 Patch41: %{orgname}-fpm-config.patch
192 Patch42: %{orgname}-fpm-initdir.patch
193 Patch43: %{orgname}-silent-session-cleanup.patch
194 Patch44: %{orgname}-include_path.patch
195 Patch45: %{orgname}-imap-annotations.patch
196 Patch46: %{orgname}-imap-myrights.patch
197 Patch47: suhosin.patch
198 Patch49: %{orgname}-m4-divert.patch
199 Patch50: extension-shared-optional-dep.patch
200 Patch51: spl-shared.patch
201 Patch52: %{orgname}-libpng.patch
202 Patch53: %{orgname}-gmp.patch
203 Patch54: fix-test-run.patch
204 Patch55: bug-52078-fileinode.patch
205 Patch56: %{orgname}-krb5.patch
206 Patch57: php-php_dl.patch
207 Patch58: php-svn-281516.patch
208 Patch59: %{orgname}-systzdata.patch
209 Patch60: bug-60986.patch
210 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
211 Patch65: system-libzip.patch
212 Patch66: bug-47930.patch
213 Patch67: php-db.patch
214 Patch69: bug-50563.patch
215 Patch70: php-crypt-null.patch
216 Patch71: php-apache24.patch
217 Patch72: exif-crash-bug-36.patch
219 # Backport from 5.3.6
220 Patch311: php-5.3.6-bug-47435.patch
221 Patch314: php-5.3.6-39199.patch
223 #Patch333: php-5.3.7-bug-54924.patch
224 Patch355: php-5.3.7-bug-55323.patch
225 # Bug-323016 CVE-2012-0831
226 Patch402: php-5.2.17-bug-323016.patch
227 URL: https://code.google.com/p/php52-backports/
228 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
229 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
230 BuildRequires: autoconf >= 2.53
231 BuildRequires: automake >= 1.4d
233 BuildRequires: bzip2-devel
234 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
235 BuildRequires: cyrus-sasl-devel
236 BuildRequires: db-devel >= 4.0
237 BuildRequires: elfutils-devel
239 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
241 %{?with_fcgi:BuildRequires: fcgi-devel}
242 %{?with_fdf:BuildRequires: fdftk-devel}
244 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
245 BuildRequires: freetds-devel
246 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
248 BuildRequires: freetype-devel >= 2.0
249 %if %{with system_gd}
250 BuildRequires: gd-devel >= 2.0.28-4
251 BuildRequires: gd-devel(imagerotate) = 5.2.0
253 BuildRequires: gdbm-devel
254 BuildRequires: gmp-devel
255 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
256 BuildRequires: libjpeg-devel
257 BuildRequires: libltdl-devel >= 1.4
258 BuildRequires: libmcrypt-devel >= 2.4.4
259 BuildRequires: libpng-devel >= 1.0.8
260 BuildRequires: libtiff-devel
261 %if "%{pld_release}" != "ac"
262 BuildRequires: libtool >= 2:2.2
264 BuildRequires: libtool
266 BuildRequires: libwrap-devel
267 BuildRequires: libxml2-devel >= 1:2.7.6-4
268 BuildRequires: libxslt-devel >= 1.1.0
269 %{?with_mhash:BuildRequires: mhash-devel}
270 %{?with_ming:BuildRequires: ming-devel >= 0.3}
271 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
272 BuildRequires: mysql-devel >= 4.0.0
273 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
274 BuildRequires: ncurses-ext-devel
275 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
276 %if %{with openssl} || %{with ldap}
277 BuildRequires: openssl-devel >= 0.9.7d
279 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
280 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
281 BuildRequires: pam-devel
282 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
283 BuildRequires: pkgconfig
284 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
285 %{?with_pgsql:BuildRequires: postgresql-devel}
286 BuildRequires: readline-devel
287 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
288 BuildRequires: rpm >= 4.4.9-56
289 BuildRequires: rpm-build >= 4.4.0
290 BuildRequires: rpmbuild(macros) >= 1.519
291 %{?with_sqlite:BuildRequires: sqlite-devel}
292 %{?with_sqlite:BuildRequires: sqlite3-devel}
293 BuildRequires: t1lib-devel
294 %{?with_tidy:BuildRequires: tidy-devel}
295 %{?with_odbc:BuildRequires: unixODBC-devel}
296 BuildRequires: zlib-devel >= 1.0.9
298 BuildRequires: apache1-devel
301 BuildRequires: apache-devel >= 2.0.52-2
302 BuildRequires: apr-devel >= 1:1.0.0
303 BuildRequires: apr-util-devel >= 1:1.0.0
306 BuildRequires: judy-devel
307 BuildRequires: libevent-devel >= 1.4.7-3
309 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
311 %define php_sysconfdir /etc/%{name}
312 %define php_extensiondir %{_libdir}/%{name}
313 %define _sysconfdir %{php_sysconfdir}
315 # must be in sync with source. extra check ensuring that it is so is done in %%build
316 %define php_api_version 20041225
317 %define zend_module_api 20060613
318 %define zend_extension_api 220060519
319 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
320 %define php_debug %{!?debug:0}%{?debug:1}
323 # ORACLE_HOME is required for oci8 ext to build
324 %define _preserve_env %_preserve_env_base ORACLE_HOME
328 PHP is an HTML-embedded scripting language. PHP attempts to make it
329 easy for developers to write dynamically generated web pages. PHP also
330 offers built-in database integration for several commercial and
331 non-commercial database management systems, so writing a
332 database-enabled web page with PHP is fairly simple. The most common
333 use of PHP coding is probably as a replacement for CGI scripts. The
334 mod_php module enables the Apache web server to understand and process
335 the embedded PHP language in web pages. This package contains PHP
338 %description -l fr.UTF-8
339 PHP est un langage de script embarque dans le HTM. PHP essaye de
340 rendre simple aux developpeurs d'ecrire des pages web generees
341 dynamiquement. PHP incorpore egalement une integration avec plusieurs
342 systemes de gestion de bases de donnees commerciaux et
343 non-connerciaux, qui rent facile la creation de pages web liees avec
344 des bases de donnees. L'utilisation la plus commune de PHP est
345 probablement en remplacement de scripts CGI. Le module mod_php permet
346 au serveur web Apache de comprendre et de traiter le langage PHP
347 integre dans des pages web. Ce package contient PHP version
350 %description -l pl.UTF-8
351 PHP jest językiem skryptowym, którego polecenia umieszcza się w
352 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
353 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
354 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
355 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
356 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
357 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
358 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
361 %description -l pt_BR.UTF-8
362 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
363 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
364 com algumas características únicas, específicas ao PHP. O objetivo da
365 linguagem é permitir que desenvolvedores web escrevam páginas
366 dinamicamente geradas de forma rápida.
368 %description -l ru.UTF-8
369 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
370 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
371 для работы с базами данных относительно просто. Наиболее популярное
372 использование PHP - замена для CGI скриптов.
374 %description -l uk.UTF-8
375 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
376 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
377 роботи з базами даних є доволі простим. Найбільш популярне
378 використання PHP - заміна для CGI скриптів.
380 %package -n apache1-mod_%{name}
381 Summary: PHP DSO module for Apache 1.3.x
382 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
383 Group: Development/Languages/PHP
384 Requires(triggerpostun): sed >= 4.0
385 Requires: %{name}-common = %{epoch}:%{version}-%{release}
386 Requires: apache1(EAPI) >= 1.3.33-2
387 Requires: apache1-mod_mime
388 Provides: webserver(php) = %{version}
389 Obsoletes: apache-mod_php < 1:4.1.1
392 %description -n apache1-mod_%{name}
393 PHP as DSO module for Apache 1.3.x.
395 %description -n apache1-mod_%{name} -l pl.UTF-8
396 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
398 %package -n apache-mod_%{name}
399 Summary: PHP DSO module for Apache 2.x
400 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
401 Group: Development/Languages/PHP
402 Requires: %{name}-common = %{epoch}:%{version}-%{release}
403 Requires: apache(modules-api) = %{apache_modules_api}
404 Requires: apache-mod_mime
405 Provides: webserver(php) = %{version}
408 %description -n apache-mod_%{name}
409 PHP as DSO module for Apache 2.x.
411 %description -n apache-mod_%{name} -l pl.UTF-8
412 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
415 Summary: php as FastCGI program
416 Summary(pl.UTF-8): php jako program FastCGI
417 Group: Development/Languages/PHP
418 Requires: %{name}-common = %{epoch}:%{version}-%{release}
420 Provides: webserver(php) = %{version}
423 php as FastCGI program.
425 %description fcgi -l pl.UTF-8
426 php jako program FastCGI.
429 Summary: PHP as CGI/FastCGI program
430 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
431 Group: Development/Languages/PHP
432 Requires: %{name}-common = %{epoch}:%{version}-%{release}
434 Provides: webserver(php) = %{version}
435 %if "%{pld_release}" != "ac"
436 Conflicts: logrotate < 3.8.0
442 %description cgi -l pl.UTF-8
443 php jako program CGI.
446 Summary: PHP as CLI interpreter
447 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
448 Group: Development/Languages/PHP
449 Requires: %{name}-common = %{epoch}:%{version}-%{release}
452 PHP as CLI interpreter.
454 %description cli -l pl.UTF-8
455 PHP jako interpreter działający z linii poleceń.
458 Summary: /usr/bin/php symlink
459 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
460 Group: Development/Languages/PHP
461 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
462 Obsoletes: /usr/bin/php
465 Package providing /usr/bin/php symlink to PHP CLI.
467 %description program -l pl.UTF-8
468 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
471 Summary: PHP FastCGI Process Manager
472 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
473 Group: Development/Languages/PHP
474 URL: http://www.php-fpm.org/
475 Requires(post,preun): /sbin/chkconfig
476 Requires(postun): /usr/sbin/userdel
477 Requires(pre): /bin/id
478 Requires(pre): /usr/sbin/useradd
479 Requires: %{name}-common = %{epoch}:%{version}-%{release}
480 Requires: libevent >= 1.4.7-3
483 Provides: webserver(php) = %{version}
486 PHP FastCGI Process Manager.
488 %description fpm -l pl.UTF-8
489 PHP FastCGI Process Manager - zarządca procesów FastCGI.
492 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
493 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
494 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
495 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
497 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
498 Requires: glibc >= 6:2.3.5
499 Requires: php-dirs >= 1.4
500 Requires: rpm-whiteout >= 1.28
502 Provides: %{name}(debug) = %{php_debug}
503 Provides: %{name}(modules_api) = %{php_api_version}
504 Provides: %{name}(thread-safety) = %{zend_zts}
505 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
506 Provides: %{name}(zend_module_api) = %{zend_module_api}
507 Provides: %{name}-core
508 Provides: %{name}-date
509 Provides: %{name}-ereg
510 %{?with_zend_multibyte:Provides: %{name}-mbstring = %{epoch}:%{version}-%{release}}
511 Provides: %{name}-overload
512 Provides: %{name}-reflection
513 Provides: %{name}-standard
514 Provides: php(core) = %{version}
517 Provides: php(libxml)
518 %{?with_zend_multibyte:Provides: php(mbstring)}
519 Provides: php(modules_api) = %{php_api_version}
520 Provides: php(overload)
521 Provides: php(reflection)
522 Provides: php(standard)
523 # ensure backward compatibility for Titanium
524 # to be dropped in future but ask Titanium RM before doing so
525 %if "%{pld_release}" == "ti"
526 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
527 Requires: %{name}-session = %{epoch}:%{version}-%{release}
528 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
530 %if "%{pld_release}" == "ac"
531 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
532 Requires: %{name}-session = %{epoch}:%{version}-%{release}
533 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
535 %{!?with_mysqlnd:Obsoletes: php-mysqlnd}
536 %{?with_pcre:%requires_ge_to pcre pcre-devel}
537 Obsoletes: php-pecl-domxml
538 Conflicts: php-pecl-memcache < 3.0.4-2
539 Conflicts: php4-common < 3:4.4.4-8
540 Conflicts: rpm < 4.4.2-0.2
543 Common files needed by both Apache modules and CGI/CLI SAPI-s.
545 %description common -l pl.UTF-8
546 Wspólne pliki dla modułu Apache'a i programu CGI.
548 %description common -l ru.UTF-8
549 Этот пакет содержит общие файлы для разных вариантов реализации PHP
550 (самодостаточной и в качестве модуля Apache).
552 %description common -l uk.UTF-8
553 Цей пакет містить спільні файли для різних варіантів реалізації PHP
554 (самодостатньої та в якості модуля Apache).
557 Summary: Files for PHP modules development
558 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
559 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
560 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
561 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
562 Group: Development/Languages/PHP
563 Requires: %{name}-common = %{epoch}:%{version}-%{release}
566 %if "%{pld_release}" != "ac"
567 Requires: libtool >= 2:2.2
571 %{?with_pcre:Requires: pcre-devel >= 6.6}
574 Obsoletes: php-pear-devel
575 Obsoletes: php4-devel
576 Obsoletes: php53-devel
577 Obsoletes: php54-devel
580 The php-devel package lets you compile dynamic extensions to PHP.
581 Included here is the source for the PHP extensions. Instead of
582 recompiling the whole PHP binary to add support for, say, oracle,
583 install this package and use the new self-contained extensions
584 support. For more information, read the file
585 README.SELF-CONTAINED-EXTENSIONS.
587 %description devel -l pl.UTF-8
588 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
589 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
590 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
591 samodzielnych rozszerzeniach można znaleźć w pliku
592 README.SELF-CONTAINED-EXTENSIONS.
594 %description devel -l pt_BR.UTF-8
595 Este pacote contém arquivos usados no desenvolvimento de programas ou
598 %description devel -l ru.UTF-8
599 Пакет php-devel дает возможность компилировать динамические расширения
600 PHP. Пакет включает исходный код этих расширений. Вместо повторной
601 компиляции бинарного файла PHP для добавления, например, поддержки
602 oracle, установите этот пакет для компилирования отдельных расширений.
603 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
605 %description devel -l uk.UTF-8
606 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
607 До пакету включено вихідний код для розширень. Замість повторної
608 компіляції бінарного файлу PHP для додання, наприклад, підтримки
609 oracle, встановіть цей пакет для компіляції окремих розширень.
610 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
613 Summary: bcmath extension module for PHP
614 Summary(pl.UTF-8): Moduł bcmath dla PHP
616 URL: http://www.php.net/manual/en/book.bc.php
617 Requires: %{name}-common = %{epoch}:%{version}-%{release}
618 Provides: php(bcmath)
621 This is a dynamic shared object (DSO) for PHP that will add bc style
622 precision math functions support.
624 %description bcmath -l pl.UTF-8
625 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
626 matematycznych takich jak w programie bc.
629 Summary: Bzip2 extension module for PHP
630 Summary(pl.UTF-8): Moduł bzip2 dla PHP
632 URL: http://www.php.net/manual/en/book.bzip2.php
633 Requires: %{name}-common = %{epoch}:%{version}-%{release}
634 Provides: %{name}-bzip2 = %{epoch}:%{version}-%{release}
640 This is a dynamic shared object (DSO) for PHP that will add bzip2
641 compression support to PHP.
643 %description bz2 -l pl.UTF-8
644 Moduł PHP umożliwiający używanie kompresji bzip2.
647 Summary: Calendar extension module for PHP
648 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
650 URL: http://www.php.net/manual/en/book.calendar.php
651 Requires: %{name}-common = %{epoch}:%{version}-%{release}
652 Provides: php(calendar)
654 %description calendar
655 This is a dynamic shared object (DSO) for PHP that will add calendar
658 %description calendar -l pl.UTF-8
659 Moduł PHP dodający wsparcie dla kalendarza.
662 Summary: ctype extension module for PHP
663 Summary(pl.UTF-8): Moduł ctype dla PHP
665 URL: http://www.php.net/manual/en/book.ctype.php
666 Requires: %{name}-common = %{epoch}:%{version}-%{release}
670 This is a dynamic shared object (DSO) for PHP that will add ctype
673 %description ctype -l pl.UTF-8
674 Moduł PHP umożliwiający korzystanie z funkcji ctype.
677 Summary: curl extension module for PHP
678 Summary(pl.UTF-8): Moduł curl dla PHP
680 URL: http://www.php.net/manual/en/book.curl.php
681 Requires: %{name}-common = %{epoch}:%{version}-%{release}
685 This is a dynamic shared object (DSO) for PHP that will add curl
688 %description curl -l pl.UTF-8
689 Moduł PHP umożliwiający korzystanie z biblioteki curl.
692 Summary: DBA extension module for PHP
693 Summary(pl.UTF-8): Moduł DBA dla PHP
695 URL: http://www.php.net/manual/en/book.dba.php
696 Requires: %{name}-common = %{epoch}:%{version}-%{release}
700 This is a dynamic shared object (DSO) for PHP that will add flat-file
701 databases (DBA) support.
703 %description dba -l pl.UTF-8
704 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
708 Summary: DBase extension module for PHP
709 Summary(pl.UTF-8): Moduł DBase dla PHP
711 Requires: %{name}-common = %{epoch}:%{version}-%{release}
715 This is a dynamic shared object (DSO) for PHP that will add DBase
718 %description dbase -l pl.UTF-8
719 Moduł PHP ze wsparciem dla DBase.
722 Summary: DOM extension module for PHP
723 Summary(pl.UTF-8): Moduł DOM dla PHP
725 URL: http://www.php.net/manual/en/book.dom.php
726 Requires: %{name}-common = %{epoch}:%{version}-%{release}
728 # it has some compatibility functions
729 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
730 Provides: php(domxml)
731 Obsoletes: php-domxml <= 3:4.3.8-1
734 This is a dynamic shared object (DSO) for PHP that will add new DOM
737 %description dom -l pl.UTF-8
738 Moduł PHP dodający nową obsługę DOM.
741 Summary: exif extension module for PHP
742 Summary(pl.UTF-8): Moduł exif dla PHP
744 URL: http://www.php.net/manual/en/book.exif.php
745 Requires: %{name}-common = %{epoch}:%{version}-%{release}
749 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
750 support in image files.
752 %description exif -l pl.UTF-8
753 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
756 Summary: FDF extension module for PHP
757 Summary(pl.UTF-8): Moduł FDF dla PHP
759 URL: http://www.php.net/manual/en/book.fdf.php
760 Requires: %{name}-common = %{epoch}:%{version}-%{release}
764 This PHP module adds support for PDF Forms through Adobe FDFTK
767 %description fdf -l pl.UTF-8
768 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
772 Summary: Extension for safely dealing with input parameters
773 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
775 URL: http://www.php.net/manual/en/book.filter.php
776 Requires: %{name}-common = %{epoch}:%{version}-%{release}
777 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
778 Provides: php(filter)
779 Obsoletes: php-pecl-filter
782 We all know that you should always check input variables, but PHP does
783 not offer really good functionality for doing this in a safe way. The
784 Input Filter extension is meant to address this issue by implementing
785 a set of filters and mechanisms that users can use to safely access
788 %description filter -l pl.UTF-8
789 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
790 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
791 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
792 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
793 mogą bezpiecznie używać do dostępu do danych.
796 Summary: FTP extension module for PHP
797 Summary(pl.UTF-8): Moduł FTP dla PHP
799 URL: http://www.php.net/manual/en/book.ftp.php
800 Requires: %{name}-common = %{epoch}:%{version}-%{release}
804 This is a dynamic shared object (DSO) for PHP that will add FTP
807 %description ftp -l pl.UTF-8
808 Moduł PHP dodający obsługę protokołu FTP.
811 Summary: GD extension module for PHP
812 Summary(pl.UTF-8): Moduł GD dla PHP
814 URL: http://www.php.net/manual/en/book.image.php
815 Requires: %{name}-common = %{epoch}:%{version}-%{release}
816 %if %{with system_gd}
817 Requires: gd >= 2.0.28-4
819 Requires: gd(imagerotate) = 5.2.0
824 This is a dynamic shared object (DSO) for PHP that will add GD
825 support, allowing you to create and manipulate images with PHP.
827 %description gd -l pl.UTF-8
828 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
829 tworzenie i obróbkę obrazków.
832 Summary: gettext extension module for PHP
833 Summary(pl.UTF-8): Moduł gettext dla PHP
835 URL: http://www.php.net/manual/en/book.gettext.php
836 Requires: %{name}-common = %{epoch}:%{version}-%{release}
837 Provides: php(gettext)
840 This is a dynamic shared object (DSO) for PHP that will add gettext
843 %description gettext -l pl.UTF-8
844 Moduł PHP dodający obsługę lokalizacji przez gettext.
847 Summary: gmp extension module for PHP
848 Summary(pl.UTF-8): Moduł gmp dla PHP
850 URL: http://www.php.net/manual/en/book.gmp.php
851 Requires: %{name}-common = %{epoch}:%{version}-%{release}
855 This is a dynamic shared object (DSO) for PHP that will add arbitrary
856 length number support with GNU MP library.
858 %description gmp -l pl.UTF-8
859 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
860 liczbach o dowolnej długości.
863 Summary: HASH Message Digest Framework
864 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
866 URL: http://www.php.net/manual/en/book.gmp.php
867 Requires: %{name}-common = %{epoch}:%{version}-%{release}
869 Obsoletes: php-pecl-hash
872 Native implementations of common message digest algorithms using a
873 generic factory method.
875 %description hash -l pl.UTF-8
876 Natywne implementacje popularnych algorytmów obliczania skrótów
877 wiadomości przy użyciu wspólnego interfejsu.
880 Summary: iconv extension module for PHP
881 Summary(pl.UTF-8): Moduł iconv dla PHP
883 URL: http://www.php.net/manual/en/book.iconv.php
884 Requires: %{_libdir}/gconv
885 Requires: %{name}-common = %{epoch}:%{version}-%{release}
890 This is a dynamic shared object (DSO) for PHP that will add iconv
893 %description iconv -l pl.UTF-8
894 Moduł PHP dodający obsługę iconv.
897 Summary: IMAP extension module for PHP
898 Summary(pl.UTF-8): Moduł IMAP dla PHP
899 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
901 URL: http://www.php.net/manual/en/book.imap.php
902 Requires: %{name}-common = %{epoch}:%{version}-%{release}
906 This is a dynamic shared object (DSO) for PHP that will add IMAP
909 %description imap -l pl.UTF-8
910 Moduł PHP dodający obsługę skrzynek IMAP.
912 %description imap -l pt_BR.UTF-8
913 Um módulo para aplicações PHP que usam IMAP.
916 Summary: InterBase/Firebird database module for PHP
917 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
919 URL: http://www.php.net/manual/en/book.ibase.php
920 Requires: %{name}-common = %{epoch}:%{version}-%{release}
921 Provides: php(interbase)
922 %{?with_interbase_inst:Autoreq: false}
924 %description interbase
925 This is a dynamic shared object (DSO) for PHP that will add InterBase
926 and Firebird database support.
928 %description interbase -l pl.UTF-8
929 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
932 Summary: PHP C extension for JSON serialization
933 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
935 URL: http://www.php.net/manual/en/book.json.php
936 Requires: %{name}-common = %{epoch}:%{version}-%{release}
938 Obsoletes: php-pecl-json
941 php-json is an extremely fast PHP C extension for JSON (JavaScript
942 Object Notation) serialisation.
944 %description json -l pl.UTF-8
945 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
946 (JavaScript Object Notation).
949 Summary: LDAP extension module for PHP
950 Summary(pl.UTF-8): Moduł LDAP dla PHP
951 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
953 URL: http://www.php.net/manual/en/book.ldap.php
954 Requires: %{name}-common = %{epoch}:%{version}-%{release}
958 This is a dynamic shared object (DSO) for PHP that will add LDAP
961 %description ldap -l pl.UTF-8
962 Moduł PHP dodający obsługę LDAP.
964 %description ldap -l pt_BR.UTF-8
965 Um módulo para aplicações PHP que usam LDAP.
968 Summary: mbstring extension module for PHP
969 Summary(pl.UTF-8): Moduł mbstring dla PHP
971 URL: http://www.php.net/manual/en/book.mbstring.php
972 Requires: %{name}-common = %{epoch}:%{version}-%{release}
973 Provides: php(mbstring)
975 %description mbstring
976 This is a dynamic shared object (DSO) for PHP that will add multibyte
979 %description mbstring -l pl.UTF-8
980 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
983 Summary: mcrypt extension module for PHP
984 Summary(pl.UTF-8): Moduł mcrypt dla PHP
986 URL: http://www.php.net/manual/en/book.mcrypt.php
987 Requires: %{name}-common = %{epoch}:%{version}-%{release}
988 Provides: php(mcrypt)
991 This is a dynamic shared object (DSO) for PHP that will add mcrypt
994 %description mcrypt -l pl.UTF-8
995 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
998 Summary: mhash extension module for PHP
999 Summary(pl.UTF-8): Moduł mhash dla PHP
1001 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1002 Provides: php(mhash)
1005 This is a dynamic shared object (DSO) for PHP that will add mhash
1008 %description mhash -l pl.UTF-8
1009 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1012 Summary: mime_magic extension module for PHP
1013 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1015 Requires: %{magic_mime}
1016 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1017 Provides: php(mime_magic)
1019 %description mime_magic
1020 This PHP module adds support for MIME type lookup via file magic
1021 numbers using magic.mime database.
1023 %description mime_magic -l pl.UTF-8
1024 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1025 znaczników plików z użyciem bazy danych magic.mime.
1028 Summary: ming extension module for PHP
1029 Summary(pl.UTF-8): Moduł ming dla PHP
1031 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1032 Requires: ming >= 0.3
1036 This is a dynamic shared object (DSO) for PHP that will add ming
1037 (Flash - .swf files) support.
1039 %description ming -l pl.UTF-8
1040 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1044 Summary: MS SQL extension module for PHP
1045 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1047 URL: http://www.php.net/manual/en/book.mssql.php
1048 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1049 Provides: php(mssql)
1052 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1053 databases support through FreeTDS library.
1055 %description mssql -l pl.UTF-8
1056 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1060 Summary: MySQL database module for PHP
1061 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1062 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1064 URL: http://www.php.net/manual/en/book.mysql.php
1065 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1066 Provides: php(mysql)
1069 This is a dynamic shared object (DSO) for PHP that will add MySQL
1072 %description mysql -l pl.UTF-8
1073 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1075 %description mysql -l pt_BR.UTF-8
1076 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1079 Summary: MySQLi module for PHP
1080 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1082 URL: http://www.php.net/manual/en/book.mysqli.php
1083 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1084 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1085 Requires: mysql-libs >= 4.1.0
1086 Provides: php(mysqli)
1089 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1090 (Improved MySQL) support. The difference between it and mysql module
1091 is that it provides access to functionality of MySQL 4.1 and above.
1093 %description mysqli -l pl.UTF-8
1094 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1095 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1096 MySQL w wersji 4.1 i nowszych.
1099 Summary: ncurses module for PHP
1100 Summary(pl.UTF-8): Moduł ncurses dla PHP
1102 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1103 Provides: php(ncurses)
1105 %description ncurses
1106 This PHP module adds support for ncurses functions (only for cli and
1109 %description ncurses -l pl.UTF-8
1110 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1113 Summary: Oracle 8+ database module for PHP
1114 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1116 URL: http://www.php.net/manual/en/book.oci8.php
1117 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1122 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1123 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1125 %description oci8 -l pl.UTF-8
1126 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1127 poprzez interfejs Oracle8 Call-Interface (OCI8).
1130 Summary: ODBC extension module for PHP
1131 Summary(pl.UTF-8): Moduł ODBC dla PHP
1132 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1134 URL: http://www.php.net/manual/en/book.uodbc.php
1135 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1136 Requires: unixODBC >= 2.1.1-3
1140 This is a dynamic shared object (DSO) for PHP that will add ODBC
1143 %description odbc -l pl.UTF-8
1144 Moduł PHP ze wsparciem dla ODBC.
1146 %description odbc -l pt_BR.UTF-8
1147 Um módulo para aplicações PHP que usam ODBC.
1150 Summary: OpenSSL extension module for PHP
1151 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1153 URL: http://www.php.net/manual/en/book.openssl.php
1154 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1155 Provides: php(openssl)
1157 %description openssl
1158 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1161 %description openssl -l pl.UTF-8
1162 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1165 Summary: Process Control extension module for PHP
1166 Summary(pl.UTF-8): Moduł Process Control dla PHP
1168 URL: http://www.php.net/manual/en/book.pcntl.php
1169 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1170 Provides: php(pcntl)
1173 This is a dynamic shared object (DSO) for PHP that will add process
1174 spawning and control support. It supports functions like fork(),
1175 waitpid(), signal() etc.
1177 %description pcntl -l pl.UTF-8
1178 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1179 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1182 Summary: PCRE extension module for PHP
1183 Summary(pl.UTF-8): Moduł PCRE dla PHP
1185 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1189 This is a dynamic shared object (DSO) for PHP that will add Perl
1190 Compatible Regular Expression support.
1192 %description pcre -l pl.UTF-8
1193 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1194 (Perl Compatible Regular Expressions)
1197 Summary: PHP Data Objects (PDO)
1198 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1200 URL: http://www.php.net/manual/en/book.pdo.php
1201 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1202 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1204 Obsoletes: php-pecl-PDO
1207 This is a dynamic shared object (DSO) for PHP that will add PDO
1210 %description pdo -l pl.UTF-8
1211 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1214 Summary: PHP Data Objects (PDO) FreeTDS support
1215 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1217 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1218 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1219 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1220 Provides: php(dblib)
1222 %description pdo-dblib
1223 This is a dynamic shared object (DSO) for PHP that will add PDO
1226 %description pdo-dblib -l pl.UTF-8
1227 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1230 %package pdo-firebird
1231 Summary: PHP Data Objects (PDO) Firebird support
1232 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1234 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1235 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1236 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1237 Provides: php(pdo-firebird)
1238 Obsoletes: php-pecl-PDO_FIREBIRD
1240 %description pdo-firebird
1241 This is a dynamic shared object (DSO) for PHP that will add PDO
1244 %description pdo-firebird -l pl.UTF-8
1245 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1249 Summary: PHP Data Objects (PDO) MySQL support
1250 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1252 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1253 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1254 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1255 Provides: php(pdo-mysql)
1256 Obsoletes: php-pecl-PDO_MYSQL
1258 %description pdo-mysql
1259 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1262 %description pdo-mysql -l pl.UTF-8
1263 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1267 Summary: PHP Data Objects (PDO) Oracle support
1268 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1270 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1271 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1272 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1273 Provides: php(pdo-oci)
1274 Obsoletes: php-pecl-PDO_OCI
1276 %description pdo-oci
1277 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1280 %description pdo-oci -l pl.UTF-8
1281 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1285 Summary: PHP Data Objects (PDO) ODBC support
1286 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1288 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1289 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1290 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1291 Provides: php(pdo-odbc)
1292 Obsoletes: php-pecl-PDO_ODBC
1294 %description pdo-odbc
1295 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1298 %description pdo-odbc -l pl.UTF-8
1299 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1303 Summary: PHP Data Objects (PDO) PostgreSQL support
1304 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1306 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1307 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1308 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1309 Provides: php(pdo-pgsql)
1310 Provides: php-pecl-PDO_PGSQL
1311 Obsoletes: php-pecl-PDO_PGSQL
1313 %description pdo-pgsql
1314 This is a dynamic shared object (DSO) for PHP that will add PDO
1317 %description pdo-pgsql -l pl.UTF-8
1318 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1322 Summary: PHP Data Objects (PDO) SQLite support
1323 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1325 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1326 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1327 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1328 Provides: php(pdo-sqlite)
1329 Obsoletes: php-pecl-PDO_SQLITE
1331 %description pdo-sqlite
1332 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1335 %description pdo-sqlite -l pl.UTF-8
1336 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1340 Summary: PostgreSQL database module for PHP
1341 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1343 URL: http://www.php.net/manual/en/book.pgsql.php
1344 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1345 Provides: php(pgsql)
1348 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1351 %description pgsql -l pl.UTF-8
1352 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1354 %description pgsql -l pt_BR.UTF-8
1355 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1358 Summary: POSIX extension module for PHP
1359 Summary(pl.UTF-8): Moduł POSIX dla PHP
1361 URL: http://www.php.net/manual/en/book.posix.php
1362 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1363 Provides: php(posix)
1366 This is a dynamic shared object (DSO) for PHP that will add POSIX
1367 functions support to PHP.
1369 %description posix -l pl.UTF-8
1370 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1373 Summary: pspell extension module for PHP
1374 Summary(pl.UTF-8): Moduł pspell dla PHP
1376 URL: http://www.php.net/manual/en/book.pspell.php
1377 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1378 Provides: php(pspell)
1381 This is a dynamic shared object (DSO) for PHP that will add pspell
1382 support to PHP. It allows to check the spelling of a word and offer
1385 %description pspell -l pl.UTF-8
1386 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1387 sprawdzanie pisowni słowa i sugerowanie poprawek.
1390 Summary: readline extension module for PHP
1391 Summary(pl.UTF-8): Moduł readline dla PHP
1393 URL: http://www.php.net/manual/en/book.readline.php
1394 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1395 Provides: php(readline)
1397 %description readline
1398 This PHP module adds support for readline functions (only for cli and
1401 %description readline -l pl.UTF-8
1402 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1405 Summary: recode extension module for PHP
1406 Summary(pl.UTF-8): Moduł recode dla PHP
1408 URL: http://www.php.net/manual/en/book.recode.php
1409 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1410 Requires: recode >= 3.5d-3
1411 Provides: php(recode)
1414 This is a dynamic shared object (DSO) for PHP that will add recode
1417 %description recode -l pl.UTF-8
1418 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1422 Summary: session extension module for PHP
1423 Summary(pl.UTF-8): Moduł session dla PHP
1425 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1426 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1428 Provides: php(session)
1430 %description session
1431 This is a dynamic shared object (DSO) for PHP that will add session
1434 %description session -l pl.UTF-8
1435 Moduł PHP dodający obsługę sesji.
1438 Summary: Shared Memory Operations extension module for PHP
1439 Summary(pl.UTF-8): Moduł shmop dla PHP
1441 URL: http://www.php.net/manual/en/book.shmop.php
1442 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1443 Provides: php(shmop)
1446 This is a dynamic shared object (DSO) for PHP that will add Shared
1447 Memory Operations support.
1449 %description shmop -l pl.UTF-8
1450 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1453 Summary: Simple XML extension module for PHP
1454 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1456 URL: http://www.php.net/manual/en/book.simplexml.php
1457 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1458 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1459 Provides: php(simplexml)
1461 %description simplexml
1462 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1465 %description simplexml -l pl.UTF-8
1466 Moduł PHP dodający obsługę prostego XML-a.
1469 Summary: SNMP extension module for PHP
1470 Summary(pl.UTF-8): Moduł SNMP dla PHP
1472 URL: http://www.php.net/manual/en/book.snmp.php
1473 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1474 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1478 This is a dynamic shared object (DSO) for PHP that will add SNMP
1481 %description snmp -l pl.UTF-8
1482 Moduł PHP dodający obsługę SNMP.
1485 Summary: soap extension module for PHP
1486 Summary(pl.UTF-8): Moduł soap dla PHP
1488 URL: http://www.php.net/manual/en/book.soap.php
1489 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1493 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1496 %description soap -l pl.UTF-8
1497 Moduł PHP dodający obsługę SOAP/WSDL.
1500 Summary: sockets extension module for PHP
1501 Summary(pl.UTF-8): Moduł socket dla PHP
1503 URL: http://www.php.net/manual/en/book.sockets.php
1504 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1505 Provides: php(sockets)
1507 %description sockets
1508 This is a dynamic shared object (DSO) for PHP that will add sockets
1511 %description sockets -l pl.UTF-8
1512 Moduł PHP dodający obsługę gniazdek.
1515 Summary: Standard PHP Library module for PHP
1516 Summary(pl.UTF-8): Moduł SPL dla PHP
1518 URL: http://php.net/manual/en/book.spl.php
1519 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1520 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1521 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1525 This is a dynamic shared object (DSO) for PHP that will add Standard
1526 PHP Library support.
1528 %description spl -l pl.UTF-8
1529 Moduł PHP dodający obsługę gniazdek.
1532 Summary: SQLite extension module for PHP
1533 Summary(pl.UTF-8): Moduł SQLite dla PHP
1535 URL: http://www.php.net/manual/en/book.sqlite.php
1536 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1537 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1538 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1539 Provides: php(sqlite)
1542 SQLite is a C library that implements an embeddable SQL database
1543 engine. Programs that link with the SQLite library can have SQL
1544 database access without running a separate RDBMS process.
1546 SQLite is not a client library used to connect to a big database
1547 server. SQLite is the server. The SQLite library reads and writes
1548 directly to and from the database files on disk.
1550 %description sqlite -l pl.UTF-8
1551 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1552 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1553 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1556 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1557 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1558 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1562 Summary: Sybase DB extension module for PHP
1563 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1565 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1566 Provides: php(sybase)
1567 Obsoletes: php-sybase-ct
1568 Conflicts: php-sybase-ct
1571 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1572 MS SQL databases support through SYBDB library. Currently Sybase
1573 module is not maintained. Using Sybase-CT module is recommended
1576 %description sybase -l pl.UTF-8
1577 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1578 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1579 Zaleca się używanie modułu Sybase-CT.
1582 Summary: Sybase-CT extension module for PHP
1583 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1585 URL: http://www.php.net/manual/en/book.sybase.php
1586 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1587 Provides: php(sybase-ct)
1588 Obsoletes: php-sybase
1589 Conflicts: php-sybase
1591 %description sybase-ct
1592 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1593 MS SQL databases support through CT-lib.
1595 %description sybase-ct -l pl.UTF-8
1596 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1600 Summary: SysV msg extension module for PHP
1601 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1603 URL: http://www.php.net/manual/en/book.sem.php
1604 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1605 Provides: php(sysvmsg)
1607 %description sysvmsg
1608 This is a dynamic shared object (DSO) for PHP that will add SysV
1609 message queues support.
1611 %description sysvmsg -l pl.UTF-8
1612 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1615 Summary: SysV sem extension module for PHP
1616 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1618 URL: http://www.php.net/manual/en/book.sem.php
1619 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1620 Provides: php(sysvsem)
1622 %description sysvsem
1623 This is a dynamic shared object (DSO) for PHP that will add SysV
1626 %description sysvsem -l pl.UTF-8
1627 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1630 Summary: SysV shm extension module for PHP
1631 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1633 URL: http://www.php.net/manual/en/book.shmop.php
1634 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1635 Provides: php(sysvshm)
1637 %description sysvshm
1638 This is a dynamic shared object (DSO) for PHP that will add SysV
1639 Shared Memory support.
1641 %description sysvshm -l pl.UTF-8
1642 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1645 Summary: Contains unit test files for PHP and extensions
1646 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1648 URL: http://qa.php.net/
1649 Requires: %{name}-cli
1652 This package contains unit tests for PHP and it's extensions.
1654 %description tests -l pl.UTF-8
1655 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1658 Summary: Tidy extension module for PHP
1659 Summary(pl.UTF-8): Moduł Tidy dla PHP
1661 URL: http://www.php.net/manual/en/book.tidy.php
1662 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1667 This is a dynamic shared object (DSO) for PHP that will add Tidy
1670 %description tidy -l pl.UTF-8
1671 Moduł PHP umożliwiający korzystanie z tidy.
1674 Summary: tokenizer extension module for PHP
1675 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1677 URL: http://www.php.net/manual/en/book.tokenizer.php
1678 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1679 Provides: php(tokenizer)
1681 %description tokenizer
1682 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1685 %description tokenizer -l pl.UTF-8
1686 Moduł PHP dodający obsługę tokenizera do PHP.
1689 Summary: wddx extension module for PHP
1690 Summary(pl.UTF-8): Moduł wddx dla PHP
1692 URL: http://www.php.net/manual/en/book.wddx.php
1693 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1694 # - wddx doesn't require session as it's disabled at compile time:
1695 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1696 # see also php.spec#rev1.120.2.22
1697 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1698 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1702 This is a dynamic shared object (DSO) for PHP that will add wddx
1705 %description wddx -l pl.UTF-8
1706 Moduł PHP umożliwiający korzystanie z wddx.
1709 Summary: XML extension module for PHP
1710 Summary(pl.UTF-8): Moduł XML dla PHP
1712 URL: http://www.php.net/manual/en/book.xml.php
1713 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1717 This is a dynamic shared object (DSO) for PHP that will add XML
1718 support. This extension lets you create XML parsers and then define
1719 handlers for different XML events.
1721 %description xml -l pl.UTF-8
1722 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1723 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1724 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1727 Summary: XML Reader extension module for PHP
1728 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1730 URL: http://www.php.net/manual/en/book.xmlreader.php
1731 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1732 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1733 Provides: php(xmlreader)
1735 %description xmlreader
1736 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1737 support. The XMLReader extension is an XML Pull parser. The reader
1738 acts as a cursor going forward on the document stream and stopping at
1739 each node on the way.
1741 %description xmlreader -l pl.UTF-8
1742 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1743 działa jako kursor przechodzący przez strumień dokumentu i
1744 zatrzymujący się na każdym węźle po drodze.
1747 Summary: xmlrpc extension module for PHP
1748 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1750 URL: http://www.php.net/manual/en/book.xmlrpc.php
1751 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1752 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1753 Provides: php(xmlrpc)
1756 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1759 %description xmlrpc -l pl.UTF-8
1760 Moduł PHP dodający obsługę XMLRPC.
1763 Summary: Fast, non-cached, forward-only means to write XML data
1764 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1766 URL: http://www.php.net/manual/en/book.xmlwriter.php
1767 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1768 Provides: php(xmlwriter)
1769 Obsoletes: php-pecl-xmlwriter
1771 %description xmlwriter
1772 This extension wraps the libxml xmlWriter API. Represents a writer
1773 that provides a non-cached, forward-only means of generating streams
1774 or files containing XML data.
1776 %description xmlwriter -l pl.UTF-8
1777 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1778 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1779 plików zawierających dane XML.
1782 Summary: xsl extension module for PHP
1783 Summary(pl.UTF-8): Moduł xsl dla PHP
1785 URL: http://www.php.net/manual/en/book.xsl.php
1786 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1787 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1788 Requires: libxslt >= 1.0.18
1789 # actually not true, functionality is similar, but API differs
1791 Obsoletes: php-xslt <= 3:4.3.8-1
1794 This is a dynamic shared object (DSO) for PHP that will add new XSL
1795 support (using libxslt).
1797 %description xsl -l pl.UTF-8
1798 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1801 Summary: Zip management extension
1802 Summary(pl.UTF-8): Zarządzanie archiwami zip
1804 URL: http://www.php.net/manual/en/book.zip.php
1805 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1806 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1808 Obsoletes: php-pecl-zip
1811 Zip is an extension to create, modify and read zip files.
1813 %description zip -l pl.UTF-8
1814 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1815 odczyt archiwów zip.
1818 Summary: Zlib extension module for PHP
1819 Summary(pl.UTF-8): Moduł zlib dla PHP
1821 URL: http://www.php.net/manual/en/book.zlib.php
1822 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1826 This is a dynamic shared object (DSO) for PHP that will add zlib
1827 compression support to PHP.
1829 %description zlib -l pl.UTF-8
1830 Moduł PHP umożliwiający używanie kompresji zlib.
1833 %setup -q -n %{orgname}-%{version}
1836 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1849 cp php.ini-dist php.ini
1851 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1861 %if %{with system_gd}
1870 %{?with_versioning:%patch25 -p1}
1873 %{__tar} jxf %{SOURCE9}
1874 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1875 mv $v/$v gentoo-patchset
1876 for a in gentoo-patchset/*.patch; do
1889 %if "%{pld_release}" != "ac"
1894 # mysql default charset for mysql/mysql/pdo-mysql extensions
1926 %{?with_system_libzip:%patch65 -p1}
1934 # Bugfix backport from 5.3.6
1935 %patch311 -p1 -b .bug-47435
1936 %patch314 -p1 -b .bug-39199
1937 # Bugfix backport from 5.3.7
1938 #accert %patch333 -p1 -b .bug-54924
1939 #soap %patch355 -p1 -b .bug-55323
1940 # causes regression -> magic_quotes_gpc setting cannot be changed
1941 #%%patch402 -p1 -b .bug-323016
1943 # conflict seems to be resolved by recode patches
1944 rm -f ext/recode/config9.m4
1946 # remove all bundled libraries not to link with them accidentally
1947 #rm -rf ext/sqlite/libsqlite
1948 #rm -rf ext/bcmath/libbcmath
1949 #rm -rf ext/date/lib
1950 #rm -rf ext/dba/libcdb
1951 #rm -rf ext/dba/libflatfile
1952 #rm -rf ext/dba/libinifile
1953 #rm -rf ext/gd/libgd
1954 #rm -rf ext/mbstring/libmbfl
1955 #rm -rf ext/mbstring/oniguruma
1956 rm -rf ext/pcre/pcrelib
1957 rm -rf ext/pdo_sqlite/sqlite
1958 #rm -rf ext/soap/interop
1959 %if %{with system_xmlrpc_epi}
1960 rm -rf ext/xmlrpc/libxmlrpc
1964 # this test hungs on ac-ppc
1965 #mv ext/reflection/tests/007.php{,ignore}
1966 # this test gets killed by itself
1967 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1970 cp -af Zend/LICENSE{,.Zend}
1971 install -p %{SOURCE13} dep-tests.sh
1973 # disable broken tests
1974 # says just "Terminated" twice and fails
1975 mv sapi/cli/tests/022.phpt{,.broken}
1977 sh -xe %{_sourcedir}/skip-tests.sh
1980 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1981 if [ $API != %{php_api_version} ]; then
1982 echo "Set %%define php_api_version to $API and re-run."
1986 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1987 if [ $API != %{zend_module_api} ]; then
1988 echo "Set %%define zend_module_api to $API and re-run."
1992 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1993 if [ $API != %{zend_extension_api} ]; then
1994 echo "Set %%define zend_extension_api to $API and re-run."
1998 export EXTENSION_DIR="%{php_extensiondir}"
1999 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
2000 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
2003 cp -f /usr/share/automake/config.* .
2007 export PROG_SENDMAIL="/usr/lib/sendmail"
2024 for sapi in $sapis; do
2026 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2031 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2034 sapi_args='--disable-cgi'
2037 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2040 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2043 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2044 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2047 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2048 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2053 FORCE_APACHE_VERSION="${apache_ver}" \
2055 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2056 --cache-file=config.cache \
2058 --with-libdir=%{_lib} \
2059 --with-config-file-path=%{_sysconfdir} \
2060 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2061 --with-exec-dir=%{_bindir} \
2062 --with-system-tzdata \
2063 --%{!?debug:dis}%{?debug:en}able-debug \
2064 %{?with_zts:--enable-maintainer-zts} \
2065 %{?with_suhosin:--enable-suhosin} \
2066 %{?with_zend_multibyte:--enable-zend-multibyte} \
2067 --enable-inline-optimization \
2068 --enable-bcmath=shared \
2069 --enable-calendar=shared \
2070 --enable-ctype=shared \
2071 --enable-dba=shared \
2072 --enable-dom=shared \
2073 --enable-exif=shared \
2074 --enable-ftp=shared \
2075 --enable-gd-native-ttf \
2076 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2078 --enable-magic-quotes \
2079 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2081 --enable-pcntl=shared \
2082 --enable-pdo=shared \
2083 --enable-json=shared \
2084 --enable-hash=shared \
2085 --enable-xmlwriter=shared \
2087 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2088 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2089 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2091 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2092 --with-pdo-dblib=shared \
2094 %if %{with interbase} && !%{with interbase_inst}
2095 --with-pdo-firebird=shared,/usr \
2097 --with-pdo-mysql=shared \
2098 %{?with_oci8:--with-pdo-oci=shared} \
2099 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2100 %{?with_pgsql:--with-pdo-pgsql=shared} \
2101 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2102 --enable-posix=shared \
2103 --enable-reflection \
2105 --enable-session=shared \
2106 --enable-shmop=shared \
2107 --enable-simplexml=shared \
2108 --enable-spl=shared \
2109 --enable-sysvmsg=shared \
2110 --enable-sysvsem=shared \
2111 --enable-sysvshm=shared \
2112 --enable-safe-mode \
2113 --enable-soap=shared \
2114 --enable-sockets=shared \
2115 --enable-tokenizer=shared \
2116 --enable-ucd-snmp-hack \
2117 %{?with_wddx:--enable-wddx=shared} \
2118 --enable-xml=shared \
2119 --enable-xmlreader=shared \
2121 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2123 --enable-dbase=shared \
2124 --without-libexpat-dir \
2125 %{?with_fdf:--with-fdftk=shared} \
2126 --with-iconv=shared \
2127 --with-freetype-dir=shared \
2128 --with-gettext=shared \
2129 --with-gd=shared%{?with_system_gd:,/usr} \
2132 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2133 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2134 --with-jpeg-dir=/usr \
2135 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2136 --with-mcrypt=shared \
2137 %{?with_mhash:--with-mhash=shared} \
2138 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2139 %{?with_ming:--with-ming=shared} \
2140 %{?with_mm:--with-mm} \
2141 %{?with_mssql:--with-mssql=shared} \
2142 --with-mysql=shared,/usr \
2143 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2144 %{?with_mysqli:--with-mysqli=shared} \
2145 --with-ncurses=shared \
2146 %{?with_oci8:--with-oci8=shared} \
2147 %{?with_openssl:--with-openssl=shared} \
2149 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2150 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2151 --with-pear=%{php_pear_dir} \
2152 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2153 --with-png-dir=/usr \
2154 %{?with_pspell:--with-pspell=shared} \
2155 --with-readline=shared \
2156 %{?with_recode:--with-recode=shared} \
2158 %{?with_snmp:--with-snmp=shared} \
2159 %{?with_sybase:--with-sybase=shared,/usr} \
2160 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2161 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2162 --with-t1lib=shared \
2163 %{?with_tidy:--with-tidy=shared} \
2164 %{?with_odbc:--with-unixODBC=shared,/usr} \
2165 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2167 --with-zlib=shared \
2168 --with-zlib-dir=shared,/usr \
2169 %{?with_system_libzip:--with-libzip} \
2170 --enable-zip=shared,/usr \
2172 cp -f Makefile Makefile.$sapi
2173 cp -f main/php_config.h php_config.h.$sapi
2174 cp -f config.log config.log.$sapi
2177 # as we build each SAPI in own make, adjust php-config.in forehead
2178 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2179 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2181 # must make this first, so modules can link against it.
2182 %{__make} libphp_common.la
2183 %{__make} build-modules
2186 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2190 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2194 cp -af php_config.h.cgi main/php_config.h
2195 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2196 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2197 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2201 cp -af php_config.h.fcgi main/php_config.h
2202 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2203 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2204 cp -r sapi/cgi sapi/fcgi
2205 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2209 cp -af php_config.h.fpm main/php_config.h
2210 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2211 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2212 cp -r sapi/cgi sapi/fpm
2213 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2217 cp -af php_config.h.cli main/php_config.h
2218 %{__make} sapi/cli/php -f Makefile.cli
2219 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2221 # check for stupid xml parse breakage where < and > just get lost in parse result
2222 ./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"]));'
2224 # Generate stub .ini files for each extension
2227 generate_inifiles() {
2228 for so in modules/*.so; do
2229 mod=$(basename $so .so)
2231 # xml needs to be loaded before wddx
2232 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2233 # pre needs to be loaded before SPL
2234 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2235 # spl needs to be loaded before mysqli
2236 [ "$mod" = "spl" ] && conf="SPL.ini"
2237 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2238 [ "$mod" = "session" ] && conf="Session.ini"
2240 cat > conf.d/$conf <<-EOF
2241 ; Enable $mod extension module
2248 # Check that the module inner-dependencies are intact
2249 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2250 if grep -v OK dep-tests.log; then
2251 echo >&2 "The results above were not expected"
2252 # TEMP: ac-i386 builder is broken
2260 # Run tests, using the CLI SAPI
2261 cp -af php_config.h.cli main/php_config.h
2262 cp -af Makefile.cli Makefile
2263 # sybase modules collide, remove one
2264 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2266 cat <<'EOF' > run-tests.sh
2268 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2269 unset TZ LANG LC_ALL || :
2272 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2273 RUN_TESTS_SETTINGS="-q $*"
2275 chmod +x run-tests.sh
2276 ./run-tests.sh -w failed.log -s test.log
2278 # collect failed tests into cleanup script used in prep.
2279 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2280 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2281 >> %{_sourcedir}/skip-tests.sh
2283 failed=$(wc -l < tests-failed.log)
2284 if [ "$failed" != 0 ]; then
2290 rm -rf $RPM_BUILD_ROOT
2291 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2292 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2293 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2294 $RPM_BUILD_ROOT%{_mandir}/man1 \
2296 # install the Apache modules' files
2297 %{__make} install-headers install-build install-modules install-programs \
2298 phpbuilddir=%{_libdir}/%{name}/build \
2299 INSTALL_ROOT=$RPM_BUILD_ROOT
2302 v=$(echo %{version} | cut -d. -f1-2)
2304 # install Apache1 DSO module
2306 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2307 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2308 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2311 # install Apache2 DSO module
2313 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2314 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2315 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
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}/%{name}/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}/%{name}/build
2401 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2403 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2404 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2406 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2407 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2409 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2410 # isn't installed by install-headers make target, we do it manually here.
2411 # this header file is required by e.g. filter PECL extension
2412 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2413 # for php-pecl-mailparse
2414 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2415 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2418 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2419 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2420 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2422 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2423 # fix install paths, avoid evil rpaths
2424 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2426 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2429 rm -rf $RPM_BUILD_ROOT
2431 %post -n apache1-mod_%{name}
2432 if [ "$1" = "1" ]; then
2433 %service -q apache restart
2436 %postun -n apache1-mod_%{name}
2437 if [ "$1" = "0" ]; then
2438 %service -q apache restart
2441 %post -n apache-mod_%{name}
2442 if [ "$1" = "1" ]; then
2443 %service -q httpd restart
2446 %postun -n apache-mod_%{name}
2447 if [ "$1" = "0" ]; then
2448 %service -q httpd restart
2452 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2455 /sbin/chkconfig --add %{name}-fpm
2456 %service %{name}-fpm restart
2459 if [ "$1" = 0 ]; then
2460 %service %{name}-fpm stop
2461 /sbin/chkconfig --del %{name}-fpm
2465 if [ "$1" = "0" ]; then
2469 %post common -p /sbin/ldconfig
2470 %postun common -p /sbin/ldconfig
2473 # minimizing apache restarts logics. we restart webserver:
2475 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2476 # 2. first install of extension (post: $1 = 1)
2477 # 2. uninstall of extension (postun: $1 == 0)
2479 # the strict internal deps between extensions (and apache modules) and
2480 # common package are very important for all this to work.
2482 # restart webserver at the end of transaction
2483 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2484 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2486 # common macros called at extension post/postun scriptlet
2487 %define extension_scripts() \
2489 if [ "$1" = "1" ]; then \
2490 %php_webserver_restart \
2494 if [ "$1" = "0" ]; then \
2495 %php_webserver_restart \
2499 # extension scripts defines
2500 %extension_scripts bcmath
2501 %extension_scripts bz2
2502 %extension_scripts calendar
2503 %extension_scripts ctype
2504 %extension_scripts curl
2505 %extension_scripts dba
2506 %extension_scripts dbase
2507 %extension_scripts dom
2508 %extension_scripts exif
2509 %extension_scripts fdf
2510 %extension_scripts filter
2511 %extension_scripts ftp
2512 %extension_scripts gd
2513 %extension_scripts gettext
2514 %extension_scripts gmp
2515 %extension_scripts hash
2516 %extension_scripts iconv
2517 %extension_scripts imap
2518 %extension_scripts interbase
2519 %extension_scripts json
2520 %extension_scripts ldap
2521 %extension_scripts mbstring
2522 %extension_scripts mcrypt
2523 %extension_scripts mhash
2524 %extension_scripts mime_magic
2525 %extension_scripts ming
2526 %extension_scripts mssql
2527 %extension_scripts mysql
2528 %extension_scripts mysqli
2529 %extension_scripts oci8
2530 %extension_scripts odbc
2531 %extension_scripts openssl
2532 %extension_scripts pcntl
2533 %extension_scripts pcre
2534 %extension_scripts pdo
2535 %extension_scripts pdo-dblib
2536 %extension_scripts pdo-firebird
2537 %extension_scripts pdo-oci
2538 %extension_scripts pdo-mysql
2539 %extension_scripts pdo-odbc
2540 %extension_scripts pdo-pgsql
2541 %extension_scripts pdo-sqlite
2542 %extension_scripts pgsql
2543 %extension_scripts posix
2544 %extension_scripts pspell
2545 %extension_scripts recode
2546 %extension_scripts session
2547 %extension_scripts simplexml
2548 %extension_scripts shmop
2549 %extension_scripts snmp
2550 %extension_scripts soap
2551 %extension_scripts sockets
2552 %extension_scripts spl
2553 %extension_scripts sqlite
2554 %extension_scripts sybase
2555 %extension_scripts sybase-ct
2556 %extension_scripts sysvmsg
2557 %extension_scripts sysvsem
2558 %extension_scripts sysvshm
2559 %extension_scripts tidy
2560 %extension_scripts tokenizer
2561 %extension_scripts wddx
2562 %extension_scripts xml
2563 %extension_scripts xmlreader
2564 %extension_scripts xmlrpc
2565 %extension_scripts xmlwriter
2566 %extension_scripts xsl
2567 %extension_scripts zip
2568 %extension_scripts zlib
2571 %files -n apache1-mod_%{name}
2572 %defattr(644,root,root,755)
2573 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2574 %dir %{_sysconfdir}/apache.d
2575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2576 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2577 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2581 %files -n apache-mod_%{name}
2582 %defattr(644,root,root,755)
2583 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2584 %dir %{_sysconfdir}/apache2handler.d
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2586 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2587 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2592 %defattr(644,root,root,755)
2593 %doc sapi/cgi/README.FastCGI
2594 %dir %{_sysconfdir}/cgi-fcgi.d
2595 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2596 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2600 %defattr(644,root,root,755)
2601 %dir %{_sysconfdir}/cgi.d
2602 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2603 %attr(755,root,root) %{_bindir}/%{name}.cgi
2606 %defattr(644,root,root,755)
2607 %dir %{_sysconfdir}/cli.d
2608 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2609 %attr(755,root,root) %{_bindir}/%{phpfn}
2610 %{_mandir}/man1/%{phpfn}.1*
2613 %defattr(644,root,root,755)
2614 %attr(755,root,root) %{_bindir}/php
2615 %{_mandir}/man1/php.1*
2619 %defattr(644,root,root,755)
2620 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2621 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2622 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2623 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2627 %defattr(644,root,root,755)
2629 %doc CREDITS Zend/ZEND_CHANGES
2630 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2631 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2634 %dir %{_sysconfdir}/conf.d
2635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2636 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2637 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2638 %dir %{php_extensiondir}
2641 %defattr(644,root,root,755)
2642 %doc README.UNIX-BUILD-SYSTEM
2643 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2644 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2645 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2646 %attr(755,root,root) %{_bindir}/phpize
2647 %attr(755,root,root) %{_bindir}/php-config
2648 %attr(755,root,root) %{_libdir}/libphp_common.so
2649 %{_libdir}/libphp_common.la
2651 %{_libdir}/%{name}/build
2652 %{_mandir}/man1/php-config.1*
2653 %{_mandir}/man1/phpize.1*
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2658 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2663 %attr(755,root,root) %{php_extensiondir}/bz2.so
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2668 %attr(755,root,root) %{php_extensiondir}/calendar.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2673 %attr(755,root,root) %{php_extensiondir}/ctype.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2679 %attr(755,root,root) %{php_extensiondir}/curl.so
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2685 %attr(755,root,root) %{php_extensiondir}/dba.so
2688 %defattr(644,root,root,755)
2689 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2690 %attr(755,root,root) %{php_extensiondir}/dbase.so
2693 %defattr(644,root,root,755)
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2695 %attr(755,root,root) %{php_extensiondir}/dom.so
2699 %defattr(644,root,root,755)
2700 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2701 %attr(755,root,root) %{php_extensiondir}/fdf.so
2706 %defattr(644,root,root,755)
2707 %doc README.input_filter
2708 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2709 %attr(755,root,root) %{php_extensiondir}/filter.so
2713 %defattr(644,root,root,755)
2714 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2715 %attr(755,root,root) %{php_extensiondir}/exif.so
2718 %defattr(644,root,root,755)
2719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2720 %attr(755,root,root) %{php_extensiondir}/ftp.so
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2725 %attr(755,root,root) %{php_extensiondir}/gd.so
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2730 %attr(755,root,root) %{php_extensiondir}/gettext.so
2733 %defattr(644,root,root,755)
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2735 %attr(755,root,root) %{php_extensiondir}/gmp.so
2738 %defattr(644,root,root,755)
2739 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2740 %attr(755,root,root) %{php_extensiondir}/hash.so
2743 %defattr(644,root,root,755)
2744 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2745 %attr(755,root,root) %{php_extensiondir}/iconv.so
2749 %defattr(644,root,root,755)
2750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2751 %attr(755,root,root) %{php_extensiondir}/imap.so
2754 %if %{with interbase}
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2758 %attr(755,root,root) %{php_extensiondir}/interbase.so
2762 %defattr(644,root,root,755)
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2764 %attr(755,root,root) %{php_extensiondir}/json.so
2768 %defattr(644,root,root,755)
2769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2770 %attr(755,root,root) %{php_extensiondir}/ldap.so
2773 %if %{without zend_multibyte}
2775 %defattr(644,root,root,755)
2776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2777 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2781 %defattr(644,root,root,755)
2782 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2783 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2787 %defattr(644,root,root,755)
2788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2789 %attr(755,root,root) %{php_extensiondir}/mhash.so
2792 %if %{with mime_magic}
2794 %defattr(644,root,root,755)
2795 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2796 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2801 %defattr(644,root,root,755)
2802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2803 %attr(755,root,root) %{php_extensiondir}/ming.so
2808 %defattr(644,root,root,755)
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2810 %attr(755,root,root) %{php_extensiondir}/mssql.so
2814 %defattr(644,root,root,755)
2815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2816 %attr(755,root,root) %{php_extensiondir}/mysql.so
2820 %defattr(644,root,root,755)
2821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2822 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2826 %defattr(644,root,root,755)
2827 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2828 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2832 %defattr(644,root,root,755)
2833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2834 %attr(755,root,root) %{php_extensiondir}/oci8.so
2839 %defattr(644,root,root,755)
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2841 %attr(755,root,root) %{php_extensiondir}/odbc.so
2846 %defattr(644,root,root,755)
2847 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2848 %attr(755,root,root) %{php_extensiondir}/openssl.so
2852 %defattr(644,root,root,755)
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2854 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2858 %defattr(644,root,root,755)
2859 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2860 %attr(755,root,root) %{php_extensiondir}/pcre.so
2864 %defattr(644,root,root,755)
2865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2866 %attr(755,root,root) %{php_extensiondir}/pdo.so
2868 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2870 %defattr(644,root,root,755)
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2872 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2875 %if %{with interbase} && !%{with interbase_inst}
2877 %defattr(644,root,root,755)
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2879 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2883 %defattr(644,root,root,755)
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2885 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2889 %defattr(644,root,root,755)
2890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2891 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2896 %defattr(644,root,root,755)
2897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2898 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2903 %defattr(644,root,root,755)
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2905 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2910 %defattr(644,root,root,755)
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2912 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2917 %defattr(644,root,root,755)
2918 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2919 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2923 %defattr(644,root,root,755)
2924 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2925 %attr(755,root,root) %{php_extensiondir}/posix.so
2929 %defattr(644,root,root,755)
2930 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2931 %attr(755,root,root) %{php_extensiondir}/pspell.so
2935 %defattr(644,root,root,755)
2936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2937 %attr(755,root,root) %{php_extensiondir}/readline.so
2941 %defattr(644,root,root,755)
2942 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2943 %attr(755,root,root) %{php_extensiondir}/recode.so
2947 %defattr(644,root,root,755)
2948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2949 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2952 %defattr(644,root,root,755)
2953 %doc ext/session/mod_files.sh
2954 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2955 %attr(755,root,root) %{php_extensiondir}/session.so
2958 %defattr(644,root,root,755)
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2960 %attr(755,root,root) %{php_extensiondir}/shmop.so
2964 %defattr(644,root,root,755)
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2966 %attr(755,root,root) %{php_extensiondir}/snmp.so
2970 %defattr(644,root,root,755)
2971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2972 %attr(755,root,root) %{php_extensiondir}/soap.so
2975 %defattr(644,root,root,755)
2976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2977 %attr(755,root,root) %{php_extensiondir}/sockets.so
2980 %defattr(644,root,root,755)
2981 %doc ext/spl/{CREDITS,README,TODO}
2982 %doc ext/spl/examples
2983 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2984 %attr(755,root,root) %{php_extensiondir}/spl.so
2988 %defattr(644,root,root,755)
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2990 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2995 %defattr(644,root,root,755)
2996 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2997 %attr(755,root,root) %{php_extensiondir}/sybase.so
3000 %if %{with sybase_ct}
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3004 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3008 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3010 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3013 %defattr(644,root,root,755)
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3015 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3018 %defattr(644,root,root,755)
3019 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3020 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3023 %defattr(644,root,root,755)
3024 %dir %{php_data_dir}/tests
3025 %dir %{php_data_dir}/tests/php
3026 %{php_data_dir}/tests/php/basic
3027 %{php_data_dir}/tests/php/classes
3028 %{php_data_dir}/tests/php/func
3029 %{php_data_dir}/tests/php/lang
3030 %{php_data_dir}/tests/php/output
3031 %{php_data_dir}/tests/php/run-test
3032 %{php_data_dir}/tests/php/security
3033 %{php_data_dir}/tests/php/strings
3034 %{php_data_dir}/tests/php/quicktester.inc
3035 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3037 # random junk, didn't check, maybe can be just removed
3038 %{php_data_dir}/tests/php/bin-info.inc
3039 %{php_data_dir}/tests/php/foo*
3040 %{php_data_dir}/tests/php/odbc*.php
3041 %{php_data_dir}/tests/php/recurse
3042 %{php_data_dir}/tests/php/run.*
3043 %{php_data_dir}/tests/php/scan_cases
3044 %{php_data_dir}/tests/php/test*
3048 %defattr(644,root,root,755)
3049 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3050 %attr(755,root,root) %{php_extensiondir}/tidy.so
3054 %defattr(644,root,root,755)
3055 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3056 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3060 %defattr(644,root,root,755)
3061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3062 %attr(755,root,root) %{php_extensiondir}/wddx.so
3066 %defattr(644,root,root,755)
3067 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3068 %attr(755,root,root) %{php_extensiondir}/xml.so
3071 %defattr(644,root,root,755)
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3073 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3077 %defattr(644,root,root,755)
3078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3079 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3083 %defattr(644,root,root,755)
3084 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3085 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3088 %defattr(644,root,root,755)
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3090 %attr(755,root,root) %{php_extensiondir}/xsl.so
3093 %defattr(644,root,root,755)
3094 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3095 %attr(755,root,root) %{php_extensiondir}/zip.so
3098 %defattr(644,root,root,755)
3099 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3100 %attr(755,root,root) %{php_extensiondir}/zlib.so