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}
434 %description cgi -l pl.UTF-8
435 php jako program CGI.
438 Summary: PHP as CLI interpreter
439 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
440 Group: Development/Languages/PHP
441 Requires: %{name}-common = %{epoch}:%{version}-%{release}
444 PHP as CLI interpreter.
446 %description cli -l pl.UTF-8
447 PHP jako interpreter działający z linii poleceń.
450 Summary: /usr/bin/php symlink
451 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
452 Group: Development/Languages/PHP
453 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
454 Obsoletes: /usr/bin/php
457 Package providing /usr/bin/php symlink to PHP CLI.
459 %description program -l pl.UTF-8
460 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
463 Summary: PHP FastCGI Process Manager
464 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
465 Group: Development/Languages/PHP
466 URL: http://www.php-fpm.org/
467 Requires(post,preun): /sbin/chkconfig
468 Requires(postun): /usr/sbin/userdel
469 Requires(pre): /bin/id
470 Requires(pre): /usr/sbin/useradd
471 Requires: %{name}-common = %{epoch}:%{version}-%{release}
472 Requires: libevent >= 1.4.7-3
475 Provides: webserver(php) = %{version}
478 PHP FastCGI Process Manager.
480 %description fpm -l pl.UTF-8
481 PHP FastCGI Process Manager - zarządca procesów FastCGI.
484 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
485 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
486 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
487 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
489 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
490 Requires: glibc >= 6:2.3.5
491 Requires: php-dirs >= 1.4
492 Requires: rpm-whiteout >= 1.28
494 Provides: php(core) = %{version}
497 Provides: php(libxml)
498 %{?with_zend_multibyte:Provides: php(mbstring)}
499 Provides: php(modules_api) = %{php_api_version}
500 Provides: php(overload)
501 Provides: php(reflection)
502 Provides: php(standard)
503 Provides: php(zend_extension_api) = %{zend_extension_api}
504 Provides: php(zend_module_api) = %{zend_module_api}
508 %{?with_zend_multibyte:Provides: php-mbstring = %{epoch}:%{version}-%{release}}
509 Provides: php-overload
510 Provides: php-reflection
511 Provides: php-standard
512 Provides: php5(debug) = %{php_debug}
513 Provides: php5(thread-safety) = %{zend_zts}
514 # ensure backward compatibility for Titanium
515 # to be dropped in future but ask Titanium RM before doing so
516 %if "%{pld_release}" == "ti"
517 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
518 Requires: %{name}-session = %{epoch}:%{version}-%{release}
519 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
521 %if "%{pld_release}" == "ac"
522 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
523 Requires: %{name}-session = %{epoch}:%{version}-%{release}
524 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
526 Obsoletes: php-pecl-domxml
527 Conflicts: php-pecl-memcache < 3.0.4-2
528 Conflicts: php4-common < 3:4.4.4-8
529 Conflicts: rpm < 4.4.2-0.2
532 Common files needed by both Apache modules and CGI/CLI SAPI-s.
534 %description common -l pl.UTF-8
535 Wspólne pliki dla modułu Apache'a i programu CGI.
537 %description common -l ru.UTF-8
538 Этот пакет содержит общие файлы для разных вариантов реализации PHP
539 (самодостаточной и в качестве модуля Apache).
541 %description common -l uk.UTF-8
542 Цей пакет містить спільні файли для різних варіантів реалізації PHP
543 (самодостатньої та в якості модуля Apache).
546 Summary: Files for PHP modules development
547 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
548 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
549 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
550 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
551 Group: Development/Languages/PHP
552 Requires: %{name}-common = %{epoch}:%{version}-%{release}
555 %if "%{pld_release}" != "ac"
556 Requires: libtool >= 2:2.2
560 %{?with_pcre:Requires: pcre-devel >= 6.6}
563 Obsoletes: php-pear-devel
564 Obsoletes: php4-devel
565 Obsoletes: php53-devel
566 Obsoletes: php54-devel
569 The php-devel package lets you compile dynamic extensions to PHP.
570 Included here is the source for the PHP extensions. Instead of
571 recompiling the whole PHP binary to add support for, say, oracle,
572 install this package and use the new self-contained extensions
573 support. For more information, read the file
574 README.SELF-CONTAINED-EXTENSIONS.
576 %description devel -l pl.UTF-8
577 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
578 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
579 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
580 samodzielnych rozszerzeniach można znaleźć w pliku
581 README.SELF-CONTAINED-EXTENSIONS.
583 %description devel -l pt_BR.UTF-8
584 Este pacote contém arquivos usados no desenvolvimento de programas ou
587 %description devel -l ru.UTF-8
588 Пакет php-devel дает возможность компилировать динамические расширения
589 PHP. Пакет включает исходный код этих расширений. Вместо повторной
590 компиляции бинарного файла PHP для добавления, например, поддержки
591 oracle, установите этот пакет для компилирования отдельных расширений.
592 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
594 %description devel -l uk.UTF-8
595 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
596 До пакету включено вихідний код для розширень. Замість повторної
597 компіляції бінарного файлу PHP для додання, наприклад, підтримки
598 oracle, встановіть цей пакет для компіляції окремих розширень.
599 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
602 Summary: bcmath extension module for PHP
603 Summary(pl.UTF-8): Moduł bcmath dla PHP
605 URL: http://www.php.net/manual/en/book.bc.php
606 Requires: %{name}-common = %{epoch}:%{version}-%{release}
607 Provides: php(bcmath)
610 This is a dynamic shared object (DSO) for PHP that will add bc style
611 precision math functions support.
613 %description bcmath -l pl.UTF-8
614 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
615 matematycznych takich jak w programie bc.
618 Summary: Bzip2 extension module for PHP
619 Summary(pl.UTF-8): Moduł bzip2 dla PHP
621 URL: http://www.php.net/manual/en/book.bzip2.php
622 Requires: %{name}-common = %{epoch}:%{version}-%{release}
625 Provides: php-bzip2 = %{epoch}:%{version}-%{release}
629 This is a dynamic shared object (DSO) for PHP that will add bzip2
630 compression support to PHP.
632 %description bz2 -l pl.UTF-8
633 Moduł PHP umożliwiający używanie kompresji bzip2.
636 Summary: Calendar extension module for PHP
637 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
639 URL: http://www.php.net/manual/en/book.calendar.php
640 Requires: %{name}-common = %{epoch}:%{version}-%{release}
641 Provides: php(calendar)
643 %description calendar
644 This is a dynamic shared object (DSO) for PHP that will add calendar
647 %description calendar -l pl.UTF-8
648 Moduł PHP dodający wsparcie dla kalendarza.
651 Summary: ctype extension module for PHP
652 Summary(pl.UTF-8): Moduł ctype dla PHP
654 URL: http://www.php.net/manual/en/book.ctype.php
655 Requires: %{name}-common = %{epoch}:%{version}-%{release}
659 This is a dynamic shared object (DSO) for PHP that will add ctype
662 %description ctype -l pl.UTF-8
663 Moduł PHP umożliwiający korzystanie z funkcji ctype.
666 Summary: curl extension module for PHP
667 Summary(pl.UTF-8): Moduł curl dla PHP
669 URL: http://www.php.net/manual/en/book.curl.php
670 Requires: %{name}-common = %{epoch}:%{version}-%{release}
674 This is a dynamic shared object (DSO) for PHP that will add curl
677 %description curl -l pl.UTF-8
678 Moduł PHP umożliwiający korzystanie z biblioteki curl.
681 Summary: DBA extension module for PHP
682 Summary(pl.UTF-8): Moduł DBA dla PHP
684 URL: http://www.php.net/manual/en/book.dba.php
685 Requires: %{name}-common = %{epoch}:%{version}-%{release}
689 This is a dynamic shared object (DSO) for PHP that will add flat-file
690 databases (DBA) support.
692 %description dba -l pl.UTF-8
693 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
697 Summary: DBase extension module for PHP
698 Summary(pl.UTF-8): Moduł DBase dla PHP
700 Requires: %{name}-common = %{epoch}:%{version}-%{release}
704 This is a dynamic shared object (DSO) for PHP that will add DBase
707 %description dbase -l pl.UTF-8
708 Moduł PHP ze wsparciem dla DBase.
711 Summary: DOM extension module for PHP
712 Summary(pl.UTF-8): Moduł DOM dla PHP
714 URL: http://www.php.net/manual/en/book.dom.php
715 Requires: %{name}-common = %{epoch}:%{version}-%{release}
717 # it has some compatibility functions
718 Provides: php(domxml)
719 Provides: php-domxml = %{epoch}:%{version}-%{release}
720 Obsoletes: php-domxml <= 3:4.3.8-1
723 This is a dynamic shared object (DSO) for PHP that will add new DOM
726 %description dom -l pl.UTF-8
727 Moduł PHP dodający nową obsługę DOM.
730 Summary: exif extension module for PHP
731 Summary(pl.UTF-8): Moduł exif dla PHP
733 URL: http://www.php.net/manual/en/book.exif.php
734 Requires: %{name}-common = %{epoch}:%{version}-%{release}
738 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
739 support in image files.
741 %description exif -l pl.UTF-8
742 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
745 Summary: FDF extension module for PHP
746 Summary(pl.UTF-8): Moduł FDF dla PHP
748 URL: http://www.php.net/manual/en/book.fdf.php
749 Requires: %{name}-common = %{epoch}:%{version}-%{release}
753 This PHP module adds support for PDF Forms through Adobe FDFTK
756 %description fdf -l pl.UTF-8
757 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
761 Summary: Extension for safely dealing with input parameters
762 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
764 URL: http://www.php.net/manual/en/book.filter.php
765 Requires: %{name}-common = %{epoch}:%{version}-%{release}
766 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
767 Provides: php(filter)
768 Obsoletes: php-pecl-filter
771 We all know that you should always check input variables, but PHP does
772 not offer really good functionality for doing this in a safe way. The
773 Input Filter extension is meant to address this issue by implementing
774 a set of filters and mechanisms that users can use to safely access
777 %description filter -l pl.UTF-8
778 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
779 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
780 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
781 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
782 mogą bezpiecznie używać do dostępu do danych.
785 Summary: FTP extension module for PHP
786 Summary(pl.UTF-8): Moduł FTP dla PHP
788 URL: http://www.php.net/manual/en/book.ftp.php
789 Requires: %{name}-common = %{epoch}:%{version}-%{release}
793 This is a dynamic shared object (DSO) for PHP that will add FTP
796 %description ftp -l pl.UTF-8
797 Moduł PHP dodający obsługę protokołu FTP.
800 Summary: GD extension module for PHP
801 Summary(pl.UTF-8): Moduł GD dla PHP
803 URL: http://www.php.net/manual/en/book.image.php
804 Requires: %{name}-common = %{epoch}:%{version}-%{release}
805 %if %{with system_gd}
806 Requires: gd >= 2.0.28-4
808 Requires: gd(imagerotate) = 5.2.0
813 This is a dynamic shared object (DSO) for PHP that will add GD
814 support, allowing you to create and manipulate images with PHP.
816 %description gd -l pl.UTF-8
817 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
818 tworzenie i obróbkę obrazków.
821 Summary: gettext extension module for PHP
822 Summary(pl.UTF-8): Moduł gettext dla PHP
824 URL: http://www.php.net/manual/en/book.gettext.php
825 Requires: %{name}-common = %{epoch}:%{version}-%{release}
826 Provides: php(gettext)
829 This is a dynamic shared object (DSO) for PHP that will add gettext
832 %description gettext -l pl.UTF-8
833 Moduł PHP dodający obsługę lokalizacji przez gettext.
836 Summary: gmp extension module for PHP
837 Summary(pl.UTF-8): Moduł gmp dla PHP
839 URL: http://www.php.net/manual/en/book.gmp.php
840 Requires: %{name}-common = %{epoch}:%{version}-%{release}
844 This is a dynamic shared object (DSO) for PHP that will add arbitrary
845 length number support with GNU MP library.
847 %description gmp -l pl.UTF-8
848 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
849 liczbach o dowolnej długości.
852 Summary: HASH Message Digest Framework
853 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
855 URL: http://www.php.net/manual/en/book.gmp.php
856 Requires: %{name}-common = %{epoch}:%{version}-%{release}
858 Obsoletes: php-pecl-hash
861 Native implementations of common message digest algorithms using a
862 generic factory method.
864 %description hash -l pl.UTF-8
865 Natywne implementacje popularnych algorytmów obliczania skrótów
866 wiadomości przy użyciu wspólnego interfejsu.
869 Summary: iconv extension module for PHP
870 Summary(pl.UTF-8): Moduł iconv dla PHP
872 URL: http://www.php.net/manual/en/book.iconv.php
873 Requires: %{_libdir}/gconv
874 Requires: %{name}-common = %{epoch}:%{version}-%{release}
879 This is a dynamic shared object (DSO) for PHP that will add iconv
882 %description iconv -l pl.UTF-8
883 Moduł PHP dodający obsługę iconv.
886 Summary: IMAP extension module for PHP
887 Summary(pl.UTF-8): Moduł IMAP dla PHP
888 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
890 URL: http://www.php.net/manual/en/book.imap.php
891 Requires: %{name}-common = %{epoch}:%{version}-%{release}
895 This is a dynamic shared object (DSO) for PHP that will add IMAP
898 %description imap -l pl.UTF-8
899 Moduł PHP dodający obsługę skrzynek IMAP.
901 %description imap -l pt_BR.UTF-8
902 Um módulo para aplicações PHP que usam IMAP.
905 Summary: InterBase/Firebird database module for PHP
906 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
908 URL: http://www.php.net/manual/en/book.ibase.php
909 Requires: %{name}-common = %{epoch}:%{version}-%{release}
910 Provides: php(interbase)
911 %{?with_interbase_inst:Autoreq: false}
913 %description interbase
914 This is a dynamic shared object (DSO) for PHP that will add InterBase
915 and Firebird database support.
917 %description interbase -l pl.UTF-8
918 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
921 Summary: PHP C extension for JSON serialization
922 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
924 URL: http://www.php.net/manual/en/book.json.php
925 Requires: %{name}-common = %{epoch}:%{version}-%{release}
927 Obsoletes: php-pecl-json
930 php-json is an extremely fast PHP C extension for JSON (JavaScript
931 Object Notation) serialisation.
933 %description json -l pl.UTF-8
934 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
935 (JavaScript Object Notation).
938 Summary: LDAP extension module for PHP
939 Summary(pl.UTF-8): Moduł LDAP dla PHP
940 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
942 URL: http://www.php.net/manual/en/book.ldap.php
943 Requires: %{name}-common = %{epoch}:%{version}-%{release}
947 This is a dynamic shared object (DSO) for PHP that will add LDAP
950 %description ldap -l pl.UTF-8
951 Moduł PHP dodający obsługę LDAP.
953 %description ldap -l pt_BR.UTF-8
954 Um módulo para aplicações PHP que usam LDAP.
957 Summary: mbstring extension module for PHP
958 Summary(pl.UTF-8): Moduł mbstring dla PHP
960 URL: http://www.php.net/manual/en/book.mbstring.php
961 Requires: %{name}-common = %{epoch}:%{version}-%{release}
962 Provides: php(mbstring)
964 %description mbstring
965 This is a dynamic shared object (DSO) for PHP that will add multibyte
968 %description mbstring -l pl.UTF-8
969 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
972 Summary: mcrypt extension module for PHP
973 Summary(pl.UTF-8): Moduł mcrypt dla PHP
975 URL: http://www.php.net/manual/en/book.mcrypt.php
976 Requires: %{name}-common = %{epoch}:%{version}-%{release}
977 Provides: php(mcrypt)
980 This is a dynamic shared object (DSO) for PHP that will add mcrypt
983 %description mcrypt -l pl.UTF-8
984 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
987 Summary: mhash extension module for PHP
988 Summary(pl.UTF-8): Moduł mhash dla PHP
990 Requires: %{name}-common = %{epoch}:%{version}-%{release}
994 This is a dynamic shared object (DSO) for PHP that will add mhash
997 %description mhash -l pl.UTF-8
998 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1001 Summary: mime_magic extension module for PHP
1002 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1004 Requires: %{magic_mime}
1005 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1006 Provides: php(mime_magic)
1008 %description mime_magic
1009 This PHP module adds support for MIME type lookup via file magic
1010 numbers using magic.mime database.
1012 %description mime_magic -l pl.UTF-8
1013 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1014 znaczników plików z użyciem bazy danych magic.mime.
1017 Summary: ming extension module for PHP
1018 Summary(pl.UTF-8): Moduł ming dla PHP
1020 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1021 Requires: ming >= 0.3
1025 This is a dynamic shared object (DSO) for PHP that will add ming
1026 (Flash - .swf files) support.
1028 %description ming -l pl.UTF-8
1029 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1033 Summary: MS SQL extension module for PHP
1034 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1036 URL: http://www.php.net/manual/en/book.mssql.php
1037 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1038 Provides: php(mssql)
1041 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1042 databases support through FreeTDS library.
1044 %description mssql -l pl.UTF-8
1045 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1049 Summary: MySQL database module for PHP
1050 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1051 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1053 URL: http://www.php.net/manual/en/book.mysql.php
1054 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1055 Provides: php(mysql)
1058 This is a dynamic shared object (DSO) for PHP that will add MySQL
1061 %description mysql -l pl.UTF-8
1062 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1064 %description mysql -l pt_BR.UTF-8
1065 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1068 Summary: MySQLi module for PHP
1069 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1071 URL: http://www.php.net/manual/en/book.mysqli.php
1072 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1073 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1074 Requires: mysql-libs >= 4.1.0
1075 Provides: php(mysqli)
1078 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1079 (Improved MySQL) support. The difference between it and mysql module
1080 is that it provides access to functionality of MySQL 4.1 and above.
1082 %description mysqli -l pl.UTF-8
1083 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1084 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1085 MySQL w wersji 4.1 i nowszych.
1088 Summary: ncurses module for PHP
1089 Summary(pl.UTF-8): Moduł ncurses dla PHP
1091 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1092 Provides: php(ncurses)
1094 %description ncurses
1095 This PHP module adds support for ncurses functions (only for cli and
1098 %description ncurses -l pl.UTF-8
1099 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1102 Summary: Oracle 8+ database module for PHP
1103 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1105 URL: http://www.php.net/manual/en/book.oci8.php
1106 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1111 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1112 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1114 %description oci8 -l pl.UTF-8
1115 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1116 poprzez interfejs Oracle8 Call-Interface (OCI8).
1119 Summary: ODBC extension module for PHP
1120 Summary(pl.UTF-8): Moduł ODBC dla PHP
1121 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1123 URL: http://www.php.net/manual/en/book.uodbc.php
1124 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1125 Requires: unixODBC >= 2.1.1-3
1129 This is a dynamic shared object (DSO) for PHP that will add ODBC
1132 %description odbc -l pl.UTF-8
1133 Moduł PHP ze wsparciem dla ODBC.
1135 %description odbc -l pt_BR.UTF-8
1136 Um módulo para aplicações PHP que usam ODBC.
1139 Summary: OpenSSL extension module for PHP
1140 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1142 URL: http://www.php.net/manual/en/book.openssl.php
1143 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1144 Provides: php(openssl)
1146 %description openssl
1147 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1150 %description openssl -l pl.UTF-8
1151 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1154 Summary: Process Control extension module for PHP
1155 Summary(pl.UTF-8): Moduł Process Control dla PHP
1157 URL: http://www.php.net/manual/en/book.pcntl.php
1158 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1159 Provides: php(pcntl)
1162 This is a dynamic shared object (DSO) for PHP that will add process
1163 spawning and control support. It supports functions like fork(),
1164 waitpid(), signal() etc.
1166 %description pcntl -l pl.UTF-8
1167 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1168 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1171 Summary: PCRE extension module for PHP
1172 Summary(pl.UTF-8): Moduł PCRE dla PHP
1174 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1178 This is a dynamic shared object (DSO) for PHP that will add Perl
1179 Compatible Regular Expression support.
1181 %description pcre -l pl.UTF-8
1182 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1183 (Perl Compatible Regular Expressions)
1186 Summary: PHP Data Objects (PDO)
1187 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1189 URL: http://www.php.net/manual/en/book.pdo.php
1190 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1191 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1193 Obsoletes: php-pecl-PDO
1196 This is a dynamic shared object (DSO) for PHP that will add PDO
1199 %description pdo -l pl.UTF-8
1200 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1203 Summary: PHP Data Objects (PDO) FreeTDS support
1204 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1206 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1207 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1208 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1209 Provides: php(dblib)
1211 %description pdo-dblib
1212 This is a dynamic shared object (DSO) for PHP that will add PDO
1215 %description pdo-dblib -l pl.UTF-8
1216 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1219 %package pdo-firebird
1220 Summary: PHP Data Objects (PDO) Firebird support
1221 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1223 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1224 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1225 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1226 Provides: php(pdo-firebird)
1227 Obsoletes: php-pecl-PDO_FIREBIRD
1229 %description pdo-firebird
1230 This is a dynamic shared object (DSO) for PHP that will add PDO
1233 %description pdo-firebird -l pl.UTF-8
1234 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1238 Summary: PHP Data Objects (PDO) MySQL support
1239 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1241 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1242 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1243 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1244 Provides: php(pdo-mysql)
1245 Obsoletes: php-pecl-PDO_MYSQL
1247 %description pdo-mysql
1248 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1251 %description pdo-mysql -l pl.UTF-8
1252 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1256 Summary: PHP Data Objects (PDO) Oracle support
1257 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1259 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1260 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1261 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1262 Provides: php(pdo-oci)
1263 Obsoletes: php-pecl-PDO_OCI
1265 %description pdo-oci
1266 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1269 %description pdo-oci -l pl.UTF-8
1270 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1274 Summary: PHP Data Objects (PDO) ODBC support
1275 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1277 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1278 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1279 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1280 Provides: php(pdo-odbc)
1281 Obsoletes: php-pecl-PDO_ODBC
1283 %description pdo-odbc
1284 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1287 %description pdo-odbc -l pl.UTF-8
1288 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1292 Summary: PHP Data Objects (PDO) PostgreSQL support
1293 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1295 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1296 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1297 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1298 Provides: php(pdo-pgsql)
1299 Provides: php-pecl-PDO_PGSQL
1300 Obsoletes: php-pecl-PDO_PGSQL
1302 %description pdo-pgsql
1303 This is a dynamic shared object (DSO) for PHP that will add PDO
1306 %description pdo-pgsql -l pl.UTF-8
1307 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1311 Summary: PHP Data Objects (PDO) SQLite support
1312 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1314 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1315 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1316 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1317 Provides: php(pdo-sqlite)
1318 Obsoletes: php-pecl-PDO_SQLITE
1320 %description pdo-sqlite
1321 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1324 %description pdo-sqlite -l pl.UTF-8
1325 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1329 Summary: PostgreSQL database module for PHP
1330 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1332 URL: http://www.php.net/manual/en/book.pgsql.php
1333 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1334 Provides: php(pgsql)
1337 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1340 %description pgsql -l pl.UTF-8
1341 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1343 %description pgsql -l pt_BR.UTF-8
1344 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1347 Summary: POSIX extension module for PHP
1348 Summary(pl.UTF-8): Moduł POSIX dla PHP
1350 URL: http://www.php.net/manual/en/book.posix.php
1351 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1352 Provides: php(posix)
1355 This is a dynamic shared object (DSO) for PHP that will add POSIX
1356 functions support to PHP.
1358 %description posix -l pl.UTF-8
1359 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1362 Summary: pspell extension module for PHP
1363 Summary(pl.UTF-8): Moduł pspell dla PHP
1365 URL: http://www.php.net/manual/en/book.pspell.php
1366 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1367 Provides: php(pspell)
1370 This is a dynamic shared object (DSO) for PHP that will add pspell
1371 support to PHP. It allows to check the spelling of a word and offer
1374 %description pspell -l pl.UTF-8
1375 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1376 sprawdzanie pisowni słowa i sugerowanie poprawek.
1379 Summary: readline extension module for PHP
1380 Summary(pl.UTF-8): Moduł readline dla PHP
1382 URL: http://www.php.net/manual/en/book.readline.php
1383 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1384 Provides: php(readline)
1386 %description readline
1387 This PHP module adds support for readline functions (only for cli and
1390 %description readline -l pl.UTF-8
1391 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1394 Summary: recode extension module for PHP
1395 Summary(pl.UTF-8): Moduł recode dla PHP
1397 URL: http://www.php.net/manual/en/book.recode.php
1398 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1399 Requires: recode >= 3.5d-3
1400 Provides: php(recode)
1403 This is a dynamic shared object (DSO) for PHP that will add recode
1406 %description recode -l pl.UTF-8
1407 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1411 Summary: session extension module for PHP
1412 Summary(pl.UTF-8): Moduł session dla PHP
1414 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1415 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1416 Provides: php(session)
1418 %description session
1419 This is a dynamic shared object (DSO) for PHP that will add session
1422 %description session -l pl.UTF-8
1423 Moduł PHP dodający obsługę sesji.
1426 Summary: Shared Memory Operations extension module for PHP
1427 Summary(pl.UTF-8): Moduł shmop dla PHP
1429 URL: http://www.php.net/manual/en/book.shmop.php
1430 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1431 Provides: php(shmop)
1434 This is a dynamic shared object (DSO) for PHP that will add Shared
1435 Memory Operations support.
1437 %description shmop -l pl.UTF-8
1438 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1441 Summary: Simple XML extension module for PHP
1442 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1444 URL: http://www.php.net/manual/en/book.simplexml.php
1445 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1446 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1447 Provides: php(simplexml)
1449 %description simplexml
1450 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1453 %description simplexml -l pl.UTF-8
1454 Moduł PHP dodający obsługę prostego XML-a.
1457 Summary: SNMP extension module for PHP
1458 Summary(pl.UTF-8): Moduł SNMP dla PHP
1460 URL: http://www.php.net/manual/en/book.snmp.php
1461 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1462 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1466 This is a dynamic shared object (DSO) for PHP that will add SNMP
1469 %description snmp -l pl.UTF-8
1470 Moduł PHP dodający obsługę SNMP.
1473 Summary: soap extension module for PHP
1474 Summary(pl.UTF-8): Moduł soap dla PHP
1476 URL: http://www.php.net/manual/en/book.soap.php
1477 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1481 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1484 %description soap -l pl.UTF-8
1485 Moduł PHP dodający obsługę SOAP/WSDL.
1488 Summary: sockets extension module for PHP
1489 Summary(pl.UTF-8): Moduł socket dla PHP
1491 URL: http://www.php.net/manual/en/book.sockets.php
1492 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1493 Provides: php(sockets)
1495 %description sockets
1496 This is a dynamic shared object (DSO) for PHP that will add sockets
1499 %description sockets -l pl.UTF-8
1500 Moduł PHP dodający obsługę gniazdek.
1503 Summary: Standard PHP Library module for PHP
1504 Summary(pl.UTF-8): Moduł SPL dla PHP
1506 URL: http://php.net/manual/en/book.spl.php
1507 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1508 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1509 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1513 This is a dynamic shared object (DSO) for PHP that will add Standard
1514 PHP Library support.
1516 %description spl -l pl.UTF-8
1517 Moduł PHP dodający obsługę gniazdek.
1520 Summary: SQLite extension module for PHP
1521 Summary(pl.UTF-8): Moduł SQLite dla PHP
1523 URL: http://www.php.net/manual/en/book.sqlite.php
1524 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1525 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1526 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1527 Provides: php(sqlite)
1530 SQLite is a C library that implements an embeddable SQL database
1531 engine. Programs that link with the SQLite library can have SQL
1532 database access without running a separate RDBMS process.
1534 SQLite is not a client library used to connect to a big database
1535 server. SQLite is the server. The SQLite library reads and writes
1536 directly to and from the database files on disk.
1538 %description sqlite -l pl.UTF-8
1539 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1540 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1541 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1544 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1545 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1546 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1550 Summary: Sybase DB extension module for PHP
1551 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1553 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1554 Provides: php(sybase)
1555 Obsoletes: php-sybase-ct
1556 Conflicts: php-sybase-ct
1559 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1560 MS SQL databases support through SYBDB library. Currently Sybase
1561 module is not maintained. Using Sybase-CT module is recommended
1564 %description sybase -l pl.UTF-8
1565 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1566 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1567 Zaleca się używanie modułu Sybase-CT.
1570 Summary: Sybase-CT extension module for PHP
1571 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1573 URL: http://www.php.net/manual/en/book.sybase.php
1574 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1575 Provides: php(sybase-ct)
1576 Obsoletes: php-sybase
1577 Conflicts: php-sybase
1579 %description sybase-ct
1580 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1581 MS SQL databases support through CT-lib.
1583 %description sybase-ct -l pl.UTF-8
1584 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1588 Summary: SysV msg extension module for PHP
1589 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1591 URL: http://www.php.net/manual/en/book.sem.php
1592 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1593 Provides: php(sysvmsg)
1595 %description sysvmsg
1596 This is a dynamic shared object (DSO) for PHP that will add SysV
1597 message queues support.
1599 %description sysvmsg -l pl.UTF-8
1600 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1603 Summary: SysV sem extension module for PHP
1604 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1606 URL: http://www.php.net/manual/en/book.sem.php
1607 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1608 Provides: php(sysvsem)
1610 %description sysvsem
1611 This is a dynamic shared object (DSO) for PHP that will add SysV
1614 %description sysvsem -l pl.UTF-8
1615 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1618 Summary: SysV shm extension module for PHP
1619 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1621 URL: http://www.php.net/manual/en/book.shmop.php
1622 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1623 Provides: php(sysvshm)
1625 %description sysvshm
1626 This is a dynamic shared object (DSO) for PHP that will add SysV
1627 Shared Memory support.
1629 %description sysvshm -l pl.UTF-8
1630 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1633 Summary: Contains unit test files for PHP and extensions
1634 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1636 URL: http://qa.php.net/
1637 Requires: %{name}-cli
1640 This package contains unit tests for PHP and it's extensions.
1642 %description tests -l pl.UTF-8
1643 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1646 Summary: Tidy extension module for PHP
1647 Summary(pl.UTF-8): Moduł Tidy dla PHP
1649 URL: http://www.php.net/manual/en/book.tidy.php
1650 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1655 This is a dynamic shared object (DSO) for PHP that will add Tidy
1658 %description tidy -l pl.UTF-8
1659 Moduł PHP umożliwiający korzystanie z tidy.
1662 Summary: tokenizer extension module for PHP
1663 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1665 URL: http://www.php.net/manual/en/book.tokenizer.php
1666 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1667 Provides: php(tokenizer)
1669 %description tokenizer
1670 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1673 %description tokenizer -l pl.UTF-8
1674 Moduł PHP dodający obsługę tokenizera do PHP.
1677 Summary: wddx extension module for PHP
1678 Summary(pl.UTF-8): Moduł wddx dla PHP
1680 URL: http://www.php.net/manual/en/book.wddx.php
1681 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1682 # - wddx doesn't require session as it's disabled at compile time:
1683 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1684 # see also php.spec#rev1.120.2.22
1685 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1686 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1690 This is a dynamic shared object (DSO) for PHP that will add wddx
1693 %description wddx -l pl.UTF-8
1694 Moduł PHP umożliwiający korzystanie z wddx.
1697 Summary: XML extension module for PHP
1698 Summary(pl.UTF-8): Moduł XML dla PHP
1700 URL: http://www.php.net/manual/en/book.xml.php
1701 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1705 This is a dynamic shared object (DSO) for PHP that will add XML
1706 support. This extension lets you create XML parsers and then define
1707 handlers for different XML events.
1709 %description xml -l pl.UTF-8
1710 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1711 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1712 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1715 Summary: XML Reader extension module for PHP
1716 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1718 URL: http://www.php.net/manual/en/book.xmlreader.php
1719 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1720 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1721 Provides: php(xmlreader)
1723 %description xmlreader
1724 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1725 support. The XMLReader extension is an XML Pull parser. The reader
1726 acts as a cursor going forward on the document stream and stopping at
1727 each node on the way.
1729 %description xmlreader -l pl.UTF-8
1730 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1731 działa jako kursor przechodzący przez strumień dokumentu i
1732 zatrzymujący się na każdym węźle po drodze.
1735 Summary: xmlrpc extension module for PHP
1736 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1738 URL: http://www.php.net/manual/en/book.xmlrpc.php
1739 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1740 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1741 Provides: php(xmlrpc)
1744 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1747 %description xmlrpc -l pl.UTF-8
1748 Moduł PHP dodający obsługę XMLRPC.
1751 Summary: Fast, non-cached, forward-only means to write XML data
1752 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1754 URL: http://www.php.net/manual/en/book.xmlwriter.php
1755 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1756 Provides: php(xmlwriter)
1757 Obsoletes: php-pecl-xmlwriter
1759 %description xmlwriter
1760 This extension wraps the libxml xmlWriter API. Represents a writer
1761 that provides a non-cached, forward-only means of generating streams
1762 or files containing XML data.
1764 %description xmlwriter -l pl.UTF-8
1765 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1766 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1767 plików zawierających dane XML.
1770 Summary: xsl extension module for PHP
1771 Summary(pl.UTF-8): Moduł xsl dla PHP
1773 URL: http://www.php.net/manual/en/book.xsl.php
1774 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1775 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1776 Requires: libxslt >= 1.0.18
1777 # actually not true, functionality is similar, but API differs
1779 Obsoletes: php-xslt <= 3:4.3.8-1
1782 This is a dynamic shared object (DSO) for PHP that will add new XSL
1783 support (using libxslt).
1785 %description xsl -l pl.UTF-8
1786 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1789 Summary: Zip management extension
1790 Summary(pl.UTF-8): Zarządzanie archiwami zip
1792 URL: http://www.php.net/manual/en/book.zip.php
1793 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1795 Obsoletes: php-pecl-zip
1796 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1799 Zip is an extension to create, modify and read zip files.
1801 %description zip -l pl.UTF-8
1802 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1803 odczyt archiwów zip.
1806 Summary: Zlib extension module for PHP
1807 Summary(pl.UTF-8): Moduł zlib dla PHP
1809 URL: http://www.php.net/manual/en/book.zlib.php
1810 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1814 This is a dynamic shared object (DSO) for PHP that will add zlib
1815 compression support to PHP.
1817 %description zlib -l pl.UTF-8
1818 Moduł PHP umożliwiający używanie kompresji zlib.
1821 %setup -q -n %{orgname}-%{version}
1824 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1837 cp php.ini-dist php.ini
1839 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1849 %if %{with system_gd}
1858 %{?with_versioning:%patch25 -p1}
1861 %{__tar} jxf %{SOURCE9}
1862 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1863 mv $v/$v gentoo-patchset
1864 for a in gentoo-patchset/*.patch; do
1877 %if "%{pld_release}" != "ac"
1882 # mysql default charset for mysql/mysql/pdo-mysql extensions
1914 %{?with_system_libzip:%patch65 -p1}
1921 # Bugfix backport from 5.3.6
1922 %patch311 -p1 -b .bug-47435
1923 %patch314 -p1 -b .bug-39199
1924 # Bugfix backport from 5.3.7
1925 #accert %patch333 -p1 -b .bug-54924
1926 #soap %patch355 -p1 -b .bug-55323
1927 # causes regression -> magic_quotes_gpc setting cannot be changed
1928 #%%patch402 -p1 -b .bug-323016
1930 # conflict seems to be resolved by recode patches
1931 rm -f ext/recode/config9.m4
1933 # remove all bundled libraries not to link with them accidentally
1934 #rm -rf ext/sqlite/libsqlite
1935 #rm -rf ext/bcmath/libbcmath
1936 #rm -rf ext/date/lib
1937 #rm -rf ext/dba/libcdb
1938 #rm -rf ext/dba/libflatfile
1939 #rm -rf ext/dba/libinifile
1940 #rm -rf ext/gd/libgd
1941 #rm -rf ext/mbstring/libmbfl
1942 #rm -rf ext/mbstring/oniguruma
1943 rm -rf ext/pcre/pcrelib
1944 rm -rf ext/pdo_sqlite/sqlite
1945 #rm -rf ext/soap/interop
1946 %if %{with system_xmlrpc_epi}
1947 rm -rf ext/xmlrpc/libxmlrpc
1951 # this test hungs on ac-ppc
1952 #mv ext/reflection/tests/007.php{,ignore}
1953 # this test gets killed by itself
1954 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1957 cp -af Zend/LICENSE{,.Zend}
1958 install -p %{SOURCE13} dep-tests.sh
1960 # disable broken tests
1961 # says just "Terminated" twice and fails
1962 mv sapi/cli/tests/022.phpt{,.broken}
1964 sh -xe %{_sourcedir}/skip-tests.sh
1967 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1968 if [ $API != %{php_api_version} ]; then
1969 echo "Set %%define php_api_version to $API and re-run."
1973 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1974 if [ $API != %{zend_module_api} ]; then
1975 echo "Set %%define zend_module_api to $API and re-run."
1979 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1980 if [ $API != %{zend_extension_api} ]; then
1981 echo "Set %%define zend_extension_api to $API and re-run."
1985 export EXTENSION_DIR="%{php_extensiondir}"
1986 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1987 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1990 cp -f /usr/share/automake/config.* .
1994 export PROG_SENDMAIL="/usr/lib/sendmail"
2011 for sapi in $sapis; do
2013 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2018 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2021 sapi_args='--disable-cgi'
2024 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2027 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2030 ver=$(rpm -q --qf '%{V}' apache1-devel)
2031 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
2034 ver=$(rpm -q --qf '%{V}' apache-devel)
2035 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
2041 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2042 --cache-file=config.cache \
2044 --with-libdir=%{_lib} \
2045 --with-config-file-path=%{_sysconfdir} \
2046 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2047 --with-exec-dir=%{_bindir} \
2048 --with-system-tzdata \
2049 --%{!?debug:dis}%{?debug:en}able-debug \
2050 %{?with_zts:--enable-maintainer-zts} \
2051 %{?with_suhosin:--enable-suhosin} \
2052 %{?with_zend_multibyte:--enable-zend-multibyte} \
2053 --enable-inline-optimization \
2054 --enable-bcmath=shared \
2055 --enable-calendar=shared \
2056 --enable-ctype=shared \
2057 --enable-dba=shared \
2058 --enable-dom=shared \
2059 --enable-exif=shared \
2060 --enable-ftp=shared \
2061 --enable-gd-native-ttf \
2062 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2064 --enable-magic-quotes \
2065 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2067 --enable-pcntl=shared \
2068 --enable-pdo=shared \
2069 --enable-json=shared \
2070 --enable-hash=shared \
2071 --enable-xmlwriter=shared \
2073 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2074 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2075 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2077 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2078 --with-pdo-dblib=shared \
2080 %if %{with interbase} && !%{with interbase_inst}
2081 --with-pdo-firebird=shared,/usr \
2083 --with-pdo-mysql=shared \
2084 %{?with_oci8:--with-pdo-oci=shared} \
2085 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2086 %{?with_pgsql:--with-pdo-pgsql=shared} \
2087 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2088 --enable-posix=shared \
2089 --enable-reflection \
2091 --enable-session=shared \
2092 --enable-shmop=shared \
2093 --enable-simplexml=shared \
2094 --enable-spl=shared \
2095 --enable-sysvmsg=shared \
2096 --enable-sysvsem=shared \
2097 --enable-sysvshm=shared \
2098 --enable-safe-mode \
2099 --enable-soap=shared \
2100 --enable-sockets=shared \
2101 --enable-tokenizer=shared \
2102 --enable-ucd-snmp-hack \
2103 %{?with_wddx:--enable-wddx=shared} \
2104 --enable-xml=shared \
2105 --enable-xmlreader=shared \
2107 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2109 --enable-dbase=shared \
2110 --without-libexpat-dir \
2111 %{?with_fdf:--with-fdftk=shared} \
2112 --with-iconv=shared \
2113 --with-freetype-dir=shared \
2114 --with-gettext=shared \
2115 --with-gd=shared%{?with_system_gd:,/usr} \
2118 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2119 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2120 --with-jpeg-dir=/usr \
2121 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2122 --with-mcrypt=shared \
2123 %{?with_mhash:--with-mhash=shared} \
2124 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2125 %{?with_ming:--with-ming=shared} \
2126 %{?with_mm:--with-mm} \
2127 %{?with_mssql:--with-mssql=shared} \
2128 --with-mysql=shared,/usr \
2129 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2130 %{?with_mysqli:--with-mysqli=shared} \
2131 --with-ncurses=shared \
2132 %{?with_oci8:--with-oci8=shared} \
2133 %{?with_openssl:--with-openssl=shared} \
2135 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2136 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2137 --with-pear=%{php_pear_dir} \
2138 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2139 --with-png-dir=/usr \
2140 %{?with_pspell:--with-pspell=shared} \
2141 --with-readline=shared \
2142 %{?with_recode:--with-recode=shared} \
2144 %{?with_snmp:--with-snmp=shared} \
2145 %{?with_sybase:--with-sybase=shared,/usr} \
2146 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2147 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2148 --with-t1lib=shared \
2149 %{?with_tidy:--with-tidy=shared} \
2150 %{?with_odbc:--with-unixODBC=shared,/usr} \
2151 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2153 --with-zlib=shared \
2154 --with-zlib-dir=shared,/usr \
2155 %{?with_system_libzip:--with-libzip} \
2156 --enable-zip=shared,/usr \
2158 cp -f Makefile Makefile.$sapi
2159 cp -f main/php_config.h php_config.h.$sapi
2160 cp -f config.log config.log.$sapi
2163 # as we build each SAPI in own make, adjust php-config.in forehead
2164 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2165 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2167 # must make this first, so modules can link against it.
2168 %{__make} libphp_common.la
2169 %{__make} build-modules
2172 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2176 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2180 cp -af php_config.h.cgi main/php_config.h
2181 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2182 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2183 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2187 cp -af php_config.h.fcgi main/php_config.h
2188 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2189 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2190 cp -r sapi/cgi sapi/fcgi
2191 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2195 cp -af php_config.h.fpm main/php_config.h
2196 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2197 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2198 cp -r sapi/cgi sapi/fpm
2199 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2203 cp -af php_config.h.cli main/php_config.h
2204 %{__make} sapi/cli/php -f Makefile.cli
2205 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2207 # check for stupid xml parse breakage where < and > just get lost in parse result
2208 ./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"]));'
2210 # Generate stub .ini files for each extension
2213 generate_inifiles() {
2214 for so in modules/*.so; do
2215 mod=$(basename $so .so)
2217 # xml needs to be loaded before wddx
2218 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2219 # pre needs to be loaded before SPL
2220 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2221 # spl needs to be loaded before mysqli
2222 [ "$mod" = "spl" ] && conf="SPL.ini"
2223 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2224 [ "$mod" = "session" ] && conf="Session.ini"
2226 cat > conf.d/$conf <<-EOF
2227 ; Enable $mod extension module
2234 # Check that the module inner-dependencies are intact
2235 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2236 if grep -v OK dep-tests.log; then
2237 echo >&2 "The results above were not expected"
2238 # TEMP: ac-i386 builder is broken
2246 # Run tests, using the CLI SAPI
2247 cp -af php_config.h.cli main/php_config.h
2248 cp -af Makefile.cli Makefile
2249 # sybase modules collide, remove one
2250 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2252 cat <<'EOF' > run-tests.sh
2254 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2255 unset TZ LANG LC_ALL || :
2258 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2259 RUN_TESTS_SETTINGS="-q $*"
2261 chmod +x run-tests.sh
2262 ./run-tests.sh -w failed.log -s test.log
2264 # collect failed tests into cleanup script used in prep.
2265 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2266 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2267 >> %{_sourcedir}/skip-tests.sh
2269 failed=$(wc -l < tests-failed.log)
2270 if [ "$failed" != 0 ]; then
2276 rm -rf $RPM_BUILD_ROOT
2277 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2278 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2279 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2280 $RPM_BUILD_ROOT%{_mandir}/man1 \
2282 # install the Apache modules' files
2283 %{__make} install-headers install-build install-modules install-programs \
2284 INSTALL_ROOT=$RPM_BUILD_ROOT
2286 # install Apache1 DSO module
2288 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2289 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-%{version}}.so
2290 ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2293 # install Apache2 DSO module
2295 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2296 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-%{version}}.so
2297 ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2300 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2301 # fix install paths, avoid evil rpaths
2302 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2304 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2307 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2311 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2316 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2317 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2318 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2319 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2320 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2321 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2322 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2325 s#/usr/lib/php#%{php_extensiondir}#
2326 s#/etc/php#%{_sysconfdir}#
2327 s#@processname@#%{name}-fpm#g
2328 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2332 # without suffix, install as php.cli
2333 %if "%{?php_suffix}" == ""
2334 %define phpfn %{name}.cli
2336 %define phpfn %{name}
2338 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2339 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2340 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2341 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2342 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2344 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2346 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2348 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2349 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2350 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2353 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2354 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2355 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2359 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2360 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2361 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2364 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2365 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2367 # ensure that paths are correct for current php version and arch
2368 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2370 s#/usr/lib/php#%{php_extensiondir}#g
2371 s#/etc/php#%{_sysconfdir}#g
2374 # per SAPI ini directories
2375 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2378 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2380 # use system automake and {lib,sh}tool
2381 %if "%{pld_release}" != "ac"
2382 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2383 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2384 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2386 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2388 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2389 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2391 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2393 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2394 # isn't installed by install-headers make target, we do it manually here.
2395 # this header file is required by e.g. filter PECL extension
2396 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2397 # for php-pecl-mailparse
2398 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2399 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2402 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2403 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2404 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2407 rm -rf $RPM_BUILD_ROOT
2409 %post -n apache1-mod_%{name}
2410 if [ "$1" = "1" ]; then
2411 %service -q apache restart
2414 %postun -n apache1-mod_%{name}
2415 if [ "$1" = "0" ]; then
2416 %service -q apache restart
2419 %post -n apache-mod_%{name}
2420 if [ "$1" = "1" ]; then
2421 %service -q httpd restart
2424 %postun -n apache-mod_%{name}
2425 if [ "$1" = "0" ]; then
2426 %service -q httpd restart
2430 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2433 /sbin/chkconfig --add %{name}-fpm
2434 %service %{name}-fpm restart
2437 if [ "$1" = 0 ]; then
2438 %service %{name}-fpm stop
2439 /sbin/chkconfig --del %{name}-fpm
2443 if [ "$1" = "0" ]; then
2447 %post common -p /sbin/ldconfig
2448 %postun common -p /sbin/ldconfig
2451 # minimizing apache restarts logics. we restart webserver:
2453 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2454 # 2. first install of extension (post: $1 = 1)
2455 # 2. uninstall of extension (postun: $1 == 0)
2457 # the strict internal deps between extensions (and apache modules) and
2458 # common package are very important for all this to work.
2460 # restart webserver at the end of transaction
2461 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2462 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2464 # common macros called at extension post/postun scriptlet
2465 %define extension_scripts() \
2467 if [ "$1" = "1" ]; then \
2468 %php_webserver_restart \
2472 if [ "$1" = "0" ]; then \
2473 %php_webserver_restart \
2477 # extension scripts defines
2478 %extension_scripts bcmath
2479 %extension_scripts bz2
2480 %extension_scripts calendar
2481 %extension_scripts ctype
2482 %extension_scripts curl
2483 %extension_scripts dba
2484 %extension_scripts dbase
2485 %extension_scripts dom
2486 %extension_scripts exif
2487 %extension_scripts fdf
2488 %extension_scripts filter
2489 %extension_scripts ftp
2490 %extension_scripts gd
2491 %extension_scripts gettext
2492 %extension_scripts gmp
2493 %extension_scripts hash
2494 %extension_scripts iconv
2495 %extension_scripts imap
2496 %extension_scripts interbase
2497 %extension_scripts json
2498 %extension_scripts ldap
2499 %extension_scripts mbstring
2500 %extension_scripts mcrypt
2501 %extension_scripts mhash
2502 %extension_scripts mime_magic
2503 %extension_scripts ming
2504 %extension_scripts mssql
2505 %extension_scripts mysql
2506 %extension_scripts mysqli
2507 %extension_scripts oci8
2508 %extension_scripts odbc
2509 %extension_scripts openssl
2510 %extension_scripts pcntl
2511 %extension_scripts pcre
2512 %extension_scripts pdo
2513 %extension_scripts pdo-dblib
2514 %extension_scripts pdo-firebird
2515 %extension_scripts pdo-oci
2516 %extension_scripts pdo-mysql
2517 %extension_scripts pdo-odbc
2518 %extension_scripts pdo-pgsql
2519 %extension_scripts pdo-sqlite
2520 %extension_scripts pgsql
2521 %extension_scripts posix
2522 %extension_scripts pspell
2523 %extension_scripts recode
2524 %extension_scripts session
2525 %extension_scripts simplexml
2526 %extension_scripts shmop
2527 %extension_scripts snmp
2528 %extension_scripts soap
2529 %extension_scripts sockets
2530 %extension_scripts spl
2531 %extension_scripts sqlite
2532 %extension_scripts sybase
2533 %extension_scripts sybase-ct
2534 %extension_scripts sysvmsg
2535 %extension_scripts sysvsem
2536 %extension_scripts sysvshm
2537 %extension_scripts tidy
2538 %extension_scripts tokenizer
2539 %extension_scripts wddx
2540 %extension_scripts xml
2541 %extension_scripts xmlreader
2542 %extension_scripts xmlrpc
2543 %extension_scripts xmlwriter
2544 %extension_scripts xsl
2545 %extension_scripts zip
2546 %extension_scripts zlib
2549 %files -n apache1-mod_%{name}
2550 %defattr(644,root,root,755)
2551 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2552 %dir %{_sysconfdir}/apache.d
2553 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2554 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2555 %attr(755,root,root) %{_libdir}/apache1/libphp5-%{version}.so
2559 %files -n apache-mod_%{name}
2560 %defattr(644,root,root,755)
2561 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2562 %dir %{_sysconfdir}/apache2handler.d
2563 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2564 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2565 %attr(755,root,root) %{_libdir}/apache/libphp5-%{version}.so
2570 %defattr(644,root,root,755)
2571 %doc sapi/cgi/README.FastCGI
2572 %dir %{_sysconfdir}/cgi-fcgi.d
2573 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2574 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2578 %defattr(644,root,root,755)
2579 %dir %{_sysconfdir}/cgi.d
2580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2581 %attr(755,root,root) %{_bindir}/%{name}.cgi
2584 %defattr(644,root,root,755)
2585 %dir %{_sysconfdir}/cli.d
2586 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2587 %attr(755,root,root) %{_bindir}/%{phpfn}
2588 %{_mandir}/man1/%{phpfn}.1*
2591 %defattr(644,root,root,755)
2592 %attr(755,root,root) %{_bindir}/php
2593 %{_mandir}/man1/php.1*
2597 %defattr(644,root,root,755)
2598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2599 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2600 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2601 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2605 %defattr(644,root,root,755)
2607 %doc CREDITS Zend/ZEND_CHANGES
2608 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2609 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2612 %dir %{_sysconfdir}/conf.d
2613 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2614 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2615 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2616 %dir %{php_extensiondir}
2619 %defattr(644,root,root,755)
2620 %doc README.UNIX-BUILD-SYSTEM
2621 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2622 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2623 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2624 %attr(755,root,root) %{_bindir}/phpize
2625 %attr(755,root,root) %{_bindir}/php-config
2626 %attr(755,root,root) %{_libdir}/libphp_common.so
2627 %{_libdir}/libphp_common.la
2629 %{_libdir}/php/build
2630 %{_mandir}/man1/php-config.1*
2631 %{_mandir}/man1/phpize.1*
2634 %defattr(644,root,root,755)
2635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2636 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2639 %defattr(644,root,root,755)
2640 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2641 %attr(755,root,root) %{php_extensiondir}/bz2.so
2644 %defattr(644,root,root,755)
2645 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2646 %attr(755,root,root) %{php_extensiondir}/calendar.so
2649 %defattr(644,root,root,755)
2650 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2651 %attr(755,root,root) %{php_extensiondir}/ctype.so
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2657 %attr(755,root,root) %{php_extensiondir}/curl.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2663 %attr(755,root,root) %{php_extensiondir}/dba.so
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2668 %attr(755,root,root) %{php_extensiondir}/dbase.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2673 %attr(755,root,root) %{php_extensiondir}/dom.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2679 %attr(755,root,root) %{php_extensiondir}/fdf.so
2684 %defattr(644,root,root,755)
2685 %doc README.input_filter
2686 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2687 %attr(755,root,root) %{php_extensiondir}/filter.so
2691 %defattr(644,root,root,755)
2692 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2693 %attr(755,root,root) %{php_extensiondir}/exif.so
2696 %defattr(644,root,root,755)
2697 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2698 %attr(755,root,root) %{php_extensiondir}/ftp.so
2701 %defattr(644,root,root,755)
2702 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2703 %attr(755,root,root) %{php_extensiondir}/gd.so
2706 %defattr(644,root,root,755)
2707 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2708 %attr(755,root,root) %{php_extensiondir}/gettext.so
2711 %defattr(644,root,root,755)
2712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2713 %attr(755,root,root) %{php_extensiondir}/gmp.so
2716 %defattr(644,root,root,755)
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2718 %attr(755,root,root) %{php_extensiondir}/hash.so
2721 %defattr(644,root,root,755)
2722 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2723 %attr(755,root,root) %{php_extensiondir}/iconv.so
2727 %defattr(644,root,root,755)
2728 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2729 %attr(755,root,root) %{php_extensiondir}/imap.so
2732 %if %{with interbase}
2734 %defattr(644,root,root,755)
2735 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2736 %attr(755,root,root) %{php_extensiondir}/interbase.so
2740 %defattr(644,root,root,755)
2741 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2742 %attr(755,root,root) %{php_extensiondir}/json.so
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2748 %attr(755,root,root) %{php_extensiondir}/ldap.so
2751 %if %{without zend_multibyte}
2753 %defattr(644,root,root,755)
2754 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2755 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2759 %defattr(644,root,root,755)
2760 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2761 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2765 %defattr(644,root,root,755)
2766 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2767 %attr(755,root,root) %{php_extensiondir}/mhash.so
2770 %if %{with mime_magic}
2772 %defattr(644,root,root,755)
2773 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2774 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2779 %defattr(644,root,root,755)
2780 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2781 %attr(755,root,root) %{php_extensiondir}/ming.so
2786 %defattr(644,root,root,755)
2787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2788 %attr(755,root,root) %{php_extensiondir}/mssql.so
2792 %defattr(644,root,root,755)
2793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2794 %attr(755,root,root) %{php_extensiondir}/mysql.so
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2800 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2806 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2810 %defattr(644,root,root,755)
2811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2812 %attr(755,root,root) %{php_extensiondir}/oci8.so
2817 %defattr(644,root,root,755)
2818 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2819 %attr(755,root,root) %{php_extensiondir}/odbc.so
2824 %defattr(644,root,root,755)
2825 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2826 %attr(755,root,root) %{php_extensiondir}/openssl.so
2830 %defattr(644,root,root,755)
2831 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2832 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2836 %defattr(644,root,root,755)
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2838 %attr(755,root,root) %{php_extensiondir}/pcre.so
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2844 %attr(755,root,root) %{php_extensiondir}/pdo.so
2846 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2850 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2853 %if %{with interbase} && !%{with interbase_inst}
2855 %defattr(644,root,root,755)
2856 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2857 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2861 %defattr(644,root,root,755)
2862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2863 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2869 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2874 %defattr(644,root,root,755)
2875 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2876 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2881 %defattr(644,root,root,755)
2882 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2883 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2888 %defattr(644,root,root,755)
2889 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2890 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2895 %defattr(644,root,root,755)
2896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2897 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2901 %defattr(644,root,root,755)
2902 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2903 %attr(755,root,root) %{php_extensiondir}/posix.so
2907 %defattr(644,root,root,755)
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2909 %attr(755,root,root) %{php_extensiondir}/pspell.so
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2915 %attr(755,root,root) %{php_extensiondir}/readline.so
2919 %defattr(644,root,root,755)
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2921 %attr(755,root,root) %{php_extensiondir}/recode.so
2925 %defattr(644,root,root,755)
2926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2927 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2930 %defattr(644,root,root,755)
2931 %doc ext/session/mod_files.sh
2932 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2933 %attr(755,root,root) %{php_extensiondir}/session.so
2936 %defattr(644,root,root,755)
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2938 %attr(755,root,root) %{php_extensiondir}/shmop.so
2942 %defattr(644,root,root,755)
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2944 %attr(755,root,root) %{php_extensiondir}/snmp.so
2948 %defattr(644,root,root,755)
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2950 %attr(755,root,root) %{php_extensiondir}/soap.so
2953 %defattr(644,root,root,755)
2954 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2955 %attr(755,root,root) %{php_extensiondir}/sockets.so
2958 %defattr(644,root,root,755)
2959 %doc ext/spl/{CREDITS,README,TODO}
2960 %doc ext/spl/examples
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2962 %attr(755,root,root) %{php_extensiondir}/spl.so
2966 %defattr(644,root,root,755)
2967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2968 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2973 %defattr(644,root,root,755)
2974 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2975 %attr(755,root,root) %{php_extensiondir}/sybase.so
2978 %if %{with sybase_ct}
2980 %defattr(644,root,root,755)
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2982 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2986 %defattr(644,root,root,755)
2987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2988 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2991 %defattr(644,root,root,755)
2992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2993 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2996 %defattr(644,root,root,755)
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2998 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3001 %defattr(644,root,root,755)
3002 %dir %{php_data_dir}/tests
3003 %dir %{php_data_dir}/tests/php
3004 %{php_data_dir}/tests/php/basic
3005 %{php_data_dir}/tests/php/classes
3006 %{php_data_dir}/tests/php/func
3007 %{php_data_dir}/tests/php/lang
3008 %{php_data_dir}/tests/php/output
3009 %{php_data_dir}/tests/php/run-test
3010 %{php_data_dir}/tests/php/security
3011 %{php_data_dir}/tests/php/strings
3012 %{php_data_dir}/tests/php/quicktester.inc
3013 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3015 # random junk, didn't check, maybe can be just removed
3016 %{php_data_dir}/tests/php/bin-info.inc
3017 %{php_data_dir}/tests/php/foo*
3018 %{php_data_dir}/tests/php/odbc*.php
3019 %{php_data_dir}/tests/php/recurse
3020 %{php_data_dir}/tests/php/run.*
3021 %{php_data_dir}/tests/php/scan_cases
3022 %{php_data_dir}/tests/php/test*
3026 %defattr(644,root,root,755)
3027 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3028 %attr(755,root,root) %{php_extensiondir}/tidy.so
3032 %defattr(644,root,root,755)
3033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3034 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3040 %attr(755,root,root) %{php_extensiondir}/wddx.so
3044 %defattr(644,root,root,755)
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3046 %attr(755,root,root) %{php_extensiondir}/xml.so
3049 %defattr(644,root,root,755)
3050 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3051 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3055 %defattr(644,root,root,755)
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3057 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3063 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3066 %defattr(644,root,root,755)
3067 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3068 %attr(755,root,root) %{php_extensiondir}/xsl.so
3071 %defattr(644,root,root,755)
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3073 %attr(755,root,root) %{php_extensiondir}/zip.so
3076 %defattr(644,root,root,755)
3077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3078 %attr(755,root,root) %{php_extensiondir}/zlib.so