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 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
6 # - removed from php 5.0 (currently in php4):
7 # db, hyperwave, java, mcal, overload, qtdom
8 # - removed from php 5.1:
10 # - removed from php 5.2:
12 # - removed from php 5.3:
13 # dbase, mime_magic, ming, ncurses, sybase
14 # - make additional headers and checking added by mail patch configurable
15 # - modularize standard (output from pure php -m)?
16 # - lib64 patch obsolete by $PHP_LIBDIR ?
17 # - move mysqlnd out of libphp-common.so, or link again with mysql-devel? (!!!)
18 # make mysqlnd as subpkg like pdo is base for all pdo drivers
19 # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is
20 # built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared.
21 # make it runtime dep and add Suggests (or php warning messages)
22 # - some mods should be shared:
33 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
34 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
35 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
36 %bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
37 %bcond_with litespeed # build litespeed module
38 %bcond_without curl # without CURL extension module
39 %bcond_without filter # without filter extension module
40 %bcond_without imap # without IMAP extension module
41 %bcond_without interbase # without InterBase extension module
42 %bcond_without ldap # without LDAP extension module
43 %bcond_without mm # without mm support for session storage
44 %bcond_without mssql # without MS SQL extension module
45 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
46 %bcond_without odbc # without ODBC extension module
47 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
48 %bcond_without pcre # without PCRE extension module
49 %bcond_without pgsql # without PostgreSQL extension module
50 %bcond_without phar # without phar extension module
51 %bcond_without pspell # without pspell extension module
52 %bcond_without recode # without recode extension module
53 %bcond_without snmp # without SNMP extension module
54 %bcond_without sqlite # without SQLite extension module
55 %bcond_without sqlite3 # without SQLite3 extension module
56 %bcond_without sybase_ct # without Sybase-CT extension module
57 %bcond_without tidy # without Tidy extension module
58 %bcond_without wddx # without WDDX extension module
59 %bcond_without xmlrpc # without XML-RPC extension module
60 %bcond_without apache1 # disable building Apache 1.3.x module
61 %bcond_without apache2 # disable building Apache 2.x module
62 %bcond_without zts # disable Zend Thread Safety
63 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
64 %bcond_without suhosin # with suhosin patch
65 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
66 %bcond_with type_hints # experimental support for strict typing/casting
68 %define apxs1 /usr/sbin/apxs1
69 %define apxs2 /usr/sbin/apxs
71 # some problems with apache 2.x
76 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
77 # ppc disabled (broken on th-ppc)
78 %undefine with_interbase
81 %ifnarch %{ix86} %{x8664}
82 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
86 %if %{without apache1} && %{without apache2}
87 ERROR: You need to select at least one Apache SAPI to build shared modules.
90 # filter depends on pcre
96 Summary: PHP: Hypertext Preprocessor
97 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
98 Summary(pl.UTF-8): Język skryptowy PHP
99 Summary(pt_BR.UTF-8): A linguagem de script PHP
100 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
101 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
104 Release: %{rel}%{?with_type_hints:th}
108 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
109 # Source0-md5: 46f500816125202c48a458d0133254a4
110 Source2: %{name}-mod_%{name}.conf
111 Source3: %{name}-cgi-fcgi.ini
112 Source4: %{name}-apache.ini
113 Source5: %{name}-cli.ini
114 # Taken from: http://browsers.garykeith.com/downloads.asp
115 Source9: %{name}_browscap.ini
116 Source10: %{name}-fpm.init
117 Source11: %{name}-fpm.logrotate
118 Patch0: %{name}-shared.patch
119 Patch1: %{name}-pldlogo.patch
120 Patch2: %{name}-mail.patch
121 Patch3: %{name}-link-libs.patch
122 Patch4: %{name}-libpq_fs_h_path.patch
123 Patch5: %{name}-filter-shared.patch
124 Patch6: %{name}-build_modules.patch
125 Patch7: %{name}-sapi-ini-file.patch
126 Patch8: %{name}-config-file-scan-dir.patch
127 Patch9: %{name}-sh.patch
128 Patch10: %{name}-ini.patch
129 %if %{with type_hints}
130 Patch12: http://ilia.ws/patch/type_hint_53_v2.txt
132 Patch14: %{name}-no_pear_install.patch
133 Patch15: %{name}-zlib.patch
134 Patch17: %{name}-readline.patch
135 Patch18: %{name}-nohttpd.patch
136 Patch19: %{name}-gd_imagerotate_enable.patch
137 Patch20: %{name}-uint32_t.patch
138 Patch21: %{name}-dba-link.patch
139 Patch22: %{name}-both-apxs.patch
140 Patch23: %{name}-builddir.patch
141 Patch24: %{name}-zlib-for-getimagesize.patch
142 Patch25: %{name}-stupidapache_version.patch
143 Patch26: %{name}-pear.patch
144 Patch27: %{name}-config-dir.patch
145 Patch29: %{name}-fcgi-graceful.patch
146 Patch31: %{name}-fcgi-error_log-no-newlines.patch
147 Patch32: %{name}-curl-limit-speed.patch
148 Patch34: %{name}-libtool.patch
149 Patch35: %{name}-tds.patch
150 Patch36: %{name}-mysql-charsetphpini.patch
151 Patch37: %{name}-mysqli-charsetphpini.patch
152 Patch38: %{name}-pdo_mysql-charsetphpini.patch
153 Patch39: %{name}-use-prog_sendmail.patch
154 Patch40: %{name}-fpm.patch
155 Patch41: %{name}-fpm-config.patch
156 Patch42: %{name}-fpm-shared.patch
157 Patch43: %{name}-silent-session-cleanup.patch
158 Patch44: %{name}-include_path.patch
159 Patch45: %{name}-imap-annotations.patch
160 Patch46: %{name}-imap-myrights.patch
161 Patch47: suhosin.patch
162 Patch49: %{name}-m4-divert.patch
163 Patch50: extension-shared-optional-dep.patch
164 Patch51: spl-shared.patch
165 Patch52: pcre-shared.patch
166 URL: http://www.php.net/
167 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
168 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
169 BuildRequires: autoconf >= 2.53
170 BuildRequires: automake >= 1.4d
172 BuildRequires: bzip2-devel
173 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
174 BuildRequires: cyrus-sasl-devel
175 BuildRequires: db-devel >= 4.0
176 BuildRequires: elfutils-devel
177 #BuildRequires: fcgi-devel
178 %{?with_fdf:BuildRequires: fdftk-devel}
180 BuildRequires: pkgconfig
181 %if %{with mssql} || %{with sybase_ct}
182 BuildRequires: freetds-devel >= 0.82
184 BuildRequires: freetype-devel >= 2.0
185 %if %{with system_gd}
186 BuildRequires: gd-devel >= 2.0.28-4
187 BuildRequires: gd-devel(imagerotate) = 5.2.0
189 BuildRequires: gdbm-devel
190 BuildRequires: gmp-devel
191 %{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2}
192 BuildRequires: libicu-devel
193 BuildRequires: libjpeg-devel
194 BuildRequires: libltdl-devel >= 1.4
195 BuildRequires: libmcrypt-devel >= 2.4.4
196 BuildRequires: libpng-devel >= 1.0.8
197 #BuildRequires: libtiff-devel
198 %if "%{pld_release}" != "ac"
199 BuildRequires: libtool >= 2:2.2
201 BuildRequires: libtool >= 1.4.3
203 #BuildRequires: libwrap-devel
204 BuildRequires: libxml2-devel >= 2.5.10
205 BuildRequires: libxslt-devel >= 1.1.0
206 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
207 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
208 %if %{with openssl} || %{with ldap}
209 BuildRequires: openssl-devel >= 0.9.7d
211 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
212 BuildRequires: pam-devel
213 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
214 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
215 %{?with_pgsql:BuildRequires: postgresql-devel}
216 BuildRequires: readline-devel
217 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
218 BuildRequires: rpm >= 4.4.9-56
219 BuildRequires: rpm-build >= 4.4.0
220 BuildRequires: rpmbuild(macros) >= 1.527
221 %{?with_sqlite:BuildRequires: sqlite-devel}
222 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3.3.9}
223 BuildRequires: t1lib-devel
224 %{?with_tidy:BuildRequires: tidy-devel}
225 %{?with_odbc:BuildRequires: unixODBC-devel}
226 %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel}
227 BuildRequires: zlib-devel >= 1.0.9
229 BuildRequires: apache1-devel
232 BuildRequires: apache-devel >= 2.0.52-2
233 BuildRequires: apr-devel >= 1:1.0.0
234 BuildRequires: apr-util-devel >= 1:1.0.0
237 #BuildRequires: judy-devel
238 BuildRequires: libevent-devel >= 1.4.7-3
240 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
242 %define php_sysconfdir /etc/php
243 %define php_extensiondir %{_libdir}/php
244 %define _sysconfdir %{php_sysconfdir}
246 # must be in sync with source. extra check ensuring that it is so is done in %%build
247 %define php_api_version 20090626
248 %define zend_module_api 20090626
249 %define zend_extension_api 220090626
251 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
252 %define php_debug %{!?debug:0}%{?debug:1}
255 # ORACLE_HOME is required for oci8 ext to build
256 %define _preserve_env %_preserve_env_base ORACLE_HOME
260 PHP is an HTML-embedded scripting language. PHP attempts to make it
261 easy for developers to write dynamically generated web pages. PHP also
262 offers built-in database integration for several commercial and
263 non-commercial database management systems, so writing a
264 database-enabled web page with PHP is fairly simple. The most common
265 use of PHP coding is probably as a replacement for CGI scripts. The
266 mod_php module enables the Apache web server to understand and process
267 the embedded PHP language in web pages. This package contains PHP
270 %description -l fr.UTF-8
271 PHP est un langage de script embarque dans le HTM. PHP essaye de
272 rendre simple aux developpeurs d'ecrire des pages web generees
273 dynamiquement. PHP incorpore egalement une integration avec plusieurs
274 systemes de gestion de bases de donnees commerciaux et
275 non-connerciaux, qui rent facile la creation de pages web liees avec
276 des bases de donnees. L'utilisation la plus commune de PHP est
277 probablement en remplacement de scripts CGI. Le module mod_php permet
278 au serveur web Apache de comprendre et de traiter le langage PHP
279 integre dans des pages web. Ce package contient PHP version
282 %description -l pl.UTF-8
283 PHP jest językiem skryptowym, którego polecenia umieszcza się w
284 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
285 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
286 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
287 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
288 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
289 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
290 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
293 %description -l pt_BR.UTF-8
294 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
295 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
296 com algumas características únicas, específicas ao PHP. O objetivo da
297 linguagem é permitir que desenvolvedores web escrevam páginas
298 dinamicamente geradas de forma rápida.
300 %description -l ru.UTF-8
301 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
302 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
303 для работы с базами данных относительно просто. Наиболее популярное
304 использование PHP - замена для CGI скриптов.
306 %description -l uk.UTF-8
307 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
308 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
309 роботи з базами даних є доволі простим. Найбільш популярне
310 використання PHP - заміна для CGI скриптів.
312 %package -n apache1-mod_php
313 Summary: PHP DSO module for Apache 1.3.x
314 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
315 Group: Development/Languages/PHP
316 Requires(triggerpostun): sed >= 4.0
317 Requires: %{name}-common = %{epoch}:%{version}-%{release}
318 Requires: apache1(EAPI) >= 1.3.33-2
319 Requires: apache1-mod_mime
320 Provides: webserver(php) = %{version}
321 Obsoletes: apache-mod_php < 1:4.1.1
324 %description -n apache1-mod_php
325 PHP as DSO module for Apache 1.3.x.
327 %description -n apache1-mod_php -l pl.UTF-8
328 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
330 %package -n apache-mod_php
331 Summary: PHP DSO module for Apache 2.x
332 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
333 Group: Development/Languages/PHP
334 Requires: %{name}-common = %{epoch}:%{version}-%{release}
335 Requires: apache(modules-api) = %{apache_modules_api}
336 Requires: apache-mod_mime
337 Provides: webserver(php) = %{version}
340 %description -n apache-mod_php
341 PHP as DSO module for Apache 2.x.
343 %description -n apache-mod_php -l pl.UTF-8
344 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
347 Summary: PHP for litespeed HTTP server
348 Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
349 Group: Development/Languages/PHP
350 Requires: %{name}-common = %{epoch}:%{version}-%{release}
351 Provides: webserver(php) = %{version}
353 %description litespeed
354 PHP for litespeed HTTP server.
356 %description litespeed -l pl.UTF-8
357 PHP dla serwera HTTP litespeed.
360 Summary: PHP as CGI/FastCGI program
361 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
362 Group: Development/Languages/PHP
363 Requires: %{name}-common = %{epoch}:%{version}-%{release}
364 Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
367 Provides: webserver(php)
368 Obsoletes: php-fcgi < 4:5.3.0
371 PHP as CGI or FastCGI program.
373 %description cgi -l pl.UTF-8
374 PHP jako program CGI lub FastCGI.
377 Summary: PHP as CLI interpreter
378 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
379 Group: Development/Languages/PHP
380 Requires: %{name}-common = %{epoch}:%{version}-%{release}
383 PHP as CLI interpreter.
385 %description cli -l pl.UTF-8
386 PHP jako interpreter działający z linii poleceń.
389 Summary: /usr/bin/php symlink
390 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
391 Group: Development/Languages/PHP
392 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
393 Obsoletes: /usr/bin/php
396 Package providing /usr/bin/php symlink to PHP CLI.
398 %description program -l pl.UTF-8
399 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
402 Summary: PHP FastCGI Process Manager
403 Group: Development/Languages/PHP
404 URL: http://www.php-fpm.org/
405 Requires(post,preun): /sbin/chkconfig
406 Requires(postun): /usr/sbin/userdel
407 Requires(pre): /bin/id
408 Requires(pre): /usr/sbin/useradd
409 Requires: %{name}-common = %{epoch}:%{version}-%{release}
410 Requires: libevent >= 1.4.7-3
413 Provides: webserver(php) = %{version}
416 PHP FastCGI Process Manager.
419 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
420 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
421 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
422 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
424 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
425 Requires: glibc >= 6:2.3.5
430 Provides: php(libxml)
431 Provides: php(modules_api) = %{php_api_version}
432 Provides: php(overload)
433 Provides: php(reflection)
434 Provides: php(standard)
435 Provides: php(zend_extension_api) = %{zend_extension_api}
436 Provides: php(zend_module_api) = %{zend_module_api}
439 Provides: php-overload
440 Provides: php-reflection
441 Provides: php-standard
442 Provides: php5(debug) = %{php_debug}
443 Provides: php5(thread-safety) = %{zend_zts}
444 Obsoletes: php-pecl-domxml
445 Conflicts: php4-common < 3:4.4.4-8
446 Conflicts: rpm < 4.4.2-0.2
449 Common files needed by both Apache modules and CGI/CLI SAPI-s.
451 %description common -l pl.UTF-8
452 Wspólne pliki dla modułu Apache'a i programu CGI.
454 %description common -l ru.UTF-8
455 Этот пакет содержит общие файлы для разных вариантов реализации PHP
456 (самодостаточной и в качестве модуля Apache).
458 %description common -l uk.UTF-8
459 Цей пакет містить спільні файли для різних варіантів реалізації PHP
460 (самодостатньої та в якості модуля Apache).
463 Summary: Files for PHP modules development
464 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
465 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
466 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
467 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
468 Group: Development/Languages/PHP
469 Requires: %{name}-common = %{epoch}:%{version}-%{release}
472 %if "%{pld_release}" != "ac"
473 Requires: libtool >= 2:2.2
477 %{?with_pcre:Requires: pcre-devel >= 6.6}
479 Obsoletes: php-pear-devel
480 Obsoletes: php4-devel
483 The php-devel package lets you compile dynamic extensions to PHP.
484 Included here is the source for the PHP extensions. Instead of
485 recompiling the whole PHP binary to add support for, say, oracle,
486 install this package and use the new self-contained extensions
487 support. For more information, read the file
488 README.SELF-CONTAINED-EXTENSIONS.
490 %description devel -l pl.UTF-8
491 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
492 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
493 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
494 samodzielnych rozszerzeniach można znaleźć w pliku
495 README.SELF-CONTAINED-EXTENSIONS.
497 %description devel -l pt_BR.UTF-8
498 Este pacote contém arquivos usados no desenvolvimento de programas ou
501 %description devel -l ru.UTF-8
502 Пакет php-devel дает возможность компилировать динамические расширения
503 PHP. Пакет включает исходный код этих расширений. Вместо повторной
504 компиляции бинарного файла PHP для добавления, например, поддержки
505 oracle, установите этот пакет для компилирования отдельных расширений.
506 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
508 %description devel -l uk.UTF-8
509 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
510 До пакету включено вихідний код для розширень. Замість повторної
511 компіляції бінарного файлу PHP для додання, наприклад, підтримки
512 oracle, встановіть цей пакет для компіляції окремих розширень.
513 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
516 Summary: bcmath extension module for PHP
517 Summary(pl.UTF-8): Moduł bcmath dla PHP
519 URL: http://www.php.net/manual/en/book.bc.php
520 Requires: %{name}-common = %{epoch}:%{version}-%{release}
521 Provides: php(bcmath)
524 This is a dynamic shared object (DSO) for PHP that will add bc style
525 precision math functions support.
527 %description bcmath -l pl.UTF-8
528 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
529 matematycznych takich jak w programie bc.
532 Summary: Bzip2 extension module for PHP
533 Summary(pl.UTF-8): Moduł bzip2 dla PHP
535 URL: http://www.php.net/manual/en/book.bzip2.php
536 Requires: %{name}-common = %{epoch}:%{version}-%{release}
540 This is a dynamic shared object (DSO) for PHP that will add bzip2
541 compression support to PHP.
543 %description bzip2 -l pl.UTF-8
544 Moduł PHP umożliwiający używanie kompresji bzip2.
547 Summary: Calendar extension module for PHP
548 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
550 URL: http://www.php.net/manual/en/book.calendar.php
551 Requires: %{name}-common = %{epoch}:%{version}-%{release}
552 Provides: php(calendar)
554 %description calendar
555 This is a dynamic shared object (DSO) for PHP that will add calendar
558 %description calendar -l pl.UTF-8
559 Moduł PHP dodający wsparcie dla kalendarza.
562 Summary: ctype extension module for PHP
563 Summary(pl.UTF-8): Moduł ctype dla PHP
565 URL: http://www.php.net/manual/en/book.ctype.php
566 Requires: %{name}-common = %{epoch}:%{version}-%{release}
570 This is a dynamic shared object (DSO) for PHP that will add ctype
573 %description ctype -l pl.UTF-8
574 Moduł PHP umożliwiający korzystanie z funkcji ctype.
577 Summary: curl extension module for PHP
578 Summary(pl.UTF-8): Moduł curl dla PHP
580 URL: http://www.php.net/manual/en/book.curl.php
581 Requires: %{name}-common = %{epoch}:%{version}-%{release}
585 This is a dynamic shared object (DSO) for PHP that will add curl
588 %description curl -l pl.UTF-8
589 Moduł PHP umożliwiający korzystanie z biblioteki curl.
592 Summary: DBA extension module for PHP
593 Summary(pl.UTF-8): Moduł DBA dla PHP
595 URL: http://www.php.net/manual/en/book.dba.php
596 Requires: %{name}-common = %{epoch}:%{version}-%{release}
600 This is a dynamic shared object (DSO) for PHP that will add flat-file
601 databases (DBA) support.
603 %description dba -l pl.UTF-8
604 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
608 Summary: DOM extension module for PHP
609 Summary(pl.UTF-8): Moduł DOM dla PHP
611 URL: http://www.php.net/manual/en/book.dom.php
612 Requires: %{name}-common = %{epoch}:%{version}-%{release}
614 # it has some compatibility functions
615 Provides: php(domxml)
616 Obsoletes: php-domxml <= 3:4.3.8-1
619 This is a dynamic shared object (DSO) for PHP that will add new DOM
622 %description dom -l pl.UTF-8
623 Moduł PHP dodający nową obsługę DOM.
626 Summary: exif extension module for PHP
627 Summary(pl.UTF-8): Moduł exif dla PHP
629 URL: http://www.php.net/manual/en/book.exif.php
630 Requires: %{name}-common = %{epoch}:%{version}-%{release}
634 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
635 support in image files.
637 %description exif -l pl.UTF-8
638 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
641 Summary: FDF extension module for PHP
642 Summary(pl.UTF-8): Moduł FDF dla PHP
644 URL: http://www.php.net/manual/en/book.fdf.php
645 Requires: %{name}-common = %{epoch}:%{version}-%{release}
649 This PHP module adds support for PDF Forms through Adobe FDFTK
652 %description fdf -l pl.UTF-8
653 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
657 Summary: libmagic bindings
659 URL: http://www.php.net/manual/en/book.fileinfo.php
660 Requires: %{name}-common = %{epoch}:%{version}-%{release}
661 Provides: php(fileinfo)
662 Obsoletes: php-pecl-fileinfo
664 %description fileinfo
665 This extension allows retrieval of information regarding vast majority
666 of file. This information may include dimensions, quality, length
669 Additionally it can also be used to retrieve the MIME type for a
670 particular file and for text files proper language encoding.
673 Summary: Extension for safely dealing with input parameters
674 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
676 URL: http://www.php.net/manual/en/book.filter.php
677 Requires: %{name}-common = %{epoch}:%{version}-%{release}
678 Provides: php(filter)
679 Obsoletes: php-pecl-filter
682 We all know that you should always check input variables, but PHP does
683 not offer really good functionality for doing this in a safe way. The
684 Input Filter extension is meant to address this issue by implementing
685 a set of filters and mechanisms that users can use to safely access
688 %description filter -l pl.UTF-8
689 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
690 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
691 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
692 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
693 mogą bezpiecznie używać do dostępu do danych.
696 Summary: FTP extension module for PHP
697 Summary(pl.UTF-8): Moduł FTP dla PHP
699 URL: http://www.php.net/manual/en/book.ftp.php
700 Requires: %{name}-common = %{epoch}:%{version}-%{release}
704 This is a dynamic shared object (DSO) for PHP that will add FTP
707 %description ftp -l pl.UTF-8
708 Moduł PHP dodający obsługę protokołu FTP.
711 Summary: GD extension module for PHP
712 Summary(pl.UTF-8): Moduł GD dla PHP
714 URL: http://www.php.net/manual/en/book.image.php
715 Requires: %{name}-common = %{epoch}:%{version}-%{release}
716 %if %{with system_gd}
717 Requires: gd >= 2.0.28-4
719 Requires: gd(imagerotate) = 5.2.0
724 This is a dynamic shared object (DSO) for PHP that will add GD
725 support, allowing you to create and manipulate images with PHP.
727 %description gd -l pl.UTF-8
728 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
729 tworzenie i obróbkę obrazków.
732 Summary: gettext extension module for PHP
733 Summary(pl.UTF-8): Moduł gettext dla PHP
735 URL: http://www.php.net/manual/en/book.gettext.php
736 Requires: %{name}-common = %{epoch}:%{version}-%{release}
737 Provides: php(gettext)
740 This is a dynamic shared object (DSO) for PHP that will add gettext
743 %description gettext -l pl.UTF-8
744 Moduł PHP dodający obsługę lokalizacji przez gettext.
747 Summary: gmp extension module for PHP
748 Summary(pl.UTF-8): Moduł gmp dla PHP
750 URL: http://www.php.net/manual/en/book.gmp.php
751 Requires: %{name}-common = %{epoch}:%{version}-%{release}
755 This is a dynamic shared object (DSO) for PHP that will add arbitrary
756 length number support with GNU MP library.
758 %description gmp -l pl.UTF-8
759 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
760 liczbach o dowolnej długości.
763 Summary: HASH Message Digest Framework
764 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
766 URL: http://www.php.net/manual/en/book.gmp.php
767 Requires: %{name}-common = %{epoch}:%{version}-%{release}
771 Obsoletes: php-pecl-hash
774 Native implementations of common message digest algorithms using a
775 generic factory method.
777 %description hash -l pl.UTF-8
778 Natywne implementacje popularnych algorytmów obliczania skrótów
779 wiadomości przy użyciu wspólnego interfejsu.
782 Summary: iconv extension module for PHP
783 Summary(pl.UTF-8): Moduł iconv dla PHP
785 URL: http://www.php.net/manual/en/book.iconv.php
786 Requires: %{_libdir}/gconv
787 Requires: %{name}-common = %{epoch}:%{version}-%{release}
792 This is a dynamic shared object (DSO) for PHP that will add iconv
795 %description iconv -l pl.UTF-8
796 Moduł PHP dodający obsługę iconv.
799 Summary: IMAP extension module for PHP
800 Summary(pl.UTF-8): Moduł IMAP dla PHP
801 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
803 URL: http://www.php.net/manual/en/book.imap.php
804 Requires: %{name}-common = %{epoch}:%{version}-%{release}
808 This is a dynamic shared object (DSO) for PHP that will add IMAP
811 %description imap -l pl.UTF-8
812 Moduł PHP dodający obsługę skrzynek IMAP.
814 %description imap -l pt_BR.UTF-8
815 Um módulo para aplicações PHP que usam IMAP.
818 Summary: InterBase/Firebird database module for PHP
819 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
821 URL: http://www.php.net/manual/en/book.ibase.php
822 Requires: %{name}-common = %{epoch}:%{version}-%{release}
823 Provides: php(interbase)
824 %{?with_interbase_inst:Autoreq: false}
826 %description interbase
827 This is a dynamic shared object (DSO) for PHP that will add InterBase
828 and Firebird database support.
830 %description interbase -l pl.UTF-8
831 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
834 Summary: Internationalization extension (ICU wrapper)
835 Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (wrapper ICU)
837 URL: http://www.php.net/intl
838 Requires: %{name}-common = %{epoch}:%{version}-%{release}
842 Internationalization extension (further is referred as Intl) is a
843 wrapper for ICU library, enabling PHP programmers to perform
844 UCA-conformant collation and date/time/number/currency formatting in
847 %description intl -l pl.UTF-8
848 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
849 wrapperem biblioteki ICU, pozwalającym programistom PHP na wykonywanie
850 w skryptach porównań zdgodnych z UCA oraz formatowań daty/czasu/walut.
853 Summary: PHP C extension for JSON serialization
854 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
856 URL: http://www.php.net/manual/en/book.json.php
857 Requires: %{name}-common = %{epoch}:%{version}-%{release}
859 Obsoletes: php-pecl-json
862 php-json is an extremely fast PHP C extension for JSON (JavaScript
863 Object Notation) serialisation.
865 %description json -l pl.UTF-8
866 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
867 (JavaScript Object Notation).
870 Summary: LDAP extension module for PHP
871 Summary(pl.UTF-8): Moduł LDAP dla PHP
872 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
874 URL: http://www.php.net/manual/en/book.ldap.php
875 Requires: %{name}-common = %{epoch}:%{version}-%{release}
879 This is a dynamic shared object (DSO) for PHP that will add LDAP
882 %description ldap -l pl.UTF-8
883 Moduł PHP dodający obsługę LDAP.
885 %description ldap -l pt_BR.UTF-8
886 Um módulo para aplicações PHP que usam LDAP.
889 Summary: mbstring extension module for PHP
890 Summary(pl.UTF-8): Moduł mbstring dla PHP
892 URL: http://www.php.net/manual/en/book.mbstring.php
893 Requires: %{name}-common = %{epoch}:%{version}-%{release}
894 Provides: php(mbstring)
896 %description mbstring
897 This is a dynamic shared object (DSO) for PHP that will add multibyte
900 %description mbstring -l pl.UTF-8
901 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
904 Summary: mcrypt extension module for PHP
905 Summary(pl.UTF-8): Moduł mcrypt dla PHP
907 URL: http://www.php.net/manual/en/book.mcrypt.php
908 Requires: %{name}-common = %{epoch}:%{version}-%{release}
909 Provides: php(mcrypt)
912 This is a dynamic shared object (DSO) for PHP that will add mcrypt
915 %description mcrypt -l pl.UTF-8
916 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
919 Summary: MS SQL extension module for PHP
920 Summary(pl.UTF-8): Moduł MS SQL dla PHP
922 URL: http://www.php.net/manual/en/book.mssql.php
923 Requires: %{name}-common = %{epoch}:%{version}-%{release}
927 This is a dynamic shared object (DSO) for PHP that will add MS SQL
928 databases support through FreeTDS library.
930 %description mssql -l pl.UTF-8
931 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
935 Summary: MySQL database module for PHP
936 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
937 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
939 URL: http://www.php.net/manual/en/book.mysql.php
940 Requires: %{name}-common = %{epoch}:%{version}-%{release}
944 This is a dynamic shared object (DSO) for PHP that will add MySQL
947 %description mysql -l pl.UTF-8
948 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
950 %description mysql -l pt_BR.UTF-8
951 Um módulo para aplicações PHP que usam bancos de dados MySQL.
954 Summary: MySQLi module for PHP
955 Summary(pl.UTF-8): Moduł MySQLi dla PHP
957 URL: http://www.php.net/manual/en/book.mysqli.php
958 Requires: %{name}-common = %{epoch}:%{version}-%{release}
959 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
960 Provides: php(mysqli)
963 This is a dynamic shared object (DSO) for PHP that will add MySQLi
964 (Improved MySQL) support. The difference between it and mysql module
965 is that it provides access to functionality of MySQL 4.1 and above.
967 %description mysqli -l pl.UTF-8
968 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
969 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
970 MySQL w wersji 4.1 i nowszych.
973 Summary: Oracle 8+ database module for PHP
974 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
976 URL: http://www.php.net/manual/en/book.oci8.php
977 Requires: %{name}-common = %{epoch}:%{version}-%{release}
982 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
983 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
985 %description oci8 -l pl.UTF-8
986 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
987 poprzez interfejs Oracle8 Call-Interface (OCI8).
990 Summary: ODBC extension module for PHP
991 Summary(pl.UTF-8): Moduł ODBC dla PHP
992 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
994 URL: http://www.php.net/manual/en/book.uodbc.php
995 Requires: %{name}-common = %{epoch}:%{version}-%{release}
996 Requires: unixODBC >= 2.1.1-3
1000 This is a dynamic shared object (DSO) for PHP that will add ODBC
1003 %description odbc -l pl.UTF-8
1004 Moduł PHP ze wsparciem dla ODBC.
1006 %description odbc -l pt_BR.UTF-8
1007 Um módulo para aplicações PHP que usam ODBC.
1010 Summary: OpenSSL extension module for PHP
1011 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1013 URL: http://www.php.net/manual/en/book.openssl.php
1014 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1015 Provides: php(openssl)
1017 %description openssl
1018 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1021 %description openssl -l pl.UTF-8
1022 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1025 Summary: Process Control extension module for PHP
1026 Summary(pl.UTF-8): Moduł Process Control dla PHP
1028 URL: http://www.php.net/manual/en/book.pcntl.php
1029 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1030 Provides: php(pcntl)
1033 This is a dynamic shared object (DSO) for PHP that will add process
1034 spawning and control support. It supports functions like fork(),
1035 waitpid(), signal() etc.
1037 %description pcntl -l pl.UTF-8
1038 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1039 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1042 Summary: PCRE extension module for PHP
1043 Summary(pl.UTF-8): Moduł PCRE dla PHP
1045 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1049 This is a dynamic shared object (DSO) for PHP that will add Perl
1050 Compatible Regular Expression support.
1052 %description pcre -l pl.UTF-8
1053 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1054 (Perl Compatible Regular Expressions)
1057 Summary: PHP Data Objects (PDO)
1058 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1060 URL: http://www.php.net/manual/en/book.pdo.php
1061 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1062 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1064 Obsoletes: php-pecl-PDO
1067 This is a dynamic shared object (DSO) for PHP that will add PDO
1070 %description pdo -l pl.UTF-8
1071 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1074 Summary: PHP Data Objects (PDO) FreeTDS support
1075 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1077 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1078 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1079 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1080 Provides: php(dblib)
1082 %description pdo-dblib
1083 This is a dynamic shared object (DSO) for PHP that will add PDO
1086 %description pdo-dblib -l pl.UTF-8
1087 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1090 %package pdo-firebird
1091 Summary: PHP Data Objects (PDO) Firebird support
1092 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1094 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1095 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1096 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1097 Provides: php(pdo-firebird)
1098 Obsoletes: php-pecl-PDO_FIREBIRD
1100 %description pdo-firebird
1101 This is a dynamic shared object (DSO) for PHP that will add PDO
1104 %description pdo-firebird -l pl.UTF-8
1105 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1109 Summary: PHP Data Objects (PDO) MySQL support
1110 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1112 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1113 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1114 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1115 Provides: php(pdo-mysql)
1116 Obsoletes: php-pecl-PDO_MYSQL
1118 %description pdo-mysql
1119 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1122 %description pdo-mysql -l pl.UTF-8
1123 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1127 Summary: PHP Data Objects (PDO) Oracle support
1128 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1130 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1131 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1132 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1133 Provides: php(pdo-oci)
1134 Obsoletes: php-pecl-PDO_OCI
1136 %description pdo-oci
1137 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1140 %description pdo-oci -l pl.UTF-8
1141 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1145 Summary: PHP Data Objects (PDO) ODBC support
1146 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1148 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1149 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1150 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1151 Provides: php(pdo-odbc)
1152 Obsoletes: php-pecl-PDO_ODBC
1154 %description pdo-odbc
1155 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1158 %description pdo-odbc -l pl.UTF-8
1159 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1163 Summary: PHP Data Objects (PDO) PostgreSQL support
1164 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1166 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1167 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1168 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1169 Provides: php(pdo-pgsql)
1170 Provides: php-pecl-PDO_PGSQL
1171 Obsoletes: php-pecl-PDO_PGSQL
1173 %description pdo-pgsql
1174 This is a dynamic shared object (DSO) for PHP that will add PDO
1177 %description pdo-pgsql -l pl.UTF-8
1178 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1182 Summary: PHP Data Objects (PDO) SQLite support
1183 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1185 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1186 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1187 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1188 Provides: php(pdo-sqlite)
1189 Obsoletes: php-pecl-PDO_SQLITE
1191 %description pdo-sqlite
1192 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1195 %description pdo-sqlite -l pl.UTF-8
1196 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1200 Summary: PostgreSQL database module for PHP
1201 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1203 URL: http://www.php.net/manual/en/book.pgsql.php
1204 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1205 Provides: php(pgsql)
1208 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1211 %description pgsql -l pl.UTF-8
1212 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1214 %description pgsql -l pt_BR.UTF-8
1215 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1218 Summary: phar database module for PHP
1219 Summary(pl.UTF-8): Moduł phar dla PHP
1221 URL: http://www.php.net/manual/en/book.phar.php
1222 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1223 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1227 This is a dynamic shared object (DSO) for PHP that will add phar
1230 %description phar -l pl.UTF-8
1231 Moduł PHP umożliwiający dostęp do achiwów .phar.
1234 Summary: POSIX extension module for PHP
1235 Summary(pl.UTF-8): Moduł POSIX dla PHP
1237 URL: http://www.php.net/manual/en/book.posix.php
1238 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1239 Provides: php(posix)
1242 This is a dynamic shared object (DSO) for PHP that will add POSIX
1243 functions support to PHP.
1245 %description posix -l pl.UTF-8
1246 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1249 Summary: pspell extension module for PHP
1250 Summary(pl.UTF-8): Moduł pspell dla PHP
1252 URL: http://www.php.net/manual/en/book.pspell.php
1253 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1254 Provides: php(pspell)
1257 This is a dynamic shared object (DSO) for PHP that will add pspell
1258 support to PHP. It allows to check the spelling of a word and offer
1261 %description pspell -l pl.UTF-8
1262 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1263 sprawdzanie pisowni słowa i sugerowanie poprawek.
1266 Summary: readline extension module for PHP
1267 Summary(pl.UTF-8): Moduł readline dla PHP
1269 URL: http://www.php.net/manual/en/book.readline.php
1270 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1271 Provides: php(readline)
1273 %description readline
1274 This PHP module adds support for readline functions (only for cli and
1277 %description readline -l pl.UTF-8
1278 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1281 Summary: recode extension module for PHP
1282 Summary(pl.UTF-8): Moduł recode dla PHP
1284 URL: http://www.php.net/manual/en/book.recode.php
1285 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1286 Requires: recode >= 3.5d-3
1287 Provides: php(recode)
1290 This is a dynamic shared object (DSO) for PHP that will add recode
1293 %description recode -l pl.UTF-8
1294 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1298 Summary: session extension module for PHP
1299 Summary(pl.UTF-8): Moduł session dla PHP
1301 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1302 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1303 Provides: php(session)
1305 %description session
1306 This is a dynamic shared object (DSO) for PHP that will add session
1309 %description session -l pl.UTF-8
1310 Moduł PHP dodający obsługę sesji.
1313 Summary: Shared Memory Operations extension module for PHP
1314 Summary(pl.UTF-8): Moduł shmop dla PHP
1316 URL: http://www.php.net/manual/en/book.shmop.php
1317 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1318 Provides: php(shmop)
1321 This is a dynamic shared object (DSO) for PHP that will add Shared
1322 Memory Operations support.
1324 %description shmop -l pl.UTF-8
1325 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1328 Summary: Simple XML extension module for PHP
1329 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1331 URL: http://www.php.net/manual/en/book.simplexml.php
1332 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1333 Provides: php(simplexml)
1335 %description simplexml
1336 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1339 %description simplexml -l pl.UTF-8
1340 Moduł PHP dodający obsługę prostego XML-a.
1343 Summary: SNMP extension module for PHP
1344 Summary(pl.UTF-8): Moduł SNMP dla PHP
1346 URL: http://www.php.net/manual/en/book.snmp.php
1347 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1348 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1352 This is a dynamic shared object (DSO) for PHP that will add SNMP
1355 %description snmp -l pl.UTF-8
1356 Moduł PHP dodający obsługę SNMP.
1359 Summary: soap extension module for PHP
1360 Summary(pl.UTF-8): Moduł soap dla PHP
1362 URL: http://www.php.net/manual/en/book.soap.php
1363 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1367 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1370 %description soap -l pl.UTF-8
1371 Moduł PHP dodający obsługę SOAP/WSDL.
1374 Summary: sockets extension module for PHP
1375 Summary(pl.UTF-8): Moduł socket dla PHP
1377 URL: http://www.php.net/manual/en/book.sockets.php
1378 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1379 Provides: php(sockets)
1381 %description sockets
1382 This is a dynamic shared object (DSO) for PHP that will add sockets
1385 %description sockets -l pl.UTF-8
1386 Moduł PHP dodający obsługę gniazdek.
1389 Summary: Standard PHP Library module for PHP
1390 Summary(pl.UTF-8): Moduł SPL dla PHP
1392 URL: http://php.net/manual/en/book.spl.php
1393 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1394 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1395 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1399 This is a dynamic shared object (DSO) for PHP that will add Standard
1400 PHP Library support.
1402 %description spl -l pl.UTF-8
1403 Moduł PHP dodający obsługę gniazdek.
1406 Summary: SQLite extension module for PHP
1407 Summary(pl.UTF-8): Moduł SQLite dla PHP
1409 URL: http://www.php.net/manual/en/book.sqlite.php
1410 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1411 Suggests: %{name}-pdo = %{epoch}:%{version}-%{release}
1412 Suggests: %{name}-spl = %{epoch}:%{version}-%{release}
1413 Provides: php(sqlite)
1416 SQLite is a C library that implements an embeddable SQL database
1417 engine. Programs that link with the SQLite library can have SQL
1418 database access without running a separate RDBMS process.
1420 SQLite is not a client library used to connect to a big database
1421 server. SQLite is the server. The SQLite library reads and writes
1422 directly to and from the database files on disk.
1424 %description sqlite -l pl.UTF-8
1425 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1426 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1427 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1430 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1431 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1432 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1436 Summary: SQLite3 extension module for PHP
1437 Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1439 URL: http://php.net/manual/en/book.sqlite3.php
1440 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1441 Provides: php(sqlite3)
1443 %description sqlite3
1444 SQLite is a C library that implements an embeddable SQL database
1445 engine. Programs that link with the SQLite library can have SQL
1446 database access without running a separate RDBMS process.
1448 SQLite is not a client library used to connect to a big database
1449 server. SQLite is the server. The SQLite library reads and writes
1450 directly to and from the database files on disk.
1452 %description sqlite3 -l pl.UTF-8
1453 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1454 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1455 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1458 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1459 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1460 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1464 Summary: Sybase-CT extension module for PHP
1465 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1467 URL: http://www.php.net/manual/en/book.sybase.php
1468 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1469 Provides: php(sybase-ct)
1470 Obsoletes: php-sybase
1471 Conflicts: php-sybase
1473 %description sybase-ct
1474 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1475 MS SQL databases support through CT-lib.
1477 %description sybase-ct -l pl.UTF-8
1478 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1482 Summary: SysV msg extension module for PHP
1483 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1485 URL: http://www.php.net/manual/en/book.sem.php
1486 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1487 Provides: php(sysvmsg)
1489 %description sysvmsg
1490 This is a dynamic shared object (DSO) for PHP that will add SysV
1491 message queues support.
1493 %description sysvmsg -l pl.UTF-8
1494 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1497 Summary: SysV sem extension module for PHP
1498 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1500 URL: http://www.php.net/manual/en/book.sem.php
1501 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1502 Provides: php(sysvsem)
1504 %description sysvsem
1505 This is a dynamic shared object (DSO) for PHP that will add SysV
1508 %description sysvsem -l pl.UTF-8
1509 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1512 Summary: SysV shm extension module for PHP
1513 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1515 URL: http://www.php.net/manual/en/book.shmop.php
1516 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1517 Provides: php(sysvshm)
1519 %description sysvshm
1520 This is a dynamic shared object (DSO) for PHP that will add SysV
1521 Shared Memory support.
1523 %description sysvshm -l pl.UTF-8
1524 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1527 Summary: Contains unit test files for PHP and extensions
1528 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1530 URL: http://qa.php.net/
1531 Requires: %{name}-cli
1534 This package contains unit tests for PHP and it's extensions.
1536 %description tests -l pl.UTF-8
1537 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1540 Summary: Tidy extension module for PHP
1541 Summary(pl.UTF-8): Moduł Tidy dla PHP
1543 URL: http://www.php.net/manual/en/book.tidy.php
1544 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1549 This is a dynamic shared object (DSO) for PHP that will add Tidy
1552 %description tidy -l pl.UTF-8
1553 Moduł PHP umożliwiający korzystanie z tidy.
1556 Summary: tokenizer extension module for PHP
1557 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1559 URL: http://www.php.net/manual/en/book.tokenizer.php
1560 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1561 Provides: php(tokenizer)
1563 %description tokenizer
1564 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1567 %description tokenizer -l pl.UTF-8
1568 Moduł PHP dodający obsługę tokenizera do PHP.
1571 Summary: wddx extension module for PHP
1572 Summary(pl.UTF-8): Moduł wddx dla PHP
1574 URL: http://www.php.net/manual/en/book.wddx.php
1575 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1576 Requires: %{name}-session = %{epoch}:%{version}-%{release}
1577 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1581 This is a dynamic shared object (DSO) for PHP that will add wddx
1584 %description wddx -l pl.UTF-8
1585 Moduł PHP umożliwiający korzystanie z wddx.
1588 Summary: XML extension module for PHP
1589 Summary(pl.UTF-8): Moduł XML dla PHP
1591 URL: http://www.php.net/manual/en/book.xml.php
1592 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1596 This is a dynamic shared object (DSO) for PHP that will add XML
1597 support. This extension lets you create XML parsers and then define
1598 handlers for different XML events.
1600 %description xml -l pl.UTF-8
1601 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1602 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1603 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1606 Summary: XML Reader extension module for PHP
1607 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1609 URL: http://www.php.net/manual/en/book.xmlreader.php
1610 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1611 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1612 Provides: php(xmlreader)
1614 %description xmlreader
1615 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1616 support. The XMLReader extension is an XML Pull parser. The reader
1617 acts as a cursor going forward on the document stream and stopping at
1618 each node on the way.
1620 %description xmlreader -l pl.UTF-8
1621 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1622 działa jako kursor przechodzący przez strumień dokumentu i
1623 zatrzymujący się na każdym węźle po drodze.
1626 Summary: xmlrpc extension module for PHP
1627 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1629 URL: http://www.php.net/manual/en/book.xmlrpc.php
1630 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1631 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1632 Provides: php(xmlrpc)
1635 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1638 %description xmlrpc -l pl.UTF-8
1639 Moduł PHP dodający obsługę XMLRPC.
1642 Summary: Fast, non-cached, forward-only means to write XML data
1643 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1645 URL: http://www.php.net/manual/en/book.xmlwriter.php
1646 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1647 Provides: php(xmlwriter)
1648 Obsoletes: php-pecl-xmlwriter
1650 %description xmlwriter
1651 This extension wraps the libxml xmlWriter API. Represents a writer
1652 that provides a non-cached, forward-only means of generating streams
1653 or files containing XML data.
1655 %description xmlwriter -l pl.UTF-8
1656 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1657 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1658 plików zawierających dane XML.
1661 Summary: xsl extension module for PHP
1662 Summary(pl.UTF-8): Moduł xsl dla PHP
1664 URL: http://www.php.net/manual/en/book.xsl.php
1665 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1666 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1667 Requires: libxslt >= 1.0.18
1668 # actually not true, functionality is similar, but API differs
1670 Obsoletes: php-xslt <= 3:4.3.8-1
1673 This is a dynamic shared object (DSO) for PHP that will add new XSL
1674 support (using libxslt).
1676 %description xsl -l pl.UTF-8
1677 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1680 Summary: Zip management extension
1681 Summary(pl.UTF-8): Zarządzanie archiwami zip
1683 URL: http://www.php.net/manual/en/book.zip.php
1684 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1686 Obsoletes: php-pecl-zip
1689 Zip is an extension to create, modify and read zip files.
1691 %description zip -l pl.UTF-8
1692 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1693 odczyt archiwów zip.
1696 Summary: Zlib extension module for PHP
1697 Summary(pl.UTF-8): Moduł zlib dla PHP
1699 URL: http://www.php.net/manual/en/book.zlib.php
1700 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1704 This is a dynamic shared object (DSO) for PHP that will add zlib
1705 compression support to PHP.
1707 %description zlib -l pl.UTF-8
1708 Moduł PHP umożliwiający używanie kompresji zlib.
1712 # prep for suhosin patch
1713 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1724 cp php.ini-production php.ini
1726 %if %{with type_hints}
1733 %if %{with system_gd}
1747 %if "%{pld_release}" != "ac"
1772 %if "%{pld_release}" != "ac"
1773 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1776 # cleanup backups after patching
1777 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1779 # conflict seems to be resolved by recode patches
1780 rm -f ext/recode/config9.m4
1782 # remove all bundled libraries not to link with them accidentally
1783 #rm -rf ext/sqlite/libsqlite
1784 rm -rf ext/sqlite3/libsqlite
1785 #rm -rf ext/bcmath/libbcmath
1786 #rm -rf ext/date/lib
1787 #rm -rf ext/dba/libcdb
1788 #rm -rf ext/dba/libflatfile
1789 #rm -rf ext/dba/libinifile
1790 #rm -rf ext/gd/libgd
1791 #rm -rf ext/mbstring/libmbfl
1792 #rm -rf ext/mbstring/oniguruma
1793 rm -rf ext/pcre/pcrelib
1794 rm -rf ext/pdo_sqlite/sqlite
1795 #rm -rf ext/soap/interop
1796 rm -r ext/xmlrpc/libxmlrpc
1798 cp -af Zend/LICENSE{,.Zend}
1801 sed -i -e 's#-fvisibility=hidden##g' configure*
1804 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1805 if [ $API != %{php_api_version} ]; then
1806 echo "Set %%define php_api_version to $API and re-run."
1810 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1811 if [ $API != %{zend_module_api} ]; then
1812 echo "Set %%define zend_module_api to $API and re-run."
1816 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1817 if [ $API != %{zend_extension_api} ]; then
1818 echo "Set %%define zend_extension_api to $API and re-run."
1822 export EXTENSION_DIR="%{php_extensiondir}"
1823 # configure once (for faster debugging purposes)
1824 if [ ! -f _built-conf ]; then
1825 # now remove Makefile copies
1826 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed}
1829 cp -f /usr/share/automake/config.* .
1833 export PROG_SENDMAIL="/usr/lib/sendmail"
1834 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
1835 -I%{_includedir}/xmlrpc-epi"
1848 %if %{with litespeed}
1852 for sapi in $sapis; do
1854 # skip if already configured (for faster debugging purposes)
1855 [ -f Makefile.$sapi ] && continue
1860 sapi_args='--disable-cli'
1863 sapi_args='--disable-cgi'
1866 sapi_args='--disable-cli --with-fpm'
1869 ver=$(rpm -q --qf '%{V}' apache1-devel)
1870 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
1873 ver=$(rpm -q --qf '%{V}' apache-devel)
1874 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
1877 sapi_args='--with-litespeed'
1883 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1884 --cache-file=config.cache \
1886 --with-libdir=%{_lib} \
1887 --with-config-file-path=%{_sysconfdir} \
1888 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1889 --with-exec-dir=%{_bindir} \
1890 --%{!?debug:dis}%{?debug:en}able-debug \
1891 %{?with_zts:--enable-maintainer-zts} \
1892 --enable-inline-optimization \
1893 --enable-bcmath=shared \
1894 --enable-calendar=shared \
1895 --enable-ctype=shared \
1896 --enable-dba=shared \
1897 --enable-dom=shared \
1898 --enable-exif=shared \
1899 --enable-fileinfo=shared \
1900 --enable-ftp=shared \
1901 --enable-gd-native-ttf \
1902 --enable-intl=shared \
1904 --enable-magic-quotes \
1905 --enable-mbstring=shared,all \
1907 --enable-pcntl=shared \
1908 --enable-pdo=shared \
1909 --enable-json=shared \
1910 --enable-hash=shared \
1911 --enable-xmlwriter=shared \
1913 --with-libevent=shared \
1914 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
1915 --with-fpm-log=/var/log/fpm.log \
1916 --with-fpm-pid=/var/run/php/fpm.pid \
1917 --with-fpm-port=9000 \
1918 --with-fpm-user=http \
1919 --with-fpm-group=http \
1921 %if %{with mssql} || %{with sybase_ct}
1922 --with-pdo-dblib=shared \
1924 %if %{with interbase} && %{without interbase_inst}
1925 --with-pdo-firebird=shared,/usr \
1927 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1928 --with-pdo-mysql=shared,mysqlnd \
1929 %{?with_oci8:--with-pdo-oci=shared} \
1930 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1931 %{?with_pgsql:--with-pdo-pgsql=shared} \
1932 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1933 --without-libexpat-dir \
1934 --enable-mysqlnd-threading \
1935 --enable-overload=shared \
1936 --enable-posix=shared \
1938 --enable-session=shared \
1939 --enable-shmop=shared \
1940 --enable-simplexml=shared \
1941 --enable-spl=shared \
1942 --enable-sysvmsg=shared \
1943 --enable-sysvsem=shared \
1944 --enable-sysvshm=shared \
1945 --enable-safe-mode \
1946 --enable-soap=shared \
1947 --enable-sockets=shared \
1948 --enable-tokenizer=shared \
1949 --enable-ucd-snmp-hack \
1950 %{?with_wddx:--enable-wddx=shared} \
1951 --enable-xml=shared \
1952 --enable-xmlreader=shared \
1954 %{__with_without curl curl shared} \
1956 %{?with_fdf:--with-fdftk=shared} \
1957 --with-iconv=shared \
1958 --with-freetype-dir=shared \
1959 --with-gettext=shared \
1960 --with-gd=shared%{?with_system_gd:,/usr} \
1963 %{?with_imap:--with-imap=shared --with-imap-ssl} \
1964 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1965 --with-jpeg-dir=/usr \
1966 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1967 --with-mcrypt=shared \
1968 %{?with_mm:--with-mm} \
1969 %{?with_mssql:--with-mssql=shared} \
1970 --with-mysql=shared,mysqlnd \
1971 %{?with_mysqli:--with-mysqli=shared,mysqlnd} \
1972 %{?with_oci8:--with-oci8=shared} \
1973 %{?with_openssl:--with-openssl=shared} \
1975 %{__with_without pcre pcre-regex /usr} \
1976 %{__enable_disable filter filter shared} \
1977 --with-pear=%{php_pear_dir} \
1978 %{__with_without pgsql pgsql shared,/usr} \
1979 %{__enable_disable phar phar shared} \
1980 --with-png-dir=/usr \
1981 %{?with_pspell:--with-pspell=shared} \
1982 --with-readline=shared \
1983 %{?with_recode:--with-recode=shared} \
1984 --with-regex=system \
1985 %{?with_snmp:--with-snmp=shared} \
1986 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1987 %{!?with_sqlite:--without-sqlite --without-pdo-sqlite}%{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1988 %{__with_without sqlite3 sqlite3 shared,/usr} \
1989 --with-t1lib=shared \
1990 %{?with_tidy:--with-tidy=shared} \
1991 %{?with_odbc:--with-unixODBC=shared,/usr} \
1992 %{__with_without xmlrpc xmlrpc shared,/usr} \
1994 --with-zlib=shared \
1995 --with-zlib-dir=shared,/usr \
1996 --enable-zip=shared,/usr \
1999 cp -f Makefile Makefile.$sapi
2000 cp -f main/php_config.h php_config.h.$sapi
2001 cp -f config.log config.log.$sapi
2004 # as we build each SAPI in own make, adjust php-config.in forehead
2005 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2006 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2008 # must make libphp_common first, so modules can link against it.
2009 %{__make} libphp_common.la
2010 %{__make} build-modules
2013 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2017 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2020 %if %{with litespeed}
2021 %{__make} -f Makefile.litespeed
2025 cp -af php_config.h.cgi-fcgi main/php_config.h
2026 %{__make} -f Makefile.cgi-fcgi
2027 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2030 cp -af php_config.h.cli main/php_config.h
2031 %{__make} -f Makefile.cli
2032 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = cli ] || exit 1
2036 cp -af php_config.h.fpm main/php_config.h
2037 %{__make} -f Makefile.fpm
2038 ./sapi/fpm/php-fpm -qn -m > /dev/null
2042 # Run tests, using the CLI SAPI
2043 cp -af php_config.h.cli main/php_config.h
2044 cp -af Makefile.cli Makefile
2045 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2046 unset TZ LANG LC_ALL || :
2048 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
2052 rm -rf $RPM_BUILD_ROOT
2053 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2054 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2055 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2056 $RPM_BUILD_ROOT%{_mandir}/man1 \
2058 # install the Apache modules' files
2059 %{__make} install-headers install-build install-modules install-programs \
2060 INSTALL_ROOT=$RPM_BUILD_ROOT
2062 # install Apache1 DSO module
2064 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2067 # install Apache2 DSO module
2069 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2072 # install litespeed sapi
2073 %if %{with litespeed}
2074 libtool --silent --mode=install install sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/php.litespeed
2077 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2078 # fix install paths, avoid evil rpaths
2079 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2081 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2084 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
2085 ln -sf php.cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
2089 libtool --silent --mode=install install sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_bindir}/php.fpm
2090 cp -a sapi/fpm/php-fpm.1 $RPM_BUILD_ROOT%{_mandir}/man1/php-fpm.1
2091 cp -a sapi/fpm/php_fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2092 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2093 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/php-fpm
2094 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2095 cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/php-fpm
2099 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
2100 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2101 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
2102 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
2104 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2106 # per SAPI ini directories
2107 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2108 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php-cli.ini
2109 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cgi-fcgi.d/php-cgi-fcgi.ini
2110 cp -a %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2113 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2114 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache.d/php-apache.ini
2115 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2119 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2120 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php-apache2handler.ini
2121 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2124 # Generate stub .ini files for each subpackage
2125 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2126 generate_inifiles() {
2127 for so in modules/*.so; do
2128 mod=$(basename $so .so)
2129 conf="%{_sysconfdir}/conf.d/$mod.ini"
2130 # xml needs to be loaded before wddx
2131 [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_$mod.ini"
2132 # pre needs to be loaded before SPL
2133 [ "$mod" = "pcre" ] && conf="%{_sysconfdir}/conf.d/PCRE.ini"
2134 # spl needs to be loaded before mysqli
2135 [ "$mod" = "spl" ] && conf="%{_sysconfdir}/conf.d/SPL.ini"
2137 cat > $RPM_BUILD_ROOT$conf <<-EOF
2138 ; Enable $mod extension module
2146 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{pcntl,readline}.ini,cli.d}
2148 # use system automake and {lib,sh}tool
2149 %if "%{pld_release}" != "ac"
2150 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2151 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2152 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2154 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2156 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2157 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2159 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2161 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2162 # isn't installed by install-headers make target, we do it manually here.
2163 # this header file is required by e.g. filter PECL extension
2164 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2165 # for php-pecl-mailparse
2166 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2167 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2170 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2171 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2172 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2175 rm -rf $RPM_BUILD_ROOT
2177 %post -n apache1-mod_php
2178 if [ "$1" = "1" ]; then
2179 %service -q apache restart
2182 %postun -n apache1-mod_php
2183 if [ "$1" = "0" ]; then
2184 %service -q apache restart
2187 %post -n apache-mod_php
2188 if [ "$1" = "1" ]; then
2189 %service -q httpd restart
2192 %postun -n apache-mod_php
2193 if [ "$1" = "0" ]; then
2194 %service -q httpd restart
2198 /sbin/chkconfig --add php-fpm
2199 %service php-fpm restart
2202 if [ "$1" = 0 ]; then
2203 %service php-fpm stop
2204 /sbin/chkconfig --del php-fpm
2207 %post common -p /sbin/ldconfig
2208 %postun common -p /sbin/ldconfig
2211 # minimizing apache restarts logics. we restart webserver:
2213 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2214 # 2. first install of extension (post: $1 = 1)
2215 # 2. uninstall of extension (postun: $1 == 0)
2217 # the strict internal deps between extensions (and apache modules) and
2218 # common package are very important for all this to work.
2220 # restart webserver at the end of transaction
2221 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2222 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2225 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2227 /^AddType application\/x-httpd-php \.php/s,^,#,
2228 /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2229 ' /etc/apache/apache.conf
2230 %service -q apache restart
2232 %triggerpostun -n apache1-mod_php -- apache1-mod_php < 4:5.3.2-0.15
2234 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2235 mv -f %{_sysconfdir}/apache.d/php-apache.ini{,.rpmnew}
2236 mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/apache.d/php-apache.ini
2241 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1
2242 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2243 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2244 cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2245 mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2248 %triggerpostun -n apache-mod_php -- apache-mod_php < 4:5.3.2-0.15
2250 if [ -f %{_sysconfdir}/php-apache2handler.ini.rpmsave ]; then
2251 mv -f %{_sysconfdir}/php-apache2handler.d/php-apache2handler.ini{,.rpmnew}
2252 mv -f %{_sysconfdir}/php-apache2handler.ini.rpmsave %{_sysconfdir}/php-apache2handler.d/php-apache2handler.ini
2256 %triggerpostun cgi -- php-cgi < 4:5.3.2-0.15
2258 for f in php-cgi.ini php-cgi-fcgi.ini ; do
2259 if [ -f %{_sysconfdir}/$f.rpmsave ]; then
2260 mv -f %{_sysconfdir}/cgi-fcgi.d/$f{,.rpmnew}
2261 mv -f %{_sysconfdir}/$f.rpmsave %{_sysconfdir}/cgi-fcgi.d/$f
2265 %triggerpostun cli -- php-cli < 4:5.3.2-0.15
2267 if [ -f %{_sysconfdir}/php-cli.ini.rpmsave ]; then
2268 mv -f %{_sysconfdir}/cli.d/php-cli.ini{,.rpmnew}
2269 mv -f %{_sysconfdir}/php-cli.ini.rpmsave %{_sysconfdir}/cli.d/php-cli.ini
2272 # common macros called at extension post/postun scriptlet
2273 %define extension_scripts() \
2275 if [ "$1" = "1" ]; then \
2276 %php_webserver_restart \
2280 if [ "$1" = "0" ]; then \
2281 %php_webserver_restart \
2285 # extension scripts defines
2286 %extension_scripts bcmath
2287 %extension_scripts bzip2
2288 %extension_scripts calendar
2289 %extension_scripts ctype
2290 %extension_scripts curl
2291 %extension_scripts dba
2292 %extension_scripts dom
2293 %extension_scripts exif
2294 %extension_scripts fdf
2295 %extension_scripts fileinfo
2296 %extension_scripts filter
2297 %extension_scripts ftp
2298 %extension_scripts gd
2299 %extension_scripts gettext
2300 %extension_scripts gmp
2301 %extension_scripts hash
2302 %extension_scripts iconv
2303 %extension_scripts imap
2304 %extension_scripts interbase
2305 %extension_scripts intl
2306 %extension_scripts json
2307 %extension_scripts ldap
2308 %extension_scripts mbstring
2309 %extension_scripts mcrypt
2310 %extension_scripts mssql
2311 %extension_scripts mysql
2312 %extension_scripts mysqli
2313 %extension_scripts oci8
2314 %extension_scripts odbc
2315 %extension_scripts openssl
2316 %extension_scripts pcre
2317 %extension_scripts pdo-dblib
2318 %extension_scripts pdo-firebird
2319 %extension_scripts pdo-mysql
2320 %extension_scripts pdo-odbc
2321 %extension_scripts pdo-pgsql
2322 %extension_scripts pdo-sqlite
2323 %extension_scripts pgsql
2324 %extension_scripts phar
2325 %extension_scripts posix
2326 %extension_scripts pspell
2327 %extension_scripts recode
2328 %extension_scripts session
2329 %extension_scripts shmop
2330 %extension_scripts snmp
2331 %extension_scripts soap
2332 %extension_scripts sockets
2333 %extension_scripts spl
2334 %extension_scripts sqlite
2335 %extension_scripts sqlite3
2336 %extension_scripts sybase-ct
2337 %extension_scripts sysvmsg
2338 %extension_scripts sysvsem
2339 %extension_scripts sysvshm
2340 %extension_scripts tidy
2341 %extension_scripts tokenizer
2342 %extension_scripts wddx
2343 %extension_scripts xml
2344 %extension_scripts xmlreader
2345 %extension_scripts xmlrpc
2346 %extension_scripts xmlwriter
2347 %extension_scripts xsl
2348 %extension_scripts zip
2349 %extension_scripts zlib
2351 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2352 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2354 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2355 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2357 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2358 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2360 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2361 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2363 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2364 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2366 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2367 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2369 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2370 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2372 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2373 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2375 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2376 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2378 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2381 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2384 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2387 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2390 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2393 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2396 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2399 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2402 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2405 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2408 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2409 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2411 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2412 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2414 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2415 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2417 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2418 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2420 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2421 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2423 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2424 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2426 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2427 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2428 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2430 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2431 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2434 %triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
2435 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2437 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2438 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2440 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2441 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2443 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2444 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2446 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2447 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2448 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2450 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2451 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2454 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2455 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2457 %triggerun session -- %{name}-session < 4:5.0.4-9.1
2458 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
2460 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2461 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2463 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2464 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2466 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2467 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2469 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2470 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2472 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2473 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2475 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2476 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2478 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2479 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2481 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2482 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2484 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2485 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2487 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2488 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2490 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2491 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2493 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2494 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2496 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2497 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2499 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2500 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2502 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2503 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2506 %files -n apache1-mod_php
2507 %defattr(644,root,root,755)
2508 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2509 %dir %{_sysconfdir}/apache.d
2510 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.d/php-apache.ini
2511 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2515 %files -n apache-mod_php
2516 %defattr(644,root,root,755)
2517 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2518 %dir %{_sysconfdir}/apache2handler.d
2519 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php-apache2handler.ini
2520 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2523 %if %{with litespeed}
2525 %defattr(644,root,root,755)
2526 %attr(755,root,root) %{_sbindir}/php.litespeed
2530 %defattr(644,root,root,755)
2531 %dir %{_sysconfdir}/cgi-fcgi.d
2532 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cgi-fcgi.d/php-cgi-fcgi.ini
2533 %attr(755,root,root) %{_bindir}/php.cgi
2534 %attr(755,root,root) %{_bindir}/php.fcgi
2537 %defattr(644,root,root,755)
2538 %dir %{_sysconfdir}/cli.d
2539 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/php-cli.ini
2540 %attr(755,root,root) %{_bindir}/php.cli
2541 %{_mandir}/man1/php.1*
2542 %{_mandir}/man1/php.cli.1*
2545 %defattr(644,root,root,755)
2546 %attr(755,root,root) %{_bindir}/php
2550 %defattr(644,root,root,755)
2551 %doc %lang(ru) sapi/fpm/readme-ru.markdown
2552 %doc sapi/fpm/nginx-site-conf.sample
2553 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2554 %attr(755,root,root) %{_bindir}/php.fpm
2555 %{_mandir}/man1/php-fpm.1*
2556 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/php-fpm
2557 %attr(754,root,root) /etc/rc.d/init.d/php-fpm
2561 %defattr(644,root,root,755)
2563 %doc CREDITS Zend/ZEND_CHANGES
2564 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2565 %doc README.PHP4-TO-PHP5-THIN-CHANGES
2566 %doc README.namespaces
2569 %dir %{_sysconfdir}/conf.d
2570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2571 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2572 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2573 %dir %{php_extensiondir}
2575 %doc ext/session/mod_files.sh
2578 %defattr(644,root,root,755)
2579 %doc README.UNIX-BUILD-SYSTEM
2580 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2581 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2582 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2583 %attr(755,root,root) %{_bindir}/phpize
2584 %attr(755,root,root) %{_bindir}/php-config
2585 %attr(755,root,root) %{_libdir}/libphp_common.so
2586 %{_libdir}/libphp_common.la
2588 %{_libdir}/php/build
2589 %{_mandir}/man1/php-config.1*
2590 %{_mandir}/man1/phpize.1*
2593 %defattr(644,root,root,755)
2594 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2595 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2598 %defattr(644,root,root,755)
2599 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2600 %attr(755,root,root) %{php_extensiondir}/bz2.so
2603 %defattr(644,root,root,755)
2604 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2605 %attr(755,root,root) %{php_extensiondir}/calendar.so
2608 %defattr(644,root,root,755)
2609 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2610 %attr(755,root,root) %{php_extensiondir}/ctype.so
2614 %defattr(644,root,root,755)
2615 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2616 %attr(755,root,root) %{php_extensiondir}/curl.so
2620 %defattr(644,root,root,755)
2621 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2622 %attr(755,root,root) %{php_extensiondir}/dba.so
2625 %defattr(644,root,root,755)
2626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2627 %attr(755,root,root) %{php_extensiondir}/dom.so
2631 %defattr(644,root,root,755)
2632 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2633 %attr(755,root,root) %{php_extensiondir}/fdf.so
2637 %defattr(644,root,root,755)
2638 %doc README.input_filter
2639 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2640 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2644 %defattr(644,root,root,755)
2645 %doc README.input_filter
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2647 %attr(755,root,root) %{php_extensiondir}/filter.so
2651 %defattr(644,root,root,755)
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2653 %attr(755,root,root) %{php_extensiondir}/exif.so
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2658 %attr(755,root,root) %{php_extensiondir}/ftp.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2663 %attr(755,root,root) %{php_extensiondir}/gd.so
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2668 %attr(755,root,root) %{php_extensiondir}/gettext.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2673 %attr(755,root,root) %{php_extensiondir}/gmp.so
2676 %defattr(644,root,root,755)
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2678 %attr(755,root,root) %{php_extensiondir}/hash.so
2681 %defattr(644,root,root,755)
2682 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2683 %attr(755,root,root) %{php_extensiondir}/iconv.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2689 %attr(755,root,root) %{php_extensiondir}/imap.so
2692 %if %{with interbase}
2694 %defattr(644,root,root,755)
2695 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2696 %attr(755,root,root) %{php_extensiondir}/interbase.so
2700 %defattr(644,root,root,755)
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
2702 %attr(755,root,root) %{php_extensiondir}/intl.so
2705 %defattr(644,root,root,755)
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2707 %attr(755,root,root) %{php_extensiondir}/json.so
2711 %defattr(644,root,root,755)
2712 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2713 %attr(755,root,root) %{php_extensiondir}/ldap.so
2717 %defattr(644,root,root,755)
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2719 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2722 %defattr(644,root,root,755)
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2724 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2730 %attr(755,root,root) %{php_extensiondir}/mssql.so
2734 %defattr(644,root,root,755)
2735 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2736 %attr(755,root,root) %{php_extensiondir}/mysql.so
2740 %defattr(644,root,root,755)
2741 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2742 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2747 %defattr(644,root,root,755)
2748 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2749 %attr(755,root,root) %{php_extensiondir}/oci8.so
2754 %defattr(644,root,root,755)
2755 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2756 %attr(755,root,root) %{php_extensiondir}/odbc.so
2761 %defattr(644,root,root,755)
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2763 %attr(755,root,root) %{php_extensiondir}/openssl.so
2767 %defattr(644,root,root,755)
2768 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2769 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2773 %defattr(644,root,root,755)
2774 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2775 %attr(755,root,root) %{php_extensiondir}/pcre.so
2779 %defattr(644,root,root,755)
2780 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2781 %attr(755,root,root) %{php_extensiondir}/pdo.so
2783 %if %{with mssql} || %{with sybase_ct}
2785 %defattr(644,root,root,755)
2786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2787 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2790 %if %{with interbase} && !%{with interbase_inst}
2792 %defattr(644,root,root,755)
2793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2794 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2800 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2806 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2811 %defattr(644,root,root,755)
2812 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2813 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2818 %defattr(644,root,root,755)
2819 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2820 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2825 %defattr(644,root,root,755)
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2827 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2832 %defattr(644,root,root,755)
2833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2834 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2839 %defattr(644,root,root,755)
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
2841 %attr(755,root,root) %{php_extensiondir}/phar.so
2845 %defattr(644,root,root,755)
2846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2847 %attr(755,root,root) %{php_extensiondir}/posix.so
2851 %defattr(644,root,root,755)
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2853 %attr(755,root,root) %{php_extensiondir}/pspell.so
2857 %defattr(644,root,root,755)
2858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2859 %attr(755,root,root) %{php_extensiondir}/readline.so
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2865 %attr(755,root,root) %{php_extensiondir}/recode.so
2869 %defattr(644,root,root,755)
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2871 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2874 %defattr(644,root,root,755)
2875 %doc ext/session/mod_files.sh
2876 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/session.ini
2877 %attr(755,root,root) %{php_extensiondir}/session.so
2880 %defattr(644,root,root,755)
2881 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2882 %attr(755,root,root) %{php_extensiondir}/shmop.so
2886 %defattr(644,root,root,755)
2887 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2888 %attr(755,root,root) %{php_extensiondir}/snmp.so
2892 %defattr(644,root,root,755)
2893 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2894 %attr(755,root,root) %{php_extensiondir}/soap.so
2897 %defattr(644,root,root,755)
2898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2899 %attr(755,root,root) %{php_extensiondir}/sockets.so
2902 %defattr(644,root,root,755)
2903 %doc ext/spl/{CREDITS,README,TODO}
2904 %doc ext/spl/examples
2905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2906 %attr(755,root,root) %{php_extensiondir}/spl.so
2910 %defattr(644,root,root,755)
2911 %doc ext/sqlite/{README,TODO,CREDITS}
2912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2913 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2918 %defattr(644,root,root,755)
2919 %doc ext/sqlite3/CREDITS
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
2921 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
2924 %if %{with sybase_ct}
2926 %defattr(644,root,root,755)
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2928 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2932 %defattr(644,root,root,755)
2933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2934 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2937 %defattr(644,root,root,755)
2938 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2939 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2942 %defattr(644,root,root,755)
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2944 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2947 %defattr(644,root,root,755)
2948 %dir %{php_data_dir}/tests/php
2949 %{php_data_dir}/tests/php/basic
2950 %{php_data_dir}/tests/php/classes
2951 %{php_data_dir}/tests/php/func
2952 %{php_data_dir}/tests/php/lang
2953 %{php_data_dir}/tests/php/output
2954 %{php_data_dir}/tests/php/run-test
2955 %{php_data_dir}/tests/php/security
2956 %{php_data_dir}/tests/php/strings
2957 %{php_data_dir}/tests/php/quicktester.inc
2958 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
2962 %defattr(644,root,root,755)
2963 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2964 %attr(755,root,root) %{php_extensiondir}/tidy.so
2968 %defattr(644,root,root,755)
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2970 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2974 %defattr(644,root,root,755)
2975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2976 %attr(755,root,root) %{php_extensiondir}/wddx.so
2980 %defattr(644,root,root,755)
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2982 %attr(755,root,root) %{php_extensiondir}/xml.so
2985 %defattr(644,root,root,755)
2986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2987 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
2991 %defattr(644,root,root,755)
2992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2993 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
2997 %defattr(644,root,root,755)
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
2999 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3004 %attr(755,root,root) %{php_extensiondir}/xsl.so
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3009 %attr(755,root,root) %{php_extensiondir}/zip.so
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3014 %attr(755,root,root) %{php_extensiondir}/zlib.so