2 # - wddx: restore session support (not compiled in due DL extension check)
3 # - fix -threads-acfix.patch
4 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
5 # - removed from php 5.0 (currently in php4):
6 # db, hyperwave, java, mcal, overload, qtdom
7 # - removed from php 5.1:
9 # - removed from php 5.2:
11 # - mime_magic can't handle new "string/*" entries in magic.mime
12 # thus doesn't work with system magic.mime database
13 # - make additional headers and checking added by mail patch configurable
14 # - modularize session, standard (output from pure php -m)?
15 # - http://forum.lighttpd.net/topic/34454
16 # - ttyname_r() missdetected http://bugs.php.net/bug.php?id=48820
18 # To see optional extension deps:
19 # $ grep -r PHP_ADD_EXTENSION_DEP.*,.*,.* .
20 #./ext/pdo/config.m4: PHP_ADD_EXTENSION_DEP(pdo, spl, true)
21 #./ext/spl/config.m4: PHP_ADD_EXTENSION_DEP(spl, pcre, true)
22 #./ext/session/config.m4: PHP_ADD_EXTENSION_DEP(session, hash, true)
23 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, spl, true)
24 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, pdo, true)
25 #./ext/simplexml/config.m4: PHP_ADD_EXTENSION_DEP(simplexml, spl, true)
26 #./ext/xmlreader/config.m4: PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
29 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
30 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
31 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
32 %bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
33 %bcond_with system_libzip # with system libzip (reported broken: https://bugs.php.net/bug.php?id=60100)
34 %bcond_with gd_jis_conv # causes imagettfbbox(): any2eucjp(): invalid code in input string when internal gd used
35 %bcond_with zend_multibyte # enable zend multibyte, mbstring can't be shared then anymore
36 %bcond_without curl # without CURL extension module
37 %bcond_without filter # without filter extension module
38 %bcond_without imap # without IMAP extension module
39 %bcond_without interbase # without InterBase extension module
40 %bcond_without ldap # without LDAP extension module
41 %bcond_without mhash # without mhash extension module
42 %bcond_without mime_magic # without mime-magic module
43 %bcond_with ming # with ming extension module
44 %bcond_without mm # without mm support for session storage
45 %bcond_without mssql # without MS SQL extension module
46 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
47 %bcond_without odbc # without ODBC extension module
48 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
49 %bcond_without pcre # without PCRE extension module
50 %bcond_without pgsql # without PostgreSQL extension module
51 %bcond_without pspell # without pspell extension module
52 %bcond_without recode # without recode extension module
53 %bcond_without snmp # without SNMP extension module
54 %bcond_without sqlite # without SQLite extension module
55 %bcond_without sybase # without Sybase extension module
56 %bcond_without sybase_ct # without Sybase-CT extension module
57 %bcond_without tidy # without Tidy extension module
58 %bcond_without wddx # without WDDX extension module
59 %bcond_without xmlrpc # without XML-RPC extension module
60 %bcond_without apache1 # disable building Apache 1.3.x module
61 %bcond_without apache2 # disable building Apache 2.x module
62 %bcond_without fcgi # disable building FCGI SAPI
63 %bcond_with zts # disable Zend Thread Safety
64 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
65 %bcond_without suhosin # with suhosin patch
66 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
67 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
68 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
70 %define apxs1 /usr/sbin/apxs1
71 %define apxs2 /usr/sbin/apxs
73 # some problems with apache 2.x
78 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
79 %undefine with_interbase
81 %if "%{pld_release}" == "th"
83 # ppc disabled (broken on th-ppc)
84 %undefine with_interbase
88 %ifnarch %{ix86} %{x8664}
89 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
93 %if %{without apache1} && %{without apache2}
94 ERROR: You need to select at least one Apache SAPI to build shared modules.
97 # filter depends on pcre
102 %if "%{pld_release}" == "ac"
103 %define magic_mime /usr/share/file/magic.mime
105 %define magic_mime /usr/share/misc/magic.mime
109 %if "%{pld_release}" == "th"
110 %define php_suffix 52
112 %define php_suffix %{nil}
115 Summary: PHP: Hypertext Preprocessor
116 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
117 Summary(pl.UTF-8): Język skryptowy PHP
118 Summary(pt_BR.UTF-8): A linguagem de script PHP
119 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
120 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
121 Name: %{orgname}%{php_suffix}
127 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
128 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
129 Source2: %{orgname}-mod_%{orgname}.conf
130 Source3: %{orgname}-cgi-fcgi.ini
131 Source4: %{orgname}-cgi.ini
132 Source5: %{orgname}-apache.ini
133 Source6: %{orgname}-cli.ini
134 # Taken from: http://browsers.garykeith.com/downloads.asp
135 Source8: %{orgname}_browscap.ini
136 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
137 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
138 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
139 Source10: %{orgname}-fpm.init
140 Source11: %{orgname}-fpm.logrotate
141 Source12: %{orgname}-branch.sh
142 Source13: dep-tests.sh
143 Source14: skip-tests.sh
144 Patch100: https://php52-backports.googlecode.com/files/php52-backports-20130320.patch
145 # Patch100-md5: 8428acfb94d5804e00333db01f7cd8dd
146 Patch0: %{orgname}-shared.patch
147 Patch1: %{orgname}-pldlogo.patch
148 Patch2: %{orgname}-mail.patch
149 Patch3: %{orgname}-link-libs.patch
150 Patch4: %{orgname}-libpq_fs_h_path.patch
151 Patch5: %{orgname}-filter-shared.patch
152 Patch6: %{orgname}-build_modules.patch
153 Patch7: %{orgname}-sapi-ini-file.patch
154 Patch8: %{orgname}-no-metaccld.patch
155 Patch9: %{orgname}-sh.patch
156 Patch10: %{orgname}-ini.patch
157 Patch11: %{orgname}-acam.patch
158 Patch12: %{orgname}-threads-acfix.patch
159 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
160 Patch14: %{orgname}-no_pear_install.patch
161 Patch15: %{orgname}-zlib.patch
162 Patch16: %{orgname}-sybase-fix.patch
163 Patch17: %{orgname}-readline.patch
164 Patch18: %{orgname}-nohttpd.patch
165 Patch19: %{orgname}-gd_imagerotate_enable.patch
166 Patch20: %{orgname}-uint32_t.patch
167 Patch21: %{orgname}-dba-link.patch
168 Patch22: %{orgname}-both-apxs.patch
169 Patch23: %{orgname}-builddir.patch
170 Patch24: %{orgname}-zlib-for-getimagesize.patch
171 Patch25: %{orgname}-versioning.patch
172 Patch26: %{orgname}-pear.patch
173 Patch27: %{orgname}-config-dir.patch
174 Patch28: %{orgname}-bug-42952.patch
175 Patch29: %{orgname}-fcgi-graceful.patch
176 Patch30: %{orgname}-apr-apu.patch
177 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
178 Patch32: %{orgname}-curl-limit-speed.patch
179 Patch33: %{orgname}-mime_magic.patch
180 Patch34: %{orgname}-libtool.patch
181 Patch35: %{orgname}-tds.patch
182 Patch36: %{orgname}-mysql-charsetphpini.patch
183 Patch37: %{orgname}-mysqli-charsetphpini.patch
184 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
185 Patch39: %{orgname}-use-prog_sendmail.patch
186 Patch40: %{orgname}-fpm.patch
187 Patch41: %{orgname}-fpm-config.patch
188 Patch42: %{orgname}-fpm-initdir.patch
189 Patch43: %{orgname}-silent-session-cleanup.patch
190 Patch44: %{orgname}-include_path.patch
191 Patch45: %{orgname}-imap-annotations.patch
192 Patch46: %{orgname}-imap-myrights.patch
193 Patch47: suhosin.patch
194 Patch49: %{orgname}-m4-divert.patch
195 Patch50: extension-shared-optional-dep.patch
196 Patch51: spl-shared.patch
197 Patch52: %{orgname}-libpng.patch
198 Patch53: %{orgname}-gmp.patch
199 Patch54: fix-test-run.patch
200 Patch55: bug-52078-fileinode.patch
201 Patch56: %{orgname}-krb5.patch
202 Patch57: php-php_dl.patch
203 Patch58: php-svn-281516.patch
204 Patch59: %{orgname}-systzdata.patch
205 Patch60: bug-60986.patch
206 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
207 Patch65: system-libzip.patch
208 Patch66: bug-47930.patch
209 Patch67: php-db.patch
210 Patch68: php-libxml.patch
211 Patch69: bug-50563.patch
212 Patch70: php-crypt-null.patch
213 Patch71: php-apache24.patch
215 # Backport from 5.3.6
216 Patch311: php-5.3.6-bug-47435.patch
217 Patch314: php-5.3.6-39199.patch
219 #Patch333: php-5.3.7-bug-54924.patch
220 Patch355: php-5.3.7-bug-55323.patch
221 # Bug-323016 CVE-2012-0831
222 Patch402: php-5.2.17-bug-323016.patch
223 URL: https://code.google.com/p/php52-backports/
224 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
225 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
226 BuildRequires: autoconf >= 2.53
227 BuildRequires: automake >= 1.4d
229 BuildRequires: bzip2-devel
230 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
231 BuildRequires: cyrus-sasl-devel
232 BuildRequires: db-devel >= 4.0
233 BuildRequires: elfutils-devel
235 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
237 %{?with_fcgi:BuildRequires: fcgi-devel}
238 %{?with_fdf:BuildRequires: fdftk-devel}
240 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
241 BuildRequires: freetds-devel
242 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
244 BuildRequires: freetype-devel >= 2.0
245 %if %{with system_gd}
246 BuildRequires: gd-devel >= 2.0.28-4
247 BuildRequires: gd-devel(imagerotate) = 5.2.0
249 BuildRequires: gdbm-devel
250 BuildRequires: gmp-devel
251 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
252 BuildRequires: libjpeg-devel
253 BuildRequires: libltdl-devel >= 1.4
254 BuildRequires: libmcrypt-devel >= 2.4.4
255 BuildRequires: libpng-devel >= 1.0.8
256 BuildRequires: libtiff-devel
257 %if "%{pld_release}" != "ac"
258 BuildRequires: libtool >= 2:2.2
260 BuildRequires: libtool
262 BuildRequires: libwrap-devel
263 BuildRequires: libxml2-devel >= 1:2.7.6-4
264 BuildRequires: libxslt-devel >= 1.1.0
265 %{?with_mhash:BuildRequires: mhash-devel}
266 %{?with_ming:BuildRequires: ming-devel >= 0.3}
267 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
268 BuildRequires: mysql-devel >= 4.0.0
269 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
270 BuildRequires: ncurses-ext-devel
271 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
272 %if %{with openssl} || %{with ldap}
273 BuildRequires: openssl-devel >= 0.9.7d
275 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
276 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
277 BuildRequires: pam-devel
278 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
279 BuildRequires: pkgconfig
280 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
281 %{?with_pgsql:BuildRequires: postgresql-devel}
282 BuildRequires: readline-devel
283 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
284 BuildRequires: rpm >= 4.4.9-56
285 BuildRequires: rpm-build >= 4.4.0
286 BuildRequires: rpmbuild(macros) >= 1.519
287 %{?with_sqlite:BuildRequires: sqlite-devel}
288 %{?with_sqlite:BuildRequires: sqlite3-devel}
289 BuildRequires: t1lib-devel
290 %{?with_tidy:BuildRequires: tidy-devel}
291 %{?with_odbc:BuildRequires: unixODBC-devel}
292 BuildRequires: zlib-devel >= 1.0.9
294 BuildRequires: apache1-devel
297 BuildRequires: apache-devel >= 2.0.52-2
298 BuildRequires: apr-devel >= 1:1.0.0
299 BuildRequires: apr-util-devel >= 1:1.0.0
302 BuildRequires: judy-devel
303 BuildRequires: libevent-devel >= 1.4.7-3
305 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
307 %define php_sysconfdir /etc/%{name}
308 %define php_extensiondir %{_libdir}/%{name}
309 %define _sysconfdir %{php_sysconfdir}
311 # must be in sync with source. extra check ensuring that it is so is done in %%build
312 %define php_api_version 20041225
313 %define zend_module_api 20060613
314 %define zend_extension_api 220060519
315 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
316 %define php_debug %{!?debug:0}%{?debug:1}
319 # ORACLE_HOME is required for oci8 ext to build
320 %define _preserve_env %_preserve_env_base ORACLE_HOME
324 PHP is an HTML-embedded scripting language. PHP attempts to make it
325 easy for developers to write dynamically generated web pages. PHP also
326 offers built-in database integration for several commercial and
327 non-commercial database management systems, so writing a
328 database-enabled web page with PHP is fairly simple. The most common
329 use of PHP coding is probably as a replacement for CGI scripts. The
330 mod_php module enables the Apache web server to understand and process
331 the embedded PHP language in web pages. This package contains PHP
334 %description -l fr.UTF-8
335 PHP est un langage de script embarque dans le HTM. PHP essaye de
336 rendre simple aux developpeurs d'ecrire des pages web generees
337 dynamiquement. PHP incorpore egalement une integration avec plusieurs
338 systemes de gestion de bases de donnees commerciaux et
339 non-connerciaux, qui rent facile la creation de pages web liees avec
340 des bases de donnees. L'utilisation la plus commune de PHP est
341 probablement en remplacement de scripts CGI. Le module mod_php permet
342 au serveur web Apache de comprendre et de traiter le langage PHP
343 integre dans des pages web. Ce package contient PHP version
346 %description -l pl.UTF-8
347 PHP jest językiem skryptowym, którego polecenia umieszcza się w
348 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
349 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
350 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
351 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
352 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
353 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
354 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
357 %description -l pt_BR.UTF-8
358 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
359 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
360 com algumas características únicas, específicas ao PHP. O objetivo da
361 linguagem é permitir que desenvolvedores web escrevam páginas
362 dinamicamente geradas de forma rápida.
364 %description -l ru.UTF-8
365 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
366 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
367 для работы с базами данных относительно просто. Наиболее популярное
368 использование PHP - замена для CGI скриптов.
370 %description -l uk.UTF-8
371 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
372 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
373 роботи з базами даних є доволі простим. Найбільш популярне
374 використання PHP - заміна для CGI скриптів.
376 %package -n apache1-mod_%{name}
377 Summary: PHP DSO module for Apache 1.3.x
378 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
379 Group: Development/Languages/PHP
380 Requires(triggerpostun): sed >= 4.0
381 Requires: %{name}-common = %{epoch}:%{version}-%{release}
382 Requires: apache1(EAPI) >= 1.3.33-2
383 Requires: apache1-mod_mime
384 Provides: webserver(php) = %{version}
385 Obsoletes: apache-mod_php < 1:4.1.1
388 %description -n apache1-mod_%{name}
389 PHP as DSO module for Apache 1.3.x.
391 %description -n apache1-mod_%{name} -l pl.UTF-8
392 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
394 %package -n apache-mod_%{name}
395 Summary: PHP DSO module for Apache 2.x
396 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
397 Group: Development/Languages/PHP
398 Requires: %{name}-common = %{epoch}:%{version}-%{release}
399 Requires: apache(modules-api) = %{apache_modules_api}
400 Requires: apache-mod_mime
401 Provides: webserver(php) = %{version}
404 %description -n apache-mod_%{name}
405 PHP as DSO module for Apache 2.x.
407 %description -n apache-mod_%{name} -l pl.UTF-8
408 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
411 Summary: php as FastCGI program
412 Summary(pl.UTF-8): php jako program FastCGI
413 Group: Development/Languages/PHP
414 Requires: %{name}-common = %{epoch}:%{version}-%{release}
416 Provides: webserver(php) = %{version}
419 php as FastCGI program.
421 %description fcgi -l pl.UTF-8
422 php jako program FastCGI.
425 Summary: PHP as CGI/FastCGI program
426 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
427 Group: Development/Languages/PHP
428 Requires: %{name}-common = %{epoch}:%{version}-%{release}
430 Provides: webserver(php) = %{version}
431 %if "%{pld_release}" != "ac"
432 Conflicts: logrotate < 3.8.0
438 %description cgi -l pl.UTF-8
439 php jako program CGI.
442 Summary: PHP as CLI interpreter
443 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
444 Group: Development/Languages/PHP
445 Requires: %{name}-common = %{epoch}:%{version}-%{release}
448 PHP as CLI interpreter.
450 %description cli -l pl.UTF-8
451 PHP jako interpreter działający z linii poleceń.
454 Summary: /usr/bin/php symlink
455 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
456 Group: Development/Languages/PHP
457 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
458 Obsoletes: /usr/bin/php
461 Package providing /usr/bin/php symlink to PHP CLI.
463 %description program -l pl.UTF-8
464 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
467 Summary: PHP FastCGI Process Manager
468 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
469 Group: Development/Languages/PHP
470 URL: http://www.php-fpm.org/
471 Requires(post,preun): /sbin/chkconfig
472 Requires(postun): /usr/sbin/userdel
473 Requires(pre): /bin/id
474 Requires(pre): /usr/sbin/useradd
475 Requires: %{name}-common = %{epoch}:%{version}-%{release}
476 Requires: libevent >= 1.4.7-3
479 Provides: webserver(php) = %{version}
482 PHP FastCGI Process Manager.
484 %description fpm -l pl.UTF-8
485 PHP FastCGI Process Manager - zarządca procesów FastCGI.
488 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
489 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
490 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
491 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
493 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
494 Requires: glibc >= 6:2.3.5
495 Requires: php-dirs >= 1.4
496 Requires: rpm-whiteout >= 1.28
498 Provides: php(core) = %{version}
501 Provides: php(libxml)
502 %{?with_zend_multibyte:Provides: php(mbstring)}
503 Provides: php(modules_api) = %{php_api_version}
504 Provides: php(overload)
505 Provides: php(reflection)
506 Provides: php(standard)
507 Provides: php(zend_extension_api) = %{zend_extension_api}
508 Provides: php(zend_module_api) = %{zend_module_api}
512 %{?with_zend_multibyte:Provides: php-mbstring = %{epoch}:%{version}-%{release}}
513 Provides: php-overload
514 Provides: php-reflection
515 Provides: php-standard
516 Provides: php5(debug) = %{php_debug}
517 Provides: php5(thread-safety) = %{zend_zts}
518 # ensure backward compatibility for Titanium
519 # to be dropped in future but ask Titanium RM before doing so
520 %if "%{pld_release}" == "ti"
521 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
522 Requires: %{name}-session = %{epoch}:%{version}-%{release}
523 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
525 %if "%{pld_release}" == "ac"
526 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
527 Requires: %{name}-session = %{epoch}:%{version}-%{release}
528 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
530 Obsoletes: php-pecl-domxml
531 Conflicts: php-pecl-memcache < 3.0.4-2
532 Conflicts: php4-common < 3:4.4.4-8
533 Conflicts: rpm < 4.4.2-0.2
536 Common files needed by both Apache modules and CGI/CLI SAPI-s.
538 %description common -l pl.UTF-8
539 Wspólne pliki dla modułu Apache'a i programu CGI.
541 %description common -l ru.UTF-8
542 Этот пакет содержит общие файлы для разных вариантов реализации PHP
543 (самодостаточной и в качестве модуля Apache).
545 %description common -l uk.UTF-8
546 Цей пакет містить спільні файли для різних варіантів реалізації PHP
547 (самодостатньої та в якості модуля Apache).
550 Summary: Files for PHP modules development
551 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
552 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
553 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
554 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
555 Group: Development/Languages/PHP
556 Requires: %{name}-common = %{epoch}:%{version}-%{release}
559 %if "%{pld_release}" != "ac"
560 Requires: libtool >= 2:2.2
564 %{?with_pcre:Requires: pcre-devel >= 6.6}
567 Obsoletes: php-pear-devel
568 Obsoletes: php4-devel
569 Obsoletes: php53-devel
570 Obsoletes: php54-devel
573 The php-devel package lets you compile dynamic extensions to PHP.
574 Included here is the source for the PHP extensions. Instead of
575 recompiling the whole PHP binary to add support for, say, oracle,
576 install this package and use the new self-contained extensions
577 support. For more information, read the file
578 README.SELF-CONTAINED-EXTENSIONS.
580 %description devel -l pl.UTF-8
581 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
582 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
583 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
584 samodzielnych rozszerzeniach można znaleźć w pliku
585 README.SELF-CONTAINED-EXTENSIONS.
587 %description devel -l pt_BR.UTF-8
588 Este pacote contém arquivos usados no desenvolvimento de programas ou
591 %description devel -l ru.UTF-8
592 Пакет php-devel дает возможность компилировать динамические расширения
593 PHP. Пакет включает исходный код этих расширений. Вместо повторной
594 компиляции бинарного файла PHP для добавления, например, поддержки
595 oracle, установите этот пакет для компилирования отдельных расширений.
596 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
598 %description devel -l uk.UTF-8
599 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
600 До пакету включено вихідний код для розширень. Замість повторної
601 компіляції бінарного файлу PHP для додання, наприклад, підтримки
602 oracle, встановіть цей пакет для компіляції окремих розширень.
603 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
606 Summary: bcmath extension module for PHP
607 Summary(pl.UTF-8): Moduł bcmath dla PHP
609 URL: http://www.php.net/manual/en/book.bc.php
610 Requires: %{name}-common = %{epoch}:%{version}-%{release}
611 Provides: php(bcmath)
614 This is a dynamic shared object (DSO) for PHP that will add bc style
615 precision math functions support.
617 %description bcmath -l pl.UTF-8
618 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
619 matematycznych takich jak w programie bc.
622 Summary: Bzip2 extension module for PHP
623 Summary(pl.UTF-8): Moduł bzip2 dla PHP
625 URL: http://www.php.net/manual/en/book.bzip2.php
626 Requires: %{name}-common = %{epoch}:%{version}-%{release}
629 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
633 This is a dynamic shared object (DSO) for PHP that will add bzip2
634 compression support to PHP.
636 %description bz2 -l pl.UTF-8
637 Moduł PHP umożliwiający używanie kompresji bzip2.
640 Summary: Calendar extension module for PHP
641 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
643 URL: http://www.php.net/manual/en/book.calendar.php
644 Requires: %{name}-common = %{epoch}:%{version}-%{release}
645 Provides: php(calendar)
647 %description calendar
648 This is a dynamic shared object (DSO) for PHP that will add calendar
651 %description calendar -l pl.UTF-8
652 Moduł PHP dodający wsparcie dla kalendarza.
655 Summary: ctype extension module for PHP
656 Summary(pl.UTF-8): Moduł ctype dla PHP
658 URL: http://www.php.net/manual/en/book.ctype.php
659 Requires: %{name}-common = %{epoch}:%{version}-%{release}
663 This is a dynamic shared object (DSO) for PHP that will add ctype
666 %description ctype -l pl.UTF-8
667 Moduł PHP umożliwiający korzystanie z funkcji ctype.
670 Summary: curl extension module for PHP
671 Summary(pl.UTF-8): Moduł curl dla PHP
673 URL: http://www.php.net/manual/en/book.curl.php
674 Requires: %{name}-common = %{epoch}:%{version}-%{release}
678 This is a dynamic shared object (DSO) for PHP that will add curl
681 %description curl -l pl.UTF-8
682 Moduł PHP umożliwiający korzystanie z biblioteki curl.
685 Summary: DBA extension module for PHP
686 Summary(pl.UTF-8): Moduł DBA dla PHP
688 URL: http://www.php.net/manual/en/book.dba.php
689 Requires: %{name}-common = %{epoch}:%{version}-%{release}
693 This is a dynamic shared object (DSO) for PHP that will add flat-file
694 databases (DBA) support.
696 %description dba -l pl.UTF-8
697 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
701 Summary: DBase extension module for PHP
702 Summary(pl.UTF-8): Moduł DBase dla PHP
704 Requires: %{name}-common = %{epoch}:%{version}-%{release}
708 This is a dynamic shared object (DSO) for PHP that will add DBase
711 %description dbase -l pl.UTF-8
712 Moduł PHP ze wsparciem dla DBase.
715 Summary: DOM extension module for PHP
716 Summary(pl.UTF-8): Moduł DOM dla PHP
718 URL: http://www.php.net/manual/en/book.dom.php
719 Requires: %{name}-common = %{epoch}:%{version}-%{release}
721 # it has some compatibility functions
722 Provides: php(domxml)
723 Provides: php-domxml = %{epoch}:%{version}-%{release}
724 Obsoletes: php-domxml <= 3:4.3.8-1
727 This is a dynamic shared object (DSO) for PHP that will add new DOM
730 %description dom -l pl.UTF-8
731 Moduł PHP dodający nową obsługę DOM.
734 Summary: exif extension module for PHP
735 Summary(pl.UTF-8): Moduł exif dla PHP
737 URL: http://www.php.net/manual/en/book.exif.php
738 Requires: %{name}-common = %{epoch}:%{version}-%{release}
742 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
743 support in image files.
745 %description exif -l pl.UTF-8
746 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
749 Summary: FDF extension module for PHP
750 Summary(pl.UTF-8): Moduł FDF dla PHP
752 URL: http://www.php.net/manual/en/book.fdf.php
753 Requires: %{name}-common = %{epoch}:%{version}-%{release}
757 This PHP module adds support for PDF Forms through Adobe FDFTK
760 %description fdf -l pl.UTF-8
761 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
765 Summary: Extension for safely dealing with input parameters
766 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
768 URL: http://www.php.net/manual/en/book.filter.php
769 Requires: %{name}-common = %{epoch}:%{version}-%{release}
770 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
771 Provides: php(filter)
772 Obsoletes: php-pecl-filter
775 We all know that you should always check input variables, but PHP does
776 not offer really good functionality for doing this in a safe way. The
777 Input Filter extension is meant to address this issue by implementing
778 a set of filters and mechanisms that users can use to safely access
781 %description filter -l pl.UTF-8
782 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
783 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
784 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
785 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
786 mogą bezpiecznie używać do dostępu do danych.
789 Summary: FTP extension module for PHP
790 Summary(pl.UTF-8): Moduł FTP dla PHP
792 URL: http://www.php.net/manual/en/book.ftp.php
793 Requires: %{name}-common = %{epoch}:%{version}-%{release}
797 This is a dynamic shared object (DSO) for PHP that will add FTP
800 %description ftp -l pl.UTF-8
801 Moduł PHP dodający obsługę protokołu FTP.
804 Summary: GD extension module for PHP
805 Summary(pl.UTF-8): Moduł GD dla PHP
807 URL: http://www.php.net/manual/en/book.image.php
808 Requires: %{name}-common = %{epoch}:%{version}-%{release}
809 %if %{with system_gd}
810 Requires: gd >= 2.0.28-4
812 Requires: gd(imagerotate) = 5.2.0
817 This is a dynamic shared object (DSO) for PHP that will add GD
818 support, allowing you to create and manipulate images with PHP.
820 %description gd -l pl.UTF-8
821 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
822 tworzenie i obróbkę obrazków.
825 Summary: gettext extension module for PHP
826 Summary(pl.UTF-8): Moduł gettext dla PHP
828 URL: http://www.php.net/manual/en/book.gettext.php
829 Requires: %{name}-common = %{epoch}:%{version}-%{release}
830 Provides: php(gettext)
833 This is a dynamic shared object (DSO) for PHP that will add gettext
836 %description gettext -l pl.UTF-8
837 Moduł PHP dodający obsługę lokalizacji przez gettext.
840 Summary: gmp extension module for PHP
841 Summary(pl.UTF-8): Moduł gmp dla PHP
843 URL: http://www.php.net/manual/en/book.gmp.php
844 Requires: %{name}-common = %{epoch}:%{version}-%{release}
848 This is a dynamic shared object (DSO) for PHP that will add arbitrary
849 length number support with GNU MP library.
851 %description gmp -l pl.UTF-8
852 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
853 liczbach o dowolnej długości.
856 Summary: HASH Message Digest Framework
857 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
859 URL: http://www.php.net/manual/en/book.gmp.php
860 Requires: %{name}-common = %{epoch}:%{version}-%{release}
862 Obsoletes: php-pecl-hash
865 Native implementations of common message digest algorithms using a
866 generic factory method.
868 %description hash -l pl.UTF-8
869 Natywne implementacje popularnych algorytmów obliczania skrótów
870 wiadomości przy użyciu wspólnego interfejsu.
873 Summary: iconv extension module for PHP
874 Summary(pl.UTF-8): Moduł iconv dla PHP
876 URL: http://www.php.net/manual/en/book.iconv.php
877 Requires: %{_libdir}/gconv
878 Requires: %{name}-common = %{epoch}:%{version}-%{release}
883 This is a dynamic shared object (DSO) for PHP that will add iconv
886 %description iconv -l pl.UTF-8
887 Moduł PHP dodający obsługę iconv.
890 Summary: IMAP extension module for PHP
891 Summary(pl.UTF-8): Moduł IMAP dla PHP
892 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
894 URL: http://www.php.net/manual/en/book.imap.php
895 Requires: %{name}-common = %{epoch}:%{version}-%{release}
899 This is a dynamic shared object (DSO) for PHP that will add IMAP
902 %description imap -l pl.UTF-8
903 Moduł PHP dodający obsługę skrzynek IMAP.
905 %description imap -l pt_BR.UTF-8
906 Um módulo para aplicações PHP que usam IMAP.
909 Summary: InterBase/Firebird database module for PHP
910 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
912 URL: http://www.php.net/manual/en/book.ibase.php
913 Requires: %{name}-common = %{epoch}:%{version}-%{release}
914 Provides: php(interbase)
915 %{?with_interbase_inst:Autoreq: false}
917 %description interbase
918 This is a dynamic shared object (DSO) for PHP that will add InterBase
919 and Firebird database support.
921 %description interbase -l pl.UTF-8
922 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
925 Summary: PHP C extension for JSON serialization
926 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
928 URL: http://www.php.net/manual/en/book.json.php
929 Requires: %{name}-common = %{epoch}:%{version}-%{release}
931 Obsoletes: php-pecl-json
934 php-json is an extremely fast PHP C extension for JSON (JavaScript
935 Object Notation) serialisation.
937 %description json -l pl.UTF-8
938 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
939 (JavaScript Object Notation).
942 Summary: LDAP extension module for PHP
943 Summary(pl.UTF-8): Moduł LDAP dla PHP
944 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
946 URL: http://www.php.net/manual/en/book.ldap.php
947 Requires: %{name}-common = %{epoch}:%{version}-%{release}
951 This is a dynamic shared object (DSO) for PHP that will add LDAP
954 %description ldap -l pl.UTF-8
955 Moduł PHP dodający obsługę LDAP.
957 %description ldap -l pt_BR.UTF-8
958 Um módulo para aplicações PHP que usam LDAP.
961 Summary: mbstring extension module for PHP
962 Summary(pl.UTF-8): Moduł mbstring dla PHP
964 URL: http://www.php.net/manual/en/book.mbstring.php
965 Requires: %{name}-common = %{epoch}:%{version}-%{release}
966 Provides: php(mbstring)
968 %description mbstring
969 This is a dynamic shared object (DSO) for PHP that will add multibyte
972 %description mbstring -l pl.UTF-8
973 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
976 Summary: mcrypt extension module for PHP
977 Summary(pl.UTF-8): Moduł mcrypt dla PHP
979 URL: http://www.php.net/manual/en/book.mcrypt.php
980 Requires: %{name}-common = %{epoch}:%{version}-%{release}
981 Provides: php(mcrypt)
984 This is a dynamic shared object (DSO) for PHP that will add mcrypt
987 %description mcrypt -l pl.UTF-8
988 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
991 Summary: mhash extension module for PHP
992 Summary(pl.UTF-8): Moduł mhash dla PHP
994 Requires: %{name}-common = %{epoch}:%{version}-%{release}
998 This is a dynamic shared object (DSO) for PHP that will add mhash
1001 %description mhash -l pl.UTF-8
1002 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1005 Summary: mime_magic extension module for PHP
1006 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1008 Requires: %{magic_mime}
1009 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1010 Provides: php(mime_magic)
1012 %description mime_magic
1013 This PHP module adds support for MIME type lookup via file magic
1014 numbers using magic.mime database.
1016 %description mime_magic -l pl.UTF-8
1017 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1018 znaczników plików z użyciem bazy danych magic.mime.
1021 Summary: ming extension module for PHP
1022 Summary(pl.UTF-8): Moduł ming dla PHP
1024 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1025 Requires: ming >= 0.3
1029 This is a dynamic shared object (DSO) for PHP that will add ming
1030 (Flash - .swf files) support.
1032 %description ming -l pl.UTF-8
1033 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1037 Summary: MS SQL extension module for PHP
1038 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1040 URL: http://www.php.net/manual/en/book.mssql.php
1041 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1042 Provides: php(mssql)
1045 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1046 databases support through FreeTDS library.
1048 %description mssql -l pl.UTF-8
1049 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1053 Summary: MySQL database module for PHP
1054 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1055 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1057 URL: http://www.php.net/manual/en/book.mysql.php
1058 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1059 Provides: php(mysql)
1062 This is a dynamic shared object (DSO) for PHP that will add MySQL
1065 %description mysql -l pl.UTF-8
1066 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1068 %description mysql -l pt_BR.UTF-8
1069 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1072 Summary: MySQLi module for PHP
1073 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1075 URL: http://www.php.net/manual/en/book.mysqli.php
1076 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1077 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1078 Requires: mysql-libs >= 4.1.0
1079 Provides: php(mysqli)
1082 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1083 (Improved MySQL) support. The difference between it and mysql module
1084 is that it provides access to functionality of MySQL 4.1 and above.
1086 %description mysqli -l pl.UTF-8
1087 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1088 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1089 MySQL w wersji 4.1 i nowszych.
1092 Summary: ncurses module for PHP
1093 Summary(pl.UTF-8): Moduł ncurses dla PHP
1095 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1096 Provides: php(ncurses)
1098 %description ncurses
1099 This PHP module adds support for ncurses functions (only for cli and
1102 %description ncurses -l pl.UTF-8
1103 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1106 Summary: Oracle 8+ database module for PHP
1107 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1109 URL: http://www.php.net/manual/en/book.oci8.php
1110 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1115 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1116 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1118 %description oci8 -l pl.UTF-8
1119 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1120 poprzez interfejs Oracle8 Call-Interface (OCI8).
1123 Summary: ODBC extension module for PHP
1124 Summary(pl.UTF-8): Moduł ODBC dla PHP
1125 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1127 URL: http://www.php.net/manual/en/book.uodbc.php
1128 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1129 Requires: unixODBC >= 2.1.1-3
1133 This is a dynamic shared object (DSO) for PHP that will add ODBC
1136 %description odbc -l pl.UTF-8
1137 Moduł PHP ze wsparciem dla ODBC.
1139 %description odbc -l pt_BR.UTF-8
1140 Um módulo para aplicações PHP que usam ODBC.
1143 Summary: OpenSSL extension module for PHP
1144 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1146 URL: http://www.php.net/manual/en/book.openssl.php
1147 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1148 Provides: php(openssl)
1150 %description openssl
1151 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1154 %description openssl -l pl.UTF-8
1155 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1158 Summary: Process Control extension module for PHP
1159 Summary(pl.UTF-8): Moduł Process Control dla PHP
1161 URL: http://www.php.net/manual/en/book.pcntl.php
1162 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1163 Provides: php(pcntl)
1166 This is a dynamic shared object (DSO) for PHP that will add process
1167 spawning and control support. It supports functions like fork(),
1168 waitpid(), signal() etc.
1170 %description pcntl -l pl.UTF-8
1171 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1172 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1175 Summary: PCRE extension module for PHP
1176 Summary(pl.UTF-8): Moduł PCRE dla PHP
1178 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1182 This is a dynamic shared object (DSO) for PHP that will add Perl
1183 Compatible Regular Expression support.
1185 %description pcre -l pl.UTF-8
1186 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1187 (Perl Compatible Regular Expressions)
1190 Summary: PHP Data Objects (PDO)
1191 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1193 URL: http://www.php.net/manual/en/book.pdo.php
1194 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1195 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1197 Obsoletes: php-pecl-PDO
1200 This is a dynamic shared object (DSO) for PHP that will add PDO
1203 %description pdo -l pl.UTF-8
1204 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1207 Summary: PHP Data Objects (PDO) FreeTDS support
1208 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1210 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1211 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1212 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1213 Provides: php(dblib)
1215 %description pdo-dblib
1216 This is a dynamic shared object (DSO) for PHP that will add PDO
1219 %description pdo-dblib -l pl.UTF-8
1220 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1223 %package pdo-firebird
1224 Summary: PHP Data Objects (PDO) Firebird support
1225 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1227 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1228 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1229 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1230 Provides: php(pdo-firebird)
1231 Obsoletes: php-pecl-PDO_FIREBIRD
1233 %description pdo-firebird
1234 This is a dynamic shared object (DSO) for PHP that will add PDO
1237 %description pdo-firebird -l pl.UTF-8
1238 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1242 Summary: PHP Data Objects (PDO) MySQL support
1243 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1245 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1246 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1247 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1248 Provides: php(pdo-mysql)
1249 Obsoletes: php-pecl-PDO_MYSQL
1251 %description pdo-mysql
1252 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1255 %description pdo-mysql -l pl.UTF-8
1256 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1260 Summary: PHP Data Objects (PDO) Oracle support
1261 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1263 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1264 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1265 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1266 Provides: php(pdo-oci)
1267 Obsoletes: php-pecl-PDO_OCI
1269 %description pdo-oci
1270 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1273 %description pdo-oci -l pl.UTF-8
1274 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1278 Summary: PHP Data Objects (PDO) ODBC support
1279 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1281 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1282 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1283 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1284 Provides: php(pdo-odbc)
1285 Obsoletes: php-pecl-PDO_ODBC
1287 %description pdo-odbc
1288 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1291 %description pdo-odbc -l pl.UTF-8
1292 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1296 Summary: PHP Data Objects (PDO) PostgreSQL support
1297 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1299 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1300 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1301 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1302 Provides: php(pdo-pgsql)
1303 Provides: php-pecl-PDO_PGSQL
1304 Obsoletes: php-pecl-PDO_PGSQL
1306 %description pdo-pgsql
1307 This is a dynamic shared object (DSO) for PHP that will add PDO
1310 %description pdo-pgsql -l pl.UTF-8
1311 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1315 Summary: PHP Data Objects (PDO) SQLite support
1316 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1318 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1319 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1320 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1321 Provides: php(pdo-sqlite)
1322 Obsoletes: php-pecl-PDO_SQLITE
1324 %description pdo-sqlite
1325 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1328 %description pdo-sqlite -l pl.UTF-8
1329 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1333 Summary: PostgreSQL database module for PHP
1334 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1336 URL: http://www.php.net/manual/en/book.pgsql.php
1337 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1338 Provides: php(pgsql)
1341 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1344 %description pgsql -l pl.UTF-8
1345 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1347 %description pgsql -l pt_BR.UTF-8
1348 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1351 Summary: POSIX extension module for PHP
1352 Summary(pl.UTF-8): Moduł POSIX dla PHP
1354 URL: http://www.php.net/manual/en/book.posix.php
1355 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1356 Provides: php(posix)
1359 This is a dynamic shared object (DSO) for PHP that will add POSIX
1360 functions support to PHP.
1362 %description posix -l pl.UTF-8
1363 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1366 Summary: pspell extension module for PHP
1367 Summary(pl.UTF-8): Moduł pspell dla PHP
1369 URL: http://www.php.net/manual/en/book.pspell.php
1370 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1371 Provides: php(pspell)
1374 This is a dynamic shared object (DSO) for PHP that will add pspell
1375 support to PHP. It allows to check the spelling of a word and offer
1378 %description pspell -l pl.UTF-8
1379 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1380 sprawdzanie pisowni słowa i sugerowanie poprawek.
1383 Summary: readline extension module for PHP
1384 Summary(pl.UTF-8): Moduł readline dla PHP
1386 URL: http://www.php.net/manual/en/book.readline.php
1387 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1388 Provides: php(readline)
1390 %description readline
1391 This PHP module adds support for readline functions (only for cli and
1394 %description readline -l pl.UTF-8
1395 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1398 Summary: recode extension module for PHP
1399 Summary(pl.UTF-8): Moduł recode dla PHP
1401 URL: http://www.php.net/manual/en/book.recode.php
1402 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1403 Requires: recode >= 3.5d-3
1404 Provides: php(recode)
1407 This is a dynamic shared object (DSO) for PHP that will add recode
1410 %description recode -l pl.UTF-8
1411 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1415 Summary: session extension module for PHP
1416 Summary(pl.UTF-8): Moduł session dla PHP
1418 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1419 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1420 Provides: php(session)
1422 %description session
1423 This is a dynamic shared object (DSO) for PHP that will add session
1426 %description session -l pl.UTF-8
1427 Moduł PHP dodający obsługę sesji.
1430 Summary: Shared Memory Operations extension module for PHP
1431 Summary(pl.UTF-8): Moduł shmop dla PHP
1433 URL: http://www.php.net/manual/en/book.shmop.php
1434 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1435 Provides: php(shmop)
1438 This is a dynamic shared object (DSO) for PHP that will add Shared
1439 Memory Operations support.
1441 %description shmop -l pl.UTF-8
1442 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1445 Summary: Simple XML extension module for PHP
1446 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1448 URL: http://www.php.net/manual/en/book.simplexml.php
1449 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1450 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1451 Provides: php(simplexml)
1453 %description simplexml
1454 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1457 %description simplexml -l pl.UTF-8
1458 Moduł PHP dodający obsługę prostego XML-a.
1461 Summary: SNMP extension module for PHP
1462 Summary(pl.UTF-8): Moduł SNMP dla PHP
1464 URL: http://www.php.net/manual/en/book.snmp.php
1465 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1466 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1470 This is a dynamic shared object (DSO) for PHP that will add SNMP
1473 %description snmp -l pl.UTF-8
1474 Moduł PHP dodający obsługę SNMP.
1477 Summary: soap extension module for PHP
1478 Summary(pl.UTF-8): Moduł soap dla PHP
1480 URL: http://www.php.net/manual/en/book.soap.php
1481 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1485 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1488 %description soap -l pl.UTF-8
1489 Moduł PHP dodający obsługę SOAP/WSDL.
1492 Summary: sockets extension module for PHP
1493 Summary(pl.UTF-8): Moduł socket dla PHP
1495 URL: http://www.php.net/manual/en/book.sockets.php
1496 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1497 Provides: php(sockets)
1499 %description sockets
1500 This is a dynamic shared object (DSO) for PHP that will add sockets
1503 %description sockets -l pl.UTF-8
1504 Moduł PHP dodający obsługę gniazdek.
1507 Summary: Standard PHP Library module for PHP
1508 Summary(pl.UTF-8): Moduł SPL dla PHP
1510 URL: http://php.net/manual/en/book.spl.php
1511 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1512 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1513 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1517 This is a dynamic shared object (DSO) for PHP that will add Standard
1518 PHP Library support.
1520 %description spl -l pl.UTF-8
1521 Moduł PHP dodający obsługę gniazdek.
1524 Summary: SQLite extension module for PHP
1525 Summary(pl.UTF-8): Moduł SQLite dla PHP
1527 URL: http://www.php.net/manual/en/book.sqlite.php
1528 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1529 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1530 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1531 Provides: php(sqlite)
1534 SQLite is a C library that implements an embeddable SQL database
1535 engine. Programs that link with the SQLite library can have SQL
1536 database access without running a separate RDBMS process.
1538 SQLite is not a client library used to connect to a big database
1539 server. SQLite is the server. The SQLite library reads and writes
1540 directly to and from the database files on disk.
1542 %description sqlite -l pl.UTF-8
1543 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1544 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1545 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1548 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1549 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1550 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1554 Summary: Sybase DB extension module for PHP
1555 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1557 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1558 Provides: php(sybase)
1559 Obsoletes: php-sybase-ct
1560 Conflicts: php-sybase-ct
1563 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1564 MS SQL databases support through SYBDB library. Currently Sybase
1565 module is not maintained. Using Sybase-CT module is recommended
1568 %description sybase -l pl.UTF-8
1569 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1570 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1571 Zaleca się używanie modułu Sybase-CT.
1574 Summary: Sybase-CT extension module for PHP
1575 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1577 URL: http://www.php.net/manual/en/book.sybase.php
1578 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1579 Provides: php(sybase-ct)
1580 Obsoletes: php-sybase
1581 Conflicts: php-sybase
1583 %description sybase-ct
1584 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1585 MS SQL databases support through CT-lib.
1587 %description sybase-ct -l pl.UTF-8
1588 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1592 Summary: SysV msg extension module for PHP
1593 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1595 URL: http://www.php.net/manual/en/book.sem.php
1596 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1597 Provides: php(sysvmsg)
1599 %description sysvmsg
1600 This is a dynamic shared object (DSO) for PHP that will add SysV
1601 message queues support.
1603 %description sysvmsg -l pl.UTF-8
1604 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1607 Summary: SysV sem extension module for PHP
1608 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1610 URL: http://www.php.net/manual/en/book.sem.php
1611 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1612 Provides: php(sysvsem)
1614 %description sysvsem
1615 This is a dynamic shared object (DSO) for PHP that will add SysV
1618 %description sysvsem -l pl.UTF-8
1619 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1622 Summary: SysV shm extension module for PHP
1623 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1625 URL: http://www.php.net/manual/en/book.shmop.php
1626 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1627 Provides: php(sysvshm)
1629 %description sysvshm
1630 This is a dynamic shared object (DSO) for PHP that will add SysV
1631 Shared Memory support.
1633 %description sysvshm -l pl.UTF-8
1634 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1637 Summary: Contains unit test files for PHP and extensions
1638 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1640 URL: http://qa.php.net/
1641 Requires: %{name}-cli
1644 This package contains unit tests for PHP and it's extensions.
1646 %description tests -l pl.UTF-8
1647 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1650 Summary: Tidy extension module for PHP
1651 Summary(pl.UTF-8): Moduł Tidy dla PHP
1653 URL: http://www.php.net/manual/en/book.tidy.php
1654 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1659 This is a dynamic shared object (DSO) for PHP that will add Tidy
1662 %description tidy -l pl.UTF-8
1663 Moduł PHP umożliwiający korzystanie z tidy.
1666 Summary: tokenizer extension module for PHP
1667 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1669 URL: http://www.php.net/manual/en/book.tokenizer.php
1670 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1671 Provides: php(tokenizer)
1673 %description tokenizer
1674 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1677 %description tokenizer -l pl.UTF-8
1678 Moduł PHP dodający obsługę tokenizera do PHP.
1681 Summary: wddx extension module for PHP
1682 Summary(pl.UTF-8): Moduł wddx dla PHP
1684 URL: http://www.php.net/manual/en/book.wddx.php
1685 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1686 # - wddx doesn't require session as it's disabled at compile time:
1687 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1688 # see also php.spec#rev1.120.2.22
1689 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1690 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1694 This is a dynamic shared object (DSO) for PHP that will add wddx
1697 %description wddx -l pl.UTF-8
1698 Moduł PHP umożliwiający korzystanie z wddx.
1701 Summary: XML extension module for PHP
1702 Summary(pl.UTF-8): Moduł XML dla PHP
1704 URL: http://www.php.net/manual/en/book.xml.php
1705 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1709 This is a dynamic shared object (DSO) for PHP that will add XML
1710 support. This extension lets you create XML parsers and then define
1711 handlers for different XML events.
1713 %description xml -l pl.UTF-8
1714 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1715 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1716 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1719 Summary: XML Reader extension module for PHP
1720 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1722 URL: http://www.php.net/manual/en/book.xmlreader.php
1723 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1724 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1725 Provides: php(xmlreader)
1727 %description xmlreader
1728 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1729 support. The XMLReader extension is an XML Pull parser. The reader
1730 acts as a cursor going forward on the document stream and stopping at
1731 each node on the way.
1733 %description xmlreader -l pl.UTF-8
1734 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1735 działa jako kursor przechodzący przez strumień dokumentu i
1736 zatrzymujący się na każdym węźle po drodze.
1739 Summary: xmlrpc extension module for PHP
1740 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1742 URL: http://www.php.net/manual/en/book.xmlrpc.php
1743 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1744 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1745 Provides: php(xmlrpc)
1748 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1751 %description xmlrpc -l pl.UTF-8
1752 Moduł PHP dodający obsługę XMLRPC.
1755 Summary: Fast, non-cached, forward-only means to write XML data
1756 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1758 URL: http://www.php.net/manual/en/book.xmlwriter.php
1759 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1760 Provides: php(xmlwriter)
1761 Obsoletes: php-pecl-xmlwriter
1763 %description xmlwriter
1764 This extension wraps the libxml xmlWriter API. Represents a writer
1765 that provides a non-cached, forward-only means of generating streams
1766 or files containing XML data.
1768 %description xmlwriter -l pl.UTF-8
1769 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1770 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1771 plików zawierających dane XML.
1774 Summary: xsl extension module for PHP
1775 Summary(pl.UTF-8): Moduł xsl dla PHP
1777 URL: http://www.php.net/manual/en/book.xsl.php
1778 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1779 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1780 Requires: libxslt >= 1.0.18
1781 # actually not true, functionality is similar, but API differs
1783 Obsoletes: php-xslt <= 3:4.3.8-1
1786 This is a dynamic shared object (DSO) for PHP that will add new XSL
1787 support (using libxslt).
1789 %description xsl -l pl.UTF-8
1790 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1793 Summary: Zip management extension
1794 Summary(pl.UTF-8): Zarządzanie archiwami zip
1796 URL: http://www.php.net/manual/en/book.zip.php
1797 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1799 Obsoletes: php-pecl-zip
1800 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1803 Zip is an extension to create, modify and read zip files.
1805 %description zip -l pl.UTF-8
1806 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1807 odczyt archiwów zip.
1810 Summary: Zlib extension module for PHP
1811 Summary(pl.UTF-8): Moduł zlib dla PHP
1813 URL: http://www.php.net/manual/en/book.zlib.php
1814 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1818 This is a dynamic shared object (DSO) for PHP that will add zlib
1819 compression support to PHP.
1821 %description zlib -l pl.UTF-8
1822 Moduł PHP umożliwiający używanie kompresji zlib.
1825 %setup -q -n %{orgname}-%{version}
1828 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1841 cp php.ini-dist php.ini
1843 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1853 %if %{with system_gd}
1862 %{?with_versioning:%patch25 -p1}
1865 %{__tar} jxf %{SOURCE9}
1866 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1867 mv $v/$v gentoo-patchset
1868 for a in gentoo-patchset/*.patch; do
1881 %if "%{pld_release}" != "ac"
1886 # mysql default charset for mysql/mysql/pdo-mysql extensions
1918 %{?with_system_libzip:%patch65 -p1}
1926 # Bugfix backport from 5.3.6
1927 %patch311 -p1 -b .bug-47435
1928 %patch314 -p1 -b .bug-39199
1929 # Bugfix backport from 5.3.7
1930 #accert %patch333 -p1 -b .bug-54924
1931 #soap %patch355 -p1 -b .bug-55323
1932 # causes regression -> magic_quotes_gpc setting cannot be changed
1933 #%%patch402 -p1 -b .bug-323016
1935 # conflict seems to be resolved by recode patches
1936 rm -f ext/recode/config9.m4
1938 # remove all bundled libraries not to link with them accidentally
1939 #rm -rf ext/sqlite/libsqlite
1940 #rm -rf ext/bcmath/libbcmath
1941 #rm -rf ext/date/lib
1942 #rm -rf ext/dba/libcdb
1943 #rm -rf ext/dba/libflatfile
1944 #rm -rf ext/dba/libinifile
1945 #rm -rf ext/gd/libgd
1946 #rm -rf ext/mbstring/libmbfl
1947 #rm -rf ext/mbstring/oniguruma
1948 rm -rf ext/pcre/pcrelib
1949 rm -rf ext/pdo_sqlite/sqlite
1950 #rm -rf ext/soap/interop
1951 %if %{with system_xmlrpc_epi}
1952 rm -rf ext/xmlrpc/libxmlrpc
1956 # this test hungs on ac-ppc
1957 #mv ext/reflection/tests/007.php{,ignore}
1958 # this test gets killed by itself
1959 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1962 cp -af Zend/LICENSE{,.Zend}
1963 install -p %{SOURCE13} dep-tests.sh
1965 # disable broken tests
1966 # says just "Terminated" twice and fails
1967 mv sapi/cli/tests/022.phpt{,.broken}
1969 sh -xe %{_sourcedir}/skip-tests.sh
1972 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1973 if [ $API != %{php_api_version} ]; then
1974 echo "Set %%define php_api_version to $API and re-run."
1978 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1979 if [ $API != %{zend_module_api} ]; then
1980 echo "Set %%define zend_module_api to $API and re-run."
1984 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1985 if [ $API != %{zend_extension_api} ]; then
1986 echo "Set %%define zend_extension_api to $API and re-run."
1990 export EXTENSION_DIR="%{php_extensiondir}"
1991 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1992 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1995 cp -f /usr/share/automake/config.* .
1999 export PROG_SENDMAIL="/usr/lib/sendmail"
2016 for sapi in $sapis; do
2018 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2023 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2026 sapi_args='--disable-cgi'
2029 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2032 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2035 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2036 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2039 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2040 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2045 FORCE_APACHE_VERSION="${apache_ver}" \
2047 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2048 --cache-file=config.cache \
2050 --with-libdir=%{_lib} \
2051 --with-config-file-path=%{_sysconfdir} \
2052 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2053 --with-exec-dir=%{_bindir} \
2054 --with-system-tzdata \
2055 --%{!?debug:dis}%{?debug:en}able-debug \
2056 %{?with_zts:--enable-maintainer-zts} \
2057 %{?with_suhosin:--enable-suhosin} \
2058 %{?with_zend_multibyte:--enable-zend-multibyte} \
2059 --enable-inline-optimization \
2060 --enable-bcmath=shared \
2061 --enable-calendar=shared \
2062 --enable-ctype=shared \
2063 --enable-dba=shared \
2064 --enable-dom=shared \
2065 --enable-exif=shared \
2066 --enable-ftp=shared \
2067 --enable-gd-native-ttf \
2068 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2070 --enable-magic-quotes \
2071 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2073 --enable-pcntl=shared \
2074 --enable-pdo=shared \
2075 --enable-json=shared \
2076 --enable-hash=shared \
2077 --enable-xmlwriter=shared \
2079 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2080 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2081 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2083 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2084 --with-pdo-dblib=shared \
2086 %if %{with interbase} && !%{with interbase_inst}
2087 --with-pdo-firebird=shared,/usr \
2089 --with-pdo-mysql=shared \
2090 %{?with_oci8:--with-pdo-oci=shared} \
2091 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2092 %{?with_pgsql:--with-pdo-pgsql=shared} \
2093 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2094 --enable-posix=shared \
2095 --enable-reflection \
2097 --enable-session=shared \
2098 --enable-shmop=shared \
2099 --enable-simplexml=shared \
2100 --enable-spl=shared \
2101 --enable-sysvmsg=shared \
2102 --enable-sysvsem=shared \
2103 --enable-sysvshm=shared \
2104 --enable-safe-mode \
2105 --enable-soap=shared \
2106 --enable-sockets=shared \
2107 --enable-tokenizer=shared \
2108 --enable-ucd-snmp-hack \
2109 %{?with_wddx:--enable-wddx=shared} \
2110 --enable-xml=shared \
2111 --enable-xmlreader=shared \
2113 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2115 --enable-dbase=shared \
2116 --without-libexpat-dir \
2117 %{?with_fdf:--with-fdftk=shared} \
2118 --with-iconv=shared \
2119 --with-freetype-dir=shared \
2120 --with-gettext=shared \
2121 --with-gd=shared%{?with_system_gd:,/usr} \
2124 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2125 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2126 --with-jpeg-dir=/usr \
2127 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2128 --with-mcrypt=shared \
2129 %{?with_mhash:--with-mhash=shared} \
2130 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2131 %{?with_ming:--with-ming=shared} \
2132 %{?with_mm:--with-mm} \
2133 %{?with_mssql:--with-mssql=shared} \
2134 --with-mysql=shared,/usr \
2135 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2136 %{?with_mysqli:--with-mysqli=shared} \
2137 --with-ncurses=shared \
2138 %{?with_oci8:--with-oci8=shared} \
2139 %{?with_openssl:--with-openssl=shared} \
2141 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2142 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2143 --with-pear=%{php_pear_dir} \
2144 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2145 --with-png-dir=/usr \
2146 %{?with_pspell:--with-pspell=shared} \
2147 --with-readline=shared \
2148 %{?with_recode:--with-recode=shared} \
2150 %{?with_snmp:--with-snmp=shared} \
2151 %{?with_sybase:--with-sybase=shared,/usr} \
2152 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2153 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2154 --with-t1lib=shared \
2155 %{?with_tidy:--with-tidy=shared} \
2156 %{?with_odbc:--with-unixODBC=shared,/usr} \
2157 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2159 --with-zlib=shared \
2160 --with-zlib-dir=shared,/usr \
2161 %{?with_system_libzip:--with-libzip} \
2162 --enable-zip=shared,/usr \
2164 cp -f Makefile Makefile.$sapi
2165 cp -f main/php_config.h php_config.h.$sapi
2166 cp -f config.log config.log.$sapi
2169 # as we build each SAPI in own make, adjust php-config.in forehead
2170 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2171 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2173 # must make this first, so modules can link against it.
2174 %{__make} libphp_common.la
2175 %{__make} build-modules
2178 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2182 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2186 cp -af php_config.h.cgi main/php_config.h
2187 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2188 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2189 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2193 cp -af php_config.h.fcgi main/php_config.h
2194 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2195 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2196 cp -r sapi/cgi sapi/fcgi
2197 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2201 cp -af php_config.h.fpm main/php_config.h
2202 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2203 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2204 cp -r sapi/cgi sapi/fpm
2205 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2209 cp -af php_config.h.cli main/php_config.h
2210 %{__make} sapi/cli/php -f Makefile.cli
2211 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2213 # check for stupid xml parse breakage where < and > just get lost in parse result
2214 ./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"]));'
2216 # Generate stub .ini files for each extension
2219 generate_inifiles() {
2220 for so in modules/*.so; do
2221 mod=$(basename $so .so)
2223 # xml needs to be loaded before wddx
2224 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2225 # pre needs to be loaded before SPL
2226 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2227 # spl needs to be loaded before mysqli
2228 [ "$mod" = "spl" ] && conf="SPL.ini"
2229 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2230 [ "$mod" = "session" ] && conf="Session.ini"
2232 cat > conf.d/$conf <<-EOF
2233 ; Enable $mod extension module
2240 # Check that the module inner-dependencies are intact
2241 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2242 if grep -v OK dep-tests.log; then
2243 echo >&2 "The results above were not expected"
2244 # TEMP: ac-i386 builder is broken
2252 # Run tests, using the CLI SAPI
2253 cp -af php_config.h.cli main/php_config.h
2254 cp -af Makefile.cli Makefile
2255 # sybase modules collide, remove one
2256 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2258 cat <<'EOF' > run-tests.sh
2260 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2261 unset TZ LANG LC_ALL || :
2264 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2265 RUN_TESTS_SETTINGS="-q $*"
2267 chmod +x run-tests.sh
2268 ./run-tests.sh -w failed.log -s test.log
2270 # collect failed tests into cleanup script used in prep.
2271 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2272 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2273 >> %{_sourcedir}/skip-tests.sh
2275 failed=$(wc -l < tests-failed.log)
2276 if [ "$failed" != 0 ]; then
2282 rm -rf $RPM_BUILD_ROOT
2283 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2284 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2285 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2286 $RPM_BUILD_ROOT%{_mandir}/man1 \
2288 # install the Apache modules' files
2289 %{__make} install-headers install-build install-modules install-programs \
2290 INSTALL_ROOT=$RPM_BUILD_ROOT
2293 v=$(echo %{version} | cut -d. -f1-2)
2295 # install Apache1 DSO module
2297 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2298 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2299 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2302 # install Apache2 DSO module
2304 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2305 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2306 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2309 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2310 # fix install paths, avoid evil rpaths
2311 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2313 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2316 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2320 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2325 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2326 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2327 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2328 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2329 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2330 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2331 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2332 %if "%{pld_release}" == "ac"
2333 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2337 s#/usr/lib/php#%{php_extensiondir}#
2338 s#/etc/php#%{_sysconfdir}#
2339 s#@processname@#%{name}-fpm#g
2340 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2344 # without suffix, install as php.cli
2345 %if "%{?php_suffix}" == ""
2346 %define phpfn %{name}.cli
2348 %define phpfn %{name}
2350 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2351 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2352 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2353 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2354 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2356 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2358 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2360 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2361 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2362 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2365 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2366 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2367 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2371 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2372 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2373 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2376 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2377 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2379 # ensure that paths are correct for current php version and arch
2380 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2382 s#/usr/lib/php#%{php_extensiondir}#g
2383 s#/etc/php#%{_sysconfdir}#g
2386 # per SAPI ini directories
2387 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2390 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2392 # use system automake and {lib,sh}tool
2393 %if "%{pld_release}" != "ac"
2394 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2395 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2396 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2398 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2400 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2401 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2403 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2405 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2406 # isn't installed by install-headers make target, we do it manually here.
2407 # this header file is required by e.g. filter PECL extension
2408 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2409 # for php-pecl-mailparse
2410 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2411 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2414 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2415 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2416 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2419 rm -rf $RPM_BUILD_ROOT
2421 %post -n apache1-mod_%{name}
2422 if [ "$1" = "1" ]; then
2423 %service -q apache restart
2426 %postun -n apache1-mod_%{name}
2427 if [ "$1" = "0" ]; then
2428 %service -q apache restart
2431 %post -n apache-mod_%{name}
2432 if [ "$1" = "1" ]; then
2433 %service -q httpd restart
2436 %postun -n apache-mod_%{name}
2437 if [ "$1" = "0" ]; then
2438 %service -q httpd restart
2442 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2445 /sbin/chkconfig --add %{name}-fpm
2446 %service %{name}-fpm restart
2449 if [ "$1" = 0 ]; then
2450 %service %{name}-fpm stop
2451 /sbin/chkconfig --del %{name}-fpm
2455 if [ "$1" = "0" ]; then
2459 %post common -p /sbin/ldconfig
2460 %postun common -p /sbin/ldconfig
2463 # minimizing apache restarts logics. we restart webserver:
2465 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2466 # 2. first install of extension (post: $1 = 1)
2467 # 2. uninstall of extension (postun: $1 == 0)
2469 # the strict internal deps between extensions (and apache modules) and
2470 # common package are very important for all this to work.
2472 # restart webserver at the end of transaction
2473 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2474 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2476 # common macros called at extension post/postun scriptlet
2477 %define extension_scripts() \
2479 if [ "$1" = "1" ]; then \
2480 %php_webserver_restart \
2484 if [ "$1" = "0" ]; then \
2485 %php_webserver_restart \
2489 # extension scripts defines
2490 %extension_scripts bcmath
2491 %extension_scripts bz2
2492 %extension_scripts calendar
2493 %extension_scripts ctype
2494 %extension_scripts curl
2495 %extension_scripts dba
2496 %extension_scripts dbase
2497 %extension_scripts dom
2498 %extension_scripts exif
2499 %extension_scripts fdf
2500 %extension_scripts filter
2501 %extension_scripts ftp
2502 %extension_scripts gd
2503 %extension_scripts gettext
2504 %extension_scripts gmp
2505 %extension_scripts hash
2506 %extension_scripts iconv
2507 %extension_scripts imap
2508 %extension_scripts interbase
2509 %extension_scripts json
2510 %extension_scripts ldap
2511 %extension_scripts mbstring
2512 %extension_scripts mcrypt
2513 %extension_scripts mhash
2514 %extension_scripts mime_magic
2515 %extension_scripts ming
2516 %extension_scripts mssql
2517 %extension_scripts mysql
2518 %extension_scripts mysqli
2519 %extension_scripts oci8
2520 %extension_scripts odbc
2521 %extension_scripts openssl
2522 %extension_scripts pcntl
2523 %extension_scripts pcre
2524 %extension_scripts pdo
2525 %extension_scripts pdo-dblib
2526 %extension_scripts pdo-firebird
2527 %extension_scripts pdo-oci
2528 %extension_scripts pdo-mysql
2529 %extension_scripts pdo-odbc
2530 %extension_scripts pdo-pgsql
2531 %extension_scripts pdo-sqlite
2532 %extension_scripts pgsql
2533 %extension_scripts posix
2534 %extension_scripts pspell
2535 %extension_scripts recode
2536 %extension_scripts session
2537 %extension_scripts simplexml
2538 %extension_scripts shmop
2539 %extension_scripts snmp
2540 %extension_scripts soap
2541 %extension_scripts sockets
2542 %extension_scripts spl
2543 %extension_scripts sqlite
2544 %extension_scripts sybase
2545 %extension_scripts sybase-ct
2546 %extension_scripts sysvmsg
2547 %extension_scripts sysvsem
2548 %extension_scripts sysvshm
2549 %extension_scripts tidy
2550 %extension_scripts tokenizer
2551 %extension_scripts wddx
2552 %extension_scripts xml
2553 %extension_scripts xmlreader
2554 %extension_scripts xmlrpc
2555 %extension_scripts xmlwriter
2556 %extension_scripts xsl
2557 %extension_scripts zip
2558 %extension_scripts zlib
2561 %files -n apache1-mod_%{name}
2562 %defattr(644,root,root,755)
2563 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2564 %dir %{_sysconfdir}/apache.d
2565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2566 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2567 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2571 %files -n apache-mod_%{name}
2572 %defattr(644,root,root,755)
2573 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2574 %dir %{_sysconfdir}/apache2handler.d
2575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2576 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2577 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2582 %defattr(644,root,root,755)
2583 %doc sapi/cgi/README.FastCGI
2584 %dir %{_sysconfdir}/cgi-fcgi.d
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2586 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2590 %defattr(644,root,root,755)
2591 %dir %{_sysconfdir}/cgi.d
2592 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2593 %attr(755,root,root) %{_bindir}/%{name}.cgi
2596 %defattr(644,root,root,755)
2597 %dir %{_sysconfdir}/cli.d
2598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2599 %attr(755,root,root) %{_bindir}/%{phpfn}
2600 %{_mandir}/man1/%{phpfn}.1*
2603 %defattr(644,root,root,755)
2604 %attr(755,root,root) %{_bindir}/php
2605 %{_mandir}/man1/php.1*
2609 %defattr(644,root,root,755)
2610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2611 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2612 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2613 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2617 %defattr(644,root,root,755)
2619 %doc CREDITS Zend/ZEND_CHANGES
2620 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2621 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2624 %dir %{_sysconfdir}/conf.d
2625 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2627 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2628 %dir %{php_extensiondir}
2631 %defattr(644,root,root,755)
2632 %doc README.UNIX-BUILD-SYSTEM
2633 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2634 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2635 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2636 %attr(755,root,root) %{_bindir}/phpize
2637 %attr(755,root,root) %{_bindir}/php-config
2638 %attr(755,root,root) %{_libdir}/libphp_common.so
2639 %{_libdir}/libphp_common.la
2641 %{_libdir}/php/build
2642 %{_mandir}/man1/php-config.1*
2643 %{_mandir}/man1/phpize.1*
2646 %defattr(644,root,root,755)
2647 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2648 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2651 %defattr(644,root,root,755)
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2653 %attr(755,root,root) %{php_extensiondir}/bz2.so
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2658 %attr(755,root,root) %{php_extensiondir}/calendar.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2663 %attr(755,root,root) %{php_extensiondir}/ctype.so
2667 %defattr(644,root,root,755)
2668 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2669 %attr(755,root,root) %{php_extensiondir}/curl.so
2673 %defattr(644,root,root,755)
2674 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2675 %attr(755,root,root) %{php_extensiondir}/dba.so
2678 %defattr(644,root,root,755)
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2680 %attr(755,root,root) %{php_extensiondir}/dbase.so
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2685 %attr(755,root,root) %{php_extensiondir}/dom.so
2689 %defattr(644,root,root,755)
2690 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2691 %attr(755,root,root) %{php_extensiondir}/fdf.so
2696 %defattr(644,root,root,755)
2697 %doc README.input_filter
2698 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2699 %attr(755,root,root) %{php_extensiondir}/filter.so
2703 %defattr(644,root,root,755)
2704 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2705 %attr(755,root,root) %{php_extensiondir}/exif.so
2708 %defattr(644,root,root,755)
2709 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2710 %attr(755,root,root) %{php_extensiondir}/ftp.so
2713 %defattr(644,root,root,755)
2714 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2715 %attr(755,root,root) %{php_extensiondir}/gd.so
2718 %defattr(644,root,root,755)
2719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2720 %attr(755,root,root) %{php_extensiondir}/gettext.so
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2725 %attr(755,root,root) %{php_extensiondir}/gmp.so
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2730 %attr(755,root,root) %{php_extensiondir}/hash.so
2733 %defattr(644,root,root,755)
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2735 %attr(755,root,root) %{php_extensiondir}/iconv.so
2739 %defattr(644,root,root,755)
2740 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2741 %attr(755,root,root) %{php_extensiondir}/imap.so
2744 %if %{with interbase}
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2748 %attr(755,root,root) %{php_extensiondir}/interbase.so
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2754 %attr(755,root,root) %{php_extensiondir}/json.so
2758 %defattr(644,root,root,755)
2759 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2760 %attr(755,root,root) %{php_extensiondir}/ldap.so
2763 %if %{without zend_multibyte}
2765 %defattr(644,root,root,755)
2766 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2767 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2771 %defattr(644,root,root,755)
2772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2773 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2777 %defattr(644,root,root,755)
2778 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2779 %attr(755,root,root) %{php_extensiondir}/mhash.so
2782 %if %{with mime_magic}
2784 %defattr(644,root,root,755)
2785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2786 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2791 %defattr(644,root,root,755)
2792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2793 %attr(755,root,root) %{php_extensiondir}/ming.so
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2800 %attr(755,root,root) %{php_extensiondir}/mssql.so
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2806 %attr(755,root,root) %{php_extensiondir}/mysql.so
2810 %defattr(644,root,root,755)
2811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2812 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2816 %defattr(644,root,root,755)
2817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2818 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2822 %defattr(644,root,root,755)
2823 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2824 %attr(755,root,root) %{php_extensiondir}/oci8.so
2829 %defattr(644,root,root,755)
2830 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2831 %attr(755,root,root) %{php_extensiondir}/odbc.so
2836 %defattr(644,root,root,755)
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2838 %attr(755,root,root) %{php_extensiondir}/openssl.so
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2844 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2850 %attr(755,root,root) %{php_extensiondir}/pcre.so
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2856 %attr(755,root,root) %{php_extensiondir}/pdo.so
2858 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2860 %defattr(644,root,root,755)
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2862 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2865 %if %{with interbase} && !%{with interbase_inst}
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2869 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2873 %defattr(644,root,root,755)
2874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2875 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2879 %defattr(644,root,root,755)
2880 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2881 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2886 %defattr(644,root,root,755)
2887 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2888 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2893 %defattr(644,root,root,755)
2894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2895 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2900 %defattr(644,root,root,755)
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2902 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2907 %defattr(644,root,root,755)
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2909 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2915 %attr(755,root,root) %{php_extensiondir}/posix.so
2919 %defattr(644,root,root,755)
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2921 %attr(755,root,root) %{php_extensiondir}/pspell.so
2925 %defattr(644,root,root,755)
2926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2927 %attr(755,root,root) %{php_extensiondir}/readline.so
2931 %defattr(644,root,root,755)
2932 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2933 %attr(755,root,root) %{php_extensiondir}/recode.so
2937 %defattr(644,root,root,755)
2938 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2939 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2942 %defattr(644,root,root,755)
2943 %doc ext/session/mod_files.sh
2944 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2945 %attr(755,root,root) %{php_extensiondir}/session.so
2948 %defattr(644,root,root,755)
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2950 %attr(755,root,root) %{php_extensiondir}/shmop.so
2954 %defattr(644,root,root,755)
2955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2956 %attr(755,root,root) %{php_extensiondir}/snmp.so
2960 %defattr(644,root,root,755)
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2962 %attr(755,root,root) %{php_extensiondir}/soap.so
2965 %defattr(644,root,root,755)
2966 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2967 %attr(755,root,root) %{php_extensiondir}/sockets.so
2970 %defattr(644,root,root,755)
2971 %doc ext/spl/{CREDITS,README,TODO}
2972 %doc ext/spl/examples
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2974 %attr(755,root,root) %{php_extensiondir}/spl.so
2978 %defattr(644,root,root,755)
2979 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2980 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2985 %defattr(644,root,root,755)
2986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2987 %attr(755,root,root) %{php_extensiondir}/sybase.so
2990 %if %{with sybase_ct}
2992 %defattr(644,root,root,755)
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2994 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2998 %defattr(644,root,root,755)
2999 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3000 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3003 %defattr(644,root,root,755)
3004 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3005 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3008 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3010 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3013 %defattr(644,root,root,755)
3014 %dir %{php_data_dir}/tests
3015 %dir %{php_data_dir}/tests/php
3016 %{php_data_dir}/tests/php/basic
3017 %{php_data_dir}/tests/php/classes
3018 %{php_data_dir}/tests/php/func
3019 %{php_data_dir}/tests/php/lang
3020 %{php_data_dir}/tests/php/output
3021 %{php_data_dir}/tests/php/run-test
3022 %{php_data_dir}/tests/php/security
3023 %{php_data_dir}/tests/php/strings
3024 %{php_data_dir}/tests/php/quicktester.inc
3025 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3027 # random junk, didn't check, maybe can be just removed
3028 %{php_data_dir}/tests/php/bin-info.inc
3029 %{php_data_dir}/tests/php/foo*
3030 %{php_data_dir}/tests/php/odbc*.php
3031 %{php_data_dir}/tests/php/recurse
3032 %{php_data_dir}/tests/php/run.*
3033 %{php_data_dir}/tests/php/scan_cases
3034 %{php_data_dir}/tests/php/test*
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3040 %attr(755,root,root) %{php_extensiondir}/tidy.so
3044 %defattr(644,root,root,755)
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3046 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3050 %defattr(644,root,root,755)
3051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3052 %attr(755,root,root) %{php_extensiondir}/wddx.so
3056 %defattr(644,root,root,755)
3057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3058 %attr(755,root,root) %{php_extensiondir}/xml.so
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3063 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3067 %defattr(644,root,root,755)
3068 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3069 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3073 %defattr(644,root,root,755)
3074 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3075 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3078 %defattr(644,root,root,755)
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3080 %attr(755,root,root) %{php_extensiondir}/xsl.so
3083 %defattr(644,root,root,755)
3084 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3085 %attr(755,root,root) %{php_extensiondir}/zip.so
3088 %defattr(644,root,root,755)
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3090 %attr(755,root,root) %{php_extensiondir}/zlib.so