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}
1427 Provides: php(session)
1429 %description session
1430 This is a dynamic shared object (DSO) for PHP that will add session
1433 %description session -l pl.UTF-8
1434 Moduł PHP dodający obsługę sesji.
1437 Summary: Shared Memory Operations extension module for PHP
1438 Summary(pl.UTF-8): Moduł shmop dla PHP
1440 URL: http://www.php.net/manual/en/book.shmop.php
1441 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1442 Provides: php(shmop)
1445 This is a dynamic shared object (DSO) for PHP that will add Shared
1446 Memory Operations support.
1448 %description shmop -l pl.UTF-8
1449 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1452 Summary: Simple XML extension module for PHP
1453 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1455 URL: http://www.php.net/manual/en/book.simplexml.php
1456 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1457 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1458 Provides: php(simplexml)
1460 %description simplexml
1461 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1464 %description simplexml -l pl.UTF-8
1465 Moduł PHP dodający obsługę prostego XML-a.
1468 Summary: SNMP extension module for PHP
1469 Summary(pl.UTF-8): Moduł SNMP dla PHP
1471 URL: http://www.php.net/manual/en/book.snmp.php
1472 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1473 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1477 This is a dynamic shared object (DSO) for PHP that will add SNMP
1480 %description snmp -l pl.UTF-8
1481 Moduł PHP dodający obsługę SNMP.
1484 Summary: soap extension module for PHP
1485 Summary(pl.UTF-8): Moduł soap dla PHP
1487 URL: http://www.php.net/manual/en/book.soap.php
1488 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1492 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1495 %description soap -l pl.UTF-8
1496 Moduł PHP dodający obsługę SOAP/WSDL.
1499 Summary: sockets extension module for PHP
1500 Summary(pl.UTF-8): Moduł socket dla PHP
1502 URL: http://www.php.net/manual/en/book.sockets.php
1503 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1504 Provides: php(sockets)
1506 %description sockets
1507 This is a dynamic shared object (DSO) for PHP that will add sockets
1510 %description sockets -l pl.UTF-8
1511 Moduł PHP dodający obsługę gniazdek.
1514 Summary: Standard PHP Library module for PHP
1515 Summary(pl.UTF-8): Moduł SPL dla PHP
1517 URL: http://php.net/manual/en/book.spl.php
1518 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1519 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1520 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1524 This is a dynamic shared object (DSO) for PHP that will add Standard
1525 PHP Library support.
1527 %description spl -l pl.UTF-8
1528 Moduł PHP dodający obsługę gniazdek.
1531 Summary: SQLite extension module for PHP
1532 Summary(pl.UTF-8): Moduł SQLite dla PHP
1534 URL: http://www.php.net/manual/en/book.sqlite.php
1535 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1536 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1537 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1538 Provides: php(sqlite)
1541 SQLite is a C library that implements an embeddable SQL database
1542 engine. Programs that link with the SQLite library can have SQL
1543 database access without running a separate RDBMS process.
1545 SQLite is not a client library used to connect to a big database
1546 server. SQLite is the server. The SQLite library reads and writes
1547 directly to and from the database files on disk.
1549 %description sqlite -l pl.UTF-8
1550 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1551 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1552 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1555 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1556 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1557 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1561 Summary: Sybase DB extension module for PHP
1562 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1564 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1565 Provides: php(sybase)
1566 Obsoletes: php-sybase-ct
1567 Conflicts: php-sybase-ct
1570 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1571 MS SQL databases support through SYBDB library. Currently Sybase
1572 module is not maintained. Using Sybase-CT module is recommended
1575 %description sybase -l pl.UTF-8
1576 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1577 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1578 Zaleca się używanie modułu Sybase-CT.
1581 Summary: Sybase-CT extension module for PHP
1582 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1584 URL: http://www.php.net/manual/en/book.sybase.php
1585 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1586 Provides: php(sybase-ct)
1587 Obsoletes: php-sybase
1588 Conflicts: php-sybase
1590 %description sybase-ct
1591 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1592 MS SQL databases support through CT-lib.
1594 %description sybase-ct -l pl.UTF-8
1595 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1599 Summary: SysV msg extension module for PHP
1600 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1602 URL: http://www.php.net/manual/en/book.sem.php
1603 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1604 Provides: php(sysvmsg)
1606 %description sysvmsg
1607 This is a dynamic shared object (DSO) for PHP that will add SysV
1608 message queues support.
1610 %description sysvmsg -l pl.UTF-8
1611 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1614 Summary: SysV sem extension module for PHP
1615 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1617 URL: http://www.php.net/manual/en/book.sem.php
1618 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1619 Provides: php(sysvsem)
1621 %description sysvsem
1622 This is a dynamic shared object (DSO) for PHP that will add SysV
1625 %description sysvsem -l pl.UTF-8
1626 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1629 Summary: SysV shm extension module for PHP
1630 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1632 URL: http://www.php.net/manual/en/book.shmop.php
1633 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1634 Provides: php(sysvshm)
1636 %description sysvshm
1637 This is a dynamic shared object (DSO) for PHP that will add SysV
1638 Shared Memory support.
1640 %description sysvshm -l pl.UTF-8
1641 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1644 Summary: Contains unit test files for PHP and extensions
1645 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1647 URL: http://qa.php.net/
1648 Requires: %{name}-cli
1651 This package contains unit tests for PHP and it's extensions.
1653 %description tests -l pl.UTF-8
1654 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1657 Summary: Tidy extension module for PHP
1658 Summary(pl.UTF-8): Moduł Tidy dla PHP
1660 URL: http://www.php.net/manual/en/book.tidy.php
1661 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1666 This is a dynamic shared object (DSO) for PHP that will add Tidy
1669 %description tidy -l pl.UTF-8
1670 Moduł PHP umożliwiający korzystanie z tidy.
1673 Summary: tokenizer extension module for PHP
1674 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1676 URL: http://www.php.net/manual/en/book.tokenizer.php
1677 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1678 Provides: php(tokenizer)
1680 %description tokenizer
1681 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1684 %description tokenizer -l pl.UTF-8
1685 Moduł PHP dodający obsługę tokenizera do PHP.
1688 Summary: wddx extension module for PHP
1689 Summary(pl.UTF-8): Moduł wddx dla PHP
1691 URL: http://www.php.net/manual/en/book.wddx.php
1692 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1693 # - wddx doesn't require session as it's disabled at compile time:
1694 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1695 # see also php.spec#rev1.120.2.22
1696 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1697 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1701 This is a dynamic shared object (DSO) for PHP that will add wddx
1704 %description wddx -l pl.UTF-8
1705 Moduł PHP umożliwiający korzystanie z wddx.
1708 Summary: XML extension module for PHP
1709 Summary(pl.UTF-8): Moduł XML dla PHP
1711 URL: http://www.php.net/manual/en/book.xml.php
1712 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1716 This is a dynamic shared object (DSO) for PHP that will add XML
1717 support. This extension lets you create XML parsers and then define
1718 handlers for different XML events.
1720 %description xml -l pl.UTF-8
1721 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1722 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1723 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1726 Summary: XML Reader extension module for PHP
1727 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1729 URL: http://www.php.net/manual/en/book.xmlreader.php
1730 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1731 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1732 Provides: php(xmlreader)
1734 %description xmlreader
1735 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1736 support. The XMLReader extension is an XML Pull parser. The reader
1737 acts as a cursor going forward on the document stream and stopping at
1738 each node on the way.
1740 %description xmlreader -l pl.UTF-8
1741 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1742 działa jako kursor przechodzący przez strumień dokumentu i
1743 zatrzymujący się na każdym węźle po drodze.
1746 Summary: xmlrpc extension module for PHP
1747 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1749 URL: http://www.php.net/manual/en/book.xmlrpc.php
1750 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1751 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1752 Provides: php(xmlrpc)
1755 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1758 %description xmlrpc -l pl.UTF-8
1759 Moduł PHP dodający obsługę XMLRPC.
1762 Summary: Fast, non-cached, forward-only means to write XML data
1763 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1765 URL: http://www.php.net/manual/en/book.xmlwriter.php
1766 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1767 Provides: php(xmlwriter)
1768 Obsoletes: php-pecl-xmlwriter
1770 %description xmlwriter
1771 This extension wraps the libxml xmlWriter API. Represents a writer
1772 that provides a non-cached, forward-only means of generating streams
1773 or files containing XML data.
1775 %description xmlwriter -l pl.UTF-8
1776 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1777 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1778 plików zawierających dane XML.
1781 Summary: xsl extension module for PHP
1782 Summary(pl.UTF-8): Moduł xsl dla PHP
1784 URL: http://www.php.net/manual/en/book.xsl.php
1785 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1786 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1787 Requires: libxslt >= 1.0.18
1788 # actually not true, functionality is similar, but API differs
1790 Obsoletes: php-xslt <= 3:4.3.8-1
1793 This is a dynamic shared object (DSO) for PHP that will add new XSL
1794 support (using libxslt).
1796 %description xsl -l pl.UTF-8
1797 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1800 Summary: Zip management extension
1801 Summary(pl.UTF-8): Zarządzanie archiwami zip
1803 URL: http://www.php.net/manual/en/book.zip.php
1804 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1805 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1807 Obsoletes: php-pecl-zip
1810 Zip is an extension to create, modify and read zip files.
1812 %description zip -l pl.UTF-8
1813 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1814 odczyt archiwów zip.
1817 Summary: Zlib extension module for PHP
1818 Summary(pl.UTF-8): Moduł zlib dla PHP
1820 URL: http://www.php.net/manual/en/book.zlib.php
1821 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1825 This is a dynamic shared object (DSO) for PHP that will add zlib
1826 compression support to PHP.
1828 %description zlib -l pl.UTF-8
1829 Moduł PHP umożliwiający używanie kompresji zlib.
1832 %setup -q -n %{orgname}-%{version}
1835 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1848 cp php.ini-dist php.ini
1850 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1860 %if %{with system_gd}
1869 %{?with_versioning:%patch25 -p1}
1872 %{__tar} jxf %{SOURCE9}
1873 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1874 mv $v/$v gentoo-patchset
1875 for a in gentoo-patchset/*.patch; do
1888 %if "%{pld_release}" != "ac"
1893 # mysql default charset for mysql/mysql/pdo-mysql extensions
1925 %{?with_system_libzip:%patch65 -p1}
1933 # Bugfix backport from 5.3.6
1934 %patch311 -p1 -b .bug-47435
1935 %patch314 -p1 -b .bug-39199
1936 # Bugfix backport from 5.3.7
1937 #accert %patch333 -p1 -b .bug-54924
1938 #soap %patch355 -p1 -b .bug-55323
1939 # causes regression -> magic_quotes_gpc setting cannot be changed
1940 #%%patch402 -p1 -b .bug-323016
1942 # conflict seems to be resolved by recode patches
1943 rm -f ext/recode/config9.m4
1945 # remove all bundled libraries not to link with them accidentally
1946 #rm -rf ext/sqlite/libsqlite
1947 #rm -rf ext/bcmath/libbcmath
1948 #rm -rf ext/date/lib
1949 #rm -rf ext/dba/libcdb
1950 #rm -rf ext/dba/libflatfile
1951 #rm -rf ext/dba/libinifile
1952 #rm -rf ext/gd/libgd
1953 #rm -rf ext/mbstring/libmbfl
1954 #rm -rf ext/mbstring/oniguruma
1955 rm -rf ext/pcre/pcrelib
1956 rm -rf ext/pdo_sqlite/sqlite
1957 #rm -rf ext/soap/interop
1958 %if %{with system_xmlrpc_epi}
1959 rm -rf ext/xmlrpc/libxmlrpc
1963 # this test hungs on ac-ppc
1964 #mv ext/reflection/tests/007.php{,ignore}
1965 # this test gets killed by itself
1966 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1969 cp -af Zend/LICENSE{,.Zend}
1970 install -p %{SOURCE13} dep-tests.sh
1972 # disable broken tests
1973 # says just "Terminated" twice and fails
1974 mv sapi/cli/tests/022.phpt{,.broken}
1976 sh -xe %{_sourcedir}/skip-tests.sh
1979 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1980 if [ $API != %{php_api_version} ]; then
1981 echo "Set %%define php_api_version to $API and re-run."
1985 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1986 if [ $API != %{zend_module_api} ]; then
1987 echo "Set %%define zend_module_api to $API and re-run."
1991 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1992 if [ $API != %{zend_extension_api} ]; then
1993 echo "Set %%define zend_extension_api to $API and re-run."
1997 export EXTENSION_DIR="%{php_extensiondir}"
1998 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1999 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
2002 cp -f /usr/share/automake/config.* .
2006 export PROG_SENDMAIL="/usr/lib/sendmail"
2023 for sapi in $sapis; do
2025 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2030 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2033 sapi_args='--disable-cgi'
2036 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2039 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2042 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2043 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2046 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2047 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2052 FORCE_APACHE_VERSION="${apache_ver}" \
2054 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2055 --cache-file=config.cache \
2057 --with-libdir=%{_lib} \
2058 --with-config-file-path=%{_sysconfdir} \
2059 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2060 --with-exec-dir=%{_bindir} \
2061 --with-system-tzdata \
2062 --%{!?debug:dis}%{?debug:en}able-debug \
2063 %{?with_zts:--enable-maintainer-zts} \
2064 %{?with_suhosin:--enable-suhosin} \
2065 %{?with_zend_multibyte:--enable-zend-multibyte} \
2066 --enable-inline-optimization \
2067 --enable-bcmath=shared \
2068 --enable-calendar=shared \
2069 --enable-ctype=shared \
2070 --enable-dba=shared \
2071 --enable-dom=shared \
2072 --enable-exif=shared \
2073 --enable-ftp=shared \
2074 --enable-gd-native-ttf \
2075 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2077 --enable-magic-quotes \
2078 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2080 --enable-pcntl=shared \
2081 --enable-pdo=shared \
2082 --enable-json=shared \
2083 --enable-hash=shared \
2084 --enable-xmlwriter=shared \
2086 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2087 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2088 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2090 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2091 --with-pdo-dblib=shared \
2093 %if %{with interbase} && !%{with interbase_inst}
2094 --with-pdo-firebird=shared,/usr \
2096 --with-pdo-mysql=shared \
2097 %{?with_oci8:--with-pdo-oci=shared} \
2098 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2099 %{?with_pgsql:--with-pdo-pgsql=shared} \
2100 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2101 --enable-posix=shared \
2102 --enable-reflection \
2104 --enable-session=shared \
2105 --enable-shmop=shared \
2106 --enable-simplexml=shared \
2107 --enable-spl=shared \
2108 --enable-sysvmsg=shared \
2109 --enable-sysvsem=shared \
2110 --enable-sysvshm=shared \
2111 --enable-safe-mode \
2112 --enable-soap=shared \
2113 --enable-sockets=shared \
2114 --enable-tokenizer=shared \
2115 --enable-ucd-snmp-hack \
2116 %{?with_wddx:--enable-wddx=shared} \
2117 --enable-xml=shared \
2118 --enable-xmlreader=shared \
2120 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2122 --enable-dbase=shared \
2123 --without-libexpat-dir \
2124 %{?with_fdf:--with-fdftk=shared} \
2125 --with-iconv=shared \
2126 --with-freetype-dir=shared \
2127 --with-gettext=shared \
2128 --with-gd=shared%{?with_system_gd:,/usr} \
2131 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2132 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2133 --with-jpeg-dir=/usr \
2134 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2135 --with-mcrypt=shared \
2136 %{?with_mhash:--with-mhash=shared} \
2137 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2138 %{?with_ming:--with-ming=shared} \
2139 %{?with_mm:--with-mm} \
2140 %{?with_mssql:--with-mssql=shared} \
2141 --with-mysql=shared,/usr \
2142 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2143 %{?with_mysqli:--with-mysqli=shared} \
2144 --with-ncurses=shared \
2145 %{?with_oci8:--with-oci8=shared} \
2146 %{?with_openssl:--with-openssl=shared} \
2148 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2149 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2150 --with-pear=%{php_pear_dir} \
2151 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2152 --with-png-dir=/usr \
2153 %{?with_pspell:--with-pspell=shared} \
2154 --with-readline=shared \
2155 %{?with_recode:--with-recode=shared} \
2157 %{?with_snmp:--with-snmp=shared} \
2158 %{?with_sybase:--with-sybase=shared,/usr} \
2159 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2160 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2161 --with-t1lib=shared \
2162 %{?with_tidy:--with-tidy=shared} \
2163 %{?with_odbc:--with-unixODBC=shared,/usr} \
2164 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2166 --with-zlib=shared \
2167 --with-zlib-dir=shared,/usr \
2168 %{?with_system_libzip:--with-libzip} \
2169 --enable-zip=shared,/usr \
2171 cp -f Makefile Makefile.$sapi
2172 cp -f main/php_config.h php_config.h.$sapi
2173 cp -f config.log config.log.$sapi
2176 # as we build each SAPI in own make, adjust php-config.in forehead
2177 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2178 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2180 # must make this first, so modules can link against it.
2181 %{__make} libphp_common.la
2182 %{__make} build-modules
2185 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2189 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2193 cp -af php_config.h.cgi main/php_config.h
2194 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2195 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2196 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2200 cp -af php_config.h.fcgi main/php_config.h
2201 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2202 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2203 cp -r sapi/cgi sapi/fcgi
2204 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2208 cp -af php_config.h.fpm main/php_config.h
2209 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2210 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2211 cp -r sapi/cgi sapi/fpm
2212 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2216 cp -af php_config.h.cli main/php_config.h
2217 %{__make} sapi/cli/php -f Makefile.cli
2218 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2220 # check for stupid xml parse breakage where < and > just get lost in parse result
2221 ./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"]));'
2223 # Generate stub .ini files for each extension
2226 generate_inifiles() {
2227 for so in modules/*.so; do
2228 mod=$(basename $so .so)
2230 # xml needs to be loaded before wddx
2231 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2232 # pre needs to be loaded before SPL
2233 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2234 # spl needs to be loaded before mysqli
2235 [ "$mod" = "spl" ] && conf="SPL.ini"
2236 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2237 [ "$mod" = "session" ] && conf="Session.ini"
2239 cat > conf.d/$conf <<-EOF
2240 ; Enable $mod extension module
2247 # Check that the module inner-dependencies are intact
2248 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2249 if grep -v OK dep-tests.log; then
2250 echo >&2 "The results above were not expected"
2251 # TEMP: ac-i386 builder is broken
2259 # Run tests, using the CLI SAPI
2260 cp -af php_config.h.cli main/php_config.h
2261 cp -af Makefile.cli Makefile
2262 # sybase modules collide, remove one
2263 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2265 cat <<'EOF' > run-tests.sh
2267 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2268 unset TZ LANG LC_ALL || :
2271 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2272 RUN_TESTS_SETTINGS="-q $*"
2274 chmod +x run-tests.sh
2275 ./run-tests.sh -w failed.log -s test.log
2277 # collect failed tests into cleanup script used in prep.
2278 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2279 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2280 >> %{_sourcedir}/skip-tests.sh
2282 failed=$(wc -l < tests-failed.log)
2283 if [ "$failed" != 0 ]; then
2289 rm -rf $RPM_BUILD_ROOT
2290 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2291 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2292 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2293 $RPM_BUILD_ROOT%{_mandir}/man1 \
2295 # install the Apache modules' files
2296 %{__make} install-headers install-build install-modules install-programs \
2297 phpbuilddir=%{_libdir}/%{name}/build \
2298 INSTALL_ROOT=$RPM_BUILD_ROOT
2301 v=$(echo %{version} | cut -d. -f1-2)
2303 # install Apache1 DSO module
2305 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2306 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2307 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2310 # install Apache2 DSO module
2312 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2313 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2314 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2318 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2322 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2327 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2328 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2329 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2330 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2331 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2332 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2333 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2334 %if "%{pld_release}" == "ac"
2335 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2339 s#/usr/lib/php#%{php_extensiondir}#
2340 s#/etc/php#%{_sysconfdir}#
2341 s#@processname@#%{name}-fpm#g
2342 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2346 # without suffix, install as php.cli
2347 %if "%{?php_suffix}" == ""
2348 %define phpfn %{name}.cli
2350 %define phpfn %{name}
2352 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2353 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2354 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2355 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2356 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2358 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2360 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2362 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2363 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2364 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2367 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2368 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2369 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2373 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2374 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2375 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2378 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2379 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2381 # ensure that paths are correct for current php version and arch
2382 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2384 s#/usr/lib/php#%{php_extensiondir}#g
2385 s#/etc/php#%{_sysconfdir}#g
2388 # per SAPI ini directories
2389 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2392 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2394 # use system automake and {lib,sh}tool
2395 %if "%{pld_release}" != "ac"
2396 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2397 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2398 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2400 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2402 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2403 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2405 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2406 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2408 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2409 # isn't installed by install-headers make target, we do it manually here.
2410 # this header file is required by e.g. filter PECL extension
2411 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2412 # for php-pecl-mailparse
2413 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2414 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2417 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2418 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2419 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2421 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2422 # fix install paths, avoid evil rpaths
2423 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2425 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2428 rm -rf $RPM_BUILD_ROOT
2430 %post -n apache1-mod_%{name}
2431 if [ "$1" = "1" ]; then
2432 %service -q apache restart
2435 %postun -n apache1-mod_%{name}
2436 if [ "$1" = "0" ]; then
2437 %service -q apache restart
2440 %post -n apache-mod_%{name}
2441 if [ "$1" = "1" ]; then
2442 %service -q httpd restart
2445 %postun -n apache-mod_%{name}
2446 if [ "$1" = "0" ]; then
2447 %service -q httpd restart
2451 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2454 /sbin/chkconfig --add %{name}-fpm
2455 %service %{name}-fpm restart
2458 if [ "$1" = 0 ]; then
2459 %service %{name}-fpm stop
2460 /sbin/chkconfig --del %{name}-fpm
2464 if [ "$1" = "0" ]; then
2468 %post common -p /sbin/ldconfig
2469 %postun common -p /sbin/ldconfig
2472 # minimizing apache restarts logics. we restart webserver:
2474 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2475 # 2. first install of extension (post: $1 = 1)
2476 # 2. uninstall of extension (postun: $1 == 0)
2478 # the strict internal deps between extensions (and apache modules) and
2479 # common package are very important for all this to work.
2481 # restart webserver at the end of transaction
2482 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2483 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2485 # common macros called at extension post/postun scriptlet
2486 %define extension_scripts() \
2488 if [ "$1" = "1" ]; then \
2489 %php_webserver_restart \
2493 if [ "$1" = "0" ]; then \
2494 %php_webserver_restart \
2498 # extension scripts defines
2499 %extension_scripts bcmath
2500 %extension_scripts bz2
2501 %extension_scripts calendar
2502 %extension_scripts ctype
2503 %extension_scripts curl
2504 %extension_scripts dba
2505 %extension_scripts dbase
2506 %extension_scripts dom
2507 %extension_scripts exif
2508 %extension_scripts fdf
2509 %extension_scripts filter
2510 %extension_scripts ftp
2511 %extension_scripts gd
2512 %extension_scripts gettext
2513 %extension_scripts gmp
2514 %extension_scripts hash
2515 %extension_scripts iconv
2516 %extension_scripts imap
2517 %extension_scripts interbase
2518 %extension_scripts json
2519 %extension_scripts ldap
2520 %extension_scripts mbstring
2521 %extension_scripts mcrypt
2522 %extension_scripts mhash
2523 %extension_scripts mime_magic
2524 %extension_scripts ming
2525 %extension_scripts mssql
2526 %extension_scripts mysql
2527 %extension_scripts mysqli
2528 %extension_scripts oci8
2529 %extension_scripts odbc
2530 %extension_scripts openssl
2531 %extension_scripts pcntl
2532 %extension_scripts pcre
2533 %extension_scripts pdo
2534 %extension_scripts pdo-dblib
2535 %extension_scripts pdo-firebird
2536 %extension_scripts pdo-oci
2537 %extension_scripts pdo-mysql
2538 %extension_scripts pdo-odbc
2539 %extension_scripts pdo-pgsql
2540 %extension_scripts pdo-sqlite
2541 %extension_scripts pgsql
2542 %extension_scripts posix
2543 %extension_scripts pspell
2544 %extension_scripts recode
2545 %extension_scripts session
2546 %extension_scripts simplexml
2547 %extension_scripts shmop
2548 %extension_scripts snmp
2549 %extension_scripts soap
2550 %extension_scripts sockets
2551 %extension_scripts spl
2552 %extension_scripts sqlite
2553 %extension_scripts sybase
2554 %extension_scripts sybase-ct
2555 %extension_scripts sysvmsg
2556 %extension_scripts sysvsem
2557 %extension_scripts sysvshm
2558 %extension_scripts tidy
2559 %extension_scripts tokenizer
2560 %extension_scripts wddx
2561 %extension_scripts xml
2562 %extension_scripts xmlreader
2563 %extension_scripts xmlrpc
2564 %extension_scripts xmlwriter
2565 %extension_scripts xsl
2566 %extension_scripts zip
2567 %extension_scripts zlib
2570 %files -n apache1-mod_%{name}
2571 %defattr(644,root,root,755)
2572 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2573 %dir %{_sysconfdir}/apache.d
2574 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2575 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2576 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2580 %files -n apache-mod_%{name}
2581 %defattr(644,root,root,755)
2582 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2583 %dir %{_sysconfdir}/apache2handler.d
2584 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2585 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2586 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2591 %defattr(644,root,root,755)
2592 %doc sapi/cgi/README.FastCGI
2593 %dir %{_sysconfdir}/cgi-fcgi.d
2594 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2595 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2599 %defattr(644,root,root,755)
2600 %dir %{_sysconfdir}/cgi.d
2601 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2602 %attr(755,root,root) %{_bindir}/%{name}.cgi
2605 %defattr(644,root,root,755)
2606 %dir %{_sysconfdir}/cli.d
2607 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2608 %attr(755,root,root) %{_bindir}/%{phpfn}
2609 %{_mandir}/man1/%{phpfn}.1*
2612 %defattr(644,root,root,755)
2613 %attr(755,root,root) %{_bindir}/php
2614 %{_mandir}/man1/php.1*
2618 %defattr(644,root,root,755)
2619 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2620 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2621 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2622 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2626 %defattr(644,root,root,755)
2628 %doc CREDITS Zend/ZEND_CHANGES
2629 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2630 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2633 %dir %{_sysconfdir}/conf.d
2634 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2636 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2637 %dir %{php_extensiondir}
2640 %defattr(644,root,root,755)
2641 %doc README.UNIX-BUILD-SYSTEM
2642 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2643 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2644 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2645 %attr(755,root,root) %{_bindir}/phpize
2646 %attr(755,root,root) %{_bindir}/php-config
2647 %attr(755,root,root) %{_libdir}/libphp_common.so
2648 %{_libdir}/libphp_common.la
2650 %{_libdir}/%{name}/build
2651 %{_mandir}/man1/php-config.1*
2652 %{_mandir}/man1/phpize.1*
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2657 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2660 %defattr(644,root,root,755)
2661 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2662 %attr(755,root,root) %{php_extensiondir}/bz2.so
2665 %defattr(644,root,root,755)
2666 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2667 %attr(755,root,root) %{php_extensiondir}/calendar.so
2670 %defattr(644,root,root,755)
2671 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2672 %attr(755,root,root) %{php_extensiondir}/ctype.so
2676 %defattr(644,root,root,755)
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2678 %attr(755,root,root) %{php_extensiondir}/curl.so
2682 %defattr(644,root,root,755)
2683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2684 %attr(755,root,root) %{php_extensiondir}/dba.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2689 %attr(755,root,root) %{php_extensiondir}/dbase.so
2692 %defattr(644,root,root,755)
2693 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2694 %attr(755,root,root) %{php_extensiondir}/dom.so
2698 %defattr(644,root,root,755)
2699 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2700 %attr(755,root,root) %{php_extensiondir}/fdf.so
2705 %defattr(644,root,root,755)
2706 %doc README.input_filter
2707 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2708 %attr(755,root,root) %{php_extensiondir}/filter.so
2712 %defattr(644,root,root,755)
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2714 %attr(755,root,root) %{php_extensiondir}/exif.so
2717 %defattr(644,root,root,755)
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2719 %attr(755,root,root) %{php_extensiondir}/ftp.so
2722 %defattr(644,root,root,755)
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2724 %attr(755,root,root) %{php_extensiondir}/gd.so
2727 %defattr(644,root,root,755)
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2729 %attr(755,root,root) %{php_extensiondir}/gettext.so
2732 %defattr(644,root,root,755)
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2734 %attr(755,root,root) %{php_extensiondir}/gmp.so
2737 %defattr(644,root,root,755)
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2739 %attr(755,root,root) %{php_extensiondir}/hash.so
2742 %defattr(644,root,root,755)
2743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2744 %attr(755,root,root) %{php_extensiondir}/iconv.so
2748 %defattr(644,root,root,755)
2749 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2750 %attr(755,root,root) %{php_extensiondir}/imap.so
2753 %if %{with interbase}
2755 %defattr(644,root,root,755)
2756 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2757 %attr(755,root,root) %{php_extensiondir}/interbase.so
2761 %defattr(644,root,root,755)
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2763 %attr(755,root,root) %{php_extensiondir}/json.so
2767 %defattr(644,root,root,755)
2768 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2769 %attr(755,root,root) %{php_extensiondir}/ldap.so
2772 %if %{without zend_multibyte}
2774 %defattr(644,root,root,755)
2775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2776 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2780 %defattr(644,root,root,755)
2781 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2782 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2786 %defattr(644,root,root,755)
2787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2788 %attr(755,root,root) %{php_extensiondir}/mhash.so
2791 %if %{with mime_magic}
2793 %defattr(644,root,root,755)
2794 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2795 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2800 %defattr(644,root,root,755)
2801 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2802 %attr(755,root,root) %{php_extensiondir}/ming.so
2807 %defattr(644,root,root,755)
2808 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2809 %attr(755,root,root) %{php_extensiondir}/mssql.so
2813 %defattr(644,root,root,755)
2814 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2815 %attr(755,root,root) %{php_extensiondir}/mysql.so
2819 %defattr(644,root,root,755)
2820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2821 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2825 %defattr(644,root,root,755)
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2827 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2831 %defattr(644,root,root,755)
2832 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2833 %attr(755,root,root) %{php_extensiondir}/oci8.so
2838 %defattr(644,root,root,755)
2839 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2840 %attr(755,root,root) %{php_extensiondir}/odbc.so
2845 %defattr(644,root,root,755)
2846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2847 %attr(755,root,root) %{php_extensiondir}/openssl.so
2851 %defattr(644,root,root,755)
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2853 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2857 %defattr(644,root,root,755)
2858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2859 %attr(755,root,root) %{php_extensiondir}/pcre.so
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2865 %attr(755,root,root) %{php_extensiondir}/pdo.so
2867 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2869 %defattr(644,root,root,755)
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2871 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2874 %if %{with interbase} && !%{with interbase_inst}
2876 %defattr(644,root,root,755)
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2878 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2882 %defattr(644,root,root,755)
2883 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2884 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2888 %defattr(644,root,root,755)
2889 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2890 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2895 %defattr(644,root,root,755)
2896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2897 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2902 %defattr(644,root,root,755)
2903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2904 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2909 %defattr(644,root,root,755)
2910 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2911 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2916 %defattr(644,root,root,755)
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2918 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2922 %defattr(644,root,root,755)
2923 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2924 %attr(755,root,root) %{php_extensiondir}/posix.so
2928 %defattr(644,root,root,755)
2929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2930 %attr(755,root,root) %{php_extensiondir}/pspell.so
2934 %defattr(644,root,root,755)
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2936 %attr(755,root,root) %{php_extensiondir}/readline.so
2940 %defattr(644,root,root,755)
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2942 %attr(755,root,root) %{php_extensiondir}/recode.so
2946 %defattr(644,root,root,755)
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2948 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2951 %defattr(644,root,root,755)
2952 %doc ext/session/mod_files.sh
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2954 %attr(755,root,root) %{php_extensiondir}/session.so
2957 %defattr(644,root,root,755)
2958 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2959 %attr(755,root,root) %{php_extensiondir}/shmop.so
2963 %defattr(644,root,root,755)
2964 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2965 %attr(755,root,root) %{php_extensiondir}/snmp.so
2969 %defattr(644,root,root,755)
2970 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2971 %attr(755,root,root) %{php_extensiondir}/soap.so
2974 %defattr(644,root,root,755)
2975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2976 %attr(755,root,root) %{php_extensiondir}/sockets.so
2979 %defattr(644,root,root,755)
2980 %doc ext/spl/{CREDITS,README,TODO}
2981 %doc ext/spl/examples
2982 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2983 %attr(755,root,root) %{php_extensiondir}/spl.so
2987 %defattr(644,root,root,755)
2988 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2989 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2994 %defattr(644,root,root,755)
2995 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2996 %attr(755,root,root) %{php_extensiondir}/sybase.so
2999 %if %{with sybase_ct}
3001 %defattr(644,root,root,755)
3002 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3003 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3009 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3014 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3017 %defattr(644,root,root,755)
3018 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3019 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3022 %defattr(644,root,root,755)
3023 %dir %{php_data_dir}/tests
3024 %dir %{php_data_dir}/tests/php
3025 %{php_data_dir}/tests/php/basic
3026 %{php_data_dir}/tests/php/classes
3027 %{php_data_dir}/tests/php/func
3028 %{php_data_dir}/tests/php/lang
3029 %{php_data_dir}/tests/php/output
3030 %{php_data_dir}/tests/php/run-test
3031 %{php_data_dir}/tests/php/security
3032 %{php_data_dir}/tests/php/strings
3033 %{php_data_dir}/tests/php/quicktester.inc
3034 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3036 # random junk, didn't check, maybe can be just removed
3037 %{php_data_dir}/tests/php/bin-info.inc
3038 %{php_data_dir}/tests/php/foo*
3039 %{php_data_dir}/tests/php/odbc*.php
3040 %{php_data_dir}/tests/php/recurse
3041 %{php_data_dir}/tests/php/run.*
3042 %{php_data_dir}/tests/php/scan_cases
3043 %{php_data_dir}/tests/php/test*
3047 %defattr(644,root,root,755)
3048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3049 %attr(755,root,root) %{php_extensiondir}/tidy.so
3053 %defattr(644,root,root,755)
3054 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3055 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3059 %defattr(644,root,root,755)
3060 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3061 %attr(755,root,root) %{php_extensiondir}/wddx.so
3065 %defattr(644,root,root,755)
3066 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3067 %attr(755,root,root) %{php_extensiondir}/xml.so
3070 %defattr(644,root,root,755)
3071 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3072 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3076 %defattr(644,root,root,755)
3077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3078 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3082 %defattr(644,root,root,755)
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3084 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3087 %defattr(644,root,root,755)
3088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3089 %attr(755,root,root) %{php_extensiondir}/xsl.so
3092 %defattr(644,root,root,755)
3093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3094 %attr(755,root,root) %{php_extensiondir}/zip.so
3097 %defattr(644,root,root,755)
3098 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3099 %attr(755,root,root) %{php_extensiondir}/zlib.so