2 # - wddx: restore session support (not compiled in due DL extension check)
3 # - fix -threads-acfix.patch
4 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
5 # - removed from php 5.0 (currently in php4):
6 # db, hyperwave, java, mcal, overload, qtdom
7 # - removed from php 5.1:
9 # - removed from php 5.2:
11 # - mime_magic can't handle new "string/*" entries in magic.mime
12 # thus doesn't work with system magic.mime database
13 # - make additional headers and checking added by mail patch configurable
14 # - modularize session, standard (output from pure php -m)?
15 # - http://forum.lighttpd.net/topic/34454
16 # - ttyname_r() missdetected http://bugs.php.net/bug.php?id=48820
18 # To see optional extension deps:
19 # $ grep -r PHP_ADD_EXTENSION_DEP.*,.*,.* .
20 #./ext/pdo/config.m4: PHP_ADD_EXTENSION_DEP(pdo, spl, true)
21 #./ext/spl/config.m4: PHP_ADD_EXTENSION_DEP(spl, pcre, true)
22 #./ext/session/config.m4: PHP_ADD_EXTENSION_DEP(session, hash, true)
23 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, spl, true)
24 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, pdo, true)
25 #./ext/simplexml/config.m4: PHP_ADD_EXTENSION_DEP(simplexml, spl, true)
26 #./ext/xmlreader/config.m4: PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
29 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
30 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
31 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
32 %bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
33 %bcond_with system_libzip # with system libzip (reported broken: https://bugs.php.net/bug.php?id=60100)
34 %bcond_with gd_jis_conv # causes imagettfbbox(): any2eucjp(): invalid code in input string when internal gd used
35 %bcond_with zend_multibyte # enable zend multibyte, mbstring can't be shared then anymore
36 %bcond_without curl # without CURL extension module
37 %bcond_without filter # without filter extension module
38 %bcond_without imap # without IMAP extension module
39 %bcond_without interbase # without InterBase extension module
40 %bcond_without ldap # without LDAP extension module
41 %bcond_without mhash # without mhash extension module
42 %bcond_without mime_magic # without mime-magic module
43 %bcond_with ming # with ming extension module
44 %bcond_without mm # without mm support for session storage
45 %bcond_without mssql # without MS SQL extension module
46 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
47 %bcond_without odbc # without ODBC extension module
48 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
49 %bcond_without pcre # without PCRE extension module
50 %bcond_without pgsql # without PostgreSQL extension module
51 %bcond_without pspell # without pspell extension module
52 %bcond_without recode # without recode extension module
53 %bcond_without snmp # without SNMP extension module
54 %bcond_without sqlite # without SQLite extension module
55 %bcond_without sybase # without Sybase extension module
56 %bcond_without sybase_ct # without Sybase-CT extension module
57 %bcond_without tidy # without Tidy extension module
58 %bcond_without wddx # without WDDX extension module
59 %bcond_without xmlrpc # without XML-RPC extension module
60 %bcond_without apache1 # disable building Apache 1.3.x module
61 %bcond_without apache2 # disable building Apache 2.x module
62 %bcond_without fcgi # disable building FCGI SAPI
63 %bcond_with zts # disable Zend Thread Safety
64 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
65 %bcond_without suhosin # with suhosin patch
66 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
67 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
68 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
70 %define apxs1 /usr/sbin/apxs1
71 %define apxs2 /usr/sbin/apxs
73 # some problems with apache 2.x
78 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
79 %undefine with_interbase
81 %if "%{pld_release}" == "th"
83 # ppc disabled (broken on th-ppc)
84 %undefine with_interbase
88 %ifnarch %{ix86} %{x8664}
89 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
93 %if %{without apache1} && %{without apache2}
94 ERROR: You need to select at least one Apache SAPI to build shared modules.
97 # filter depends on pcre
102 %if "%{pld_release}" == "ac"
103 %define magic_mime /usr/share/file/magic.mime
105 %define magic_mime /usr/share/misc/magic.mime
109 %if "%{pld_release}" == "th"
110 %define php_suffix 52
111 %define _noautoreqdep libphp_common.*
113 %define php_suffix %{nil}
117 %define backport_date 20130717
118 Summary: PHP: Hypertext Preprocessor
119 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
120 Summary(pl.UTF-8): Język skryptowy PHP
121 Summary(pt_BR.UTF-8): A linguagem de script PHP
122 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
123 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
124 Name: %{orgname}%{php_suffix}
126 Release: %{backport_date}.%{rel}
130 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
131 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
132 Source2: %{orgname}-mod_%{orgname}.conf
133 Source3: %{orgname}-cgi-fcgi.ini
134 Source4: %{orgname}-cgi.ini
135 Source5: %{orgname}-apache.ini
136 Source6: %{orgname}-cli.ini
137 # Taken from: http://browsers.garykeith.com/downloads.asp
138 Source8: %{orgname}_browscap.ini
139 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
140 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
141 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
142 Source10: %{orgname}-fpm.init
143 Source11: %{orgname}-fpm.logrotate
144 Source12: %{orgname}-branch.sh
145 Source13: dep-tests.sh
146 Source14: skip-tests.sh
147 Patch100: https://php52-backports.googlecode.com/files/php52-backports-%{backport_date}.patch
148 # Patch100-md5: 80014a8f7894d4e893a8b1292b8b3032
149 Patch0: %{orgname}-shared.patch
150 Patch1: %{orgname}-pldlogo.patch
151 Patch2: %{orgname}-mail.patch
152 Patch3: %{orgname}-link-libs.patch
153 Patch4: %{orgname}-libpq_fs_h_path.patch
154 Patch5: %{orgname}-filter-shared.patch
155 Patch6: %{orgname}-build_modules.patch
156 Patch7: %{orgname}-sapi-ini-file.patch
157 Patch8: %{orgname}-no-metaccld.patch
158 Patch9: %{orgname}-sh.patch
159 Patch10: %{orgname}-ini.patch
160 Patch11: %{orgname}-acam.patch
161 Patch12: %{orgname}-threads-acfix.patch
162 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
163 Patch14: %{orgname}-no_pear_install.patch
164 Patch15: %{orgname}-zlib.patch
165 Patch16: %{orgname}-sybase-fix.patch
166 Patch17: %{orgname}-readline.patch
167 Patch18: %{orgname}-nohttpd.patch
168 Patch19: %{orgname}-gd_imagerotate_enable.patch
169 Patch20: %{orgname}-uint32_t.patch
170 Patch21: %{orgname}-dba-link.patch
171 Patch22: %{orgname}-both-apxs.patch
172 Patch23: %{orgname}-builddir.patch
173 Patch24: %{orgname}-zlib-for-getimagesize.patch
174 Patch25: %{orgname}-versioning.patch
175 Patch26: %{orgname}-pear.patch
176 Patch27: %{orgname}-config-dir.patch
177 Patch28: %{orgname}-bug-42952.patch
178 Patch29: %{orgname}-fcgi-graceful.patch
179 Patch30: %{orgname}-apr-apu.patch
180 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
181 Patch32: %{orgname}-curl-limit-speed.patch
182 Patch33: %{orgname}-mime_magic.patch
183 Patch34: %{orgname}-libtool.patch
184 Patch35: %{orgname}-tds.patch
185 Patch36: %{orgname}-mysql-charsetphpini.patch
186 Patch37: %{orgname}-mysqli-charsetphpini.patch
187 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
188 Patch39: %{orgname}-use-prog_sendmail.patch
189 Patch40: %{orgname}-fpm.patch
190 Patch41: %{orgname}-fpm-config.patch
191 Patch42: %{orgname}-fpm-initdir.patch
192 Patch43: %{orgname}-silent-session-cleanup.patch
193 Patch44: %{orgname}-include_path.patch
194 Patch45: %{orgname}-imap-annotations.patch
195 Patch46: %{orgname}-imap-myrights.patch
196 Patch47: suhosin.patch
197 Patch49: %{orgname}-m4-divert.patch
198 Patch50: extension-shared-optional-dep.patch
199 Patch51: spl-shared.patch
200 Patch52: %{orgname}-libpng.patch
201 Patch53: %{orgname}-gmp.patch
202 Patch54: fix-test-run.patch
203 Patch55: bug-52078-fileinode.patch
204 Patch56: %{orgname}-krb5.patch
205 Patch57: php-php_dl.patch
206 Patch58: php-svn-281516.patch
207 Patch59: %{orgname}-systzdata.patch
208 Patch60: bug-60986.patch
209 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
210 Patch65: system-libzip.patch
211 Patch66: bug-47930.patch
212 Patch67: php-db.patch
213 Patch69: bug-50563.patch
214 Patch70: php-crypt-null.patch
215 Patch71: php-apache24.patch
217 # Backport from 5.3.6
218 Patch311: php-5.3.6-bug-47435.patch
219 Patch314: php-5.3.6-39199.patch
221 #Patch333: php-5.3.7-bug-54924.patch
222 Patch355: php-5.3.7-bug-55323.patch
223 # Bug-323016 CVE-2012-0831
224 Patch402: php-5.2.17-bug-323016.patch
225 URL: https://code.google.com/p/php52-backports/
226 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
227 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
228 BuildRequires: autoconf >= 2.53
229 BuildRequires: automake >= 1.4d
231 BuildRequires: bzip2-devel
232 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
233 BuildRequires: cyrus-sasl-devel
234 BuildRequires: db-devel >= 4.0
235 BuildRequires: elfutils-devel
237 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
239 %{?with_fcgi:BuildRequires: fcgi-devel}
240 %{?with_fdf:BuildRequires: fdftk-devel}
242 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
243 BuildRequires: freetds-devel
244 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
246 BuildRequires: freetype-devel >= 2.0
247 %if %{with system_gd}
248 BuildRequires: gd-devel >= 2.0.28-4
249 BuildRequires: gd-devel(imagerotate) = 5.2.0
251 BuildRequires: gdbm-devel
252 BuildRequires: gmp-devel
253 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
254 BuildRequires: libjpeg-devel
255 BuildRequires: libltdl-devel >= 1.4
256 BuildRequires: libmcrypt-devel >= 2.4.4
257 BuildRequires: libpng-devel >= 1.0.8
258 BuildRequires: libtiff-devel
259 %if "%{pld_release}" != "ac"
260 BuildRequires: libtool >= 2:2.2
262 BuildRequires: libtool
264 BuildRequires: libwrap-devel
265 BuildRequires: libxml2-devel >= 1:2.7.6-4
266 BuildRequires: libxslt-devel >= 1.1.0
267 %{?with_mhash:BuildRequires: mhash-devel}
268 %{?with_ming:BuildRequires: ming-devel >= 0.3}
269 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
270 BuildRequires: mysql-devel >= 4.0.0
271 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
272 BuildRequires: ncurses-ext-devel
273 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
274 %if %{with openssl} || %{with ldap}
275 BuildRequires: openssl-devel >= 0.9.7d
277 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
278 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
279 BuildRequires: pam-devel
280 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
281 BuildRequires: pkgconfig
282 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
283 %{?with_pgsql:BuildRequires: postgresql-devel}
284 BuildRequires: readline-devel
285 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
286 BuildRequires: rpm >= 4.4.9-56
287 BuildRequires: rpm-build >= 4.4.0
288 BuildRequires: rpmbuild(macros) >= 1.519
289 %{?with_sqlite:BuildRequires: sqlite-devel}
290 %{?with_sqlite:BuildRequires: sqlite3-devel}
291 BuildRequires: t1lib-devel
292 %{?with_tidy:BuildRequires: tidy-devel}
293 %{?with_odbc:BuildRequires: unixODBC-devel}
294 BuildRequires: zlib-devel >= 1.0.9
296 BuildRequires: apache1-devel
299 BuildRequires: apache-devel >= 2.0.52-2
300 BuildRequires: apr-devel >= 1:1.0.0
301 BuildRequires: apr-util-devel >= 1:1.0.0
304 BuildRequires: judy-devel
305 BuildRequires: libevent-devel >= 1.4.7-3
307 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
309 %define php_sysconfdir /etc/%{name}
310 %define php_extensiondir %{_libdir}/%{name}
311 %define _sysconfdir %{php_sysconfdir}
313 # must be in sync with source. extra check ensuring that it is so is done in %%build
314 %define php_api_version 20041225
315 %define zend_module_api 20060613
316 %define zend_extension_api 220060519
317 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
318 %define php_debug %{!?debug:0}%{?debug:1}
321 # ORACLE_HOME is required for oci8 ext to build
322 %define _preserve_env %_preserve_env_base ORACLE_HOME
326 PHP is an HTML-embedded scripting language. PHP attempts to make it
327 easy for developers to write dynamically generated web pages. PHP also
328 offers built-in database integration for several commercial and
329 non-commercial database management systems, so writing a
330 database-enabled web page with PHP is fairly simple. The most common
331 use of PHP coding is probably as a replacement for CGI scripts. The
332 mod_php module enables the Apache web server to understand and process
333 the embedded PHP language in web pages. This package contains PHP
336 %description -l fr.UTF-8
337 PHP est un langage de script embarque dans le HTM. PHP essaye de
338 rendre simple aux developpeurs d'ecrire des pages web generees
339 dynamiquement. PHP incorpore egalement une integration avec plusieurs
340 systemes de gestion de bases de donnees commerciaux et
341 non-connerciaux, qui rent facile la creation de pages web liees avec
342 des bases de donnees. L'utilisation la plus commune de PHP est
343 probablement en remplacement de scripts CGI. Le module mod_php permet
344 au serveur web Apache de comprendre et de traiter le langage PHP
345 integre dans des pages web. Ce package contient PHP version
348 %description -l pl.UTF-8
349 PHP jest językiem skryptowym, którego polecenia umieszcza się w
350 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
351 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
352 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
353 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
354 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
355 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
356 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
359 %description -l pt_BR.UTF-8
360 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
361 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
362 com algumas características únicas, específicas ao PHP. O objetivo da
363 linguagem é permitir que desenvolvedores web escrevam páginas
364 dinamicamente geradas de forma rápida.
366 %description -l ru.UTF-8
367 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
368 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
369 для работы с базами данных относительно просто. Наиболее популярное
370 использование PHP - замена для CGI скриптов.
372 %description -l uk.UTF-8
373 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
374 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
375 роботи з базами даних є доволі простим. Найбільш популярне
376 використання PHP - заміна для CGI скриптів.
378 %package -n apache1-mod_%{name}
379 Summary: PHP DSO module for Apache 1.3.x
380 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
381 Group: Development/Languages/PHP
382 Requires(triggerpostun): sed >= 4.0
383 Requires: %{name}-common = %{epoch}:%{version}-%{release}
384 Requires: apache1(EAPI) >= 1.3.33-2
385 Requires: apache1-mod_mime
386 Provides: webserver(php) = %{version}
387 Obsoletes: apache-mod_php < 1:4.1.1
390 %description -n apache1-mod_%{name}
391 PHP as DSO module for Apache 1.3.x.
393 %description -n apache1-mod_%{name} -l pl.UTF-8
394 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
396 %package -n apache-mod_%{name}
397 Summary: PHP DSO module for Apache 2.x
398 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
399 Group: Development/Languages/PHP
400 Requires: %{name}-common = %{epoch}:%{version}-%{release}
401 Requires: apache(modules-api) = %{apache_modules_api}
402 Requires: apache-mod_mime
403 Provides: webserver(php) = %{version}
406 %description -n apache-mod_%{name}
407 PHP as DSO module for Apache 2.x.
409 %description -n apache-mod_%{name} -l pl.UTF-8
410 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
413 Summary: php as FastCGI program
414 Summary(pl.UTF-8): php jako program FastCGI
415 Group: Development/Languages/PHP
416 Requires: %{name}-common = %{epoch}:%{version}-%{release}
418 Provides: webserver(php) = %{version}
421 php as FastCGI program.
423 %description fcgi -l pl.UTF-8
424 php jako program FastCGI.
427 Summary: PHP as CGI/FastCGI program
428 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
429 Group: Development/Languages/PHP
430 Requires: %{name}-common = %{epoch}:%{version}-%{release}
432 Provides: webserver(php) = %{version}
433 %if "%{pld_release}" != "ac"
434 Conflicts: logrotate < 3.8.0
440 %description cgi -l pl.UTF-8
441 php jako program CGI.
444 Summary: PHP as CLI interpreter
445 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
446 Group: Development/Languages/PHP
447 Requires: %{name}-common = %{epoch}:%{version}-%{release}
450 PHP as CLI interpreter.
452 %description cli -l pl.UTF-8
453 PHP jako interpreter działający z linii poleceń.
456 Summary: /usr/bin/php symlink
457 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
458 Group: Development/Languages/PHP
459 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
460 Obsoletes: /usr/bin/php
463 Package providing /usr/bin/php symlink to PHP CLI.
465 %description program -l pl.UTF-8
466 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
469 Summary: PHP FastCGI Process Manager
470 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
471 Group: Development/Languages/PHP
472 URL: http://www.php-fpm.org/
473 Requires(post,preun): /sbin/chkconfig
474 Requires(postun): /usr/sbin/userdel
475 Requires(pre): /bin/id
476 Requires(pre): /usr/sbin/useradd
477 Requires: %{name}-common = %{epoch}:%{version}-%{release}
478 Requires: libevent >= 1.4.7-3
481 Provides: webserver(php) = %{version}
484 PHP FastCGI Process Manager.
486 %description fpm -l pl.UTF-8
487 PHP FastCGI Process Manager - zarządca procesów FastCGI.
490 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
491 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
492 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
493 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
495 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
496 Requires: glibc >= 6:2.3.5
497 Requires: php-dirs >= 1.4
498 Requires: rpm-whiteout >= 1.28
500 Provides: %{name}(debug) = %{php_debug}
501 Provides: %{name}(modules_api) = %{php_api_version}
502 Provides: %{name}(thread-safety) = %{zend_zts}
503 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
504 Provides: %{name}(zend_module_api) = %{zend_module_api}
505 Provides: %{name}-core
506 Provides: %{name}-date
507 Provides: %{name}-ereg
508 %{?with_zend_multibyte:Provides: %{name}-mbstring = %{epoch}:%{version}-%{release}}
509 Provides: %{name}-overload
510 Provides: %{name}-reflection
511 Provides: %{name}-standard
512 Provides: php(core) = %{version}
515 Provides: php(libxml)
516 %{?with_zend_multibyte:Provides: php(mbstring)}
517 Provides: php(modules_api) = %{php_api_version}
518 Provides: php(overload)
519 Provides: php(reflection)
520 Provides: php(standard)
521 # ensure backward compatibility for Titanium
522 # to be dropped in future but ask Titanium RM before doing so
523 %if "%{pld_release}" == "ti"
524 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
525 Requires: %{name}-session = %{epoch}:%{version}-%{release}
526 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
528 %if "%{pld_release}" == "ac"
529 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
530 Requires: %{name}-session = %{epoch}:%{version}-%{release}
531 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
533 %{!?with_mysqlnd:Obsoletes: php-mysqlnd}
534 %{?with_pcre:%requires_ge_to pcre pcre-devel}
535 Obsoletes: php-pecl-domxml
536 Conflicts: php-pecl-memcache < 3.0.4-2
537 Conflicts: php4-common < 3:4.4.4-8
538 Conflicts: rpm < 4.4.2-0.2
541 Common files needed by both Apache modules and CGI/CLI SAPI-s.
543 %description common -l pl.UTF-8
544 Wspólne pliki dla modułu Apache'a i programu CGI.
546 %description common -l ru.UTF-8
547 Этот пакет содержит общие файлы для разных вариантов реализации PHP
548 (самодостаточной и в качестве модуля Apache).
550 %description common -l uk.UTF-8
551 Цей пакет містить спільні файли для різних варіантів реалізації PHP
552 (самодостатньої та в якості модуля Apache).
555 Summary: Files for PHP modules development
556 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
557 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
558 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
559 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
560 Group: Development/Languages/PHP
561 Requires: %{name}-common = %{epoch}:%{version}-%{release}
564 %if "%{pld_release}" != "ac"
565 Requires: libtool >= 2:2.2
569 %{?with_pcre:Requires: pcre-devel >= 6.6}
572 Obsoletes: php-pear-devel
573 Obsoletes: php4-devel
574 Obsoletes: php53-devel
575 Obsoletes: php54-devel
578 The php-devel package lets you compile dynamic extensions to PHP.
579 Included here is the source for the PHP extensions. Instead of
580 recompiling the whole PHP binary to add support for, say, oracle,
581 install this package and use the new self-contained extensions
582 support. For more information, read the file
583 README.SELF-CONTAINED-EXTENSIONS.
585 %description devel -l pl.UTF-8
586 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
587 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
588 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
589 samodzielnych rozszerzeniach można znaleźć w pliku
590 README.SELF-CONTAINED-EXTENSIONS.
592 %description devel -l pt_BR.UTF-8
593 Este pacote contém arquivos usados no desenvolvimento de programas ou
596 %description devel -l ru.UTF-8
597 Пакет php-devel дает возможность компилировать динамические расширения
598 PHP. Пакет включает исходный код этих расширений. Вместо повторной
599 компиляции бинарного файла PHP для добавления, например, поддержки
600 oracle, установите этот пакет для компилирования отдельных расширений.
601 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
603 %description devel -l uk.UTF-8
604 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
605 До пакету включено вихідний код для розширень. Замість повторної
606 компіляції бінарного файлу PHP для додання, наприклад, підтримки
607 oracle, встановіть цей пакет для компіляції окремих розширень.
608 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
611 Summary: bcmath extension module for PHP
612 Summary(pl.UTF-8): Moduł bcmath dla PHP
614 URL: http://www.php.net/manual/en/book.bc.php
615 Requires: %{name}-common = %{epoch}:%{version}-%{release}
616 Provides: php(bcmath)
619 This is a dynamic shared object (DSO) for PHP that will add bc style
620 precision math functions support.
622 %description bcmath -l pl.UTF-8
623 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
624 matematycznych takich jak w programie bc.
627 Summary: Bzip2 extension module for PHP
628 Summary(pl.UTF-8): Moduł bzip2 dla PHP
630 URL: http://www.php.net/manual/en/book.bzip2.php
631 Requires: %{name}-common = %{epoch}:%{version}-%{release}
632 Provides: %{name}-bzip2 = %{epoch}:%{version}-%{release}
638 This is a dynamic shared object (DSO) for PHP that will add bzip2
639 compression support to PHP.
641 %description bz2 -l pl.UTF-8
642 Moduł PHP umożliwiający używanie kompresji bzip2.
645 Summary: Calendar extension module for PHP
646 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
648 URL: http://www.php.net/manual/en/book.calendar.php
649 Requires: %{name}-common = %{epoch}:%{version}-%{release}
650 Provides: php(calendar)
652 %description calendar
653 This is a dynamic shared object (DSO) for PHP that will add calendar
656 %description calendar -l pl.UTF-8
657 Moduł PHP dodający wsparcie dla kalendarza.
660 Summary: ctype extension module for PHP
661 Summary(pl.UTF-8): Moduł ctype dla PHP
663 URL: http://www.php.net/manual/en/book.ctype.php
664 Requires: %{name}-common = %{epoch}:%{version}-%{release}
668 This is a dynamic shared object (DSO) for PHP that will add ctype
671 %description ctype -l pl.UTF-8
672 Moduł PHP umożliwiający korzystanie z funkcji ctype.
675 Summary: curl extension module for PHP
676 Summary(pl.UTF-8): Moduł curl dla PHP
678 URL: http://www.php.net/manual/en/book.curl.php
679 Requires: %{name}-common = %{epoch}:%{version}-%{release}
683 This is a dynamic shared object (DSO) for PHP that will add curl
686 %description curl -l pl.UTF-8
687 Moduł PHP umożliwiający korzystanie z biblioteki curl.
690 Summary: DBA extension module for PHP
691 Summary(pl.UTF-8): Moduł DBA dla PHP
693 URL: http://www.php.net/manual/en/book.dba.php
694 Requires: %{name}-common = %{epoch}:%{version}-%{release}
698 This is a dynamic shared object (DSO) for PHP that will add flat-file
699 databases (DBA) support.
701 %description dba -l pl.UTF-8
702 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
706 Summary: DBase extension module for PHP
707 Summary(pl.UTF-8): Moduł DBase dla PHP
709 Requires: %{name}-common = %{epoch}:%{version}-%{release}
713 This is a dynamic shared object (DSO) for PHP that will add DBase
716 %description dbase -l pl.UTF-8
717 Moduł PHP ze wsparciem dla DBase.
720 Summary: DOM extension module for PHP
721 Summary(pl.UTF-8): Moduł DOM dla PHP
723 URL: http://www.php.net/manual/en/book.dom.php
724 Requires: %{name}-common = %{epoch}:%{version}-%{release}
726 # it has some compatibility functions
727 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
728 Provides: php(domxml)
729 Obsoletes: php-domxml <= 3:4.3.8-1
732 This is a dynamic shared object (DSO) for PHP that will add new DOM
735 %description dom -l pl.UTF-8
736 Moduł PHP dodający nową obsługę DOM.
739 Summary: exif extension module for PHP
740 Summary(pl.UTF-8): Moduł exif dla PHP
742 URL: http://www.php.net/manual/en/book.exif.php
743 Requires: %{name}-common = %{epoch}:%{version}-%{release}
747 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
748 support in image files.
750 %description exif -l pl.UTF-8
751 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
754 Summary: FDF extension module for PHP
755 Summary(pl.UTF-8): Moduł FDF dla PHP
757 URL: http://www.php.net/manual/en/book.fdf.php
758 Requires: %{name}-common = %{epoch}:%{version}-%{release}
762 This PHP module adds support for PDF Forms through Adobe FDFTK
765 %description fdf -l pl.UTF-8
766 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
770 Summary: Extension for safely dealing with input parameters
771 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
773 URL: http://www.php.net/manual/en/book.filter.php
774 Requires: %{name}-common = %{epoch}:%{version}-%{release}
775 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
776 Provides: php(filter)
777 Obsoletes: php-pecl-filter
780 We all know that you should always check input variables, but PHP does
781 not offer really good functionality for doing this in a safe way. The
782 Input Filter extension is meant to address this issue by implementing
783 a set of filters and mechanisms that users can use to safely access
786 %description filter -l pl.UTF-8
787 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
788 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
789 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
790 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
791 mogą bezpiecznie używać do dostępu do danych.
794 Summary: FTP extension module for PHP
795 Summary(pl.UTF-8): Moduł FTP dla PHP
797 URL: http://www.php.net/manual/en/book.ftp.php
798 Requires: %{name}-common = %{epoch}:%{version}-%{release}
802 This is a dynamic shared object (DSO) for PHP that will add FTP
805 %description ftp -l pl.UTF-8
806 Moduł PHP dodający obsługę protokołu FTP.
809 Summary: GD extension module for PHP
810 Summary(pl.UTF-8): Moduł GD dla PHP
812 URL: http://www.php.net/manual/en/book.image.php
813 Requires: %{name}-common = %{epoch}:%{version}-%{release}
814 %if %{with system_gd}
815 Requires: gd >= 2.0.28-4
817 Requires: gd(imagerotate) = 5.2.0
822 This is a dynamic shared object (DSO) for PHP that will add GD
823 support, allowing you to create and manipulate images with PHP.
825 %description gd -l pl.UTF-8
826 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
827 tworzenie i obróbkę obrazków.
830 Summary: gettext extension module for PHP
831 Summary(pl.UTF-8): Moduł gettext dla PHP
833 URL: http://www.php.net/manual/en/book.gettext.php
834 Requires: %{name}-common = %{epoch}:%{version}-%{release}
835 Provides: php(gettext)
838 This is a dynamic shared object (DSO) for PHP that will add gettext
841 %description gettext -l pl.UTF-8
842 Moduł PHP dodający obsługę lokalizacji przez gettext.
845 Summary: gmp extension module for PHP
846 Summary(pl.UTF-8): Moduł gmp dla PHP
848 URL: http://www.php.net/manual/en/book.gmp.php
849 Requires: %{name}-common = %{epoch}:%{version}-%{release}
853 This is a dynamic shared object (DSO) for PHP that will add arbitrary
854 length number support with GNU MP library.
856 %description gmp -l pl.UTF-8
857 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
858 liczbach o dowolnej długości.
861 Summary: HASH Message Digest Framework
862 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
864 URL: http://www.php.net/manual/en/book.gmp.php
865 Requires: %{name}-common = %{epoch}:%{version}-%{release}
867 Obsoletes: php-pecl-hash
870 Native implementations of common message digest algorithms using a
871 generic factory method.
873 %description hash -l pl.UTF-8
874 Natywne implementacje popularnych algorytmów obliczania skrótów
875 wiadomości przy użyciu wspólnego interfejsu.
878 Summary: iconv extension module for PHP
879 Summary(pl.UTF-8): Moduł iconv dla PHP
881 URL: http://www.php.net/manual/en/book.iconv.php
882 Requires: %{_libdir}/gconv
883 Requires: %{name}-common = %{epoch}:%{version}-%{release}
888 This is a dynamic shared object (DSO) for PHP that will add iconv
891 %description iconv -l pl.UTF-8
892 Moduł PHP dodający obsługę iconv.
895 Summary: IMAP extension module for PHP
896 Summary(pl.UTF-8): Moduł IMAP dla PHP
897 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
899 URL: http://www.php.net/manual/en/book.imap.php
900 Requires: %{name}-common = %{epoch}:%{version}-%{release}
904 This is a dynamic shared object (DSO) for PHP that will add IMAP
907 %description imap -l pl.UTF-8
908 Moduł PHP dodający obsługę skrzynek IMAP.
910 %description imap -l pt_BR.UTF-8
911 Um módulo para aplicações PHP que usam IMAP.
914 Summary: InterBase/Firebird database module for PHP
915 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
917 URL: http://www.php.net/manual/en/book.ibase.php
918 Requires: %{name}-common = %{epoch}:%{version}-%{release}
919 Provides: php(interbase)
920 %{?with_interbase_inst:Autoreq: false}
922 %description interbase
923 This is a dynamic shared object (DSO) for PHP that will add InterBase
924 and Firebird database support.
926 %description interbase -l pl.UTF-8
927 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
930 Summary: PHP C extension for JSON serialization
931 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
933 URL: http://www.php.net/manual/en/book.json.php
934 Requires: %{name}-common = %{epoch}:%{version}-%{release}
936 Obsoletes: php-pecl-json
939 php-json is an extremely fast PHP C extension for JSON (JavaScript
940 Object Notation) serialisation.
942 %description json -l pl.UTF-8
943 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
944 (JavaScript Object Notation).
947 Summary: LDAP extension module for PHP
948 Summary(pl.UTF-8): Moduł LDAP dla PHP
949 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
951 URL: http://www.php.net/manual/en/book.ldap.php
952 Requires: %{name}-common = %{epoch}:%{version}-%{release}
956 This is a dynamic shared object (DSO) for PHP that will add LDAP
959 %description ldap -l pl.UTF-8
960 Moduł PHP dodający obsługę LDAP.
962 %description ldap -l pt_BR.UTF-8
963 Um módulo para aplicações PHP que usam LDAP.
966 Summary: mbstring extension module for PHP
967 Summary(pl.UTF-8): Moduł mbstring dla PHP
969 URL: http://www.php.net/manual/en/book.mbstring.php
970 Requires: %{name}-common = %{epoch}:%{version}-%{release}
971 Provides: php(mbstring)
973 %description mbstring
974 This is a dynamic shared object (DSO) for PHP that will add multibyte
977 %description mbstring -l pl.UTF-8
978 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
981 Summary: mcrypt extension module for PHP
982 Summary(pl.UTF-8): Moduł mcrypt dla PHP
984 URL: http://www.php.net/manual/en/book.mcrypt.php
985 Requires: %{name}-common = %{epoch}:%{version}-%{release}
986 Provides: php(mcrypt)
989 This is a dynamic shared object (DSO) for PHP that will add mcrypt
992 %description mcrypt -l pl.UTF-8
993 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
996 Summary: mhash extension module for PHP
997 Summary(pl.UTF-8): Moduł mhash dla PHP
999 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1000 Provides: php(mhash)
1003 This is a dynamic shared object (DSO) for PHP that will add mhash
1006 %description mhash -l pl.UTF-8
1007 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1010 Summary: mime_magic extension module for PHP
1011 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1013 Requires: %{magic_mime}
1014 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1015 Provides: php(mime_magic)
1017 %description mime_magic
1018 This PHP module adds support for MIME type lookup via file magic
1019 numbers using magic.mime database.
1021 %description mime_magic -l pl.UTF-8
1022 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1023 znaczników plików z użyciem bazy danych magic.mime.
1026 Summary: ming extension module for PHP
1027 Summary(pl.UTF-8): Moduł ming dla PHP
1029 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1030 Requires: ming >= 0.3
1034 This is a dynamic shared object (DSO) for PHP that will add ming
1035 (Flash - .swf files) support.
1037 %description ming -l pl.UTF-8
1038 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1042 Summary: MS SQL extension module for PHP
1043 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1045 URL: http://www.php.net/manual/en/book.mssql.php
1046 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1047 Provides: php(mssql)
1050 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1051 databases support through FreeTDS library.
1053 %description mssql -l pl.UTF-8
1054 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1058 Summary: MySQL database module for PHP
1059 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1060 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1062 URL: http://www.php.net/manual/en/book.mysql.php
1063 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1064 Provides: php(mysql)
1067 This is a dynamic shared object (DSO) for PHP that will add MySQL
1070 %description mysql -l pl.UTF-8
1071 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1073 %description mysql -l pt_BR.UTF-8
1074 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1077 Summary: MySQLi module for PHP
1078 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1080 URL: http://www.php.net/manual/en/book.mysqli.php
1081 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1082 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1083 Requires: mysql-libs >= 4.1.0
1084 Provides: php(mysqli)
1087 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1088 (Improved MySQL) support. The difference between it and mysql module
1089 is that it provides access to functionality of MySQL 4.1 and above.
1091 %description mysqli -l pl.UTF-8
1092 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1093 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1094 MySQL w wersji 4.1 i nowszych.
1097 Summary: ncurses module for PHP
1098 Summary(pl.UTF-8): Moduł ncurses dla PHP
1100 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1101 Provides: php(ncurses)
1103 %description ncurses
1104 This PHP module adds support for ncurses functions (only for cli and
1107 %description ncurses -l pl.UTF-8
1108 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1111 Summary: Oracle 8+ database module for PHP
1112 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1114 URL: http://www.php.net/manual/en/book.oci8.php
1115 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1120 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1121 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1123 %description oci8 -l pl.UTF-8
1124 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1125 poprzez interfejs Oracle8 Call-Interface (OCI8).
1128 Summary: ODBC extension module for PHP
1129 Summary(pl.UTF-8): Moduł ODBC dla PHP
1130 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1132 URL: http://www.php.net/manual/en/book.uodbc.php
1133 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1134 Requires: unixODBC >= 2.1.1-3
1138 This is a dynamic shared object (DSO) for PHP that will add ODBC
1141 %description odbc -l pl.UTF-8
1142 Moduł PHP ze wsparciem dla ODBC.
1144 %description odbc -l pt_BR.UTF-8
1145 Um módulo para aplicações PHP que usam ODBC.
1148 Summary: OpenSSL extension module for PHP
1149 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1151 URL: http://www.php.net/manual/en/book.openssl.php
1152 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1153 Provides: php(openssl)
1155 %description openssl
1156 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1159 %description openssl -l pl.UTF-8
1160 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1163 Summary: Process Control extension module for PHP
1164 Summary(pl.UTF-8): Moduł Process Control dla PHP
1166 URL: http://www.php.net/manual/en/book.pcntl.php
1167 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1168 Provides: php(pcntl)
1171 This is a dynamic shared object (DSO) for PHP that will add process
1172 spawning and control support. It supports functions like fork(),
1173 waitpid(), signal() etc.
1175 %description pcntl -l pl.UTF-8
1176 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1177 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1180 Summary: PCRE extension module for PHP
1181 Summary(pl.UTF-8): Moduł PCRE dla PHP
1183 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1187 This is a dynamic shared object (DSO) for PHP that will add Perl
1188 Compatible Regular Expression support.
1190 %description pcre -l pl.UTF-8
1191 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1192 (Perl Compatible Regular Expressions)
1195 Summary: PHP Data Objects (PDO)
1196 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1198 URL: http://www.php.net/manual/en/book.pdo.php
1199 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1200 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1202 Obsoletes: php-pecl-PDO
1205 This is a dynamic shared object (DSO) for PHP that will add PDO
1208 %description pdo -l pl.UTF-8
1209 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1212 Summary: PHP Data Objects (PDO) FreeTDS support
1213 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1215 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1216 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1217 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1218 Provides: php(dblib)
1220 %description pdo-dblib
1221 This is a dynamic shared object (DSO) for PHP that will add PDO
1224 %description pdo-dblib -l pl.UTF-8
1225 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1228 %package pdo-firebird
1229 Summary: PHP Data Objects (PDO) Firebird support
1230 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1232 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1233 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1234 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1235 Provides: php(pdo-firebird)
1236 Obsoletes: php-pecl-PDO_FIREBIRD
1238 %description pdo-firebird
1239 This is a dynamic shared object (DSO) for PHP that will add PDO
1242 %description pdo-firebird -l pl.UTF-8
1243 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1247 Summary: PHP Data Objects (PDO) MySQL support
1248 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1250 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1251 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1252 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1253 Provides: php(pdo-mysql)
1254 Obsoletes: php-pecl-PDO_MYSQL
1256 %description pdo-mysql
1257 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1260 %description pdo-mysql -l pl.UTF-8
1261 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1265 Summary: PHP Data Objects (PDO) Oracle support
1266 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1268 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1269 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1270 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1271 Provides: php(pdo-oci)
1272 Obsoletes: php-pecl-PDO_OCI
1274 %description pdo-oci
1275 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1278 %description pdo-oci -l pl.UTF-8
1279 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1283 Summary: PHP Data Objects (PDO) ODBC support
1284 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1286 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1287 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1288 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1289 Provides: php(pdo-odbc)
1290 Obsoletes: php-pecl-PDO_ODBC
1292 %description pdo-odbc
1293 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1296 %description pdo-odbc -l pl.UTF-8
1297 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1301 Summary: PHP Data Objects (PDO) PostgreSQL support
1302 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1304 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1305 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1306 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1307 Provides: php(pdo-pgsql)
1308 Provides: php-pecl-PDO_PGSQL
1309 Obsoletes: php-pecl-PDO_PGSQL
1311 %description pdo-pgsql
1312 This is a dynamic shared object (DSO) for PHP that will add PDO
1315 %description pdo-pgsql -l pl.UTF-8
1316 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1320 Summary: PHP Data Objects (PDO) SQLite support
1321 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1323 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1324 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1325 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1326 Provides: php(pdo-sqlite)
1327 Obsoletes: php-pecl-PDO_SQLITE
1329 %description pdo-sqlite
1330 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1333 %description pdo-sqlite -l pl.UTF-8
1334 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1338 Summary: PostgreSQL database module for PHP
1339 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1341 URL: http://www.php.net/manual/en/book.pgsql.php
1342 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1343 Provides: php(pgsql)
1346 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1349 %description pgsql -l pl.UTF-8
1350 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1352 %description pgsql -l pt_BR.UTF-8
1353 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1356 Summary: POSIX extension module for PHP
1357 Summary(pl.UTF-8): Moduł POSIX dla PHP
1359 URL: http://www.php.net/manual/en/book.posix.php
1360 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1361 Provides: php(posix)
1364 This is a dynamic shared object (DSO) for PHP that will add POSIX
1365 functions support to PHP.
1367 %description posix -l pl.UTF-8
1368 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1371 Summary: pspell extension module for PHP
1372 Summary(pl.UTF-8): Moduł pspell dla PHP
1374 URL: http://www.php.net/manual/en/book.pspell.php
1375 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1376 Provides: php(pspell)
1379 This is a dynamic shared object (DSO) for PHP that will add pspell
1380 support to PHP. It allows to check the spelling of a word and offer
1383 %description pspell -l pl.UTF-8
1384 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1385 sprawdzanie pisowni słowa i sugerowanie poprawek.
1388 Summary: readline extension module for PHP
1389 Summary(pl.UTF-8): Moduł readline dla PHP
1391 URL: http://www.php.net/manual/en/book.readline.php
1392 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1393 Provides: php(readline)
1395 %description readline
1396 This PHP module adds support for readline functions (only for cli and
1399 %description readline -l pl.UTF-8
1400 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1403 Summary: recode extension module for PHP
1404 Summary(pl.UTF-8): Moduł recode dla PHP
1406 URL: http://www.php.net/manual/en/book.recode.php
1407 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1408 Requires: recode >= 3.5d-3
1409 Provides: php(recode)
1412 This is a dynamic shared object (DSO) for PHP that will add recode
1415 %description recode -l pl.UTF-8
1416 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1420 Summary: session extension module for PHP
1421 Summary(pl.UTF-8): Moduł session dla PHP
1423 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1424 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1425 Provides: php(session)
1427 %description session
1428 This is a dynamic shared object (DSO) for PHP that will add session
1431 %description session -l pl.UTF-8
1432 Moduł PHP dodający obsługę sesji.
1435 Summary: Shared Memory Operations extension module for PHP
1436 Summary(pl.UTF-8): Moduł shmop dla PHP
1438 URL: http://www.php.net/manual/en/book.shmop.php
1439 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1440 Provides: php(shmop)
1443 This is a dynamic shared object (DSO) for PHP that will add Shared
1444 Memory Operations support.
1446 %description shmop -l pl.UTF-8
1447 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1450 Summary: Simple XML extension module for PHP
1451 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1453 URL: http://www.php.net/manual/en/book.simplexml.php
1454 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1455 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1456 Provides: php(simplexml)
1458 %description simplexml
1459 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1462 %description simplexml -l pl.UTF-8
1463 Moduł PHP dodający obsługę prostego XML-a.
1466 Summary: SNMP extension module for PHP
1467 Summary(pl.UTF-8): Moduł SNMP dla PHP
1469 URL: http://www.php.net/manual/en/book.snmp.php
1470 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1471 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1475 This is a dynamic shared object (DSO) for PHP that will add SNMP
1478 %description snmp -l pl.UTF-8
1479 Moduł PHP dodający obsługę SNMP.
1482 Summary: soap extension module for PHP
1483 Summary(pl.UTF-8): Moduł soap dla PHP
1485 URL: http://www.php.net/manual/en/book.soap.php
1486 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1490 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1493 %description soap -l pl.UTF-8
1494 Moduł PHP dodający obsługę SOAP/WSDL.
1497 Summary: sockets extension module for PHP
1498 Summary(pl.UTF-8): Moduł socket dla PHP
1500 URL: http://www.php.net/manual/en/book.sockets.php
1501 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1502 Provides: php(sockets)
1504 %description sockets
1505 This is a dynamic shared object (DSO) for PHP that will add sockets
1508 %description sockets -l pl.UTF-8
1509 Moduł PHP dodający obsługę gniazdek.
1512 Summary: Standard PHP Library module for PHP
1513 Summary(pl.UTF-8): Moduł SPL dla PHP
1515 URL: http://php.net/manual/en/book.spl.php
1516 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1517 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1518 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1522 This is a dynamic shared object (DSO) for PHP that will add Standard
1523 PHP Library support.
1525 %description spl -l pl.UTF-8
1526 Moduł PHP dodający obsługę gniazdek.
1529 Summary: SQLite extension module for PHP
1530 Summary(pl.UTF-8): Moduł SQLite dla PHP
1532 URL: http://www.php.net/manual/en/book.sqlite.php
1533 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1534 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1535 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1536 Provides: php(sqlite)
1539 SQLite is a C library that implements an embeddable SQL database
1540 engine. Programs that link with the SQLite library can have SQL
1541 database access without running a separate RDBMS process.
1543 SQLite is not a client library used to connect to a big database
1544 server. SQLite is the server. The SQLite library reads and writes
1545 directly to and from the database files on disk.
1547 %description sqlite -l pl.UTF-8
1548 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1549 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1550 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1553 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1554 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1555 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1559 Summary: Sybase DB extension module for PHP
1560 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1562 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1563 Provides: php(sybase)
1564 Obsoletes: php-sybase-ct
1565 Conflicts: php-sybase-ct
1568 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1569 MS SQL databases support through SYBDB library. Currently Sybase
1570 module is not maintained. Using Sybase-CT module is recommended
1573 %description sybase -l pl.UTF-8
1574 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1575 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1576 Zaleca się używanie modułu Sybase-CT.
1579 Summary: Sybase-CT extension module for PHP
1580 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1582 URL: http://www.php.net/manual/en/book.sybase.php
1583 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1584 Provides: php(sybase-ct)
1585 Obsoletes: php-sybase
1586 Conflicts: php-sybase
1588 %description sybase-ct
1589 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1590 MS SQL databases support through CT-lib.
1592 %description sybase-ct -l pl.UTF-8
1593 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1597 Summary: SysV msg extension module for PHP
1598 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1600 URL: http://www.php.net/manual/en/book.sem.php
1601 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1602 Provides: php(sysvmsg)
1604 %description sysvmsg
1605 This is a dynamic shared object (DSO) for PHP that will add SysV
1606 message queues support.
1608 %description sysvmsg -l pl.UTF-8
1609 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1612 Summary: SysV sem extension module for PHP
1613 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1615 URL: http://www.php.net/manual/en/book.sem.php
1616 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1617 Provides: php(sysvsem)
1619 %description sysvsem
1620 This is a dynamic shared object (DSO) for PHP that will add SysV
1623 %description sysvsem -l pl.UTF-8
1624 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1627 Summary: SysV shm extension module for PHP
1628 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1630 URL: http://www.php.net/manual/en/book.shmop.php
1631 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1632 Provides: php(sysvshm)
1634 %description sysvshm
1635 This is a dynamic shared object (DSO) for PHP that will add SysV
1636 Shared Memory support.
1638 %description sysvshm -l pl.UTF-8
1639 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1642 Summary: Contains unit test files for PHP and extensions
1643 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1645 URL: http://qa.php.net/
1646 Requires: %{name}-cli
1649 This package contains unit tests for PHP and it's extensions.
1651 %description tests -l pl.UTF-8
1652 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1655 Summary: Tidy extension module for PHP
1656 Summary(pl.UTF-8): Moduł Tidy dla PHP
1658 URL: http://www.php.net/manual/en/book.tidy.php
1659 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1664 This is a dynamic shared object (DSO) for PHP that will add Tidy
1667 %description tidy -l pl.UTF-8
1668 Moduł PHP umożliwiający korzystanie z tidy.
1671 Summary: tokenizer extension module for PHP
1672 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1674 URL: http://www.php.net/manual/en/book.tokenizer.php
1675 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1676 Provides: php(tokenizer)
1678 %description tokenizer
1679 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1682 %description tokenizer -l pl.UTF-8
1683 Moduł PHP dodający obsługę tokenizera do PHP.
1686 Summary: wddx extension module for PHP
1687 Summary(pl.UTF-8): Moduł wddx dla PHP
1689 URL: http://www.php.net/manual/en/book.wddx.php
1690 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1691 # - wddx doesn't require session as it's disabled at compile time:
1692 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1693 # see also php.spec#rev1.120.2.22
1694 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1695 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1699 This is a dynamic shared object (DSO) for PHP that will add wddx
1702 %description wddx -l pl.UTF-8
1703 Moduł PHP umożliwiający korzystanie z wddx.
1706 Summary: XML extension module for PHP
1707 Summary(pl.UTF-8): Moduł XML dla PHP
1709 URL: http://www.php.net/manual/en/book.xml.php
1710 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1714 This is a dynamic shared object (DSO) for PHP that will add XML
1715 support. This extension lets you create XML parsers and then define
1716 handlers for different XML events.
1718 %description xml -l pl.UTF-8
1719 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1720 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1721 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1724 Summary: XML Reader extension module for PHP
1725 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1727 URL: http://www.php.net/manual/en/book.xmlreader.php
1728 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1729 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1730 Provides: php(xmlreader)
1732 %description xmlreader
1733 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1734 support. The XMLReader extension is an XML Pull parser. The reader
1735 acts as a cursor going forward on the document stream and stopping at
1736 each node on the way.
1738 %description xmlreader -l pl.UTF-8
1739 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1740 działa jako kursor przechodzący przez strumień dokumentu i
1741 zatrzymujący się na każdym węźle po drodze.
1744 Summary: xmlrpc extension module for PHP
1745 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1747 URL: http://www.php.net/manual/en/book.xmlrpc.php
1748 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1749 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1750 Provides: php(xmlrpc)
1753 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1756 %description xmlrpc -l pl.UTF-8
1757 Moduł PHP dodający obsługę XMLRPC.
1760 Summary: Fast, non-cached, forward-only means to write XML data
1761 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1763 URL: http://www.php.net/manual/en/book.xmlwriter.php
1764 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1765 Provides: php(xmlwriter)
1766 Obsoletes: php-pecl-xmlwriter
1768 %description xmlwriter
1769 This extension wraps the libxml xmlWriter API. Represents a writer
1770 that provides a non-cached, forward-only means of generating streams
1771 or files containing XML data.
1773 %description xmlwriter -l pl.UTF-8
1774 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1775 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1776 plików zawierających dane XML.
1779 Summary: xsl extension module for PHP
1780 Summary(pl.UTF-8): Moduł xsl dla PHP
1782 URL: http://www.php.net/manual/en/book.xsl.php
1783 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1784 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1785 Requires: libxslt >= 1.0.18
1786 # actually not true, functionality is similar, but API differs
1788 Obsoletes: php-xslt <= 3:4.3.8-1
1791 This is a dynamic shared object (DSO) for PHP that will add new XSL
1792 support (using libxslt).
1794 %description xsl -l pl.UTF-8
1795 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1798 Summary: Zip management extension
1799 Summary(pl.UTF-8): Zarządzanie archiwami zip
1801 URL: http://www.php.net/manual/en/book.zip.php
1802 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1803 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1805 Obsoletes: php-pecl-zip
1808 Zip is an extension to create, modify and read zip files.
1810 %description zip -l pl.UTF-8
1811 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1812 odczyt archiwów zip.
1815 Summary: Zlib extension module for PHP
1816 Summary(pl.UTF-8): Moduł zlib dla PHP
1818 URL: http://www.php.net/manual/en/book.zlib.php
1819 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1823 This is a dynamic shared object (DSO) for PHP that will add zlib
1824 compression support to PHP.
1826 %description zlib -l pl.UTF-8
1827 Moduł PHP umożliwiający używanie kompresji zlib.
1830 %setup -q -n %{orgname}-%{version}
1833 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1846 cp php.ini-dist php.ini
1848 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1858 %if %{with system_gd}
1867 %{?with_versioning:%patch25 -p1}
1870 %{__tar} jxf %{SOURCE9}
1871 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1872 mv $v/$v gentoo-patchset
1873 for a in gentoo-patchset/*.patch; do
1886 %if "%{pld_release}" != "ac"
1891 # mysql default charset for mysql/mysql/pdo-mysql extensions
1923 %{?with_system_libzip:%patch65 -p1}
1930 # Bugfix backport from 5.3.6
1931 %patch311 -p1 -b .bug-47435
1932 %patch314 -p1 -b .bug-39199
1933 # Bugfix backport from 5.3.7
1934 #accert %patch333 -p1 -b .bug-54924
1935 #soap %patch355 -p1 -b .bug-55323
1936 # causes regression -> magic_quotes_gpc setting cannot be changed
1937 #%%patch402 -p1 -b .bug-323016
1939 # conflict seems to be resolved by recode patches
1940 rm -f ext/recode/config9.m4
1942 # remove all bundled libraries not to link with them accidentally
1943 #rm -rf ext/sqlite/libsqlite
1944 #rm -rf ext/bcmath/libbcmath
1945 #rm -rf ext/date/lib
1946 #rm -rf ext/dba/libcdb
1947 #rm -rf ext/dba/libflatfile
1948 #rm -rf ext/dba/libinifile
1949 #rm -rf ext/gd/libgd
1950 #rm -rf ext/mbstring/libmbfl
1951 #rm -rf ext/mbstring/oniguruma
1952 rm -rf ext/pcre/pcrelib
1953 rm -rf ext/pdo_sqlite/sqlite
1954 #rm -rf ext/soap/interop
1955 %if %{with system_xmlrpc_epi}
1956 rm -rf ext/xmlrpc/libxmlrpc
1960 # this test hungs on ac-ppc
1961 #mv ext/reflection/tests/007.php{,ignore}
1962 # this test gets killed by itself
1963 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1966 cp -af Zend/LICENSE{,.Zend}
1967 install -p %{SOURCE13} dep-tests.sh
1969 # disable broken tests
1970 # says just "Terminated" twice and fails
1971 mv sapi/cli/tests/022.phpt{,.broken}
1973 sh -xe %{_sourcedir}/skip-tests.sh
1976 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1977 if [ $API != %{php_api_version} ]; then
1978 echo "Set %%define php_api_version to $API and re-run."
1982 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1983 if [ $API != %{zend_module_api} ]; then
1984 echo "Set %%define zend_module_api to $API and re-run."
1988 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1989 if [ $API != %{zend_extension_api} ]; then
1990 echo "Set %%define zend_extension_api to $API and re-run."
1994 export EXTENSION_DIR="%{php_extensiondir}"
1995 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1996 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1999 cp -f /usr/share/automake/config.* .
2003 export PROG_SENDMAIL="/usr/lib/sendmail"
2020 for sapi in $sapis; do
2022 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2027 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2030 sapi_args='--disable-cgi'
2033 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2036 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2039 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2040 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2043 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2044 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2049 FORCE_APACHE_VERSION="${apache_ver}" \
2051 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2052 --cache-file=config.cache \
2054 --with-libdir=%{_lib} \
2055 --with-config-file-path=%{_sysconfdir} \
2056 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2057 --with-exec-dir=%{_bindir} \
2058 --with-system-tzdata \
2059 --%{!?debug:dis}%{?debug:en}able-debug \
2060 %{?with_zts:--enable-maintainer-zts} \
2061 %{?with_suhosin:--enable-suhosin} \
2062 %{?with_zend_multibyte:--enable-zend-multibyte} \
2063 --enable-inline-optimization \
2064 --enable-bcmath=shared \
2065 --enable-calendar=shared \
2066 --enable-ctype=shared \
2067 --enable-dba=shared \
2068 --enable-dom=shared \
2069 --enable-exif=shared \
2070 --enable-ftp=shared \
2071 --enable-gd-native-ttf \
2072 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2074 --enable-magic-quotes \
2075 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2077 --enable-pcntl=shared \
2078 --enable-pdo=shared \
2079 --enable-json=shared \
2080 --enable-hash=shared \
2081 --enable-xmlwriter=shared \
2083 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2084 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2085 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2087 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2088 --with-pdo-dblib=shared \
2090 %if %{with interbase} && !%{with interbase_inst}
2091 --with-pdo-firebird=shared,/usr \
2093 --with-pdo-mysql=shared \
2094 %{?with_oci8:--with-pdo-oci=shared} \
2095 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2096 %{?with_pgsql:--with-pdo-pgsql=shared} \
2097 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2098 --enable-posix=shared \
2099 --enable-reflection \
2101 --enable-session=shared \
2102 --enable-shmop=shared \
2103 --enable-simplexml=shared \
2104 --enable-spl=shared \
2105 --enable-sysvmsg=shared \
2106 --enable-sysvsem=shared \
2107 --enable-sysvshm=shared \
2108 --enable-safe-mode \
2109 --enable-soap=shared \
2110 --enable-sockets=shared \
2111 --enable-tokenizer=shared \
2112 --enable-ucd-snmp-hack \
2113 %{?with_wddx:--enable-wddx=shared} \
2114 --enable-xml=shared \
2115 --enable-xmlreader=shared \
2117 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2119 --enable-dbase=shared \
2120 --without-libexpat-dir \
2121 %{?with_fdf:--with-fdftk=shared} \
2122 --with-iconv=shared \
2123 --with-freetype-dir=shared \
2124 --with-gettext=shared \
2125 --with-gd=shared%{?with_system_gd:,/usr} \
2128 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2129 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2130 --with-jpeg-dir=/usr \
2131 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2132 --with-mcrypt=shared \
2133 %{?with_mhash:--with-mhash=shared} \
2134 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2135 %{?with_ming:--with-ming=shared} \
2136 %{?with_mm:--with-mm} \
2137 %{?with_mssql:--with-mssql=shared} \
2138 --with-mysql=shared,/usr \
2139 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2140 %{?with_mysqli:--with-mysqli=shared} \
2141 --with-ncurses=shared \
2142 %{?with_oci8:--with-oci8=shared} \
2143 %{?with_openssl:--with-openssl=shared} \
2145 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2146 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2147 --with-pear=%{php_pear_dir} \
2148 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2149 --with-png-dir=/usr \
2150 %{?with_pspell:--with-pspell=shared} \
2151 --with-readline=shared \
2152 %{?with_recode:--with-recode=shared} \
2154 %{?with_snmp:--with-snmp=shared} \
2155 %{?with_sybase:--with-sybase=shared,/usr} \
2156 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2157 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2158 --with-t1lib=shared \
2159 %{?with_tidy:--with-tidy=shared} \
2160 %{?with_odbc:--with-unixODBC=shared,/usr} \
2161 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2163 --with-zlib=shared \
2164 --with-zlib-dir=shared,/usr \
2165 %{?with_system_libzip:--with-libzip} \
2166 --enable-zip=shared,/usr \
2168 cp -f Makefile Makefile.$sapi
2169 cp -f main/php_config.h php_config.h.$sapi
2170 cp -f config.log config.log.$sapi
2173 # as we build each SAPI in own make, adjust php-config.in forehead
2174 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2175 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2177 # must make this first, so modules can link against it.
2178 %{__make} libphp_common.la
2179 %{__make} build-modules
2182 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2186 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2190 cp -af php_config.h.cgi main/php_config.h
2191 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2192 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2193 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2197 cp -af php_config.h.fcgi main/php_config.h
2198 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2199 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2200 cp -r sapi/cgi sapi/fcgi
2201 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2205 cp -af php_config.h.fpm main/php_config.h
2206 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2207 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2208 cp -r sapi/cgi sapi/fpm
2209 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2213 cp -af php_config.h.cli main/php_config.h
2214 %{__make} sapi/cli/php -f Makefile.cli
2215 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2217 # check for stupid xml parse breakage where < and > just get lost in parse result
2218 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x><</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2220 # Generate stub .ini files for each extension
2223 generate_inifiles() {
2224 for so in modules/*.so; do
2225 mod=$(basename $so .so)
2227 # xml needs to be loaded before wddx
2228 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2229 # pre needs to be loaded before SPL
2230 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2231 # spl needs to be loaded before mysqli
2232 [ "$mod" = "spl" ] && conf="SPL.ini"
2233 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2234 [ "$mod" = "session" ] && conf="Session.ini"
2236 cat > conf.d/$conf <<-EOF
2237 ; Enable $mod extension module
2244 # Check that the module inner-dependencies are intact
2245 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2246 if grep -v OK dep-tests.log; then
2247 echo >&2 "The results above were not expected"
2248 # TEMP: ac-i386 builder is broken
2256 # Run tests, using the CLI SAPI
2257 cp -af php_config.h.cli main/php_config.h
2258 cp -af Makefile.cli Makefile
2259 # sybase modules collide, remove one
2260 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2262 cat <<'EOF' > run-tests.sh
2264 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2265 unset TZ LANG LC_ALL || :
2268 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2269 RUN_TESTS_SETTINGS="-q $*"
2271 chmod +x run-tests.sh
2272 ./run-tests.sh -w failed.log -s test.log
2274 # collect failed tests into cleanup script used in prep.
2275 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2276 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2277 >> %{_sourcedir}/skip-tests.sh
2279 failed=$(wc -l < tests-failed.log)
2280 if [ "$failed" != 0 ]; then
2286 rm -rf $RPM_BUILD_ROOT
2287 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2288 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2289 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2290 $RPM_BUILD_ROOT%{_mandir}/man1 \
2292 # install the Apache modules' files
2293 %{__make} install-headers install-build install-modules install-programs \
2294 INSTALL_ROOT=$RPM_BUILD_ROOT
2297 v=$(echo %{version} | cut -d. -f1-2)
2299 # install Apache1 DSO module
2301 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2302 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2303 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2306 # install Apache2 DSO module
2308 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2309 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2310 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2313 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2314 # fix install paths, avoid evil rpaths
2315 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2317 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2320 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2324 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2329 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2330 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2331 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2332 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2333 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2334 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2335 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2336 %if "%{pld_release}" == "ac"
2337 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2341 s#/usr/lib/php#%{php_extensiondir}#
2342 s#/etc/php#%{_sysconfdir}#
2343 s#@processname@#%{name}-fpm#g
2344 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2348 # without suffix, install as php.cli
2349 %if "%{?php_suffix}" == ""
2350 %define phpfn %{name}.cli
2352 %define phpfn %{name}
2354 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2355 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2356 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2357 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2358 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2360 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2362 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2364 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2365 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2366 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2369 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2370 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2371 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2375 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2376 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2377 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2380 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2381 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2383 # ensure that paths are correct for current php version and arch
2384 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2386 s#/usr/lib/php#%{php_extensiondir}#g
2387 s#/etc/php#%{_sysconfdir}#g
2390 # per SAPI ini directories
2391 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2394 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2396 # use system automake and {lib,sh}tool
2397 %if "%{pld_release}" != "ac"
2398 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2399 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2400 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2402 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2404 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2405 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2407 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2409 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2410 # isn't installed by install-headers make target, we do it manually here.
2411 # this header file is required by e.g. filter PECL extension
2412 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2413 # for php-pecl-mailparse
2414 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2415 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2418 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2419 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2420 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2423 rm -rf $RPM_BUILD_ROOT
2425 %post -n apache1-mod_%{name}
2426 if [ "$1" = "1" ]; then
2427 %service -q apache restart
2430 %postun -n apache1-mod_%{name}
2431 if [ "$1" = "0" ]; then
2432 %service -q apache restart
2435 %post -n apache-mod_%{name}
2436 if [ "$1" = "1" ]; then
2437 %service -q httpd restart
2440 %postun -n apache-mod_%{name}
2441 if [ "$1" = "0" ]; then
2442 %service -q httpd restart
2446 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2449 /sbin/chkconfig --add %{name}-fpm
2450 %service %{name}-fpm restart
2453 if [ "$1" = 0 ]; then
2454 %service %{name}-fpm stop
2455 /sbin/chkconfig --del %{name}-fpm
2459 if [ "$1" = "0" ]; then
2463 %post common -p /sbin/ldconfig
2464 %postun common -p /sbin/ldconfig
2467 # minimizing apache restarts logics. we restart webserver:
2469 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2470 # 2. first install of extension (post: $1 = 1)
2471 # 2. uninstall of extension (postun: $1 == 0)
2473 # the strict internal deps between extensions (and apache modules) and
2474 # common package are very important for all this to work.
2476 # restart webserver at the end of transaction
2477 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2478 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2480 # common macros called at extension post/postun scriptlet
2481 %define extension_scripts() \
2483 if [ "$1" = "1" ]; then \
2484 %php_webserver_restart \
2488 if [ "$1" = "0" ]; then \
2489 %php_webserver_restart \
2493 # extension scripts defines
2494 %extension_scripts bcmath
2495 %extension_scripts bz2
2496 %extension_scripts calendar
2497 %extension_scripts ctype
2498 %extension_scripts curl
2499 %extension_scripts dba
2500 %extension_scripts dbase
2501 %extension_scripts dom
2502 %extension_scripts exif
2503 %extension_scripts fdf
2504 %extension_scripts filter
2505 %extension_scripts ftp
2506 %extension_scripts gd
2507 %extension_scripts gettext
2508 %extension_scripts gmp
2509 %extension_scripts hash
2510 %extension_scripts iconv
2511 %extension_scripts imap
2512 %extension_scripts interbase
2513 %extension_scripts json
2514 %extension_scripts ldap
2515 %extension_scripts mbstring
2516 %extension_scripts mcrypt
2517 %extension_scripts mhash
2518 %extension_scripts mime_magic
2519 %extension_scripts ming
2520 %extension_scripts mssql
2521 %extension_scripts mysql
2522 %extension_scripts mysqli
2523 %extension_scripts oci8
2524 %extension_scripts odbc
2525 %extension_scripts openssl
2526 %extension_scripts pcntl
2527 %extension_scripts pcre
2528 %extension_scripts pdo
2529 %extension_scripts pdo-dblib
2530 %extension_scripts pdo-firebird
2531 %extension_scripts pdo-oci
2532 %extension_scripts pdo-mysql
2533 %extension_scripts pdo-odbc
2534 %extension_scripts pdo-pgsql
2535 %extension_scripts pdo-sqlite
2536 %extension_scripts pgsql
2537 %extension_scripts posix
2538 %extension_scripts pspell
2539 %extension_scripts recode
2540 %extension_scripts session
2541 %extension_scripts simplexml
2542 %extension_scripts shmop
2543 %extension_scripts snmp
2544 %extension_scripts soap
2545 %extension_scripts sockets
2546 %extension_scripts spl
2547 %extension_scripts sqlite
2548 %extension_scripts sybase
2549 %extension_scripts sybase-ct
2550 %extension_scripts sysvmsg
2551 %extension_scripts sysvsem
2552 %extension_scripts sysvshm
2553 %extension_scripts tidy
2554 %extension_scripts tokenizer
2555 %extension_scripts wddx
2556 %extension_scripts xml
2557 %extension_scripts xmlreader
2558 %extension_scripts xmlrpc
2559 %extension_scripts xmlwriter
2560 %extension_scripts xsl
2561 %extension_scripts zip
2562 %extension_scripts zlib
2565 %files -n apache1-mod_%{name}
2566 %defattr(644,root,root,755)
2567 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2568 %dir %{_sysconfdir}/apache.d
2569 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2570 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2571 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2575 %files -n apache-mod_%{name}
2576 %defattr(644,root,root,755)
2577 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2578 %dir %{_sysconfdir}/apache2handler.d
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2580 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2581 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2586 %defattr(644,root,root,755)
2587 %doc sapi/cgi/README.FastCGI
2588 %dir %{_sysconfdir}/cgi-fcgi.d
2589 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2590 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2594 %defattr(644,root,root,755)
2595 %dir %{_sysconfdir}/cgi.d
2596 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2597 %attr(755,root,root) %{_bindir}/%{name}.cgi
2600 %defattr(644,root,root,755)
2601 %dir %{_sysconfdir}/cli.d
2602 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2603 %attr(755,root,root) %{_bindir}/%{phpfn}
2604 %{_mandir}/man1/%{phpfn}.1*
2607 %defattr(644,root,root,755)
2608 %attr(755,root,root) %{_bindir}/php
2609 %{_mandir}/man1/php.1*
2613 %defattr(644,root,root,755)
2614 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2615 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2616 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2617 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2621 %defattr(644,root,root,755)
2623 %doc CREDITS Zend/ZEND_CHANGES
2624 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2625 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2628 %dir %{_sysconfdir}/conf.d
2629 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2630 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2631 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2632 %dir %{php_extensiondir}
2635 %defattr(644,root,root,755)
2636 %doc README.UNIX-BUILD-SYSTEM
2637 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2638 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2639 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2640 %attr(755,root,root) %{_bindir}/phpize
2641 %attr(755,root,root) %{_bindir}/php-config
2642 %attr(755,root,root) %{_libdir}/libphp_common.so
2643 %{_libdir}/libphp_common.la
2645 %{_libdir}/php/build
2646 %{_mandir}/man1/php-config.1*
2647 %{_mandir}/man1/phpize.1*
2650 %defattr(644,root,root,755)
2651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2652 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2657 %attr(755,root,root) %{php_extensiondir}/bz2.so
2660 %defattr(644,root,root,755)
2661 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2662 %attr(755,root,root) %{php_extensiondir}/calendar.so
2665 %defattr(644,root,root,755)
2666 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2667 %attr(755,root,root) %{php_extensiondir}/ctype.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2673 %attr(755,root,root) %{php_extensiondir}/curl.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2679 %attr(755,root,root) %{php_extensiondir}/dba.so
2682 %defattr(644,root,root,755)
2683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2684 %attr(755,root,root) %{php_extensiondir}/dbase.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2689 %attr(755,root,root) %{php_extensiondir}/dom.so
2693 %defattr(644,root,root,755)
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2695 %attr(755,root,root) %{php_extensiondir}/fdf.so
2700 %defattr(644,root,root,755)
2701 %doc README.input_filter
2702 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2703 %attr(755,root,root) %{php_extensiondir}/filter.so
2707 %defattr(644,root,root,755)
2708 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2709 %attr(755,root,root) %{php_extensiondir}/exif.so
2712 %defattr(644,root,root,755)
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2714 %attr(755,root,root) %{php_extensiondir}/ftp.so
2717 %defattr(644,root,root,755)
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2719 %attr(755,root,root) %{php_extensiondir}/gd.so
2722 %defattr(644,root,root,755)
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2724 %attr(755,root,root) %{php_extensiondir}/gettext.so
2727 %defattr(644,root,root,755)
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2729 %attr(755,root,root) %{php_extensiondir}/gmp.so
2732 %defattr(644,root,root,755)
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2734 %attr(755,root,root) %{php_extensiondir}/hash.so
2737 %defattr(644,root,root,755)
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2739 %attr(755,root,root) %{php_extensiondir}/iconv.so
2743 %defattr(644,root,root,755)
2744 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2745 %attr(755,root,root) %{php_extensiondir}/imap.so
2748 %if %{with interbase}
2750 %defattr(644,root,root,755)
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2752 %attr(755,root,root) %{php_extensiondir}/interbase.so
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2758 %attr(755,root,root) %{php_extensiondir}/json.so
2762 %defattr(644,root,root,755)
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2764 %attr(755,root,root) %{php_extensiondir}/ldap.so
2767 %if %{without zend_multibyte}
2769 %defattr(644,root,root,755)
2770 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2771 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2775 %defattr(644,root,root,755)
2776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2777 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2781 %defattr(644,root,root,755)
2782 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2783 %attr(755,root,root) %{php_extensiondir}/mhash.so
2786 %if %{with mime_magic}
2788 %defattr(644,root,root,755)
2789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2790 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2795 %defattr(644,root,root,755)
2796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2797 %attr(755,root,root) %{php_extensiondir}/ming.so
2802 %defattr(644,root,root,755)
2803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2804 %attr(755,root,root) %{php_extensiondir}/mssql.so
2808 %defattr(644,root,root,755)
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2810 %attr(755,root,root) %{php_extensiondir}/mysql.so
2814 %defattr(644,root,root,755)
2815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2816 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2820 %defattr(644,root,root,755)
2821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2822 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2826 %defattr(644,root,root,755)
2827 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2828 %attr(755,root,root) %{php_extensiondir}/oci8.so
2833 %defattr(644,root,root,755)
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2835 %attr(755,root,root) %{php_extensiondir}/odbc.so
2840 %defattr(644,root,root,755)
2841 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2842 %attr(755,root,root) %{php_extensiondir}/openssl.so
2846 %defattr(644,root,root,755)
2847 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2848 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2852 %defattr(644,root,root,755)
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2854 %attr(755,root,root) %{php_extensiondir}/pcre.so
2858 %defattr(644,root,root,755)
2859 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2860 %attr(755,root,root) %{php_extensiondir}/pdo.so
2862 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2864 %defattr(644,root,root,755)
2865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2866 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2869 %if %{with interbase} && !%{with interbase_inst}
2871 %defattr(644,root,root,755)
2872 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2873 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2877 %defattr(644,root,root,755)
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2879 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2883 %defattr(644,root,root,755)
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2885 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2890 %defattr(644,root,root,755)
2891 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2892 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2897 %defattr(644,root,root,755)
2898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2899 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2904 %defattr(644,root,root,755)
2905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2906 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2911 %defattr(644,root,root,755)
2912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2913 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2917 %defattr(644,root,root,755)
2918 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2919 %attr(755,root,root) %{php_extensiondir}/posix.so
2923 %defattr(644,root,root,755)
2924 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2925 %attr(755,root,root) %{php_extensiondir}/pspell.so
2929 %defattr(644,root,root,755)
2930 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2931 %attr(755,root,root) %{php_extensiondir}/readline.so
2935 %defattr(644,root,root,755)
2936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2937 %attr(755,root,root) %{php_extensiondir}/recode.so
2941 %defattr(644,root,root,755)
2942 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2943 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2946 %defattr(644,root,root,755)
2947 %doc ext/session/mod_files.sh
2948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2949 %attr(755,root,root) %{php_extensiondir}/session.so
2952 %defattr(644,root,root,755)
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2954 %attr(755,root,root) %{php_extensiondir}/shmop.so
2958 %defattr(644,root,root,755)
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2960 %attr(755,root,root) %{php_extensiondir}/snmp.so
2964 %defattr(644,root,root,755)
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2966 %attr(755,root,root) %{php_extensiondir}/soap.so
2969 %defattr(644,root,root,755)
2970 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2971 %attr(755,root,root) %{php_extensiondir}/sockets.so
2974 %defattr(644,root,root,755)
2975 %doc ext/spl/{CREDITS,README,TODO}
2976 %doc ext/spl/examples
2977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2978 %attr(755,root,root) %{php_extensiondir}/spl.so
2982 %defattr(644,root,root,755)
2983 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2984 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2989 %defattr(644,root,root,755)
2990 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2991 %attr(755,root,root) %{php_extensiondir}/sybase.so
2994 %if %{with sybase_ct}
2996 %defattr(644,root,root,755)
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2998 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3004 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3009 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3014 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3017 %defattr(644,root,root,755)
3018 %dir %{php_data_dir}/tests
3019 %dir %{php_data_dir}/tests/php
3020 %{php_data_dir}/tests/php/basic
3021 %{php_data_dir}/tests/php/classes
3022 %{php_data_dir}/tests/php/func
3023 %{php_data_dir}/tests/php/lang
3024 %{php_data_dir}/tests/php/output
3025 %{php_data_dir}/tests/php/run-test
3026 %{php_data_dir}/tests/php/security
3027 %{php_data_dir}/tests/php/strings
3028 %{php_data_dir}/tests/php/quicktester.inc
3029 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3031 # random junk, didn't check, maybe can be just removed
3032 %{php_data_dir}/tests/php/bin-info.inc
3033 %{php_data_dir}/tests/php/foo*
3034 %{php_data_dir}/tests/php/odbc*.php
3035 %{php_data_dir}/tests/php/recurse
3036 %{php_data_dir}/tests/php/run.*
3037 %{php_data_dir}/tests/php/scan_cases
3038 %{php_data_dir}/tests/php/test*
3042 %defattr(644,root,root,755)
3043 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3044 %attr(755,root,root) %{php_extensiondir}/tidy.so
3048 %defattr(644,root,root,755)
3049 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3050 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3054 %defattr(644,root,root,755)
3055 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3056 %attr(755,root,root) %{php_extensiondir}/wddx.so
3060 %defattr(644,root,root,755)
3061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3062 %attr(755,root,root) %{php_extensiondir}/xml.so
3065 %defattr(644,root,root,755)
3066 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3067 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3071 %defattr(644,root,root,755)
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3073 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3077 %defattr(644,root,root,755)
3078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3079 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3082 %defattr(644,root,root,755)
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3084 %attr(755,root,root) %{php_extensiondir}/xsl.so
3087 %defattr(644,root,root,755)
3088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3089 %attr(755,root,root) %{php_extensiondir}/zip.so
3092 %defattr(644,root,root,755)
3093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3094 %attr(755,root,root) %{php_extensiondir}/zlib.so