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
214 # Backport from 5.3.6
215 Patch311: php-5.3.6-bug-47435.patch
216 Patch314: php-5.3.6-39199.patch
218 #Patch333: php-5.3.7-bug-54924.patch
219 Patch355: php-5.3.7-bug-55323.patch
220 # Bug-323016 CVE-2012-0831
221 Patch402: php-5.2.17-bug-323016.patch
222 URL: https://code.google.com/p/php52-backports/
223 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
224 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
225 BuildRequires: autoconf >= 2.53
226 BuildRequires: automake >= 1.4d
228 BuildRequires: bzip2-devel
229 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
230 BuildRequires: cyrus-sasl-devel
231 BuildRequires: db-devel >= 4.0
232 BuildRequires: elfutils-devel
234 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
236 %{?with_fcgi:BuildRequires: fcgi-devel}
237 %{?with_fdf:BuildRequires: fdftk-devel}
239 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
240 BuildRequires: freetds-devel
241 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
243 BuildRequires: freetype-devel >= 2.0
244 %if %{with system_gd}
245 BuildRequires: gd-devel >= 2.0.28-4
246 BuildRequires: gd-devel(imagerotate) = 5.2.0
248 BuildRequires: gdbm-devel
249 BuildRequires: gmp-devel
250 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
251 BuildRequires: libjpeg-devel
252 BuildRequires: libltdl-devel >= 1.4
253 BuildRequires: libmcrypt-devel >= 2.4.4
254 BuildRequires: libpng-devel >= 1.0.8
255 BuildRequires: libtiff-devel
256 %if "%{pld_release}" != "ac"
257 BuildRequires: libtool >= 2:2.2
259 BuildRequires: libtool
261 BuildRequires: libwrap-devel
262 BuildRequires: libxml2-devel >= 1:2.7.6-4
263 BuildRequires: libxslt-devel >= 1.1.0
264 %{?with_mhash:BuildRequires: mhash-devel}
265 %{?with_ming:BuildRequires: ming-devel >= 0.3}
266 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
267 BuildRequires: mysql-devel >= 4.0.0
268 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
269 BuildRequires: ncurses-ext-devel
270 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
271 %if %{with openssl} || %{with ldap}
272 BuildRequires: openssl-devel >= 0.9.7d
274 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
275 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
276 BuildRequires: pam-devel
277 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
278 BuildRequires: pkgconfig
279 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
280 %{?with_pgsql:BuildRequires: postgresql-devel}
281 BuildRequires: readline-devel
282 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
283 BuildRequires: rpm >= 4.4.9-56
284 BuildRequires: rpm-build >= 4.4.0
285 BuildRequires: rpmbuild(macros) >= 1.519
286 %{?with_sqlite:BuildRequires: sqlite-devel}
287 %{?with_sqlite:BuildRequires: sqlite3-devel}
288 BuildRequires: t1lib-devel
289 %{?with_tidy:BuildRequires: tidy-devel}
290 %{?with_odbc:BuildRequires: unixODBC-devel}
291 BuildRequires: zlib-devel >= 1.0.9
293 BuildRequires: apache1-devel
296 BuildRequires: apache-devel >= 2.0.52-2
297 BuildRequires: apr-devel >= 1:1.0.0
298 BuildRequires: apr-util-devel >= 1:1.0.0
301 BuildRequires: judy-devel
302 BuildRequires: libevent-devel >= 1.4.7-3
304 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
306 %define php_sysconfdir /etc/%{name}
307 %define php_extensiondir %{_libdir}/%{name}
308 %define _sysconfdir %{php_sysconfdir}
310 # must be in sync with source. extra check ensuring that it is so is done in %%build
311 %define php_api_version 20041225
312 %define zend_module_api 20060613
313 %define zend_extension_api 220060519
314 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
315 %define php_debug %{!?debug:0}%{?debug:1}
318 # ORACLE_HOME is required for oci8 ext to build
319 %define _preserve_env %_preserve_env_base ORACLE_HOME
323 PHP is an HTML-embedded scripting language. PHP attempts to make it
324 easy for developers to write dynamically generated web pages. PHP also
325 offers built-in database integration for several commercial and
326 non-commercial database management systems, so writing a
327 database-enabled web page with PHP is fairly simple. The most common
328 use of PHP coding is probably as a replacement for CGI scripts. The
329 mod_php module enables the Apache web server to understand and process
330 the embedded PHP language in web pages. This package contains PHP
333 %description -l fr.UTF-8
334 PHP est un langage de script embarque dans le HTM. PHP essaye de
335 rendre simple aux developpeurs d'ecrire des pages web generees
336 dynamiquement. PHP incorpore egalement une integration avec plusieurs
337 systemes de gestion de bases de donnees commerciaux et
338 non-connerciaux, qui rent facile la creation de pages web liees avec
339 des bases de donnees. L'utilisation la plus commune de PHP est
340 probablement en remplacement de scripts CGI. Le module mod_php permet
341 au serveur web Apache de comprendre et de traiter le langage PHP
342 integre dans des pages web. Ce package contient PHP version
345 %description -l pl.UTF-8
346 PHP jest językiem skryptowym, którego polecenia umieszcza się w
347 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
348 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
349 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
350 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
351 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
352 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
353 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
356 %description -l pt_BR.UTF-8
357 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
358 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
359 com algumas características únicas, específicas ao PHP. O objetivo da
360 linguagem é permitir que desenvolvedores web escrevam páginas
361 dinamicamente geradas de forma rápida.
363 %description -l ru.UTF-8
364 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
365 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
366 для работы с базами данных относительно просто. Наиболее популярное
367 использование PHP - замена для CGI скриптов.
369 %description -l uk.UTF-8
370 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
371 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
372 роботи з базами даних є доволі простим. Найбільш популярне
373 використання PHP - заміна для CGI скриптів.
375 %package -n apache1-mod_%{name}
376 Summary: PHP DSO module for Apache 1.3.x
377 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
378 Group: Development/Languages/PHP
379 Requires(triggerpostun): sed >= 4.0
380 Requires: %{name}-common = %{epoch}:%{version}-%{release}
381 Requires: apache1(EAPI) >= 1.3.33-2
382 Requires: apache1-mod_mime
383 Provides: webserver(php) = %{version}
384 Obsoletes: apache-mod_php < 1:4.1.1
387 %description -n apache1-mod_%{name}
388 PHP as DSO module for Apache 1.3.x.
390 %description -n apache1-mod_%{name} -l pl.UTF-8
391 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
393 %package -n apache-mod_%{name}
394 Summary: PHP DSO module for Apache 2.x
395 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
396 Group: Development/Languages/PHP
397 Requires: %{name}-common = %{epoch}:%{version}-%{release}
398 Requires: apache(modules-api) = %{apache_modules_api}
399 Requires: apache-mod_mime
400 Provides: webserver(php) = %{version}
403 %description -n apache-mod_%{name}
404 PHP as DSO module for Apache 2.x.
406 %description -n apache-mod_%{name} -l pl.UTF-8
407 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
410 Summary: php as FastCGI program
411 Summary(pl.UTF-8): php jako program FastCGI
412 Group: Development/Languages/PHP
413 Requires: %{name}-common = %{epoch}:%{version}-%{release}
415 Provides: webserver(php) = %{version}
418 php as FastCGI program.
420 %description fcgi -l pl.UTF-8
421 php jako program FastCGI.
424 Summary: PHP as CGI/FastCGI program
425 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
426 Group: Development/Languages/PHP
427 Requires: %{name}-common = %{epoch}:%{version}-%{release}
429 Provides: webserver(php) = %{version}
430 %if "%{pld_release}" != "ac"
431 Conflicts: logrotate < 3.8.0
437 %description cgi -l pl.UTF-8
438 php jako program CGI.
441 Summary: PHP as CLI interpreter
442 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
443 Group: Development/Languages/PHP
444 Requires: %{name}-common = %{epoch}:%{version}-%{release}
447 PHP as CLI interpreter.
449 %description cli -l pl.UTF-8
450 PHP jako interpreter działający z linii poleceń.
453 Summary: /usr/bin/php symlink
454 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
455 Group: Development/Languages/PHP
456 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
457 Obsoletes: /usr/bin/php
460 Package providing /usr/bin/php symlink to PHP CLI.
462 %description program -l pl.UTF-8
463 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
466 Summary: PHP FastCGI Process Manager
467 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
468 Group: Development/Languages/PHP
469 URL: http://www.php-fpm.org/
470 Requires(post,preun): /sbin/chkconfig
471 Requires(postun): /usr/sbin/userdel
472 Requires(pre): /bin/id
473 Requires(pre): /usr/sbin/useradd
474 Requires: %{name}-common = %{epoch}:%{version}-%{release}
475 Requires: libevent >= 1.4.7-3
478 Provides: webserver(php) = %{version}
481 PHP FastCGI Process Manager.
483 %description fpm -l pl.UTF-8
484 PHP FastCGI Process Manager - zarządca procesów FastCGI.
487 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
488 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
489 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
490 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
492 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
493 Requires: glibc >= 6:2.3.5
494 Requires: php-dirs >= 1.4
495 Requires: rpm-whiteout >= 1.28
497 Provides: php(core) = %{version}
500 Provides: php(libxml)
501 %{?with_zend_multibyte:Provides: php(mbstring)}
502 Provides: php(modules_api) = %{php_api_version}
503 Provides: php(overload)
504 Provides: php(reflection)
505 Provides: php(standard)
506 Provides: php(zend_extension_api) = %{zend_extension_api}
507 Provides: php(zend_module_api) = %{zend_module_api}
511 %{?with_zend_multibyte:Provides: php-mbstring = %{epoch}:%{version}-%{release}}
512 Provides: php-overload
513 Provides: php-reflection
514 Provides: php-standard
515 Provides: php5(debug) = %{php_debug}
516 Provides: php5(thread-safety) = %{zend_zts}
517 # ensure backward compatibility for Titanium
518 # to be dropped in future but ask Titanium RM before doing so
519 %if "%{pld_release}" == "ti"
520 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
521 Requires: %{name}-session = %{epoch}:%{version}-%{release}
522 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
524 %if "%{pld_release}" == "ac"
525 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
526 Requires: %{name}-session = %{epoch}:%{version}-%{release}
527 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
529 Obsoletes: php-pecl-domxml
530 Conflicts: php-pecl-memcache < 3.0.4-2
531 Conflicts: php4-common < 3:4.4.4-8
532 Conflicts: rpm < 4.4.2-0.2
535 Common files needed by both Apache modules and CGI/CLI SAPI-s.
537 %description common -l pl.UTF-8
538 Wspólne pliki dla modułu Apache'a i programu CGI.
540 %description common -l ru.UTF-8
541 Этот пакет содержит общие файлы для разных вариантов реализации PHP
542 (самодостаточной и в качестве модуля Apache).
544 %description common -l uk.UTF-8
545 Цей пакет містить спільні файли для різних варіантів реалізації PHP
546 (самодостатньої та в якості модуля Apache).
549 Summary: Files for PHP modules development
550 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
551 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
552 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
553 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
554 Group: Development/Languages/PHP
555 Requires: %{name}-common = %{epoch}:%{version}-%{release}
558 %if "%{pld_release}" != "ac"
559 Requires: libtool >= 2:2.2
563 %{?with_pcre:Requires: pcre-devel >= 6.6}
566 Obsoletes: php-pear-devel
567 Obsoletes: php4-devel
568 Obsoletes: php53-devel
569 Obsoletes: php54-devel
572 The php-devel package lets you compile dynamic extensions to PHP.
573 Included here is the source for the PHP extensions. Instead of
574 recompiling the whole PHP binary to add support for, say, oracle,
575 install this package and use the new self-contained extensions
576 support. For more information, read the file
577 README.SELF-CONTAINED-EXTENSIONS.
579 %description devel -l pl.UTF-8
580 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
581 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
582 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
583 samodzielnych rozszerzeniach można znaleźć w pliku
584 README.SELF-CONTAINED-EXTENSIONS.
586 %description devel -l pt_BR.UTF-8
587 Este pacote contém arquivos usados no desenvolvimento de programas ou
590 %description devel -l ru.UTF-8
591 Пакет php-devel дает возможность компилировать динамические расширения
592 PHP. Пакет включает исходный код этих расширений. Вместо повторной
593 компиляции бинарного файла PHP для добавления, например, поддержки
594 oracle, установите этот пакет для компилирования отдельных расширений.
595 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
597 %description devel -l uk.UTF-8
598 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
599 До пакету включено вихідний код для розширень. Замість повторної
600 компіляції бінарного файлу PHP для додання, наприклад, підтримки
601 oracle, встановіть цей пакет для компіляції окремих розширень.
602 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
605 Summary: bcmath extension module for PHP
606 Summary(pl.UTF-8): Moduł bcmath dla PHP
608 URL: http://www.php.net/manual/en/book.bc.php
609 Requires: %{name}-common = %{epoch}:%{version}-%{release}
610 Provides: php(bcmath)
613 This is a dynamic shared object (DSO) for PHP that will add bc style
614 precision math functions support.
616 %description bcmath -l pl.UTF-8
617 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
618 matematycznych takich jak w programie bc.
621 Summary: Bzip2 extension module for PHP
622 Summary(pl.UTF-8): Moduł bzip2 dla PHP
624 URL: http://www.php.net/manual/en/book.bzip2.php
625 Requires: %{name}-common = %{epoch}:%{version}-%{release}
628 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
632 This is a dynamic shared object (DSO) for PHP that will add bzip2
633 compression support to PHP.
635 %description bz2 -l pl.UTF-8
636 Moduł PHP umożliwiający używanie kompresji bzip2.
639 Summary: Calendar extension module for PHP
640 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
642 URL: http://www.php.net/manual/en/book.calendar.php
643 Requires: %{name}-common = %{epoch}:%{version}-%{release}
644 Provides: php(calendar)
646 %description calendar
647 This is a dynamic shared object (DSO) for PHP that will add calendar
650 %description calendar -l pl.UTF-8
651 Moduł PHP dodający wsparcie dla kalendarza.
654 Summary: ctype extension module for PHP
655 Summary(pl.UTF-8): Moduł ctype dla PHP
657 URL: http://www.php.net/manual/en/book.ctype.php
658 Requires: %{name}-common = %{epoch}:%{version}-%{release}
662 This is a dynamic shared object (DSO) for PHP that will add ctype
665 %description ctype -l pl.UTF-8
666 Moduł PHP umożliwiający korzystanie z funkcji ctype.
669 Summary: curl extension module for PHP
670 Summary(pl.UTF-8): Moduł curl dla PHP
672 URL: http://www.php.net/manual/en/book.curl.php
673 Requires: %{name}-common = %{epoch}:%{version}-%{release}
677 This is a dynamic shared object (DSO) for PHP that will add curl
680 %description curl -l pl.UTF-8
681 Moduł PHP umożliwiający korzystanie z biblioteki curl.
684 Summary: DBA extension module for PHP
685 Summary(pl.UTF-8): Moduł DBA dla PHP
687 URL: http://www.php.net/manual/en/book.dba.php
688 Requires: %{name}-common = %{epoch}:%{version}-%{release}
692 This is a dynamic shared object (DSO) for PHP that will add flat-file
693 databases (DBA) support.
695 %description dba -l pl.UTF-8
696 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
700 Summary: DBase extension module for PHP
701 Summary(pl.UTF-8): Moduł DBase dla PHP
703 Requires: %{name}-common = %{epoch}:%{version}-%{release}
707 This is a dynamic shared object (DSO) for PHP that will add DBase
710 %description dbase -l pl.UTF-8
711 Moduł PHP ze wsparciem dla DBase.
714 Summary: DOM extension module for PHP
715 Summary(pl.UTF-8): Moduł DOM dla PHP
717 URL: http://www.php.net/manual/en/book.dom.php
718 Requires: %{name}-common = %{epoch}:%{version}-%{release}
720 # it has some compatibility functions
721 Provides: php(domxml)
722 Provides: php-domxml = %{epoch}:%{version}-%{release}
723 Obsoletes: php-domxml <= 3:4.3.8-1
726 This is a dynamic shared object (DSO) for PHP that will add new DOM
729 %description dom -l pl.UTF-8
730 Moduł PHP dodający nową obsługę DOM.
733 Summary: exif extension module for PHP
734 Summary(pl.UTF-8): Moduł exif dla PHP
736 URL: http://www.php.net/manual/en/book.exif.php
737 Requires: %{name}-common = %{epoch}:%{version}-%{release}
741 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
742 support in image files.
744 %description exif -l pl.UTF-8
745 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
748 Summary: FDF extension module for PHP
749 Summary(pl.UTF-8): Moduł FDF dla PHP
751 URL: http://www.php.net/manual/en/book.fdf.php
752 Requires: %{name}-common = %{epoch}:%{version}-%{release}
756 This PHP module adds support for PDF Forms through Adobe FDFTK
759 %description fdf -l pl.UTF-8
760 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
764 Summary: Extension for safely dealing with input parameters
765 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
767 URL: http://www.php.net/manual/en/book.filter.php
768 Requires: %{name}-common = %{epoch}:%{version}-%{release}
769 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
770 Provides: php(filter)
771 Obsoletes: php-pecl-filter
774 We all know that you should always check input variables, but PHP does
775 not offer really good functionality for doing this in a safe way. The
776 Input Filter extension is meant to address this issue by implementing
777 a set of filters and mechanisms that users can use to safely access
780 %description filter -l pl.UTF-8
781 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
782 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
783 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
784 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
785 mogą bezpiecznie używać do dostępu do danych.
788 Summary: FTP extension module for PHP
789 Summary(pl.UTF-8): Moduł FTP dla PHP
791 URL: http://www.php.net/manual/en/book.ftp.php
792 Requires: %{name}-common = %{epoch}:%{version}-%{release}
796 This is a dynamic shared object (DSO) for PHP that will add FTP
799 %description ftp -l pl.UTF-8
800 Moduł PHP dodający obsługę protokołu FTP.
803 Summary: GD extension module for PHP
804 Summary(pl.UTF-8): Moduł GD dla PHP
806 URL: http://www.php.net/manual/en/book.image.php
807 Requires: %{name}-common = %{epoch}:%{version}-%{release}
808 %if %{with system_gd}
809 Requires: gd >= 2.0.28-4
811 Requires: gd(imagerotate) = 5.2.0
816 This is a dynamic shared object (DSO) for PHP that will add GD
817 support, allowing you to create and manipulate images with PHP.
819 %description gd -l pl.UTF-8
820 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
821 tworzenie i obróbkę obrazków.
824 Summary: gettext extension module for PHP
825 Summary(pl.UTF-8): Moduł gettext dla PHP
827 URL: http://www.php.net/manual/en/book.gettext.php
828 Requires: %{name}-common = %{epoch}:%{version}-%{release}
829 Provides: php(gettext)
832 This is a dynamic shared object (DSO) for PHP that will add gettext
835 %description gettext -l pl.UTF-8
836 Moduł PHP dodający obsługę lokalizacji przez gettext.
839 Summary: gmp extension module for PHP
840 Summary(pl.UTF-8): Moduł gmp dla PHP
842 URL: http://www.php.net/manual/en/book.gmp.php
843 Requires: %{name}-common = %{epoch}:%{version}-%{release}
847 This is a dynamic shared object (DSO) for PHP that will add arbitrary
848 length number support with GNU MP library.
850 %description gmp -l pl.UTF-8
851 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
852 liczbach o dowolnej długości.
855 Summary: HASH Message Digest Framework
856 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
858 URL: http://www.php.net/manual/en/book.gmp.php
859 Requires: %{name}-common = %{epoch}:%{version}-%{release}
861 Obsoletes: php-pecl-hash
864 Native implementations of common message digest algorithms using a
865 generic factory method.
867 %description hash -l pl.UTF-8
868 Natywne implementacje popularnych algorytmów obliczania skrótów
869 wiadomości przy użyciu wspólnego interfejsu.
872 Summary: iconv extension module for PHP
873 Summary(pl.UTF-8): Moduł iconv dla PHP
875 URL: http://www.php.net/manual/en/book.iconv.php
876 Requires: %{_libdir}/gconv
877 Requires: %{name}-common = %{epoch}:%{version}-%{release}
882 This is a dynamic shared object (DSO) for PHP that will add iconv
885 %description iconv -l pl.UTF-8
886 Moduł PHP dodający obsługę iconv.
889 Summary: IMAP extension module for PHP
890 Summary(pl.UTF-8): Moduł IMAP dla PHP
891 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
893 URL: http://www.php.net/manual/en/book.imap.php
894 Requires: %{name}-common = %{epoch}:%{version}-%{release}
898 This is a dynamic shared object (DSO) for PHP that will add IMAP
901 %description imap -l pl.UTF-8
902 Moduł PHP dodający obsługę skrzynek IMAP.
904 %description imap -l pt_BR.UTF-8
905 Um módulo para aplicações PHP que usam IMAP.
908 Summary: InterBase/Firebird database module for PHP
909 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
911 URL: http://www.php.net/manual/en/book.ibase.php
912 Requires: %{name}-common = %{epoch}:%{version}-%{release}
913 Provides: php(interbase)
914 %{?with_interbase_inst:Autoreq: false}
916 %description interbase
917 This is a dynamic shared object (DSO) for PHP that will add InterBase
918 and Firebird database support.
920 %description interbase -l pl.UTF-8
921 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
924 Summary: PHP C extension for JSON serialization
925 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
927 URL: http://www.php.net/manual/en/book.json.php
928 Requires: %{name}-common = %{epoch}:%{version}-%{release}
930 Obsoletes: php-pecl-json
933 php-json is an extremely fast PHP C extension for JSON (JavaScript
934 Object Notation) serialisation.
936 %description json -l pl.UTF-8
937 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
938 (JavaScript Object Notation).
941 Summary: LDAP extension module for PHP
942 Summary(pl.UTF-8): Moduł LDAP dla PHP
943 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
945 URL: http://www.php.net/manual/en/book.ldap.php
946 Requires: %{name}-common = %{epoch}:%{version}-%{release}
950 This is a dynamic shared object (DSO) for PHP that will add LDAP
953 %description ldap -l pl.UTF-8
954 Moduł PHP dodający obsługę LDAP.
956 %description ldap -l pt_BR.UTF-8
957 Um módulo para aplicações PHP que usam LDAP.
960 Summary: mbstring extension module for PHP
961 Summary(pl.UTF-8): Moduł mbstring dla PHP
963 URL: http://www.php.net/manual/en/book.mbstring.php
964 Requires: %{name}-common = %{epoch}:%{version}-%{release}
965 Provides: php(mbstring)
967 %description mbstring
968 This is a dynamic shared object (DSO) for PHP that will add multibyte
971 %description mbstring -l pl.UTF-8
972 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
975 Summary: mcrypt extension module for PHP
976 Summary(pl.UTF-8): Moduł mcrypt dla PHP
978 URL: http://www.php.net/manual/en/book.mcrypt.php
979 Requires: %{name}-common = %{epoch}:%{version}-%{release}
980 Provides: php(mcrypt)
983 This is a dynamic shared object (DSO) for PHP that will add mcrypt
986 %description mcrypt -l pl.UTF-8
987 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
990 Summary: mhash extension module for PHP
991 Summary(pl.UTF-8): Moduł mhash dla PHP
993 Requires: %{name}-common = %{epoch}:%{version}-%{release}
997 This is a dynamic shared object (DSO) for PHP that will add mhash
1000 %description mhash -l pl.UTF-8
1001 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1004 Summary: mime_magic extension module for PHP
1005 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1007 Requires: %{magic_mime}
1008 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1009 Provides: php(mime_magic)
1011 %description mime_magic
1012 This PHP module adds support for MIME type lookup via file magic
1013 numbers using magic.mime database.
1015 %description mime_magic -l pl.UTF-8
1016 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1017 znaczników plików z użyciem bazy danych magic.mime.
1020 Summary: ming extension module for PHP
1021 Summary(pl.UTF-8): Moduł ming dla PHP
1023 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1024 Requires: ming >= 0.3
1028 This is a dynamic shared object (DSO) for PHP that will add ming
1029 (Flash - .swf files) support.
1031 %description ming -l pl.UTF-8
1032 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1036 Summary: MS SQL extension module for PHP
1037 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1039 URL: http://www.php.net/manual/en/book.mssql.php
1040 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1041 Provides: php(mssql)
1044 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1045 databases support through FreeTDS library.
1047 %description mssql -l pl.UTF-8
1048 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1052 Summary: MySQL database module for PHP
1053 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1054 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1056 URL: http://www.php.net/manual/en/book.mysql.php
1057 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1058 Provides: php(mysql)
1061 This is a dynamic shared object (DSO) for PHP that will add MySQL
1064 %description mysql -l pl.UTF-8
1065 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1067 %description mysql -l pt_BR.UTF-8
1068 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1071 Summary: MySQLi module for PHP
1072 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1074 URL: http://www.php.net/manual/en/book.mysqli.php
1075 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1076 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1077 Requires: mysql-libs >= 4.1.0
1078 Provides: php(mysqli)
1081 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1082 (Improved MySQL) support. The difference between it and mysql module
1083 is that it provides access to functionality of MySQL 4.1 and above.
1085 %description mysqli -l pl.UTF-8
1086 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1087 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1088 MySQL w wersji 4.1 i nowszych.
1091 Summary: ncurses module for PHP
1092 Summary(pl.UTF-8): Moduł ncurses dla PHP
1094 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1095 Provides: php(ncurses)
1097 %description ncurses
1098 This PHP module adds support for ncurses functions (only for cli and
1101 %description ncurses -l pl.UTF-8
1102 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1105 Summary: Oracle 8+ database module for PHP
1106 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1108 URL: http://www.php.net/manual/en/book.oci8.php
1109 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1114 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1115 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1117 %description oci8 -l pl.UTF-8
1118 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1119 poprzez interfejs Oracle8 Call-Interface (OCI8).
1122 Summary: ODBC extension module for PHP
1123 Summary(pl.UTF-8): Moduł ODBC dla PHP
1124 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1126 URL: http://www.php.net/manual/en/book.uodbc.php
1127 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1128 Requires: unixODBC >= 2.1.1-3
1132 This is a dynamic shared object (DSO) for PHP that will add ODBC
1135 %description odbc -l pl.UTF-8
1136 Moduł PHP ze wsparciem dla ODBC.
1138 %description odbc -l pt_BR.UTF-8
1139 Um módulo para aplicações PHP que usam ODBC.
1142 Summary: OpenSSL extension module for PHP
1143 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1145 URL: http://www.php.net/manual/en/book.openssl.php
1146 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1147 Provides: php(openssl)
1149 %description openssl
1150 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1153 %description openssl -l pl.UTF-8
1154 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1157 Summary: Process Control extension module for PHP
1158 Summary(pl.UTF-8): Moduł Process Control dla PHP
1160 URL: http://www.php.net/manual/en/book.pcntl.php
1161 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1162 Provides: php(pcntl)
1165 This is a dynamic shared object (DSO) for PHP that will add process
1166 spawning and control support. It supports functions like fork(),
1167 waitpid(), signal() etc.
1169 %description pcntl -l pl.UTF-8
1170 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1171 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1174 Summary: PCRE extension module for PHP
1175 Summary(pl.UTF-8): Moduł PCRE dla PHP
1177 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1181 This is a dynamic shared object (DSO) for PHP that will add Perl
1182 Compatible Regular Expression support.
1184 %description pcre -l pl.UTF-8
1185 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1186 (Perl Compatible Regular Expressions)
1189 Summary: PHP Data Objects (PDO)
1190 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1192 URL: http://www.php.net/manual/en/book.pdo.php
1193 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1194 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1196 Obsoletes: php-pecl-PDO
1199 This is a dynamic shared object (DSO) for PHP that will add PDO
1202 %description pdo -l pl.UTF-8
1203 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1206 Summary: PHP Data Objects (PDO) FreeTDS support
1207 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1209 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1210 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1211 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1212 Provides: php(dblib)
1214 %description pdo-dblib
1215 This is a dynamic shared object (DSO) for PHP that will add PDO
1218 %description pdo-dblib -l pl.UTF-8
1219 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1222 %package pdo-firebird
1223 Summary: PHP Data Objects (PDO) Firebird support
1224 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1226 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1227 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1228 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1229 Provides: php(pdo-firebird)
1230 Obsoletes: php-pecl-PDO_FIREBIRD
1232 %description pdo-firebird
1233 This is a dynamic shared object (DSO) for PHP that will add PDO
1236 %description pdo-firebird -l pl.UTF-8
1237 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1241 Summary: PHP Data Objects (PDO) MySQL support
1242 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1244 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1245 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1246 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1247 Provides: php(pdo-mysql)
1248 Obsoletes: php-pecl-PDO_MYSQL
1250 %description pdo-mysql
1251 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1254 %description pdo-mysql -l pl.UTF-8
1255 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1259 Summary: PHP Data Objects (PDO) Oracle support
1260 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1262 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1263 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1264 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1265 Provides: php(pdo-oci)
1266 Obsoletes: php-pecl-PDO_OCI
1268 %description pdo-oci
1269 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1272 %description pdo-oci -l pl.UTF-8
1273 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1277 Summary: PHP Data Objects (PDO) ODBC support
1278 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1280 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1281 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1282 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1283 Provides: php(pdo-odbc)
1284 Obsoletes: php-pecl-PDO_ODBC
1286 %description pdo-odbc
1287 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1290 %description pdo-odbc -l pl.UTF-8
1291 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1295 Summary: PHP Data Objects (PDO) PostgreSQL support
1296 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1298 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1299 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1300 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1301 Provides: php(pdo-pgsql)
1302 Provides: php-pecl-PDO_PGSQL
1303 Obsoletes: php-pecl-PDO_PGSQL
1305 %description pdo-pgsql
1306 This is a dynamic shared object (DSO) for PHP that will add PDO
1309 %description pdo-pgsql -l pl.UTF-8
1310 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1314 Summary: PHP Data Objects (PDO) SQLite support
1315 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1317 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1318 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1319 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1320 Provides: php(pdo-sqlite)
1321 Obsoletes: php-pecl-PDO_SQLITE
1323 %description pdo-sqlite
1324 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1327 %description pdo-sqlite -l pl.UTF-8
1328 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1332 Summary: PostgreSQL database module for PHP
1333 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1335 URL: http://www.php.net/manual/en/book.pgsql.php
1336 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1337 Provides: php(pgsql)
1340 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1343 %description pgsql -l pl.UTF-8
1344 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1346 %description pgsql -l pt_BR.UTF-8
1347 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1350 Summary: POSIX extension module for PHP
1351 Summary(pl.UTF-8): Moduł POSIX dla PHP
1353 URL: http://www.php.net/manual/en/book.posix.php
1354 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1355 Provides: php(posix)
1358 This is a dynamic shared object (DSO) for PHP that will add POSIX
1359 functions support to PHP.
1361 %description posix -l pl.UTF-8
1362 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1365 Summary: pspell extension module for PHP
1366 Summary(pl.UTF-8): Moduł pspell dla PHP
1368 URL: http://www.php.net/manual/en/book.pspell.php
1369 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1370 Provides: php(pspell)
1373 This is a dynamic shared object (DSO) for PHP that will add pspell
1374 support to PHP. It allows to check the spelling of a word and offer
1377 %description pspell -l pl.UTF-8
1378 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1379 sprawdzanie pisowni słowa i sugerowanie poprawek.
1382 Summary: readline extension module for PHP
1383 Summary(pl.UTF-8): Moduł readline dla PHP
1385 URL: http://www.php.net/manual/en/book.readline.php
1386 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1387 Provides: php(readline)
1389 %description readline
1390 This PHP module adds support for readline functions (only for cli and
1393 %description readline -l pl.UTF-8
1394 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1397 Summary: recode extension module for PHP
1398 Summary(pl.UTF-8): Moduł recode dla PHP
1400 URL: http://www.php.net/manual/en/book.recode.php
1401 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1402 Requires: recode >= 3.5d-3
1403 Provides: php(recode)
1406 This is a dynamic shared object (DSO) for PHP that will add recode
1409 %description recode -l pl.UTF-8
1410 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1414 Summary: session extension module for PHP
1415 Summary(pl.UTF-8): Moduł session dla PHP
1417 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1418 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1419 Provides: php(session)
1421 %description session
1422 This is a dynamic shared object (DSO) for PHP that will add session
1425 %description session -l pl.UTF-8
1426 Moduł PHP dodający obsługę sesji.
1429 Summary: Shared Memory Operations extension module for PHP
1430 Summary(pl.UTF-8): Moduł shmop dla PHP
1432 URL: http://www.php.net/manual/en/book.shmop.php
1433 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1434 Provides: php(shmop)
1437 This is a dynamic shared object (DSO) for PHP that will add Shared
1438 Memory Operations support.
1440 %description shmop -l pl.UTF-8
1441 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1444 Summary: Simple XML extension module for PHP
1445 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1447 URL: http://www.php.net/manual/en/book.simplexml.php
1448 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1449 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1450 Provides: php(simplexml)
1452 %description simplexml
1453 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1456 %description simplexml -l pl.UTF-8
1457 Moduł PHP dodający obsługę prostego XML-a.
1460 Summary: SNMP extension module for PHP
1461 Summary(pl.UTF-8): Moduł SNMP dla PHP
1463 URL: http://www.php.net/manual/en/book.snmp.php
1464 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1465 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1469 This is a dynamic shared object (DSO) for PHP that will add SNMP
1472 %description snmp -l pl.UTF-8
1473 Moduł PHP dodający obsługę SNMP.
1476 Summary: soap extension module for PHP
1477 Summary(pl.UTF-8): Moduł soap dla PHP
1479 URL: http://www.php.net/manual/en/book.soap.php
1480 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1484 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1487 %description soap -l pl.UTF-8
1488 Moduł PHP dodający obsługę SOAP/WSDL.
1491 Summary: sockets extension module for PHP
1492 Summary(pl.UTF-8): Moduł socket dla PHP
1494 URL: http://www.php.net/manual/en/book.sockets.php
1495 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1496 Provides: php(sockets)
1498 %description sockets
1499 This is a dynamic shared object (DSO) for PHP that will add sockets
1502 %description sockets -l pl.UTF-8
1503 Moduł PHP dodający obsługę gniazdek.
1506 Summary: Standard PHP Library module for PHP
1507 Summary(pl.UTF-8): Moduł SPL dla PHP
1509 URL: http://php.net/manual/en/book.spl.php
1510 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1511 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1512 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1516 This is a dynamic shared object (DSO) for PHP that will add Standard
1517 PHP Library support.
1519 %description spl -l pl.UTF-8
1520 Moduł PHP dodający obsługę gniazdek.
1523 Summary: SQLite extension module for PHP
1524 Summary(pl.UTF-8): Moduł SQLite dla PHP
1526 URL: http://www.php.net/manual/en/book.sqlite.php
1527 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1528 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1529 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1530 Provides: php(sqlite)
1533 SQLite is a C library that implements an embeddable SQL database
1534 engine. Programs that link with the SQLite library can have SQL
1535 database access without running a separate RDBMS process.
1537 SQLite is not a client library used to connect to a big database
1538 server. SQLite is the server. The SQLite library reads and writes
1539 directly to and from the database files on disk.
1541 %description sqlite -l pl.UTF-8
1542 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1543 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1544 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1547 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1548 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1549 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1553 Summary: Sybase DB extension module for PHP
1554 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1556 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1557 Provides: php(sybase)
1558 Obsoletes: php-sybase-ct
1559 Conflicts: php-sybase-ct
1562 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1563 MS SQL databases support through SYBDB library. Currently Sybase
1564 module is not maintained. Using Sybase-CT module is recommended
1567 %description sybase -l pl.UTF-8
1568 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1569 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1570 Zaleca się używanie modułu Sybase-CT.
1573 Summary: Sybase-CT extension module for PHP
1574 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1576 URL: http://www.php.net/manual/en/book.sybase.php
1577 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1578 Provides: php(sybase-ct)
1579 Obsoletes: php-sybase
1580 Conflicts: php-sybase
1582 %description sybase-ct
1583 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1584 MS SQL databases support through CT-lib.
1586 %description sybase-ct -l pl.UTF-8
1587 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1591 Summary: SysV msg extension module for PHP
1592 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1594 URL: http://www.php.net/manual/en/book.sem.php
1595 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1596 Provides: php(sysvmsg)
1598 %description sysvmsg
1599 This is a dynamic shared object (DSO) for PHP that will add SysV
1600 message queues support.
1602 %description sysvmsg -l pl.UTF-8
1603 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1606 Summary: SysV sem extension module for PHP
1607 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1609 URL: http://www.php.net/manual/en/book.sem.php
1610 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1611 Provides: php(sysvsem)
1613 %description sysvsem
1614 This is a dynamic shared object (DSO) for PHP that will add SysV
1617 %description sysvsem -l pl.UTF-8
1618 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1621 Summary: SysV shm extension module for PHP
1622 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1624 URL: http://www.php.net/manual/en/book.shmop.php
1625 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1626 Provides: php(sysvshm)
1628 %description sysvshm
1629 This is a dynamic shared object (DSO) for PHP that will add SysV
1630 Shared Memory support.
1632 %description sysvshm -l pl.UTF-8
1633 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1636 Summary: Contains unit test files for PHP and extensions
1637 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1639 URL: http://qa.php.net/
1640 Requires: %{name}-cli
1643 This package contains unit tests for PHP and it's extensions.
1645 %description tests -l pl.UTF-8
1646 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1649 Summary: Tidy extension module for PHP
1650 Summary(pl.UTF-8): Moduł Tidy dla PHP
1652 URL: http://www.php.net/manual/en/book.tidy.php
1653 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1658 This is a dynamic shared object (DSO) for PHP that will add Tidy
1661 %description tidy -l pl.UTF-8
1662 Moduł PHP umożliwiający korzystanie z tidy.
1665 Summary: tokenizer extension module for PHP
1666 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1668 URL: http://www.php.net/manual/en/book.tokenizer.php
1669 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1670 Provides: php(tokenizer)
1672 %description tokenizer
1673 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1676 %description tokenizer -l pl.UTF-8
1677 Moduł PHP dodający obsługę tokenizera do PHP.
1680 Summary: wddx extension module for PHP
1681 Summary(pl.UTF-8): Moduł wddx dla PHP
1683 URL: http://www.php.net/manual/en/book.wddx.php
1684 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1685 # - wddx doesn't require session as it's disabled at compile time:
1686 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1687 # see also php.spec#rev1.120.2.22
1688 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1689 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1693 This is a dynamic shared object (DSO) for PHP that will add wddx
1696 %description wddx -l pl.UTF-8
1697 Moduł PHP umożliwiający korzystanie z wddx.
1700 Summary: XML extension module for PHP
1701 Summary(pl.UTF-8): Moduł XML dla PHP
1703 URL: http://www.php.net/manual/en/book.xml.php
1704 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1708 This is a dynamic shared object (DSO) for PHP that will add XML
1709 support. This extension lets you create XML parsers and then define
1710 handlers for different XML events.
1712 %description xml -l pl.UTF-8
1713 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1714 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1715 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1718 Summary: XML Reader extension module for PHP
1719 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1721 URL: http://www.php.net/manual/en/book.xmlreader.php
1722 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1723 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1724 Provides: php(xmlreader)
1726 %description xmlreader
1727 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1728 support. The XMLReader extension is an XML Pull parser. The reader
1729 acts as a cursor going forward on the document stream and stopping at
1730 each node on the way.
1732 %description xmlreader -l pl.UTF-8
1733 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1734 działa jako kursor przechodzący przez strumień dokumentu i
1735 zatrzymujący się na każdym węźle po drodze.
1738 Summary: xmlrpc extension module for PHP
1739 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1741 URL: http://www.php.net/manual/en/book.xmlrpc.php
1742 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1743 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1744 Provides: php(xmlrpc)
1747 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1750 %description xmlrpc -l pl.UTF-8
1751 Moduł PHP dodający obsługę XMLRPC.
1754 Summary: Fast, non-cached, forward-only means to write XML data
1755 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1757 URL: http://www.php.net/manual/en/book.xmlwriter.php
1758 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1759 Provides: php(xmlwriter)
1760 Obsoletes: php-pecl-xmlwriter
1762 %description xmlwriter
1763 This extension wraps the libxml xmlWriter API. Represents a writer
1764 that provides a non-cached, forward-only means of generating streams
1765 or files containing XML data.
1767 %description xmlwriter -l pl.UTF-8
1768 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1769 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1770 plików zawierających dane XML.
1773 Summary: xsl extension module for PHP
1774 Summary(pl.UTF-8): Moduł xsl dla PHP
1776 URL: http://www.php.net/manual/en/book.xsl.php
1777 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1778 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1779 Requires: libxslt >= 1.0.18
1780 # actually not true, functionality is similar, but API differs
1782 Obsoletes: php-xslt <= 3:4.3.8-1
1785 This is a dynamic shared object (DSO) for PHP that will add new XSL
1786 support (using libxslt).
1788 %description xsl -l pl.UTF-8
1789 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1792 Summary: Zip management extension
1793 Summary(pl.UTF-8): Zarządzanie archiwami zip
1795 URL: http://www.php.net/manual/en/book.zip.php
1796 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1798 Obsoletes: php-pecl-zip
1799 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1802 Zip is an extension to create, modify and read zip files.
1804 %description zip -l pl.UTF-8
1805 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1806 odczyt archiwów zip.
1809 Summary: Zlib extension module for PHP
1810 Summary(pl.UTF-8): Moduł zlib dla PHP
1812 URL: http://www.php.net/manual/en/book.zlib.php
1813 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1817 This is a dynamic shared object (DSO) for PHP that will add zlib
1818 compression support to PHP.
1820 %description zlib -l pl.UTF-8
1821 Moduł PHP umożliwiający używanie kompresji zlib.
1824 %setup -q -n %{orgname}-%{version}
1827 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1840 cp php.ini-dist php.ini
1842 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1852 %if %{with system_gd}
1861 %{?with_versioning:%patch25 -p1}
1864 %{__tar} jxf %{SOURCE9}
1865 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1866 mv $v/$v gentoo-patchset
1867 for a in gentoo-patchset/*.patch; do
1880 %if "%{pld_release}" != "ac"
1885 # mysql default charset for mysql/mysql/pdo-mysql extensions
1917 %{?with_system_libzip:%patch65 -p1}
1924 # Bugfix backport from 5.3.6
1925 %patch311 -p1 -b .bug-47435
1926 %patch314 -p1 -b .bug-39199
1927 # Bugfix backport from 5.3.7
1928 #accert %patch333 -p1 -b .bug-54924
1929 #soap %patch355 -p1 -b .bug-55323
1930 # causes regression -> magic_quotes_gpc setting cannot be changed
1931 #%%patch402 -p1 -b .bug-323016
1933 # conflict seems to be resolved by recode patches
1934 rm -f ext/recode/config9.m4
1936 # remove all bundled libraries not to link with them accidentally
1937 #rm -rf ext/sqlite/libsqlite
1938 #rm -rf ext/bcmath/libbcmath
1939 #rm -rf ext/date/lib
1940 #rm -rf ext/dba/libcdb
1941 #rm -rf ext/dba/libflatfile
1942 #rm -rf ext/dba/libinifile
1943 #rm -rf ext/gd/libgd
1944 #rm -rf ext/mbstring/libmbfl
1945 #rm -rf ext/mbstring/oniguruma
1946 rm -rf ext/pcre/pcrelib
1947 rm -rf ext/pdo_sqlite/sqlite
1948 #rm -rf ext/soap/interop
1949 %if %{with system_xmlrpc_epi}
1950 rm -rf ext/xmlrpc/libxmlrpc
1954 # this test hungs on ac-ppc
1955 #mv ext/reflection/tests/007.php{,ignore}
1956 # this test gets killed by itself
1957 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1960 cp -af Zend/LICENSE{,.Zend}
1961 install -p %{SOURCE13} dep-tests.sh
1963 # disable broken tests
1964 # says just "Terminated" twice and fails
1965 mv sapi/cli/tests/022.phpt{,.broken}
1967 sh -xe %{_sourcedir}/skip-tests.sh
1970 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1971 if [ $API != %{php_api_version} ]; then
1972 echo "Set %%define php_api_version to $API and re-run."
1976 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1977 if [ $API != %{zend_module_api} ]; then
1978 echo "Set %%define zend_module_api to $API and re-run."
1982 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1983 if [ $API != %{zend_extension_api} ]; then
1984 echo "Set %%define zend_extension_api to $API and re-run."
1988 export EXTENSION_DIR="%{php_extensiondir}"
1989 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1990 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1993 cp -f /usr/share/automake/config.* .
1997 export PROG_SENDMAIL="/usr/lib/sendmail"
2014 for sapi in $sapis; do
2016 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2021 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2024 sapi_args='--disable-cgi'
2027 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2030 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2033 ver=$(rpm -q --qf '%{V}' apache1-devel)
2034 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
2037 ver=$(rpm -q --qf '%{V}' apache-devel)
2038 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
2044 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2045 --cache-file=config.cache \
2047 --with-libdir=%{_lib} \
2048 --with-config-file-path=%{_sysconfdir} \
2049 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2050 --with-exec-dir=%{_bindir} \
2051 --with-system-tzdata \
2052 --%{!?debug:dis}%{?debug:en}able-debug \
2053 %{?with_zts:--enable-maintainer-zts} \
2054 %{?with_suhosin:--enable-suhosin} \
2055 %{?with_zend_multibyte:--enable-zend-multibyte} \
2056 --enable-inline-optimization \
2057 --enable-bcmath=shared \
2058 --enable-calendar=shared \
2059 --enable-ctype=shared \
2060 --enable-dba=shared \
2061 --enable-dom=shared \
2062 --enable-exif=shared \
2063 --enable-ftp=shared \
2064 --enable-gd-native-ttf \
2065 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2067 --enable-magic-quotes \
2068 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2070 --enable-pcntl=shared \
2071 --enable-pdo=shared \
2072 --enable-json=shared \
2073 --enable-hash=shared \
2074 --enable-xmlwriter=shared \
2076 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2077 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2078 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2080 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2081 --with-pdo-dblib=shared \
2083 %if %{with interbase} && !%{with interbase_inst}
2084 --with-pdo-firebird=shared,/usr \
2086 --with-pdo-mysql=shared \
2087 %{?with_oci8:--with-pdo-oci=shared} \
2088 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2089 %{?with_pgsql:--with-pdo-pgsql=shared} \
2090 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2091 --enable-posix=shared \
2092 --enable-reflection \
2094 --enable-session=shared \
2095 --enable-shmop=shared \
2096 --enable-simplexml=shared \
2097 --enable-spl=shared \
2098 --enable-sysvmsg=shared \
2099 --enable-sysvsem=shared \
2100 --enable-sysvshm=shared \
2101 --enable-safe-mode \
2102 --enable-soap=shared \
2103 --enable-sockets=shared \
2104 --enable-tokenizer=shared \
2105 --enable-ucd-snmp-hack \
2106 %{?with_wddx:--enable-wddx=shared} \
2107 --enable-xml=shared \
2108 --enable-xmlreader=shared \
2110 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2112 --enable-dbase=shared \
2113 --without-libexpat-dir \
2114 %{?with_fdf:--with-fdftk=shared} \
2115 --with-iconv=shared \
2116 --with-freetype-dir=shared \
2117 --with-gettext=shared \
2118 --with-gd=shared%{?with_system_gd:,/usr} \
2121 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2122 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2123 --with-jpeg-dir=/usr \
2124 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2125 --with-mcrypt=shared \
2126 %{?with_mhash:--with-mhash=shared} \
2127 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2128 %{?with_ming:--with-ming=shared} \
2129 %{?with_mm:--with-mm} \
2130 %{?with_mssql:--with-mssql=shared} \
2131 --with-mysql=shared,/usr \
2132 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2133 %{?with_mysqli:--with-mysqli=shared} \
2134 --with-ncurses=shared \
2135 %{?with_oci8:--with-oci8=shared} \
2136 %{?with_openssl:--with-openssl=shared} \
2138 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2139 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2140 --with-pear=%{php_pear_dir} \
2141 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2142 --with-png-dir=/usr \
2143 %{?with_pspell:--with-pspell=shared} \
2144 --with-readline=shared \
2145 %{?with_recode:--with-recode=shared} \
2147 %{?with_snmp:--with-snmp=shared} \
2148 %{?with_sybase:--with-sybase=shared,/usr} \
2149 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2150 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2151 --with-t1lib=shared \
2152 %{?with_tidy:--with-tidy=shared} \
2153 %{?with_odbc:--with-unixODBC=shared,/usr} \
2154 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2156 --with-zlib=shared \
2157 --with-zlib-dir=shared,/usr \
2158 %{?with_system_libzip:--with-libzip} \
2159 --enable-zip=shared,/usr \
2161 cp -f Makefile Makefile.$sapi
2162 cp -f main/php_config.h php_config.h.$sapi
2163 cp -f config.log config.log.$sapi
2166 # as we build each SAPI in own make, adjust php-config.in forehead
2167 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2168 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2170 # must make this first, so modules can link against it.
2171 %{__make} libphp_common.la
2172 %{__make} build-modules
2175 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2179 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2183 cp -af php_config.h.cgi main/php_config.h
2184 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2185 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2186 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2190 cp -af php_config.h.fcgi main/php_config.h
2191 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2192 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2193 cp -r sapi/cgi sapi/fcgi
2194 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2198 cp -af php_config.h.fpm main/php_config.h
2199 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2200 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2201 cp -r sapi/cgi sapi/fpm
2202 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2206 cp -af php_config.h.cli main/php_config.h
2207 %{__make} sapi/cli/php -f Makefile.cli
2208 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2210 # check for stupid xml parse breakage where < and > just get lost in parse result
2211 ./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"]));'
2213 # Generate stub .ini files for each extension
2216 generate_inifiles() {
2217 for so in modules/*.so; do
2218 mod=$(basename $so .so)
2220 # xml needs to be loaded before wddx
2221 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2222 # pre needs to be loaded before SPL
2223 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2224 # spl needs to be loaded before mysqli
2225 [ "$mod" = "spl" ] && conf="SPL.ini"
2226 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2227 [ "$mod" = "session" ] && conf="Session.ini"
2229 cat > conf.d/$conf <<-EOF
2230 ; Enable $mod extension module
2237 # Check that the module inner-dependencies are intact
2238 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2239 if grep -v OK dep-tests.log; then
2240 echo >&2 "The results above were not expected"
2241 # TEMP: ac-i386 builder is broken
2249 # Run tests, using the CLI SAPI
2250 cp -af php_config.h.cli main/php_config.h
2251 cp -af Makefile.cli Makefile
2252 # sybase modules collide, remove one
2253 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2255 cat <<'EOF' > run-tests.sh
2257 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2258 unset TZ LANG LC_ALL || :
2261 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2262 RUN_TESTS_SETTINGS="-q $*"
2264 chmod +x run-tests.sh
2265 ./run-tests.sh -w failed.log -s test.log
2267 # collect failed tests into cleanup script used in prep.
2268 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2269 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2270 >> %{_sourcedir}/skip-tests.sh
2272 failed=$(wc -l < tests-failed.log)
2273 if [ "$failed" != 0 ]; then
2279 rm -rf $RPM_BUILD_ROOT
2280 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2281 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2282 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2283 $RPM_BUILD_ROOT%{_mandir}/man1 \
2285 # install the Apache modules' files
2286 %{__make} install-headers install-build install-modules install-programs \
2287 INSTALL_ROOT=$RPM_BUILD_ROOT
2289 # install Apache1 DSO module
2291 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2292 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-%{version}}.so
2293 ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2296 # install Apache2 DSO module
2298 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2299 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-%{version}}.so
2300 ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2303 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2304 # fix install paths, avoid evil rpaths
2305 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2307 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2310 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2314 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2319 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2320 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2321 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2322 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2323 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2324 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2325 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2326 %if "%{pld_release}" == "ac"
2327 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2331 s#/usr/lib/php#%{php_extensiondir}#
2332 s#/etc/php#%{_sysconfdir}#
2333 s#@processname@#%{name}-fpm#g
2334 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2338 # without suffix, install as php.cli
2339 %if "%{?php_suffix}" == ""
2340 %define phpfn %{name}.cli
2342 %define phpfn %{name}
2344 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2345 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2346 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2347 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2348 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2350 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2352 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2354 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2355 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2356 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2359 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2360 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2361 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2365 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2366 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2367 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2370 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2371 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2373 # ensure that paths are correct for current php version and arch
2374 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2376 s#/usr/lib/php#%{php_extensiondir}#g
2377 s#/etc/php#%{_sysconfdir}#g
2380 # per SAPI ini directories
2381 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2384 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2386 # use system automake and {lib,sh}tool
2387 %if "%{pld_release}" != "ac"
2388 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2389 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2390 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2392 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2394 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2395 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2397 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2399 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2400 # isn't installed by install-headers make target, we do it manually here.
2401 # this header file is required by e.g. filter PECL extension
2402 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2403 # for php-pecl-mailparse
2404 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2405 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2408 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2409 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2410 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2413 rm -rf $RPM_BUILD_ROOT
2415 %post -n apache1-mod_%{name}
2416 if [ "$1" = "1" ]; then
2417 %service -q apache restart
2420 %postun -n apache1-mod_%{name}
2421 if [ "$1" = "0" ]; then
2422 %service -q apache restart
2425 %post -n apache-mod_%{name}
2426 if [ "$1" = "1" ]; then
2427 %service -q httpd restart
2430 %postun -n apache-mod_%{name}
2431 if [ "$1" = "0" ]; then
2432 %service -q httpd restart
2436 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2439 /sbin/chkconfig --add %{name}-fpm
2440 %service %{name}-fpm restart
2443 if [ "$1" = 0 ]; then
2444 %service %{name}-fpm stop
2445 /sbin/chkconfig --del %{name}-fpm
2449 if [ "$1" = "0" ]; then
2453 %post common -p /sbin/ldconfig
2454 %postun common -p /sbin/ldconfig
2457 # minimizing apache restarts logics. we restart webserver:
2459 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2460 # 2. first install of extension (post: $1 = 1)
2461 # 2. uninstall of extension (postun: $1 == 0)
2463 # the strict internal deps between extensions (and apache modules) and
2464 # common package are very important for all this to work.
2466 # restart webserver at the end of transaction
2467 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2468 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2470 # common macros called at extension post/postun scriptlet
2471 %define extension_scripts() \
2473 if [ "$1" = "1" ]; then \
2474 %php_webserver_restart \
2478 if [ "$1" = "0" ]; then \
2479 %php_webserver_restart \
2483 # extension scripts defines
2484 %extension_scripts bcmath
2485 %extension_scripts bz2
2486 %extension_scripts calendar
2487 %extension_scripts ctype
2488 %extension_scripts curl
2489 %extension_scripts dba
2490 %extension_scripts dbase
2491 %extension_scripts dom
2492 %extension_scripts exif
2493 %extension_scripts fdf
2494 %extension_scripts filter
2495 %extension_scripts ftp
2496 %extension_scripts gd
2497 %extension_scripts gettext
2498 %extension_scripts gmp
2499 %extension_scripts hash
2500 %extension_scripts iconv
2501 %extension_scripts imap
2502 %extension_scripts interbase
2503 %extension_scripts json
2504 %extension_scripts ldap
2505 %extension_scripts mbstring
2506 %extension_scripts mcrypt
2507 %extension_scripts mhash
2508 %extension_scripts mime_magic
2509 %extension_scripts ming
2510 %extension_scripts mssql
2511 %extension_scripts mysql
2512 %extension_scripts mysqli
2513 %extension_scripts oci8
2514 %extension_scripts odbc
2515 %extension_scripts openssl
2516 %extension_scripts pcntl
2517 %extension_scripts pcre
2518 %extension_scripts pdo
2519 %extension_scripts pdo-dblib
2520 %extension_scripts pdo-firebird
2521 %extension_scripts pdo-oci
2522 %extension_scripts pdo-mysql
2523 %extension_scripts pdo-odbc
2524 %extension_scripts pdo-pgsql
2525 %extension_scripts pdo-sqlite
2526 %extension_scripts pgsql
2527 %extension_scripts posix
2528 %extension_scripts pspell
2529 %extension_scripts recode
2530 %extension_scripts session
2531 %extension_scripts simplexml
2532 %extension_scripts shmop
2533 %extension_scripts snmp
2534 %extension_scripts soap
2535 %extension_scripts sockets
2536 %extension_scripts spl
2537 %extension_scripts sqlite
2538 %extension_scripts sybase
2539 %extension_scripts sybase-ct
2540 %extension_scripts sysvmsg
2541 %extension_scripts sysvsem
2542 %extension_scripts sysvshm
2543 %extension_scripts tidy
2544 %extension_scripts tokenizer
2545 %extension_scripts wddx
2546 %extension_scripts xml
2547 %extension_scripts xmlreader
2548 %extension_scripts xmlrpc
2549 %extension_scripts xmlwriter
2550 %extension_scripts xsl
2551 %extension_scripts zip
2552 %extension_scripts zlib
2555 %files -n apache1-mod_%{name}
2556 %defattr(644,root,root,755)
2557 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2558 %dir %{_sysconfdir}/apache.d
2559 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2560 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2561 %attr(755,root,root) %{_libdir}/apache1/libphp5-%{version}.so
2565 %files -n apache-mod_%{name}
2566 %defattr(644,root,root,755)
2567 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2568 %dir %{_sysconfdir}/apache2handler.d
2569 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2570 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2571 %attr(755,root,root) %{_libdir}/apache/libphp5-%{version}.so
2576 %defattr(644,root,root,755)
2577 %doc sapi/cgi/README.FastCGI
2578 %dir %{_sysconfdir}/cgi-fcgi.d
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2580 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2584 %defattr(644,root,root,755)
2585 %dir %{_sysconfdir}/cgi.d
2586 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2587 %attr(755,root,root) %{_bindir}/%{name}.cgi
2590 %defattr(644,root,root,755)
2591 %dir %{_sysconfdir}/cli.d
2592 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2593 %attr(755,root,root) %{_bindir}/%{phpfn}
2594 %{_mandir}/man1/%{phpfn}.1*
2597 %defattr(644,root,root,755)
2598 %attr(755,root,root) %{_bindir}/php
2599 %{_mandir}/man1/php.1*
2603 %defattr(644,root,root,755)
2604 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2605 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2606 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2607 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2611 %defattr(644,root,root,755)
2613 %doc CREDITS Zend/ZEND_CHANGES
2614 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2615 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2618 %dir %{_sysconfdir}/conf.d
2619 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2620 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2621 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2622 %dir %{php_extensiondir}
2625 %defattr(644,root,root,755)
2626 %doc README.UNIX-BUILD-SYSTEM
2627 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2628 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2629 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2630 %attr(755,root,root) %{_bindir}/phpize
2631 %attr(755,root,root) %{_bindir}/php-config
2632 %attr(755,root,root) %{_libdir}/libphp_common.so
2633 %{_libdir}/libphp_common.la
2635 %{_libdir}/php/build
2636 %{_mandir}/man1/php-config.1*
2637 %{_mandir}/man1/phpize.1*
2640 %defattr(644,root,root,755)
2641 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2642 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2645 %defattr(644,root,root,755)
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2647 %attr(755,root,root) %{php_extensiondir}/bz2.so
2650 %defattr(644,root,root,755)
2651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2652 %attr(755,root,root) %{php_extensiondir}/calendar.so
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2657 %attr(755,root,root) %{php_extensiondir}/ctype.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2663 %attr(755,root,root) %{php_extensiondir}/curl.so
2667 %defattr(644,root,root,755)
2668 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2669 %attr(755,root,root) %{php_extensiondir}/dba.so
2672 %defattr(644,root,root,755)
2673 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2674 %attr(755,root,root) %{php_extensiondir}/dbase.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2679 %attr(755,root,root) %{php_extensiondir}/dom.so
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2685 %attr(755,root,root) %{php_extensiondir}/fdf.so
2690 %defattr(644,root,root,755)
2691 %doc README.input_filter
2692 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2693 %attr(755,root,root) %{php_extensiondir}/filter.so
2697 %defattr(644,root,root,755)
2698 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2699 %attr(755,root,root) %{php_extensiondir}/exif.so
2702 %defattr(644,root,root,755)
2703 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2704 %attr(755,root,root) %{php_extensiondir}/ftp.so
2707 %defattr(644,root,root,755)
2708 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2709 %attr(755,root,root) %{php_extensiondir}/gd.so
2712 %defattr(644,root,root,755)
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2714 %attr(755,root,root) %{php_extensiondir}/gettext.so
2717 %defattr(644,root,root,755)
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2719 %attr(755,root,root) %{php_extensiondir}/gmp.so
2722 %defattr(644,root,root,755)
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2724 %attr(755,root,root) %{php_extensiondir}/hash.so
2727 %defattr(644,root,root,755)
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2729 %attr(755,root,root) %{php_extensiondir}/iconv.so
2733 %defattr(644,root,root,755)
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2735 %attr(755,root,root) %{php_extensiondir}/imap.so
2738 %if %{with interbase}
2740 %defattr(644,root,root,755)
2741 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2742 %attr(755,root,root) %{php_extensiondir}/interbase.so
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2748 %attr(755,root,root) %{php_extensiondir}/json.so
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2754 %attr(755,root,root) %{php_extensiondir}/ldap.so
2757 %if %{without zend_multibyte}
2759 %defattr(644,root,root,755)
2760 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2761 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2765 %defattr(644,root,root,755)
2766 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2767 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2771 %defattr(644,root,root,755)
2772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2773 %attr(755,root,root) %{php_extensiondir}/mhash.so
2776 %if %{with mime_magic}
2778 %defattr(644,root,root,755)
2779 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2780 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2785 %defattr(644,root,root,755)
2786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2787 %attr(755,root,root) %{php_extensiondir}/ming.so
2792 %defattr(644,root,root,755)
2793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2794 %attr(755,root,root) %{php_extensiondir}/mssql.so
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2800 %attr(755,root,root) %{php_extensiondir}/mysql.so
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2806 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2810 %defattr(644,root,root,755)
2811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2812 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2816 %defattr(644,root,root,755)
2817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2818 %attr(755,root,root) %{php_extensiondir}/oci8.so
2823 %defattr(644,root,root,755)
2824 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2825 %attr(755,root,root) %{php_extensiondir}/odbc.so
2830 %defattr(644,root,root,755)
2831 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2832 %attr(755,root,root) %{php_extensiondir}/openssl.so
2836 %defattr(644,root,root,755)
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2838 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2844 %attr(755,root,root) %{php_extensiondir}/pcre.so
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2850 %attr(755,root,root) %{php_extensiondir}/pdo.so
2852 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2856 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2859 %if %{with interbase} && !%{with interbase_inst}
2861 %defattr(644,root,root,755)
2862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2863 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2869 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2873 %defattr(644,root,root,755)
2874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2875 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2880 %defattr(644,root,root,755)
2881 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2882 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2887 %defattr(644,root,root,755)
2888 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2889 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2894 %defattr(644,root,root,755)
2895 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2896 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2901 %defattr(644,root,root,755)
2902 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2903 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2907 %defattr(644,root,root,755)
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2909 %attr(755,root,root) %{php_extensiondir}/posix.so
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2915 %attr(755,root,root) %{php_extensiondir}/pspell.so
2919 %defattr(644,root,root,755)
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2921 %attr(755,root,root) %{php_extensiondir}/readline.so
2925 %defattr(644,root,root,755)
2926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2927 %attr(755,root,root) %{php_extensiondir}/recode.so
2931 %defattr(644,root,root,755)
2932 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2933 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2936 %defattr(644,root,root,755)
2937 %doc ext/session/mod_files.sh
2938 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2939 %attr(755,root,root) %{php_extensiondir}/session.so
2942 %defattr(644,root,root,755)
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2944 %attr(755,root,root) %{php_extensiondir}/shmop.so
2948 %defattr(644,root,root,755)
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2950 %attr(755,root,root) %{php_extensiondir}/snmp.so
2954 %defattr(644,root,root,755)
2955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2956 %attr(755,root,root) %{php_extensiondir}/soap.so
2959 %defattr(644,root,root,755)
2960 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2961 %attr(755,root,root) %{php_extensiondir}/sockets.so
2964 %defattr(644,root,root,755)
2965 %doc ext/spl/{CREDITS,README,TODO}
2966 %doc ext/spl/examples
2967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2968 %attr(755,root,root) %{php_extensiondir}/spl.so
2972 %defattr(644,root,root,755)
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2974 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2979 %defattr(644,root,root,755)
2980 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2981 %attr(755,root,root) %{php_extensiondir}/sybase.so
2984 %if %{with sybase_ct}
2986 %defattr(644,root,root,755)
2987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2988 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2992 %defattr(644,root,root,755)
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2994 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2997 %defattr(644,root,root,755)
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2999 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3004 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3007 %defattr(644,root,root,755)
3008 %dir %{php_data_dir}/tests
3009 %dir %{php_data_dir}/tests/php
3010 %{php_data_dir}/tests/php/basic
3011 %{php_data_dir}/tests/php/classes
3012 %{php_data_dir}/tests/php/func
3013 %{php_data_dir}/tests/php/lang
3014 %{php_data_dir}/tests/php/output
3015 %{php_data_dir}/tests/php/run-test
3016 %{php_data_dir}/tests/php/security
3017 %{php_data_dir}/tests/php/strings
3018 %{php_data_dir}/tests/php/quicktester.inc
3019 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3021 # random junk, didn't check, maybe can be just removed
3022 %{php_data_dir}/tests/php/bin-info.inc
3023 %{php_data_dir}/tests/php/foo*
3024 %{php_data_dir}/tests/php/odbc*.php
3025 %{php_data_dir}/tests/php/recurse
3026 %{php_data_dir}/tests/php/run.*
3027 %{php_data_dir}/tests/php/scan_cases
3028 %{php_data_dir}/tests/php/test*
3032 %defattr(644,root,root,755)
3033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3034 %attr(755,root,root) %{php_extensiondir}/tidy.so
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3040 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3044 %defattr(644,root,root,755)
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3046 %attr(755,root,root) %{php_extensiondir}/wddx.so
3050 %defattr(644,root,root,755)
3051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3052 %attr(755,root,root) %{php_extensiondir}/xml.so
3055 %defattr(644,root,root,755)
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3057 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3063 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3067 %defattr(644,root,root,755)
3068 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3069 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3072 %defattr(644,root,root,755)
3073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3074 %attr(755,root,root) %{php_extensiondir}/xsl.so
3077 %defattr(644,root,root,755)
3078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3079 %attr(755,root,root) %{php_extensiondir}/zip.so
3082 %defattr(644,root,root,755)
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3084 %attr(755,root,root) %{php_extensiondir}/zlib.so