2 # - php CLI has safe mode enabled in default config (!!!), recheck default .ini configs?
3 # main php.ini is not loaded at all (at least for cli):
4 # strace -efile php -m 2>&1 | grep /etc/php/php.ini
5 # - wddx: restore session support (not compiled in due DL extension check)
6 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
7 # - removed from php 5.0 (currently in php4):
8 # db, hyperwave, java, mcal, overload, qtdom
9 # - removed from php 5.1:
11 # - removed from php 5.2:
13 # - removed from php 5.3:
14 # dbase, mime_magic, ming, ncurses, sybase
15 # - make additional headers and checking added by mail patch configurable
16 # - modularize standard (output from pure php -m)?
17 # - lib64 patch obsolete by $PHP_LIBDIR ?
18 # - move mysqlnd out of libphp-common.so, or link again with mysql-devel? (!!!)
19 # make mysqlnd as subpkg like pdo is base for all pdo drivers
20 # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is
21 # built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared.
22 # make it runtime dep and add Suggests (or php warning messages)
23 # - some mods should be shared:
34 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
35 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
36 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
37 %bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
38 %bcond_with litespeed # build litespeed module
39 %bcond_without curl # without CURL extension module
40 %bcond_without filter # without filter extension module
41 %bcond_without imap # without IMAP extension module
42 %bcond_without interbase # without InterBase extension module
43 %bcond_without ldap # without LDAP 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 phar # without phar extension module
52 %bcond_without pspell # without pspell extension module
53 %bcond_without recode # without recode extension module
54 %bcond_without snmp # without SNMP extension module
55 %bcond_without sqlite # without SQLite extension module
56 %bcond_without sqlite3 # without SQLite3 extension module
57 %bcond_without sybase_ct # without Sybase-CT extension module
58 %bcond_without tidy # without Tidy extension module
59 %bcond_without wddx # without WDDX extension module
60 %bcond_without xmlrpc # without XML-RPC extension module
61 %bcond_without apache1 # disable building Apache 1.3.x module
62 %bcond_without apache2 # disable building Apache 2.x module
63 %bcond_without 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 tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
67 %bcond_with type_hints # experimental support for strict typing/casting
69 %define apxs1 /usr/sbin/apxs1
70 %define apxs2 /usr/sbin/apxs
72 # some problems with apache 2.x
77 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
78 # ppc disabled (broken on th-ppc)
79 %undefine with_interbase
82 %ifnarch %{ix86} %{x8664}
83 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
87 %if %{without apache1} && %{without apache2}
88 ERROR: You need to select at least one Apache SAPI to build shared modules.
91 # filter depends on pcre
97 Summary: PHP: Hypertext Preprocessor
98 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
99 Summary(pl.UTF-8): Język skryptowy PHP
100 Summary(pt_BR.UTF-8): A linguagem de script PHP
101 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
102 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
105 Release: %{rel}%{?with_type_hints:th}
109 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
110 # Source0-md5: 46f500816125202c48a458d0133254a4
111 Source2: %{name}-mod_%{name}.conf
112 Source3: %{name}-cgi-fcgi.ini
113 Source4: %{name}-apache.ini
114 Source5: %{name}-cli.ini
115 # Taken from: http://browsers.garykeith.com/downloads.asp
116 Source9: %{name}_browscap.ini
117 Source10: %{name}-fpm.init
118 Source11: %{name}-fpm.logrotate
119 Source12: %{name}-branch.sh
120 Source13: dep-tests.sh
121 Source14: skip-tests.sh
122 Patch0: %{name}-shared.patch
123 Patch1: %{name}-pldlogo.patch
124 Patch2: %{name}-mail.patch
125 Patch3: %{name}-link-libs.patch
126 Patch4: %{name}-libpq_fs_h_path.patch
127 Patch5: %{name}-filter-shared.patch
128 Patch6: %{name}-build_modules.patch
129 Patch7: %{name}-sapi-ini-file.patch
130 Patch8: %{name}-config-file-scan-dir.patch
131 Patch9: %{name}-sh.patch
132 Patch10: %{name}-ini.patch
133 %if %{with type_hints}
134 Patch12: http://ilia.ws/patch/type_hint_53_v2.txt
136 Patch14: %{name}-no_pear_install.patch
137 Patch15: %{name}-zlib.patch
138 Patch17: %{name}-readline.patch
139 Patch18: %{name}-nohttpd.patch
140 Patch19: %{name}-gd_imagerotate_enable.patch
141 Patch20: %{name}-uint32_t.patch
142 Patch21: %{name}-dba-link.patch
143 Patch22: %{name}-both-apxs.patch
144 Patch23: %{name}-builddir.patch
145 Patch24: %{name}-zlib-for-getimagesize.patch
146 Patch25: %{name}-stupidapache_version.patch
147 Patch26: %{name}-pear.patch
148 Patch27: %{name}-config-dir.patch
149 Patch29: %{name}-fcgi-graceful.patch
150 Patch31: %{name}-fcgi-error_log-no-newlines.patch
151 Patch32: %{name}-curl-limit-speed.patch
152 Patch34: %{name}-libtool.patch
153 Patch35: %{name}-tds.patch
154 Patch36: %{name}-mysql-charsetphpini.patch
155 Patch37: %{name}-mysqli-charsetphpini.patch
156 Patch38: %{name}-pdo_mysql-charsetphpini.patch
157 Patch39: %{name}-use-prog_sendmail.patch
158 Patch40: %{name}-fpm.patch
159 Patch41: %{name}-fpm-config.patch
160 Patch42: %{name}-fpm-shared.patch
161 Patch43: %{name}-silent-session-cleanup.patch
162 Patch44: %{name}-include_path.patch
163 Patch45: %{name}-imap-annotations.patch
164 Patch46: %{name}-imap-myrights.patch
165 Patch47: suhosin.patch
166 Patch49: %{name}-m4-divert.patch
167 Patch50: extension-shared-optional-dep.patch
168 Patch51: spl-shared.patch
169 Patch52: pcre-shared.patch
170 Patch53: fix-test-run.patch
171 URL: http://www.php.net/
172 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
173 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
174 BuildRequires: autoconf >= 2.53
175 BuildRequires: automake >= 1.4d
177 BuildRequires: bzip2-devel
178 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
179 BuildRequires: cyrus-sasl-devel
180 BuildRequires: db-devel >= 4.0
181 BuildRequires: elfutils-devel
182 #BuildRequires: fcgi-devel
183 %{?with_fdf:BuildRequires: fdftk-devel}
185 BuildRequires: pkgconfig
186 %if %{with mssql} || %{with sybase_ct}
187 BuildRequires: freetds-devel >= 0.82
189 BuildRequires: freetype-devel >= 2.0
190 %if %{with system_gd}
191 BuildRequires: gd-devel >= 2.0.28-4
192 BuildRequires: gd-devel(imagerotate) = 5.2.0
194 BuildRequires: gdbm-devel
195 BuildRequires: gmp-devel
196 %{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2}
197 BuildRequires: libicu-devel
198 BuildRequires: libjpeg-devel
199 BuildRequires: libltdl-devel >= 1.4
200 BuildRequires: libmcrypt-devel >= 2.4.4
201 BuildRequires: libpng-devel >= 1.0.8
202 #BuildRequires: libtiff-devel
203 %if "%{pld_release}" != "ac"
204 BuildRequires: libtool >= 2:2.2
206 BuildRequires: libtool >= 1.4.3
208 #BuildRequires: libwrap-devel
209 BuildRequires: libxml2-devel >= 2.5.10
210 BuildRequires: libxslt-devel >= 1.1.0
211 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
212 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
213 %if %{with openssl} || %{with ldap}
214 BuildRequires: openssl-devel >= 0.9.7d
216 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
217 BuildRequires: pam-devel
218 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
219 BuildRequires: pkgconfig
220 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
221 %{?with_pgsql:BuildRequires: postgresql-devel}
222 BuildRequires: readline-devel
223 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
224 BuildRequires: rpm >= 4.4.9-56
225 BuildRequires: rpm-build >= 4.4.0
226 BuildRequires: rpmbuild(macros) >= 1.527
227 %{?with_sqlite:BuildRequires: sqlite-devel}
228 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3.3.9}
229 BuildRequires: t1lib-devel
230 %{?with_tidy:BuildRequires: tidy-devel}
231 %{?with_odbc:BuildRequires: unixODBC-devel}
232 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel}
233 BuildRequires: zlib-devel >= 1.0.9
235 BuildRequires: apache1-devel
238 BuildRequires: apache-devel >= 2.0.52-2
239 BuildRequires: apr-devel >= 1:1.0.0
240 BuildRequires: apr-util-devel >= 1:1.0.0
243 #BuildRequires: judy-devel
244 BuildRequires: libevent-devel >= 1.4.7-3
246 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
248 %define php_sysconfdir /etc/php
249 %define php_extensiondir %{_libdir}/php
250 %define _sysconfdir %{php_sysconfdir}
252 # must be in sync with source. extra check ensuring that it is so is done in %%build
253 %define php_api_version 20090626
254 %define zend_module_api 20090626
255 %define zend_extension_api 220090626
257 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
258 %define php_debug %{!?debug:0}%{?debug:1}
261 # ORACLE_HOME is required for oci8 ext to build
262 %define _preserve_env %_preserve_env_base ORACLE_HOME
266 PHP is an HTML-embedded scripting language. PHP attempts to make it
267 easy for developers to write dynamically generated web pages. PHP also
268 offers built-in database integration for several commercial and
269 non-commercial database management systems, so writing a
270 database-enabled web page with PHP is fairly simple. The most common
271 use of PHP coding is probably as a replacement for CGI scripts. The
272 mod_php module enables the Apache web server to understand and process
273 the embedded PHP language in web pages. This package contains PHP
276 %description -l fr.UTF-8
277 PHP est un langage de script embarque dans le HTM. PHP essaye de
278 rendre simple aux developpeurs d'ecrire des pages web generees
279 dynamiquement. PHP incorpore egalement une integration avec plusieurs
280 systemes de gestion de bases de donnees commerciaux et
281 non-connerciaux, qui rent facile la creation de pages web liees avec
282 des bases de donnees. L'utilisation la plus commune de PHP est
283 probablement en remplacement de scripts CGI. Le module mod_php permet
284 au serveur web Apache de comprendre et de traiter le langage PHP
285 integre dans des pages web. Ce package contient PHP version
288 %description -l pl.UTF-8
289 PHP jest językiem skryptowym, którego polecenia umieszcza się w
290 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
291 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
292 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
293 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
294 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
295 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
296 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
299 %description -l pt_BR.UTF-8
300 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
301 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
302 com algumas características únicas, específicas ao PHP. O objetivo da
303 linguagem é permitir que desenvolvedores web escrevam páginas
304 dinamicamente geradas de forma rápida.
306 %description -l ru.UTF-8
307 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
308 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
309 для работы с базами данных относительно просто. Наиболее популярное
310 использование PHP - замена для CGI скриптов.
312 %description -l uk.UTF-8
313 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
314 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
315 роботи з базами даних є доволі простим. Найбільш популярне
316 використання PHP - заміна для CGI скриптів.
318 %package -n apache1-mod_php
319 Summary: PHP DSO module for Apache 1.3.x
320 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
321 Group: Development/Languages/PHP
322 Requires(triggerpostun): sed >= 4.0
323 Requires: %{name}-common = %{epoch}:%{version}-%{release}
324 Requires: apache1(EAPI) >= 1.3.33-2
325 Requires: apache1-mod_mime
326 Provides: webserver(php) = %{version}
327 Obsoletes: apache-mod_php < 1:4.1.1
330 %description -n apache1-mod_php
331 PHP as DSO module for Apache 1.3.x.
333 %description -n apache1-mod_php -l pl.UTF-8
334 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
336 %package -n apache-mod_php
337 Summary: PHP DSO module for Apache 2.x
338 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
339 Group: Development/Languages/PHP
340 Requires: %{name}-common = %{epoch}:%{version}-%{release}
341 Requires: apache(modules-api) = %{apache_modules_api}
342 Requires: apache-mod_mime
343 Provides: webserver(php) = %{version}
346 %description -n apache-mod_php
347 PHP as DSO module for Apache 2.x.
349 %description -n apache-mod_php -l pl.UTF-8
350 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
353 Summary: PHP for litespeed HTTP server
354 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
355 Group: Development/Languages/PHP
356 Requires: %{name}-common = %{epoch}:%{version}-%{release}
357 Provides: webserver(php) = %{version}
359 %description litespeed
360 PHP for litespeed HTTP server.
362 %description litespeed -l pl.UTF-8
363 PHP dla serwera HTTP litespeed.
366 Summary: PHP as CGI/FastCGI program
367 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
368 Group: Development/Languages/PHP
369 Requires: %{name}-common = %{epoch}:%{version}-%{release}
370 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
373 Provides: webserver(php)
374 Obsoletes: php-fcgi < 4:5.3.0
377 PHP as CGI or FastCGI program.
379 %description cgi -l pl.UTF-8
380 PHP jako program CGI lub FastCGI.
383 Summary: PHP as CLI interpreter
384 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
385 Group: Development/Languages/PHP
386 Requires: %{name}-common = %{epoch}:%{version}-%{release}
389 PHP as CLI interpreter.
391 %description cli -l pl.UTF-8
392 PHP jako interpreter działający z linii poleceń.
395 Summary: /usr/bin/php symlink
396 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
397 Group: Development/Languages/PHP
398 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
399 Obsoletes: /usr/bin/php
402 Package providing /usr/bin/php symlink to PHP CLI.
404 %description program -l pl.UTF-8
405 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
408 Summary: PHP FastCGI Process Manager
409 Group: Development/Languages/PHP
410 URL: http://www.php-fpm.org/
411 Requires(post,preun): /sbin/chkconfig
412 Requires(postun): /usr/sbin/userdel
413 Requires(pre): /bin/id
414 Requires(pre): /usr/sbin/useradd
415 Requires: %{name}-common = %{epoch}:%{version}-%{release}
416 Requires: libevent >= 1.4.7-3
419 Provides: webserver(php) = %{version}
422 PHP FastCGI Process Manager.
425 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
426 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
427 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
428 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
430 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
431 Requires: glibc >= 6:2.3.5
433 Requires: rpm-whiteout >= 1.28
437 Provides: php(libxml)
438 Provides: php(modules_api) = %{php_api_version}
439 Provides: php(overload)
440 Provides: php(reflection)
441 Provides: php(standard)
442 Provides: php(zend_extension_api) = %{zend_extension_api}
443 Provides: php(zend_module_api) = %{zend_module_api}
446 Provides: php-overload
447 Provides: php-reflection
448 Provides: php-standard
449 Provides: php5(debug) = %{php_debug}
450 Provides: php5(thread-safety) = %{zend_zts}
451 Obsoletes: php-pecl-domxml
452 Conflicts: php4-common < 3:4.4.4-8
453 Conflicts: rpm < 4.4.2-0.2
456 Common files needed by both Apache modules and CGI/CLI SAPI-s.
458 %description common -l pl.UTF-8
459 Wspólne pliki dla modułu Apache'a i programu CGI.
461 %description common -l ru.UTF-8
462 Этот пакет содержит общие файлы для разных вариантов реализации PHP
463 (самодостаточной и в качестве модуля Apache).
465 %description common -l uk.UTF-8
466 Цей пакет містить спільні файли для різних варіантів реалізації PHP
467 (самодостатньої та в якості модуля Apache).
470 Summary: Files for PHP modules development
471 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
472 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
473 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
474 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
475 Group: Development/Languages/PHP
476 Requires: %{name}-common = %{epoch}:%{version}-%{release}
479 %if "%{pld_release}" != "ac"
480 Requires: libtool >= 2:2.2
484 %{?with_pcre:Requires: pcre-devel >= 6.6}
486 Obsoletes: php-pear-devel
487 Obsoletes: php4-devel
490 The php-devel package lets you compile dynamic extensions to PHP.
491 Included here is the source for the PHP extensions. Instead of
492 recompiling the whole PHP binary to add support for, say, oracle,
493 install this package and use the new self-contained extensions
494 support. For more information, read the file
495 README.SELF-CONTAINED-EXTENSIONS.
497 %description devel -l pl.UTF-8
498 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
499 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
500 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
501 samodzielnych rozszerzeniach można znaleźć w pliku
502 README.SELF-CONTAINED-EXTENSIONS.
504 %description devel -l pt_BR.UTF-8
505 Este pacote contém arquivos usados no desenvolvimento de programas ou
508 %description devel -l ru.UTF-8
509 Пакет php-devel дает возможность компилировать динамические расширения
510 PHP. Пакет включает исходный код этих расширений. Вместо повторной
511 компиляции бинарного файла PHP для добавления, например, поддержки
512 oracle, установите этот пакет для компилирования отдельных расширений.
513 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
515 %description devel -l uk.UTF-8
516 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
517 До пакету включено вихідний код для розширень. Замість повторної
518 компіляції бінарного файлу PHP для додання, наприклад, підтримки
519 oracle, встановіть цей пакет для компіляції окремих розширень.
520 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
523 Summary: bcmath extension module for PHP
524 Summary(pl.UTF-8): Moduł bcmath dla PHP
526 URL: http://www.php.net/manual/en/book.bc.php
527 Requires: %{name}-common = %{epoch}:%{version}-%{release}
528 Provides: php(bcmath)
531 This is a dynamic shared object (DSO) for PHP that will add bc style
532 precision math functions support.
534 %description bcmath -l pl.UTF-8
535 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
536 matematycznych takich jak w programie bc.
539 Summary: Bzip2 extension module for PHP
540 Summary(pl.UTF-8): Moduł bzip2 dla PHP
542 URL: http://www.php.net/manual/en/book.bzip2.php
543 Requires: %{name}-common = %{epoch}:%{version}-%{release}
547 This is a dynamic shared object (DSO) for PHP that will add bzip2
548 compression support to PHP.
550 %description bzip2 -l pl.UTF-8
551 Moduł PHP umożliwiający używanie kompresji bzip2.
554 Summary: Calendar extension module for PHP
555 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
557 URL: http://www.php.net/manual/en/book.calendar.php
558 Requires: %{name}-common = %{epoch}:%{version}-%{release}
559 Provides: php(calendar)
561 %description calendar
562 This is a dynamic shared object (DSO) for PHP that will add calendar
565 %description calendar -l pl.UTF-8
566 Moduł PHP dodający wsparcie dla kalendarza.
569 Summary: ctype extension module for PHP
570 Summary(pl.UTF-8): Moduł ctype dla PHP
572 URL: http://www.php.net/manual/en/book.ctype.php
573 Requires: %{name}-common = %{epoch}:%{version}-%{release}
577 This is a dynamic shared object (DSO) for PHP that will add ctype
580 %description ctype -l pl.UTF-8
581 Moduł PHP umożliwiający korzystanie z funkcji ctype.
584 Summary: curl extension module for PHP
585 Summary(pl.UTF-8): Moduł curl dla PHP
587 URL: http://www.php.net/manual/en/book.curl.php
588 Requires: %{name}-common = %{epoch}:%{version}-%{release}
592 This is a dynamic shared object (DSO) for PHP that will add curl
595 %description curl -l pl.UTF-8
596 Moduł PHP umożliwiający korzystanie z biblioteki curl.
599 Summary: DBA extension module for PHP
600 Summary(pl.UTF-8): Moduł DBA dla PHP
602 URL: http://www.php.net/manual/en/book.dba.php
603 Requires: %{name}-common = %{epoch}:%{version}-%{release}
607 This is a dynamic shared object (DSO) for PHP that will add flat-file
608 databases (DBA) support.
610 %description dba -l pl.UTF-8
611 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
615 Summary: DOM extension module for PHP
616 Summary(pl.UTF-8): Moduł DOM dla PHP
618 URL: http://www.php.net/manual/en/book.dom.php
619 Requires: %{name}-common = %{epoch}:%{version}-%{release}
621 # it has some compatibility functions
622 Provides: php(domxml)
623 Obsoletes: php-domxml <= 3:4.3.8-1
626 This is a dynamic shared object (DSO) for PHP that will add new DOM
629 %description dom -l pl.UTF-8
630 Moduł PHP dodający nową obsługę DOM.
633 Summary: exif extension module for PHP
634 Summary(pl.UTF-8): Moduł exif dla PHP
636 URL: http://www.php.net/manual/en/book.exif.php
637 Requires: %{name}-common = %{epoch}:%{version}-%{release}
641 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
642 support in image files.
644 %description exif -l pl.UTF-8
645 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
648 Summary: FDF extension module for PHP
649 Summary(pl.UTF-8): Moduł FDF dla PHP
651 URL: http://www.php.net/manual/en/book.fdf.php
652 Requires: %{name}-common = %{epoch}:%{version}-%{release}
656 This PHP module adds support for PDF Forms through Adobe FDFTK
659 %description fdf -l pl.UTF-8
660 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
664 Summary: libmagic bindings
666 URL: http://www.php.net/manual/en/book.fileinfo.php
667 Requires: %{name}-common = %{epoch}:%{version}-%{release}
668 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
669 Provides: php(fileinfo)
670 Obsoletes: php-pecl-fileinfo
672 %description fileinfo
673 This extension allows retrieval of information regarding vast majority
674 of file. This information may include dimensions, quality, length
677 Additionally it can also be used to retrieve the MIME type for a
678 particular file and for text files proper language encoding.
681 Summary: Extension for safely dealing with input parameters
682 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
684 URL: http://www.php.net/manual/en/book.filter.php
685 Requires: %{name}-common = %{epoch}:%{version}-%{release}
686 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
687 Provides: php(filter)
688 Obsoletes: php-pecl-filter
691 We all know that you should always check input variables, but PHP does
692 not offer really good functionality for doing this in a safe way. The
693 Input Filter extension is meant to address this issue by implementing
694 a set of filters and mechanisms that users can use to safely access
697 %description filter -l pl.UTF-8
698 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
699 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
700 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
701 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
702 mogą bezpiecznie używać do dostępu do danych.
705 Summary: FTP extension module for PHP
706 Summary(pl.UTF-8): Moduł FTP dla PHP
708 URL: http://www.php.net/manual/en/book.ftp.php
709 Requires: %{name}-common = %{epoch}:%{version}-%{release}
713 This is a dynamic shared object (DSO) for PHP that will add FTP
716 %description ftp -l pl.UTF-8
717 Moduł PHP dodający obsługę protokołu FTP.
720 Summary: GD extension module for PHP
721 Summary(pl.UTF-8): Moduł GD dla PHP
723 URL: http://www.php.net/manual/en/book.image.php
724 Requires: %{name}-common = %{epoch}:%{version}-%{release}
725 %if %{with system_gd}
726 Requires: gd >= 2.0.28-4
728 Requires: gd(imagerotate) = 5.2.0
733 This is a dynamic shared object (DSO) for PHP that will add GD
734 support, allowing you to create and manipulate images with PHP.
736 %description gd -l pl.UTF-8
737 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
738 tworzenie i obróbkę obrazków.
741 Summary: gettext extension module for PHP
742 Summary(pl.UTF-8): Moduł gettext dla PHP
744 URL: http://www.php.net/manual/en/book.gettext.php
745 Requires: %{name}-common = %{epoch}:%{version}-%{release}
746 Provides: php(gettext)
749 This is a dynamic shared object (DSO) for PHP that will add gettext
752 %description gettext -l pl.UTF-8
753 Moduł PHP dodający obsługę lokalizacji przez gettext.
756 Summary: gmp extension module for PHP
757 Summary(pl.UTF-8): Moduł gmp dla PHP
759 URL: http://www.php.net/manual/en/book.gmp.php
760 Requires: %{name}-common = %{epoch}:%{version}-%{release}
764 This is a dynamic shared object (DSO) for PHP that will add arbitrary
765 length number support with GNU MP library.
767 %description gmp -l pl.UTF-8
768 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
769 liczbach o dowolnej długości.
772 Summary: HASH Message Digest Framework
773 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
775 URL: http://www.php.net/manual/en/book.gmp.php
776 Requires: %{name}-common = %{epoch}:%{version}-%{release}
780 Obsoletes: php-pecl-hash
783 Native implementations of common message digest algorithms using a
784 generic factory method.
786 %description hash -l pl.UTF-8
787 Natywne implementacje popularnych algorytmów obliczania skrótów
788 wiadomości przy użyciu wspólnego interfejsu.
791 Summary: iconv extension module for PHP
792 Summary(pl.UTF-8): Moduł iconv dla PHP
794 URL: http://www.php.net/manual/en/book.iconv.php
795 Requires: %{_libdir}/gconv
796 Requires: %{name}-common = %{epoch}:%{version}-%{release}
801 This is a dynamic shared object (DSO) for PHP that will add iconv
804 %description iconv -l pl.UTF-8
805 Moduł PHP dodający obsługę iconv.
808 Summary: IMAP extension module for PHP
809 Summary(pl.UTF-8): Moduł IMAP dla PHP
810 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
812 URL: http://www.php.net/manual/en/book.imap.php
813 Requires: %{name}-common = %{epoch}:%{version}-%{release}
814 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
818 This is a dynamic shared object (DSO) for PHP that will add IMAP
821 %description imap -l pl.UTF-8
822 Moduł PHP dodający obsługę skrzynek IMAP.
824 %description imap -l pt_BR.UTF-8
825 Um módulo para aplicações PHP que usam IMAP.
828 Summary: InterBase/Firebird database module for PHP
829 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
831 URL: http://www.php.net/manual/en/book.ibase.php
832 Requires: %{name}-common = %{epoch}:%{version}-%{release}
833 Provides: php(interbase)
834 %{?with_interbase_inst:Autoreq: false}
836 %description interbase
837 This is a dynamic shared object (DSO) for PHP that will add InterBase
838 and Firebird database support.
840 %description interbase -l pl.UTF-8
841 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
844 Summary: Internationalization extension (ICU wrapper)
845 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (wrapper ICU)
847 URL: http://www.php.net/intl
848 Requires: %{name}-common = %{epoch}:%{version}-%{release}
852 Internationalization extension (further is referred as Intl) is a
853 wrapper for ICU library, enabling PHP programmers to perform
854 UCA-conformant collation and date/time/number/currency formatting in
857 %description intl -l pl.UTF-8
858 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
859 wrapperem biblioteki ICU, pozwalającym programistom PHP na wykonywanie
860 w skryptach porównań zdgodnych z UCA oraz formatowań daty/czasu/walut.
863 Summary: PHP C extension for JSON serialization
864 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
866 URL: http://www.php.net/manual/en/book.json.php
867 Requires: %{name}-common = %{epoch}:%{version}-%{release}
869 Obsoletes: php-pecl-json
872 php-json is an extremely fast PHP C extension for JSON (JavaScript
873 Object Notation) serialisation.
875 %description json -l pl.UTF-8
876 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
877 (JavaScript Object Notation).
880 Summary: LDAP extension module for PHP
881 Summary(pl.UTF-8): Moduł LDAP dla PHP
882 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
884 URL: http://www.php.net/manual/en/book.ldap.php
885 Requires: %{name}-common = %{epoch}:%{version}-%{release}
889 This is a dynamic shared object (DSO) for PHP that will add LDAP
892 %description ldap -l pl.UTF-8
893 Moduł PHP dodający obsługę LDAP.
895 %description ldap -l pt_BR.UTF-8
896 Um módulo para aplicações PHP que usam LDAP.
899 Summary: mbstring extension module for PHP
900 Summary(pl.UTF-8): Moduł mbstring dla PHP
902 URL: http://www.php.net/manual/en/book.mbstring.php
903 Requires: %{name}-common = %{epoch}:%{version}-%{release}
904 Provides: php(mbstring)
906 %description mbstring
907 This is a dynamic shared object (DSO) for PHP that will add multibyte
910 %description mbstring -l pl.UTF-8
911 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
914 Summary: mcrypt extension module for PHP
915 Summary(pl.UTF-8): Moduł mcrypt dla PHP
917 URL: http://www.php.net/manual/en/book.mcrypt.php
918 Requires: %{name}-common = %{epoch}:%{version}-%{release}
919 Provides: php(mcrypt)
922 This is a dynamic shared object (DSO) for PHP that will add mcrypt
925 %description mcrypt -l pl.UTF-8
926 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
929 Summary: MS SQL extension module for PHP
930 Summary(pl.UTF-8): Moduł MS SQL dla PHP
932 URL: http://www.php.net/manual/en/book.mssql.php
933 Requires: %{name}-common = %{epoch}:%{version}-%{release}
937 This is a dynamic shared object (DSO) for PHP that will add MS SQL
938 databases support through FreeTDS library.
940 %description mssql -l pl.UTF-8
941 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
945 Summary: MySQL database module for PHP
946 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
947 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
949 URL: http://www.php.net/manual/en/book.mysql.php
950 Requires: %{name}-common = %{epoch}:%{version}-%{release}
954 This is a dynamic shared object (DSO) for PHP that will add MySQL
957 %description mysql -l pl.UTF-8
958 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
960 %description mysql -l pt_BR.UTF-8
961 Um módulo para aplicações PHP que usam bancos de dados MySQL.
964 Summary: MySQLi module for PHP
965 Summary(pl.UTF-8): Moduł MySQLi dla PHP
967 URL: http://www.php.net/manual/en/book.mysqli.php
968 Requires: %{name}-common = %{epoch}:%{version}-%{release}
969 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
970 Provides: php(mysqli)
973 This is a dynamic shared object (DSO) for PHP that will add MySQLi
974 (Improved MySQL) support. The difference between it and mysql module
975 is that it provides access to functionality of MySQL 4.1 and above.
977 %description mysqli -l pl.UTF-8
978 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
979 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
980 MySQL w wersji 4.1 i nowszych.
983 Summary: Oracle 8+ database module for PHP
984 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
986 URL: http://www.php.net/manual/en/book.oci8.php
987 Requires: %{name}-common = %{epoch}:%{version}-%{release}
992 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
993 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
995 %description oci8 -l pl.UTF-8
996 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
997 poprzez interfejs Oracle8 Call-Interface (OCI8).
1000 Summary: ODBC extension module for PHP
1001 Summary(pl.UTF-8): Moduł ODBC dla PHP
1002 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1004 URL: http://www.php.net/manual/en/book.uodbc.php
1005 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1006 Requires: unixODBC >= 2.1.1-3
1010 This is a dynamic shared object (DSO) for PHP that will add ODBC
1013 %description odbc -l pl.UTF-8
1014 Moduł PHP ze wsparciem dla ODBC.
1016 %description odbc -l pt_BR.UTF-8
1017 Um módulo para aplicações PHP que usam ODBC.
1020 Summary: OpenSSL extension module for PHP
1021 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1023 URL: http://www.php.net/manual/en/book.openssl.php
1024 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1025 Provides: php(openssl)
1027 %description openssl
1028 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1031 %description openssl -l pl.UTF-8
1032 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1035 Summary: Process Control extension module for PHP
1036 Summary(pl.UTF-8): Moduł Process Control dla PHP
1038 URL: http://www.php.net/manual/en/book.pcntl.php
1039 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1040 Provides: php(pcntl)
1043 This is a dynamic shared object (DSO) for PHP that will add process
1044 spawning and control support. It supports functions like fork(),
1045 waitpid(), signal() etc.
1047 %description pcntl -l pl.UTF-8
1048 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1049 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1052 Summary: PCRE extension module for PHP
1053 Summary(pl.UTF-8): Moduł PCRE dla PHP
1055 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1059 This is a dynamic shared object (DSO) for PHP that will add Perl
1060 Compatible Regular Expression support.
1062 %description pcre -l pl.UTF-8
1063 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1064 (Perl Compatible Regular Expressions)
1067 Summary: PHP Data Objects (PDO)
1068 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1070 URL: http://www.php.net/manual/en/book.pdo.php
1071 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1072 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1074 Obsoletes: php-pecl-PDO
1077 This is a dynamic shared object (DSO) for PHP that will add PDO
1080 %description pdo -l pl.UTF-8
1081 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1084 Summary: PHP Data Objects (PDO) FreeTDS support
1085 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1087 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1088 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1089 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1090 Provides: php(dblib)
1092 %description pdo-dblib
1093 This is a dynamic shared object (DSO) for PHP that will add PDO
1096 %description pdo-dblib -l pl.UTF-8
1097 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1100 %package pdo-firebird
1101 Summary: PHP Data Objects (PDO) Firebird support
1102 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1104 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1105 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1106 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1107 Provides: php(pdo-firebird)
1108 Obsoletes: php-pecl-PDO_FIREBIRD
1110 %description pdo-firebird
1111 This is a dynamic shared object (DSO) for PHP that will add PDO
1114 %description pdo-firebird -l pl.UTF-8
1115 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1119 Summary: PHP Data Objects (PDO) MySQL support
1120 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1122 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1123 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1124 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1125 Provides: php(pdo-mysql)
1126 Obsoletes: php-pecl-PDO_MYSQL
1128 %description pdo-mysql
1129 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1132 %description pdo-mysql -l pl.UTF-8
1133 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1137 Summary: PHP Data Objects (PDO) Oracle support
1138 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1140 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1141 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1142 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1143 Provides: php(pdo-oci)
1144 Obsoletes: php-pecl-PDO_OCI
1146 %description pdo-oci
1147 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1150 %description pdo-oci -l pl.UTF-8
1151 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1155 Summary: PHP Data Objects (PDO) ODBC support
1156 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1158 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1159 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1160 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1161 Provides: php(pdo-odbc)
1162 Obsoletes: php-pecl-PDO_ODBC
1164 %description pdo-odbc
1165 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1168 %description pdo-odbc -l pl.UTF-8
1169 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1173 Summary: PHP Data Objects (PDO) PostgreSQL support
1174 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1176 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1177 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1178 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1179 Provides: php(pdo-pgsql)
1180 Provides: php-pecl-PDO_PGSQL
1181 Obsoletes: php-pecl-PDO_PGSQL
1183 %description pdo-pgsql
1184 This is a dynamic shared object (DSO) for PHP that will add PDO
1187 %description pdo-pgsql -l pl.UTF-8
1188 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1192 Summary: PHP Data Objects (PDO) SQLite support
1193 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1195 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1196 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1197 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1198 Provides: php(pdo-sqlite)
1199 Obsoletes: php-pecl-PDO_SQLITE
1201 %description pdo-sqlite
1202 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1205 %description pdo-sqlite -l pl.UTF-8
1206 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1210 Summary: PostgreSQL database module for PHP
1211 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1213 URL: http://www.php.net/manual/en/book.pgsql.php
1214 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1215 Provides: php(pgsql)
1218 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1221 %description pgsql -l pl.UTF-8
1222 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1224 %description pgsql -l pt_BR.UTF-8
1225 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1228 Summary: phar database module for PHP
1229 Summary(pl.UTF-8): Moduł phar dla PHP
1231 URL: http://www.php.net/manual/en/book.phar.php
1232 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1233 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1237 This is a dynamic shared object (DSO) for PHP that will add phar
1240 %description phar -l pl.UTF-8
1241 Moduł PHP umożliwiający dostęp do achiwów .phar.
1244 Summary: POSIX extension module for PHP
1245 Summary(pl.UTF-8): Moduł POSIX dla PHP
1247 URL: http://www.php.net/manual/en/book.posix.php
1248 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1249 Provides: php(posix)
1252 This is a dynamic shared object (DSO) for PHP that will add POSIX
1253 functions support to PHP.
1255 %description posix -l pl.UTF-8
1256 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1259 Summary: pspell extension module for PHP
1260 Summary(pl.UTF-8): Moduł pspell dla PHP
1262 URL: http://www.php.net/manual/en/book.pspell.php
1263 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1264 Provides: php(pspell)
1267 This is a dynamic shared object (DSO) for PHP that will add pspell
1268 support to PHP. It allows to check the spelling of a word and offer
1271 %description pspell -l pl.UTF-8
1272 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1273 sprawdzanie pisowni słowa i sugerowanie poprawek.
1276 Summary: readline extension module for PHP
1277 Summary(pl.UTF-8): Moduł readline dla PHP
1279 URL: http://www.php.net/manual/en/book.readline.php
1280 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1281 Provides: php(readline)
1283 %description readline
1284 This PHP module adds support for readline functions (only for cli and
1287 %description readline -l pl.UTF-8
1288 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1291 Summary: recode extension module for PHP
1292 Summary(pl.UTF-8): Moduł recode dla PHP
1294 URL: http://www.php.net/manual/en/book.recode.php
1295 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1296 Requires: recode >= 3.5d-3
1297 Provides: php(recode)
1300 This is a dynamic shared object (DSO) for PHP that will add recode
1303 %description recode -l pl.UTF-8
1304 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1308 Summary: session extension module for PHP
1309 Summary(pl.UTF-8): Moduł session dla PHP
1311 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1312 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1313 Provides: php(session)
1315 %description session
1316 This is a dynamic shared object (DSO) for PHP that will add session
1319 %description session -l pl.UTF-8
1320 Moduł PHP dodający obsługę sesji.
1323 Summary: Shared Memory Operations extension module for PHP
1324 Summary(pl.UTF-8): Moduł shmop dla PHP
1326 URL: http://www.php.net/manual/en/book.shmop.php
1327 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1328 Provides: php(shmop)
1331 This is a dynamic shared object (DSO) for PHP that will add Shared
1332 Memory Operations support.
1334 %description shmop -l pl.UTF-8
1335 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1338 Summary: Simple XML extension module for PHP
1339 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1341 URL: http://www.php.net/manual/en/book.simplexml.php
1342 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1343 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1344 Provides: php(simplexml)
1346 %description simplexml
1347 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1350 %description simplexml -l pl.UTF-8
1351 Moduł PHP dodający obsługę prostego XML-a.
1354 Summary: SNMP extension module for PHP
1355 Summary(pl.UTF-8): Moduł SNMP dla PHP
1357 URL: http://www.php.net/manual/en/book.snmp.php
1358 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1359 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1363 This is a dynamic shared object (DSO) for PHP that will add SNMP
1366 %description snmp -l pl.UTF-8
1367 Moduł PHP dodający obsługę SNMP.
1370 Summary: soap extension module for PHP
1371 Summary(pl.UTF-8): Moduł soap dla PHP
1373 URL: http://www.php.net/manual/en/book.soap.php
1374 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1378 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1381 %description soap -l pl.UTF-8
1382 Moduł PHP dodający obsługę SOAP/WSDL.
1385 Summary: sockets extension module for PHP
1386 Summary(pl.UTF-8): Moduł socket dla PHP
1388 URL: http://www.php.net/manual/en/book.sockets.php
1389 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1390 Provides: php(sockets)
1392 %description sockets
1393 This is a dynamic shared object (DSO) for PHP that will add sockets
1396 %description sockets -l pl.UTF-8
1397 Moduł PHP dodający obsługę gniazdek.
1400 Summary: Standard PHP Library module for PHP
1401 Summary(pl.UTF-8): Moduł SPL dla PHP
1403 URL: http://php.net/manual/en/book.spl.php
1404 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1405 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1406 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1410 This is a dynamic shared object (DSO) for PHP that will add Standard
1411 PHP Library support.
1413 %description spl -l pl.UTF-8
1414 Moduł PHP dodający obsługę gniazdek.
1417 Summary: SQLite extension module for PHP
1418 Summary(pl.UTF-8): Moduł SQLite dla PHP
1420 URL: http://www.php.net/manual/en/book.sqlite.php
1421 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1422 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1423 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1424 Provides: php(sqlite)
1427 SQLite is a C library that implements an embeddable SQL database
1428 engine. Programs that link with the SQLite library can have SQL
1429 database access without running a separate RDBMS process.
1431 SQLite is not a client library used to connect to a big database
1432 server. SQLite is the server. The SQLite library reads and writes
1433 directly to and from the database files on disk.
1435 %description sqlite -l pl.UTF-8
1436 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1437 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1438 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1441 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1442 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1443 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1447 Summary: SQLite3 extension module for PHP
1448 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1450 URL: http://php.net/manual/en/book.sqlite3.php
1451 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1452 Provides: php(sqlite3)
1454 %description sqlite3
1455 SQLite is a C library that implements an embeddable SQL database
1456 engine. Programs that link with the SQLite library can have SQL
1457 database access without running a separate RDBMS process.
1459 SQLite is not a client library used to connect to a big database
1460 server. SQLite is the server. The SQLite library reads and writes
1461 directly to and from the database files on disk.
1463 %description sqlite3 -l pl.UTF-8
1464 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1465 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1466 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1469 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1470 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1471 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1475 Summary: Sybase-CT extension module for PHP
1476 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1478 URL: http://www.php.net/manual/en/book.sybase.php
1479 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1480 Provides: php(sybase-ct)
1481 Obsoletes: php-sybase
1482 Conflicts: php-sybase
1484 %description sybase-ct
1485 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1486 MS SQL databases support through CT-lib.
1488 %description sybase-ct -l pl.UTF-8
1489 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1493 Summary: SysV msg extension module for PHP
1494 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1496 URL: http://www.php.net/manual/en/book.sem.php
1497 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1498 Provides: php(sysvmsg)
1500 %description sysvmsg
1501 This is a dynamic shared object (DSO) for PHP that will add SysV
1502 message queues support.
1504 %description sysvmsg -l pl.UTF-8
1505 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1508 Summary: SysV sem extension module for PHP
1509 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1511 URL: http://www.php.net/manual/en/book.sem.php
1512 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1513 Provides: php(sysvsem)
1515 %description sysvsem
1516 This is a dynamic shared object (DSO) for PHP that will add SysV
1519 %description sysvsem -l pl.UTF-8
1520 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1523 Summary: SysV shm extension module for PHP
1524 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1526 URL: http://www.php.net/manual/en/book.shmop.php
1527 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1528 Provides: php(sysvshm)
1530 %description sysvshm
1531 This is a dynamic shared object (DSO) for PHP that will add SysV
1532 Shared Memory support.
1534 %description sysvshm -l pl.UTF-8
1535 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1538 Summary: Contains unit test files for PHP and extensions
1539 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1541 URL: http://qa.php.net/
1542 Requires: %{name}-cli
1545 This package contains unit tests for PHP and it's extensions.
1547 %description tests -l pl.UTF-8
1548 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1551 Summary: Tidy extension module for PHP
1552 Summary(pl.UTF-8): Moduł Tidy dla PHP
1554 URL: http://www.php.net/manual/en/book.tidy.php
1555 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1560 This is a dynamic shared object (DSO) for PHP that will add Tidy
1563 %description tidy -l pl.UTF-8
1564 Moduł PHP umożliwiający korzystanie z tidy.
1567 Summary: tokenizer extension module for PHP
1568 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1570 URL: http://www.php.net/manual/en/book.tokenizer.php
1571 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1572 Provides: php(tokenizer)
1574 %description tokenizer
1575 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1578 %description tokenizer -l pl.UTF-8
1579 Moduł PHP dodający obsługę tokenizera do PHP.
1582 Summary: wddx extension module for PHP
1583 Summary(pl.UTF-8): Moduł wddx dla PHP
1585 URL: http://www.php.net/manual/en/book.wddx.php
1586 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1587 # - wddx doesn't require session as it's disabled at compile time:
1588 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1589 # see also php.spec#rev1.120.2.22
1590 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1591 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1595 This is a dynamic shared object (DSO) for PHP that will add wddx
1598 %description wddx -l pl.UTF-8
1599 Moduł PHP umożliwiający korzystanie z wddx.
1602 Summary: XML extension module for PHP
1603 Summary(pl.UTF-8): Moduł XML dla PHP
1605 URL: http://www.php.net/manual/en/book.xml.php
1606 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1610 This is a dynamic shared object (DSO) for PHP that will add XML
1611 support. This extension lets you create XML parsers and then define
1612 handlers for different XML events.
1614 %description xml -l pl.UTF-8
1615 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1616 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1617 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1620 Summary: XML Reader extension module for PHP
1621 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1623 URL: http://www.php.net/manual/en/book.xmlreader.php
1624 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1625 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1626 Provides: php(xmlreader)
1628 %description xmlreader
1629 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1630 support. The XMLReader extension is an XML Pull parser. The reader
1631 acts as a cursor going forward on the document stream and stopping at
1632 each node on the way.
1634 %description xmlreader -l pl.UTF-8
1635 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1636 działa jako kursor przechodzący przez strumień dokumentu i
1637 zatrzymujący się na każdym węźle po drodze.
1640 Summary: xmlrpc extension module for PHP
1641 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1643 URL: http://www.php.net/manual/en/book.xmlrpc.php
1644 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1645 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1646 Provides: php(xmlrpc)
1649 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1652 %description xmlrpc -l pl.UTF-8
1653 Moduł PHP dodający obsługę XMLRPC.
1656 Summary: Fast, non-cached, forward-only means to write XML data
1657 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1659 URL: http://www.php.net/manual/en/book.xmlwriter.php
1660 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1661 Provides: php(xmlwriter)
1662 Obsoletes: php-pecl-xmlwriter
1664 %description xmlwriter
1665 This extension wraps the libxml xmlWriter API. Represents a writer
1666 that provides a non-cached, forward-only means of generating streams
1667 or files containing XML data.
1669 %description xmlwriter -l pl.UTF-8
1670 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1671 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1672 plików zawierających dane XML.
1675 Summary: xsl extension module for PHP
1676 Summary(pl.UTF-8): Moduł xsl dla PHP
1678 URL: http://www.php.net/manual/en/book.xsl.php
1679 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1680 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1681 Requires: libxslt >= 1.0.18
1682 # actually not true, functionality is similar, but API differs
1684 Obsoletes: php-xslt <= 3:4.3.8-1
1687 This is a dynamic shared object (DSO) for PHP that will add new XSL
1688 support (using libxslt).
1690 %description xsl -l pl.UTF-8
1691 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1694 Summary: Zip management extension
1695 Summary(pl.UTF-8): Zarządzanie archiwami zip
1697 URL: http://www.php.net/manual/en/book.zip.php
1698 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1700 Obsoletes: php-pecl-zip
1703 Zip is an extension to create, modify and read zip files.
1705 %description zip -l pl.UTF-8
1706 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1707 odczyt archiwów zip.
1710 Summary: Zlib extension module for PHP
1711 Summary(pl.UTF-8): Moduł zlib dla PHP
1713 URL: http://www.php.net/manual/en/book.zlib.php
1714 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1718 This is a dynamic shared object (DSO) for PHP that will add zlib
1719 compression support to PHP.
1721 %description zlib -l pl.UTF-8
1722 Moduł PHP umożliwiający używanie kompresji zlib.
1726 # prep for suhosin patch
1727 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1738 cp php.ini-production php.ini
1740 %if %{with type_hints}
1747 %if %{with system_gd}
1761 %if "%{pld_release}" != "ac"
1787 %if "%{pld_release}" != "ac"
1788 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1791 # cleanup backups after patching
1792 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1794 # conflict seems to be resolved by recode patches
1795 rm -f ext/recode/config9.m4
1797 # remove all bundled libraries not to link with them accidentally
1798 #rm -rf ext/sqlite/libsqlite
1799 rm -rf ext/sqlite3/libsqlite
1800 #rm -rf ext/bcmath/libbcmath
1801 #rm -rf ext/date/lib
1802 #rm -rf ext/dba/libcdb
1803 #rm -rf ext/dba/libflatfile
1804 #rm -rf ext/dba/libinifile
1805 #rm -rf ext/gd/libgd
1806 #rm -rf ext/mbstring/libmbfl
1807 #rm -rf ext/mbstring/oniguruma
1808 rm -rf ext/pcre/pcrelib
1809 rm -rf ext/pdo_sqlite/sqlite
1810 #rm -rf ext/soap/interop
1811 rm -r ext/xmlrpc/libxmlrpc
1813 cp -af Zend/LICENSE{,.Zend}
1814 install -p %{SOURCE13} dep-tests.sh
1817 sed -i -e 's#-fvisibility=hidden##g' configure*
1819 # disable broken tests
1820 # says just "Terminated" twice and fails
1821 mv sapi/cli/tests/022.phpt{,.broken}
1823 sh -xe %{_sourcedir}/skip-tests.sh
1826 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1827 if [ $API != %{php_api_version} ]; then
1828 echo "Set %%define php_api_version to $API and re-run."
1832 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1833 if [ $API != %{zend_module_api} ]; then
1834 echo "Set %%define zend_module_api to $API and re-run."
1838 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1839 if [ $API != %{zend_extension_api} ]; then
1840 echo "Set %%define zend_extension_api to $API and re-run."
1844 export EXTENSION_DIR="%{php_extensiondir}"
1845 # configure once (for faster debugging purposes)
1846 if [ ! -f _built-conf ]; then
1847 # now remove Makefile copies
1848 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed}
1851 cp -f /usr/share/automake/config.* .
1855 export PROG_SENDMAIL="/usr/lib/sendmail"
1856 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
1857 -I%{_includedir}/xmlrpc-epi"
1870 %if %{with litespeed}
1874 for sapi in $sapis; do
1876 # skip if already configured (for faster debugging purposes)
1877 [ -f Makefile.$sapi ] && continue
1882 sapi_args='--disable-cli'
1885 sapi_args='--disable-cgi'
1888 sapi_args='--disable-cli --with-fpm'
1891 ver=$(rpm -q --qf '%{V}' apache1-devel)
1892 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
1895 ver=$(rpm -q --qf '%{V}' apache-devel)
1896 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
1899 sapi_args='--with-litespeed'
1905 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1906 --cache-file=config.cache \
1908 --with-libdir=%{_lib} \
1909 --with-config-file-path=%{_sysconfdir} \
1910 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1911 --with-exec-dir=%{_bindir} \
1912 --%{!?debug:dis}%{?debug:en}able-debug \
1913 %{?with_zts:--enable-maintainer-zts} \
1914 --enable-inline-optimization \
1915 --enable-bcmath=shared \
1916 --enable-calendar=shared \
1917 --enable-ctype=shared \
1918 --enable-dba=shared \
1919 --enable-dom=shared \
1920 --enable-exif=shared \
1921 --enable-fileinfo=shared \
1922 --enable-ftp=shared \
1923 --enable-gd-native-ttf \
1924 --enable-intl=shared \
1926 --enable-magic-quotes \
1927 --enable-mbstring=shared,all \
1929 --enable-pcntl=shared \
1930 --enable-pdo=shared \
1931 --enable-json=shared \
1932 --enable-hash=shared \
1933 --enable-xmlwriter=shared \
1935 --with-libevent=shared \
1936 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
1937 --with-fpm-log=/var/log/fpm.log \
1938 --with-fpm-pid=/var/run/php/fpm.pid \
1939 --with-fpm-port=9000 \
1940 --with-fpm-user=http \
1941 --with-fpm-group=http \
1943 %if %{with mssql} || %{with sybase_ct}
1944 --with-pdo-dblib=shared \
1946 %if %{with interbase} && %{without interbase_inst}
1947 --with-pdo-firebird=shared,/usr \
1949 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1950 --with-pdo-mysql=shared,mysqlnd \
1951 %{?with_oci8:--with-pdo-oci=shared} \
1952 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1953 %{?with_pgsql:--with-pdo-pgsql=shared} \
1954 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1955 --without-libexpat-dir \
1956 --enable-mysqlnd-threading \
1957 --enable-overload=shared \
1958 --enable-posix=shared \
1960 --enable-session=shared \
1961 --enable-shmop=shared \
1962 --enable-simplexml=shared \
1963 --enable-spl=shared \
1964 --enable-sysvmsg=shared \
1965 --enable-sysvsem=shared \
1966 --enable-sysvshm=shared \
1967 --enable-safe-mode \
1968 --enable-soap=shared \
1969 --enable-sockets=shared \
1970 --enable-tokenizer=shared \
1971 --enable-ucd-snmp-hack \
1972 %{?with_wddx:--enable-wddx=shared} \
1973 --enable-xml=shared \
1974 --enable-xmlreader=shared \
1976 %{__with_without curl curl shared} \
1978 %{?with_fdf:--with-fdftk=shared} \
1979 --with-iconv=shared \
1980 --with-freetype-dir=shared \
1981 --with-gettext=shared \
1982 --with-gd=shared%{?with_system_gd:,/usr} \
1985 %{?with_imap:--with-imap=shared --with-imap-ssl} \
1986 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1987 --with-jpeg-dir=/usr \
1988 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1989 --with-mcrypt=shared \
1990 %{?with_mm:--with-mm} \
1991 %{?with_mssql:--with-mssql=shared} \
1992 --with-mysql=shared,mysqlnd \
1993 %{?with_mysqli:--with-mysqli=shared,mysqlnd} \
1994 %{?with_oci8:--with-oci8=shared} \
1995 %{?with_openssl:--with-openssl=shared} \
1997 %{__with_without pcre pcre-regex /usr} \
1998 %{__enable_disable filter filter shared} \
1999 --with-pear=%{php_pear_dir} \
2000 %{__with_without pgsql pgsql shared,/usr} \
2001 %{__enable_disable phar phar shared} \
2002 --with-png-dir=/usr \
2003 %{?with_pspell:--with-pspell=shared} \
2004 --with-readline=shared \
2005 %{?with_recode:--with-recode=shared} \
2006 --with-regex=system \
2007 %{?with_snmp:--with-snmp=shared} \
2008 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2009 %{!?with_sqlite:--without-sqlite --without-pdo-sqlite}%{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2010 %{__with_without sqlite3 sqlite3 shared,/usr} \
2011 --with-t1lib=shared \
2012 %{?with_tidy:--with-tidy=shared} \
2013 %{?with_odbc:--with-unixODBC=shared,/usr} \
2014 %{__with_without xmlrpc xmlrpc shared,/usr} \
2016 --with-zlib=shared \
2017 --with-zlib-dir=shared,/usr \
2018 --enable-zip=shared,/usr \
2021 cp -f Makefile Makefile.$sapi
2022 cp -f main/php_config.h php_config.h.$sapi
2023 cp -f config.log config.log.$sapi
2026 # as we build each SAPI in own make, adjust php-config.in forehead
2027 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2028 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2030 # must make libphp_common first, so modules can link against it.
2031 %{__make} libphp_common.la
2032 %{__make} build-modules
2035 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2039 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2042 %if %{with litespeed}
2043 %{__make} -f Makefile.litespeed
2047 cp -af php_config.h.cgi-fcgi main/php_config.h
2048 %{__make} -f Makefile.cgi-fcgi
2049 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2053 cp -af php_config.h.fpm main/php_config.h
2054 %{__make} -f Makefile.fpm
2055 ./sapi/fpm/php-fpm -qn -m > /dev/null
2059 cp -af php_config.h.cli main/php_config.h
2060 %{__make} -f Makefile.cli
2061 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = cli ] || exit 1
2063 # Generate stub .ini files for each extension
2066 generate_inifiles() {
2067 for so in modules/*.so; do
2068 mod=$(basename $so .so)
2070 # xml needs to be loaded before wddx
2071 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2072 # pre needs to be loaded before SPL
2073 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2074 # spl needs to be loaded before mysqli
2075 [ "$mod" = "spl" ] && conf="SPL.ini"
2077 cat > conf.d/$conf <<-EOF
2078 ; Enable $mod extension module
2085 # Check that the module inner-dependencies are intact
2086 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2087 if grep -v OK dep-tests.log; then
2088 echo >&2 "The results above were not expected"
2094 # Run tests, using the CLI SAPI
2095 cp -af php_config.h.cli main/php_config.h
2096 cp -af Makefile.cli Makefile
2097 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2098 unset TZ LANG LC_ALL || :
2099 %{__make} test RUN_TESTS_ARGS="-s test.log"
2100 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
2102 # collect failed tests into cleanup script used in prep.
2103 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2104 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2105 >> %{_sourcedir}/skip-tests.sh
2107 failed=$(wc -l < tests-failed.log)
2108 if [ "$failed" != 0 ]; then
2114 rm -rf $RPM_BUILD_ROOT
2115 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2116 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2117 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2118 $RPM_BUILD_ROOT%{_mandir}/man1 \
2120 # install the Apache modules' files
2121 %{__make} install-headers install-build install-modules install-programs \
2122 INSTALL_ROOT=$RPM_BUILD_ROOT
2124 # install Apache1 DSO module
2126 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2129 # install Apache2 DSO module
2131 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2134 # install litespeed sapi
2135 %if %{with litespeed}
2136 libtool --silent --mode=install install sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/php.litespeed
2139 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2140 # fix install paths, avoid evil rpaths
2141 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2143 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2146 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
2147 ln -sf php.cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
2151 libtool --silent --mode=install install sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_bindir}/php.fpm
2152 cp -a sapi/fpm/php-fpm.1 $RPM_BUILD_ROOT%{_mandir}/man1/php-fpm.1
2153 cp -a sapi/fpm/php_fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2154 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2155 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/php-fpm
2156 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2157 cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/php-fpm
2161 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
2162 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2163 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
2164 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
2166 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2168 install -d $RPM_BUILD_ROOT%{_sysconfdir}
2169 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2170 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2171 cp -a %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2174 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2175 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2176 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2180 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2181 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2182 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2185 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2186 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2188 # per SAPI ini directories
2189 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2192 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2194 # use system automake and {lib,sh}tool
2195 %if "%{pld_release}" != "ac"
2196 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2197 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2198 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2200 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2202 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2203 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2205 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2207 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2208 # isn't installed by install-headers make target, we do it manually here.
2209 # this header file is required by e.g. filter PECL extension
2210 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2211 # for php-pecl-mailparse
2212 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2213 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2216 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2217 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2218 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2221 rm -rf $RPM_BUILD_ROOT
2223 %post -n apache1-mod_php
2224 if [ "$1" = "1" ]; then
2225 %service -q apache restart
2228 %postun -n apache1-mod_php
2229 if [ "$1" = "0" ]; then
2230 %service -q apache restart
2233 %post -n apache-mod_php
2234 if [ "$1" = "1" ]; then
2235 %service -q httpd restart
2238 %postun -n apache-mod_php
2239 if [ "$1" = "0" ]; then
2240 %service -q httpd restart
2244 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2247 /sbin/chkconfig --add php-fpm
2248 %service php-fpm restart
2251 if [ "$1" = 0 ]; then
2252 %service php-fpm stop
2253 /sbin/chkconfig --del php-fpm
2257 if [ "$1" = "0" ]; then
2261 %post common -p /sbin/ldconfig
2262 %postun common -p /sbin/ldconfig
2265 # minimizing apache restarts logics. we restart webserver:
2267 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2268 # 2. first install of extension (post: $1 = 1)
2269 # 2. uninstall of extension (postun: $1 == 0)
2271 # the strict internal deps between extensions (and apache modules) and
2272 # common package are very important for all this to work.
2274 # restart webserver at the end of transaction
2275 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2276 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2279 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2281 /^AddType application\/x-httpd-php \.php/s,^,#,
2282 /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2283 ' /etc/apache/apache.conf
2284 %service -q apache restart
2288 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1
2289 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2290 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2291 cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2292 mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2296 # common macros called at extension post/postun scriptlet
2297 %define extension_scripts() \
2299 if [ "$1" = "1" ]; then \
2300 %php_webserver_restart \
2304 if [ "$1" = "0" ]; then \
2305 %php_webserver_restart \
2309 # extension scripts defines
2310 %extension_scripts bcmath
2311 %extension_scripts bzip2
2312 %extension_scripts calendar
2313 %extension_scripts ctype
2314 %extension_scripts curl
2315 %extension_scripts dba
2316 %extension_scripts dom
2317 %extension_scripts exif
2318 %extension_scripts fdf
2319 %extension_scripts fileinfo
2320 %extension_scripts filter
2321 %extension_scripts ftp
2322 %extension_scripts gd
2323 %extension_scripts gettext
2324 %extension_scripts gmp
2325 %extension_scripts hash
2326 %extension_scripts iconv
2327 %extension_scripts imap
2328 %extension_scripts interbase
2329 %extension_scripts intl
2330 %extension_scripts json
2331 %extension_scripts ldap
2332 %extension_scripts mbstring
2333 %extension_scripts mcrypt
2334 %extension_scripts mssql
2335 %extension_scripts mysql
2336 %extension_scripts mysqli
2337 %extension_scripts oci8
2338 %extension_scripts odbc
2339 %extension_scripts openssl
2340 %extension_scripts pcre
2341 %extension_scripts pdo-dblib
2342 %extension_scripts pdo-firebird
2343 %extension_scripts pdo-mysql
2344 %extension_scripts pdo-odbc
2345 %extension_scripts pdo-pgsql
2346 %extension_scripts pdo-sqlite
2347 %extension_scripts pgsql
2348 %extension_scripts phar
2349 %extension_scripts posix
2350 %extension_scripts pspell
2351 %extension_scripts recode
2352 %extension_scripts session
2353 %extension_scripts shmop
2354 %extension_scripts snmp
2355 %extension_scripts soap
2356 %extension_scripts sockets
2357 %extension_scripts spl
2358 %extension_scripts sqlite
2359 %extension_scripts sqlite3
2360 %extension_scripts sybase-ct
2361 %extension_scripts sysvmsg
2362 %extension_scripts sysvsem
2363 %extension_scripts sysvshm
2364 %extension_scripts tidy
2365 %extension_scripts tokenizer
2366 %extension_scripts wddx
2367 %extension_scripts xml
2368 %extension_scripts xmlreader
2369 %extension_scripts xmlrpc
2370 %extension_scripts xmlwriter
2371 %extension_scripts xsl
2372 %extension_scripts zip
2373 %extension_scripts zlib
2375 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2376 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2378 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2381 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2384 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2387 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2390 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2393 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2396 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2399 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2402 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2405 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2408 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2409 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2411 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2412 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2414 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2415 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2417 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2418 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2420 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2421 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2423 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2424 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2426 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2427 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2429 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2430 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2432 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2433 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2435 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2436 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2438 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2439 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2441 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2442 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2444 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2445 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2447 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2448 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2450 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2451 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2452 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2454 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2455 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2458 %triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
2459 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2461 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2462 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2464 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2465 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2467 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2468 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2470 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2471 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2472 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2474 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2475 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2478 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2479 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2481 %triggerun session -- %{name}-session < 4:5.0.4-9.1
2482 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
2484 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2485 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2487 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2488 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2490 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2491 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2493 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2494 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2496 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2497 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2499 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2500 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2502 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2503 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2505 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2506 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2508 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2509 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2511 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2512 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2514 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2515 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2517 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2518 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2520 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2521 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2523 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2524 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2526 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2527 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2530 %files -n apache1-mod_php
2531 %defattr(644,root,root,755)
2532 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2533 %dir %{_sysconfdir}/apache.d
2534 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2535 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2539 %files -n apache-mod_php
2540 %defattr(644,root,root,755)
2541 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2542 %dir %{_sysconfdir}/apache2handler.d
2543 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2544 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2547 %if %{with litespeed}
2549 %defattr(644,root,root,755)
2550 %attr(755,root,root) %{_sbindir}/php.litespeed
2554 %defattr(644,root,root,755)
2555 %dir %{_sysconfdir}/cgi-fcgi.d
2556 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2557 %attr(755,root,root) %{_bindir}/php.cgi
2558 %attr(755,root,root) %{_bindir}/php.fcgi
2561 %defattr(644,root,root,755)
2562 %dir %{_sysconfdir}/cli.d
2563 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2564 %attr(755,root,root) %{_bindir}/php.cli
2565 %{_mandir}/man1/php.1*
2566 %{_mandir}/man1/php.cli.1*
2569 %defattr(644,root,root,755)
2570 %attr(755,root,root) %{_bindir}/php
2574 %defattr(644,root,root,755)
2575 %doc %lang(ru) sapi/fpm/readme-ru.markdown
2576 %doc sapi/fpm/nginx-site-conf.sample
2577 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2578 %attr(755,root,root) %{_bindir}/php.fpm
2579 %{_mandir}/man1/php-fpm.1*
2580 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/php-fpm
2581 %attr(754,root,root) /etc/rc.d/init.d/php-fpm
2585 %defattr(644,root,root,755)
2587 %doc CREDITS Zend/ZEND_CHANGES
2588 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2589 %doc README.PHP4-TO-PHP5-THIN-CHANGES
2590 %doc README.namespaces
2593 %dir %{_sysconfdir}/conf.d
2594 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2595 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2596 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2597 %dir %{php_extensiondir}
2599 %doc ext/session/mod_files.sh
2602 %defattr(644,root,root,755)
2603 %doc README.UNIX-BUILD-SYSTEM
2604 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2605 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2606 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2607 %attr(755,root,root) %{_bindir}/phpize
2608 %attr(755,root,root) %{_bindir}/php-config
2609 %attr(755,root,root) %{_libdir}/libphp_common.so
2610 %{_libdir}/libphp_common.la
2612 %{_libdir}/php/build
2613 %{_mandir}/man1/php-config.1*
2614 %{_mandir}/man1/phpize.1*
2617 %defattr(644,root,root,755)
2618 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2619 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2622 %defattr(644,root,root,755)
2623 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2624 %attr(755,root,root) %{php_extensiondir}/bz2.so
2627 %defattr(644,root,root,755)
2628 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2629 %attr(755,root,root) %{php_extensiondir}/calendar.so
2632 %defattr(644,root,root,755)
2633 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2634 %attr(755,root,root) %{php_extensiondir}/ctype.so
2638 %defattr(644,root,root,755)
2639 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2640 %attr(755,root,root) %{php_extensiondir}/curl.so
2644 %defattr(644,root,root,755)
2645 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2646 %attr(755,root,root) %{php_extensiondir}/dba.so
2649 %defattr(644,root,root,755)
2650 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2651 %attr(755,root,root) %{php_extensiondir}/dom.so
2655 %defattr(644,root,root,755)
2656 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2657 %attr(755,root,root) %{php_extensiondir}/fdf.so
2661 %defattr(644,root,root,755)
2662 %doc README.input_filter
2663 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2664 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2668 %defattr(644,root,root,755)
2669 %doc README.input_filter
2670 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2671 %attr(755,root,root) %{php_extensiondir}/filter.so
2675 %defattr(644,root,root,755)
2676 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2677 %attr(755,root,root) %{php_extensiondir}/exif.so
2680 %defattr(644,root,root,755)
2681 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2682 %attr(755,root,root) %{php_extensiondir}/ftp.so
2685 %defattr(644,root,root,755)
2686 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2687 %attr(755,root,root) %{php_extensiondir}/gd.so
2690 %defattr(644,root,root,755)
2691 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2692 %attr(755,root,root) %{php_extensiondir}/gettext.so
2695 %defattr(644,root,root,755)
2696 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2697 %attr(755,root,root) %{php_extensiondir}/gmp.so
2700 %defattr(644,root,root,755)
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2702 %attr(755,root,root) %{php_extensiondir}/hash.so
2705 %defattr(644,root,root,755)
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2707 %attr(755,root,root) %{php_extensiondir}/iconv.so
2711 %defattr(644,root,root,755)
2712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2713 %attr(755,root,root) %{php_extensiondir}/imap.so
2716 %if %{with interbase}
2718 %defattr(644,root,root,755)
2719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2720 %attr(755,root,root) %{php_extensiondir}/interbase.so
2724 %defattr(644,root,root,755)
2725 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
2726 %attr(755,root,root) %{php_extensiondir}/intl.so
2729 %defattr(644,root,root,755)
2730 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2731 %attr(755,root,root) %{php_extensiondir}/json.so
2735 %defattr(644,root,root,755)
2736 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2737 %attr(755,root,root) %{php_extensiondir}/ldap.so
2741 %defattr(644,root,root,755)
2742 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2743 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2748 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2754 %attr(755,root,root) %{php_extensiondir}/mssql.so
2758 %defattr(644,root,root,755)
2759 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2760 %attr(755,root,root) %{php_extensiondir}/mysql.so
2764 %defattr(644,root,root,755)
2765 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2766 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2771 %defattr(644,root,root,755)
2772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2773 %attr(755,root,root) %{php_extensiondir}/oci8.so
2778 %defattr(644,root,root,755)
2779 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2780 %attr(755,root,root) %{php_extensiondir}/odbc.so
2785 %defattr(644,root,root,755)
2786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2787 %attr(755,root,root) %{php_extensiondir}/openssl.so
2791 %defattr(644,root,root,755)
2792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2793 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2797 %defattr(644,root,root,755)
2798 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2799 %attr(755,root,root) %{php_extensiondir}/pcre.so
2803 %defattr(644,root,root,755)
2804 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2805 %attr(755,root,root) %{php_extensiondir}/pdo.so
2807 %if %{with mssql} || %{with sybase_ct}
2809 %defattr(644,root,root,755)
2810 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2811 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2814 %if %{with interbase} && !%{with interbase_inst}
2816 %defattr(644,root,root,755)
2817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2818 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2822 %defattr(644,root,root,755)
2823 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2824 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2828 %defattr(644,root,root,755)
2829 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2830 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2835 %defattr(644,root,root,755)
2836 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2837 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2844 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2849 %defattr(644,root,root,755)
2850 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2851 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2856 %defattr(644,root,root,755)
2857 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2858 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
2865 %attr(755,root,root) %{php_extensiondir}/phar.so
2869 %defattr(644,root,root,755)
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2871 %attr(755,root,root) %{php_extensiondir}/posix.so
2875 %defattr(644,root,root,755)
2876 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2877 %attr(755,root,root) %{php_extensiondir}/pspell.so
2881 %defattr(644,root,root,755)
2882 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2883 %attr(755,root,root) %{php_extensiondir}/readline.so
2887 %defattr(644,root,root,755)
2888 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2889 %attr(755,root,root) %{php_extensiondir}/recode.so
2893 %defattr(644,root,root,755)
2894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2895 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2898 %defattr(644,root,root,755)
2899 %doc ext/session/mod_files.sh
2900 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/session.ini
2901 %attr(755,root,root) %{php_extensiondir}/session.so
2904 %defattr(644,root,root,755)
2905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2906 %attr(755,root,root) %{php_extensiondir}/shmop.so
2910 %defattr(644,root,root,755)
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2912 %attr(755,root,root) %{php_extensiondir}/snmp.so
2916 %defattr(644,root,root,755)
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2918 %attr(755,root,root) %{php_extensiondir}/soap.so
2921 %defattr(644,root,root,755)
2922 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2923 %attr(755,root,root) %{php_extensiondir}/sockets.so
2926 %defattr(644,root,root,755)
2927 %doc ext/spl/{CREDITS,README,TODO}
2928 %doc ext/spl/examples
2929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2930 %attr(755,root,root) %{php_extensiondir}/spl.so
2934 %defattr(644,root,root,755)
2935 %doc ext/sqlite/{README,TODO,CREDITS}
2936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2937 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2942 %defattr(644,root,root,755)
2943 %doc ext/sqlite3/CREDITS
2944 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
2945 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
2948 %if %{with sybase_ct}
2950 %defattr(644,root,root,755)
2951 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2952 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2956 %defattr(644,root,root,755)
2957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2958 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2961 %defattr(644,root,root,755)
2962 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2963 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2966 %defattr(644,root,root,755)
2967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2968 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2971 %defattr(644,root,root,755)
2972 %dir %{php_data_dir}/tests/php
2973 %{php_data_dir}/tests/php/basic
2974 %{php_data_dir}/tests/php/classes
2975 %{php_data_dir}/tests/php/func
2976 %{php_data_dir}/tests/php/lang
2977 %{php_data_dir}/tests/php/output
2978 %{php_data_dir}/tests/php/run-test
2979 %{php_data_dir}/tests/php/security
2980 %{php_data_dir}/tests/php/strings
2981 %{php_data_dir}/tests/php/quicktester.inc
2982 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
2986 %defattr(644,root,root,755)
2987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2988 %attr(755,root,root) %{php_extensiondir}/tidy.so
2992 %defattr(644,root,root,755)
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2994 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2998 %defattr(644,root,root,755)
2999 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3000 %attr(755,root,root) %{php_extensiondir}/wddx.so
3004 %defattr(644,root,root,755)
3005 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3006 %attr(755,root,root) %{php_extensiondir}/xml.so
3009 %defattr(644,root,root,755)
3010 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3011 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3015 %defattr(644,root,root,755)
3016 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3017 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3021 %defattr(644,root,root,755)
3022 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3023 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3026 %defattr(644,root,root,755)
3027 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3028 %attr(755,root,root) %{php_extensiondir}/xsl.so
3031 %defattr(644,root,root,755)
3032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3033 %attr(755,root,root) %{php_extensiondir}/zip.so
3036 %defattr(644,root,root,755)
3037 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3038 %attr(755,root,root) %{php_extensiondir}/zlib.so