2 # - wddx: restore session support (not compiled in due DL extension check)
3 # - fix -threads-acfix.patch
4 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
5 # - removed from php 5.0 (currently in php4):
6 # db, hyperwave, java, mcal, overload, qtdom
7 # - removed from php 5.1:
9 # - removed from php 5.2:
11 # - mime_magic can't handle new "string/*" entries in magic.mime
12 # thus doesn't work with system magic.mime database
13 # - make additional headers and checking added by mail patch configurable
14 # - modularize session, standard (output from pure php -m)?
15 # - http://forum.lighttpd.net/topic/34454
16 # - ttyname_r() missdetected http://bugs.php.net/bug.php?id=48820
18 # To see optional extension deps:
19 # $ grep -r PHP_ADD_EXTENSION_DEP.*,.*,.* .
20 #./ext/pdo/config.m4: PHP_ADD_EXTENSION_DEP(pdo, spl, true)
21 #./ext/spl/config.m4: PHP_ADD_EXTENSION_DEP(spl, pcre, true)
22 #./ext/session/config.m4: PHP_ADD_EXTENSION_DEP(session, hash, true)
23 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, spl, true)
24 #./ext/sqlite/config.m4: PHP_ADD_EXTENSION_DEP(sqlite, pdo, true)
25 #./ext/simplexml/config.m4: PHP_ADD_EXTENSION_DEP(simplexml, spl, true)
26 #./ext/xmlreader/config.m4: PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
29 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
30 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
31 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
32 %bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
33 %bcond_with gd_jis_conv # causes imagettfbbox(): any2eucjp(): invalid code in input string when internal gd used
34 %bcond_with zend_multibyte # enable zend multibyte, mbstring can't be shared then anymore
35 %bcond_without curl # without CURL extension module
36 %bcond_without filter # without filter extension module
37 %bcond_without imap # without IMAP extension module
38 %bcond_without interbase # without InterBase extension module
39 %bcond_without ldap # without LDAP extension module
40 %bcond_without mhash # without mhash extension module
41 %bcond_without mime_magic # without mime-magic module
42 %bcond_without ming # without ming 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 pspell # without pspell extension module
51 %bcond_without recode # without recode extension module
52 %bcond_without snmp # without SNMP extension module
53 %bcond_without sqlite # without SQLite extension module
54 %bcond_without sybase # without Sybase extension module
55 %bcond_without sybase_ct # without Sybase-CT extension module
56 %bcond_without tidy # without Tidy extension module
57 %bcond_without wddx # without WDDX extension module
58 %bcond_without xmlrpc # without XML-RPC extension module
59 %bcond_without apache1 # disable building apache 1.3.x module
60 %bcond_without apache2 # disable building apache 2.x module
61 %bcond_without fcgi # disable building FCGI SAPI
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 system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
66 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
67 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
69 %define apxs1 /usr/sbin/apxs1
70 %define apxs2 /usr/sbin/apxs
72 # some problems with apache 2.x
77 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
78 %undefine with_interbase
80 %if "%{pld_release}" == "th"
82 # ppc disabled (broken on th-ppc)
83 %undefine with_interbase
87 %ifnarch %{ix86} %{x8664}
88 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
92 %if %{without apache1} && %{without apache2}
93 ERROR: You need to select at least one Apache SAPI to build shared modules.
96 # filter depends on pcre
101 %if "%{pld_release}" == "ac"
102 %define magic_mime /usr/share/file/magic.mime
104 %define magic_mime /usr/share/misc/magic.mime
107 Summary: PHP: Hypertext Preprocessor
108 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
109 Summary(pl.UTF-8): Język skryptowy PHP
110 Summary(pt_BR.UTF-8): A linguagem de script PHP
111 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
112 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
119 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
120 # Source0-md5: 5b7077e366c7eeab34da31dd860a1923
121 Source2: %{name}-mod_%{name}.conf
122 Source3: %{name}-cgi-fcgi.ini
123 Source4: %{name}-cgi.ini
124 Source5: %{name}-apache.ini
125 Source6: %{name}-cli.ini
126 # Taken from: http://browsers.garykeith.com/downloads.asp
127 Source8: %{name}_browscap.ini
128 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
129 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{name}-patchset-%{version}-r1.tar.bz2
130 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
131 Source10: %{name}-fpm.init
132 Source11: %{name}-fpm.logrotate
133 Source12: %{name}-branch.sh
134 Source13: dep-tests.sh
135 Patch0: %{name}-shared.patch
136 Patch1: %{name}-pldlogo.patch
137 Patch2: %{name}-mail.patch
138 Patch3: %{name}-link-libs.patch
139 Patch4: %{name}-libpq_fs_h_path.patch
140 Patch5: %{name}-filter-shared.patch
141 Patch6: %{name}-build_modules.patch
142 Patch7: %{name}-sapi-ini-file.patch
143 Patch8: %{name}-no-metaccld.patch
144 Patch9: %{name}-sh.patch
145 Patch10: %{name}-ini.patch
146 Patch11: %{name}-acam.patch
147 Patch12: %{name}-threads-acfix.patch
148 Patch13: %{name}-tsrmlsfetchgcc2.patch
149 Patch14: %{name}-no_pear_install.patch
150 Patch15: %{name}-zlib.patch
151 Patch16: %{name}-sybase-fix.patch
152 Patch17: %{name}-readline.patch
153 Patch18: %{name}-nohttpd.patch
154 Patch19: %{name}-gd_imagerotate_enable.patch
155 Patch20: %{name}-uint32_t.patch
156 Patch21: %{name}-dba-link.patch
157 Patch22: %{name}-both-apxs.patch
158 Patch23: %{name}-builddir.patch
159 Patch24: %{name}-zlib-for-getimagesize.patch
160 Patch25: %{name}-versioning.patch
161 Patch26: %{name}-pear.patch
162 Patch27: %{name}-config-dir.patch
163 Patch28: %{name}-bug-42952.patch
164 Patch29: %{name}-fcgi-graceful.patch
165 Patch30: %{name}-apr-apu.patch
166 Patch31: %{name}-fcgi-error_log-no-newlines.patch
167 Patch32: %{name}-curl-limit-speed.patch
168 Patch33: %{name}-mime_magic.patch
169 Patch34: %{name}-libtool.patch
170 Patch35: %{name}-tds.patch
171 Patch36: %{name}-mysql-charsetphpini.patch
172 Patch37: %{name}-mysqli-charsetphpini.patch
173 Patch38: %{name}-pdo_mysql-charsetphpini.patch
174 Patch39: %{name}-use-prog_sendmail.patch
175 Patch40: %{name}-fpm.patch
176 Patch41: %{name}-fpm-config.patch
177 Patch42: %{name}-fpm-initdir.patch
178 Patch43: %{name}-silent-session-cleanup.patch
179 Patch44: %{name}-include_path.patch
180 Patch45: %{name}-imap-annotations.patch
181 Patch46: %{name}-imap-myrights.patch
182 Patch47: suhosin.patch
183 Patch49: %{name}-m4-divert.patch
184 Patch50: extension-shared-optional-dep.patch
185 Patch51: spl-shared.patch
186 URL: http://www.php.net/
187 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
188 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
189 BuildRequires: autoconf >= 2.53
190 BuildRequires: automake >= 1.4d
192 BuildRequires: bzip2-devel
193 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
194 BuildRequires: cyrus-sasl-devel
195 BuildRequires: db-devel >= 4.0
196 BuildRequires: elfutils-devel
198 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
200 %{?with_fcgi:BuildRequires: fcgi-devel}
201 %{?with_fdf:BuildRequires: fdftk-devel}
203 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
204 BuildRequires: freetds-devel
206 BuildRequires: freetype-devel >= 2.0
207 %if %{with system_gd}
208 BuildRequires: gd-devel >= 2.0.28-4
209 BuildRequires: gd-devel(imagerotate) = 5.2.0
211 BuildRequires: gdbm-devel
212 BuildRequires: gmp-devel
213 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
214 BuildRequires: libjpeg-devel
215 BuildRequires: libltdl-devel >= 1.4
216 BuildRequires: libmcrypt-devel >= 2.4.4
217 BuildRequires: libpng-devel >= 1.0.8
218 BuildRequires: libtiff-devel
219 %if "%{pld_release}" != "ac"
220 BuildRequires: libtool >= 2:2.2
222 BuildRequires: libtool
224 BuildRequires: libwrap-devel
225 BuildRequires: libxml2-devel >= 2.5.10
226 BuildRequires: libxslt-devel >= 1.1.0
227 %{?with_mhash:BuildRequires: mhash-devel}
228 %{?with_ming:BuildRequires: ming-devel >= 0.3}
229 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
230 BuildRequires: mysql-devel >= 4.0.0
231 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
232 BuildRequires: ncurses-ext-devel
233 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
234 %if %{with openssl} || %{with ldap}
235 BuildRequires: openssl-devel >= 0.9.7d
237 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
238 BuildRequires: pam-devel
239 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
240 BuildRequires: pkgconfig
241 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
242 %{?with_pgsql:BuildRequires: postgresql-devel}
243 BuildRequires: readline-devel
244 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
245 BuildRequires: rpm >= 4.4.9-56
246 BuildRequires: rpm-build >= 4.4.0
247 BuildRequires: rpmbuild(macros) >= 1.519
248 %{?with_sqlite:BuildRequires: sqlite-devel}
249 %{?with_sqlite:BuildRequires: sqlite3-devel}
250 BuildRequires: t1lib-devel
251 %{?with_tidy:BuildRequires: tidy-devel}
252 %{?with_odbc:BuildRequires: unixODBC-devel}
253 BuildRequires: zlib-devel >= 1.0.9
255 BuildRequires: apache1-devel
258 BuildRequires: apache-devel >= 2.0.52-2
259 BuildRequires: apr-devel >= 1:1.0.0
260 BuildRequires: apr-util-devel >= 1:1.0.0
263 BuildRequires: judy-devel
264 BuildRequires: libevent-devel >= 1.4.7-3
266 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
268 %define php_sysconfdir /etc/php
269 %define php_extensiondir %{_libdir}/php
270 %define _sysconfdir %{php_sysconfdir}
272 # must be in sync with source. extra check ensuring that it is so is done in %%build
273 %define php_api_version 20041225
274 %define zend_module_api 20060613
275 %define zend_extension_api 220060519
276 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
277 %define php_debug %{!?debug:0}%{?debug:1}
280 # ORACLE_HOME is required for oci8 ext to build
281 %define _preserve_env %_preserve_env_base ORACLE_HOME
285 PHP is an HTML-embedded scripting language. PHP attempts to make it
286 easy for developers to write dynamically generated web pages. PHP also
287 offers built-in database integration for several commercial and
288 non-commercial database management systems, so writing a
289 database-enabled web page with PHP is fairly simple. The most common
290 use of PHP coding is probably as a replacement for CGI scripts. The
291 mod_php module enables the Apache web server to understand and process
292 the embedded PHP language in web pages. This package contains php
295 %description -l fr.UTF-8
296 PHP est un langage de script embarque dans le HTM. PHP essaye de
297 rendre simple aux developpeurs d'ecrire des pages web generees
298 dynamiquement. PHP incorpore egalement une integration avec plusieurs
299 systemes de gestion de bases de donnees commerciaux et
300 non-connerciaux, qui rent facile la creation de pages web liees avec
301 des bases de donnees. L'utilisation la plus commune de PHP est
302 probablement en remplacement de scripts CGI. Le module mod_php permet
303 au serveur web apache de comprendre et de traiter le langage PHP
304 integre dans des pages web. Ce package contient php version
307 %description -l pl.UTF-8
308 PHP jest językiem skryptowym, którego polecenia umieszcza się w
309 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
310 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
311 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
312 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
313 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
314 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
315 język PHP osadzony w stronach. Ten pakiet zawiera php w wersji
318 %description -l pt_BR.UTF-8
319 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
320 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
321 com algumas características únicas, específicas ao PHP. O objetivo da
322 linguagem é permitir que desenvolvedores web escrevam páginas
323 dinamicamente geradas de forma rápida.
325 %description -l ru.UTF-8
326 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
327 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
328 для работы с базами данных относительно просто. Наиболее популярное
329 использование PHP - замена для CGI скриптов.
331 %description -l uk.UTF-8
332 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
333 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
334 роботи з базами даних є доволі простим. Найбільш популярне
335 використання PHP - заміна для CGI скриптів.
337 %package -n apache1-mod_php
338 Summary: PHP DSO module for apache 1.3.x
339 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 1.3.x
340 Group: Development/Languages/PHP
341 Requires(triggerpostun): sed >= 4.0
342 Requires: %{name}-common = %{epoch}:%{version}-%{release}
343 Requires: apache1(EAPI) >= 1.3.33-2
344 Requires: apache1-mod_mime
345 Provides: webserver(php) = %{version}
346 Obsoletes: apache-mod_php < 1:4.1.1
349 %description -n apache1-mod_php
350 PHP as DSO module for apache 1.3.x.
352 %description -n apache1-mod_php -l pl.UTF-8
353 php jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
355 %package -n apache-mod_php
356 Summary: PHP DSO module for apache 2.x
357 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 2.x
358 Group: Development/Languages/PHP
359 Requires: %{name}-common = %{epoch}:%{version}-%{release}
360 Requires: apache(modules-api) = %{apache_modules_api}
361 Requires: apache-mod_mime
362 Provides: webserver(php) = %{version}
365 %description -n apache-mod_php
366 PHP as DSO module for apache 2.x.
368 %description -n apache-mod_php -l pl.UTF-8
369 php jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
372 Summary: php as FastCGI program
373 Summary(pl.UTF-8): php jako program FastCGI
374 Group: Development/Languages/PHP
375 Requires: %{name}-common = %{epoch}:%{version}-%{release}
376 Provides: webserver(php) = %{version}
379 php as FastCGI program.
381 %description fcgi -l pl.UTF-8
382 php jako program FastCGI.
385 Summary: php as CGI program
386 Summary(pl.UTF-8): php jako program CGI
387 Group: Development/Languages/PHP
388 Requires: %{name}-common = %{epoch}:%{version}-%{release}
394 %description cgi -l pl.UTF-8
395 php jako program CGI.
398 Summary: php as CLI interpreter
399 Summary(pl.UTF-8): php jako interpreter działający z linii poleceń
400 Group: Development/Languages/PHP
401 Requires: %{name}-common = %{epoch}:%{version}-%{release}
404 php as CLI interpreter.
406 %description cli -l pl.UTF-8
407 php jako interpreter działający z linii poleceń.
410 Summary: /usr/bin/php symlink
411 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
412 Group: Development/Languages/PHP
413 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
414 Obsoletes: /usr/bin/php
417 Package providing /usr/bin/php symlink to PHP CLI.
419 %description program -l pl.UTF-8
420 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
423 Summary: PHP FastCGI Process Manager
424 Group: Development/Languages/PHP
425 URL: http://www.php-fpm.org/
426 Requires(post,preun): /sbin/chkconfig
427 Requires(postun): /usr/sbin/userdel
428 Requires(pre): /bin/id
429 Requires(pre): /usr/sbin/useradd
430 Requires: %{name}-common = %{epoch}:%{version}-%{release}
431 Requires: libevent >= 1.4.7-3
434 Provides: webserver(php) = %{version}
437 PHP FastCGI Process Manager.
440 Summary: Common files needed by both apache module and CGI
441 Summary(pl.UTF-8): Wspólne pliki dla modułu apache'a i programu CGI
442 Summary(ru.UTF-8): Разделяемые библиотеки для php
443 Summary(uk.UTF-8): Бібліотеки спільного використання для php
445 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
446 Requires: glibc >= 6:2.3.5
448 Requires: rpm-whiteout >= 1.28
451 Provides: php(libxml)
452 %{?with_zend_multibyte:Provides: php(mbstring)}
453 Provides: php(modules_api) = %{php_api_version}
454 Provides: php(overload)
455 Provides: php(reflection)
456 Provides: php(standard)
457 Provides: php(zend_extension_api) = %{zend_extension_api}
458 Provides: php(zend_module_api) = %{zend_module_api}
461 %{?with_zend_multibyte:Provides: php-mbstring = %{epoch}:%{version}-%{release}}
462 Provides: php-overload
463 Provides: php-reflection
464 Provides: php-standard
465 Provides: php5(debug) = %{php_debug}
466 Provides: php5(thread-safety) = %{zend_zts}
467 # ensure backward compatibility for Titanium
468 # to be dropped in future but ask Titanium RM before doing so
469 %if "%{pld_release}" == "ti"
470 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
471 Requires: %{name}-session = %{epoch}:%{version}-%{release}
472 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
474 %if "%{pld_release}" == "ac"
475 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
476 Requires: %{name}-session = %{epoch}:%{version}-%{release}
477 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
479 Obsoletes: php-pecl-domxml
480 Conflicts: php4-common < 3:4.4.4-8
481 Conflicts: rpm < 4.4.2-0.2
484 Common files needed by both apache module and CGI.
486 %description common -l pl.UTF-8
487 Wspólne pliki dla modułu apacha i programu CGI.
489 %description common -l ru.UTF-8
490 Этот пакет содержит общие файлы для разных вариантов реализации PHP
491 (самодостаточной и в качестве модуля apache).
493 %description common -l uk.UTF-8
494 Цей пакет містить спільні файли для різних варіантів реалізації PHP
495 (самодостатньої та в якості модуля apache).
498 Summary: Files for PHP modules development
499 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
500 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
501 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
502 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
503 Group: Development/Languages/PHP
504 Requires: %{name}-common = %{epoch}:%{version}-%{release}
507 %if "%{pld_release}" != "ac"
508 Requires: libtool >= 2:2.2
512 %{?with_pcre:Requires: pcre-devel >= 6.6}
514 Obsoletes: php-pear-devel
515 Obsoletes: php4-devel
518 The php-devel package lets you compile dynamic extensions to PHP.
519 Included here is the source for the PHP extensions. Instead of
520 recompiling the whole php binary to add support for, say, oracle,
521 install this package and use the new self-contained extensions
522 support. For more information, read the file
523 README.SELF-CONTAINED-EXTENSIONS.
525 %description devel -l pl.UTF-8
526 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
527 rekompilować całe php aby dodać obsługę np. oracle, można przy użyciu
528 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
529 samodzielnych rozszerzeniach można znaleźć w pliku
530 README.SELF-CONTAINED-EXTENSIONS.
532 %description devel -l pt_BR.UTF-8
533 Este pacote contém arquivos usados no desenvolvimento de programas ou
536 %description devel -l ru.UTF-8
537 Пакет php-devel дает возможность компилировать динамические расширения
538 PHP. Пакет включает исходный код этих расширений. Вместо повторной
539 компиляции бинарного файла php для добавления, например, поддержки
540 oracle, установите этот пакет для компилирования отдельных расширений.
541 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
543 %description devel -l uk.UTF-8
544 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
545 До пакету включено вихідний код для розширень. Замість повторної
546 компіляції бінарного файлу php для додання, наприклад, підтримки
547 oracle, встановіть цей пакет для компіляції окремих розширень.
548 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
551 Summary: bcmath extension module for PHP
552 Summary(pl.UTF-8): Moduł bcmath dla PHP
554 Requires: %{name}-common = %{epoch}:%{version}-%{release}
555 Provides: php(bcmath)
558 This is a dynamic shared object (DSO) for PHP that will add bc style
559 precision math functions support.
561 %description bcmath -l pl.UTF-8
562 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
563 matematycznych takich jak w programie bc.
566 Summary: Bzip2 extension module for PHP
567 Summary(pl.UTF-8): Moduł bzip2 dla PHP
569 Requires: %{name}-common = %{epoch}:%{version}-%{release}
573 This is a dynamic shared object (DSO) for PHP that will add bzip2
574 compression support to PHP.
576 %description bzip2 -l pl.UTF-8
577 Moduł PHP umożliwiający używanie kompresji bzip2.
580 Summary: Calendar extension module for PHP
581 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
583 Requires: %{name}-common = %{epoch}:%{version}-%{release}
584 Provides: php(calendar)
586 %description calendar
587 This is a dynamic shared object (DSO) for PHP that will add calendar
590 %description calendar -l pl.UTF-8
591 Moduł PHP dodający wsparcie dla kalendarza.
594 Summary: ctype extension module for PHP
595 Summary(pl.UTF-8): Moduł ctype dla PHP
597 Requires: %{name}-common = %{epoch}:%{version}-%{release}
601 This is a dynamic shared object (DSO) for PHP that will add ctype
604 %description ctype -l pl.UTF-8
605 Moduł PHP umożliwiający korzystanie z funkcji ctype.
608 Summary: curl extension module for PHP
609 Summary(pl.UTF-8): Moduł curl dla PHP
611 Requires: %{name}-common = %{epoch}:%{version}-%{release}
615 This is a dynamic shared object (DSO) for PHP that will add curl
618 %description curl -l pl.UTF-8
619 Moduł PHP umożliwiający korzystanie z biblioteki curl.
622 Summary: DBA extension module for PHP
623 Summary(pl.UTF-8): Moduł DBA dla PHP
625 Requires: %{name}-common = %{epoch}:%{version}-%{release}
629 This is a dynamic shared object (DSO) for PHP that will add flat-file
630 databases (DBA) support.
632 %description dba -l pl.UTF-8
633 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
637 Summary: DBase extension module for PHP
638 Summary(pl.UTF-8): Moduł DBase dla PHP
640 Requires: %{name}-common = %{epoch}:%{version}-%{release}
644 This is a dynamic shared object (DSO) for PHP that will add DBase
647 %description dbase -l pl.UTF-8
648 Moduł PHP ze wsparciem dla DBase.
651 Summary: DOM extension module for PHP
652 Summary(pl.UTF-8): Moduł DOM dla PHP
654 Requires: %{name}-common = %{epoch}:%{version}-%{release}
656 # it has some compatibility functions
657 Provides: php(domxml)
658 Obsoletes: php-domxml <= 3:4.3.8-1
661 This is a dynamic shared object (DSO) for PHP that will add new DOM
664 %description dom -l pl.UTF-8
665 Moduł PHP dodający nową obsługę DOM.
668 Summary: exif extension module for PHP
669 Summary(pl.UTF-8): Moduł exif dla PHP
671 Requires: %{name}-common = %{epoch}:%{version}-%{release}
675 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
676 support in image files.
678 %description exif -l pl.UTF-8
679 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
682 Summary: FDF extension module for PHP
683 Summary(pl.UTF-8): Moduł FDF dla PHP
685 Requires: %{name}-common = %{epoch}:%{version}-%{release}
689 This PHP module adds support for PDF Forms through Adobe FDFTK
692 %description fdf -l pl.UTF-8
693 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
697 Summary: Extension for safely dealing with input parameters
698 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
700 Requires: %{name}-common = %{epoch}:%{version}-%{release}
701 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
702 Provides: php(filter)
703 Obsoletes: php-pecl-filter
706 We all know that you should always check input variables, but PHP does
707 not offer really good functionality for doing this in a safe way. The
708 Input Filter extension is meant to address this issue by implementing
709 a set of filters and mechanisms that users can use to safely access
712 %description filter -l pl.UTF-8
713 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
714 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
715 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
716 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
717 mogą bezpiecznie używać do dostępu do danych.
720 Summary: FTP extension module for PHP
721 Summary(pl.UTF-8): Moduł FTP dla PHP
723 Requires: %{name}-common = %{epoch}:%{version}-%{release}
727 This is a dynamic shared object (DSO) for PHP that will add FTP
730 %description ftp -l pl.UTF-8
731 Moduł PHP dodający obsługę protokołu FTP.
734 Summary: GD extension module for PHP
735 Summary(pl.UTF-8): Moduł GD dla PHP
737 Requires: %{name}-common = %{epoch}:%{version}-%{release}
738 %if %{with system_gd}
739 Requires: gd >= 2.0.28-4
741 Requires: gd(imagerotate) = 5.2.0
746 This is a dynamic shared object (DSO) for PHP that will add GD
747 support, allowing you to create and manipulate images with PHP.
749 %description gd -l pl.UTF-8
750 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
751 tworzenie i obróbkę obrazków.
754 Summary: gettext extension module for PHP
755 Summary(pl.UTF-8): Moduł gettext dla PHP
757 Requires: %{name}-common = %{epoch}:%{version}-%{release}
758 Provides: php(gettext)
761 This is a dynamic shared object (DSO) for PHP that will add gettext
764 %description gettext -l pl.UTF-8
765 Moduł PHP dodający obsługę lokalizacji przez gettext.
768 Summary: gmp extension module for PHP
769 Summary(pl.UTF-8): Moduł gmp dla PHP
771 Requires: %{name}-common = %{epoch}:%{version}-%{release}
775 This is a dynamic shared object (DSO) for PHP that will add arbitrary
776 length number support with GNU MP library.
778 %description gmp -l pl.UTF-8
779 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
780 liczbach o dowolnej długości.
783 Summary: HASH Message Digest Framework
784 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
786 Requires: %{name}-common = %{epoch}:%{version}-%{release}
788 Obsoletes: php-pecl-hash
791 Native implementations of common message digest algorithms using a
792 generic factory method.
794 %description hash -l pl.UTF-8
795 Natywne implementacje popularnych algorytmów obliczania skrótów
796 wiadomości przy użyciu wspólnego interfejsu.
799 Summary: iconv extension module for PHP
800 Summary(pl.UTF-8): Moduł iconv dla PHP
802 Requires: %{_libdir}/gconv
803 Requires: %{name}-common = %{epoch}:%{version}-%{release}
808 This is a dynamic shared object (DSO) for PHP that will add iconv
811 %description iconv -l pl.UTF-8
812 Moduł PHP dodający obsługę iconv.
815 Summary: IMAP extension module for PHP
816 Summary(pl.UTF-8): Moduł IMAP dla PHP
817 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
819 Requires: %{name}-common = %{epoch}:%{version}-%{release}
823 This is a dynamic shared object (DSO) for PHP that will add IMAP
826 %description imap -l pl.UTF-8
827 Moduł PHP dodający obsługę skrzynek IMAP.
829 %description imap -l pt_BR.UTF-8
830 Um módulo para aplicações PHP que usam IMAP.
833 Summary: InterBase/Firebird database module for PHP
834 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
836 Requires: %{name}-common = %{epoch}:%{version}-%{release}
837 Provides: php(interbase)
838 %{?with_interbase_inst:Autoreq: false}
840 %description interbase
841 This is a dynamic shared object (DSO) for PHP that will add InterBase
842 and Firebird database support.
844 %description interbase -l pl.UTF-8
845 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
848 Summary: PHP C extension for JSON serialization
849 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
851 Requires: %{name}-common = %{epoch}:%{version}-%{release}
853 Obsoletes: php-pecl-json
856 php-json is an extremely fast PHP C extension for JSON (JavaScript
857 Object Notation) serialisation.
859 %description json -l pl.UTF-8
860 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
861 (JavaScript Object Notation).
864 Summary: LDAP extension module for PHP
865 Summary(pl.UTF-8): Moduł LDAP dla PHP
866 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
868 Requires: %{name}-common = %{epoch}:%{version}-%{release}
872 This is a dynamic shared object (DSO) for PHP that will add LDAP
875 %description ldap -l pl.UTF-8
876 Moduł PHP dodający obsługę LDAP.
878 %description ldap -l pt_BR.UTF-8
879 Um módulo para aplicações PHP que usam LDAP.
882 Summary: mbstring extension module for PHP
883 Summary(pl.UTF-8): Moduł mbstring dla PHP
885 Requires: %{name}-common = %{epoch}:%{version}-%{release}
886 Provides: php(mbstring)
888 %description mbstring
889 This is a dynamic shared object (DSO) for PHP that will add multibyte
892 %description mbstring -l pl.UTF-8
893 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
896 Summary: mcrypt extension module for PHP
897 Summary(pl.UTF-8): Moduł mcrypt dla PHP
899 Requires: %{name}-common = %{epoch}:%{version}-%{release}
900 Provides: php(mcrypt)
903 This is a dynamic shared object (DSO) for PHP that will add mcrypt
906 %description mcrypt -l pl.UTF-8
907 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
910 Summary: mhash extension module for PHP
911 Summary(pl.UTF-8): Moduł mhash dla PHP
913 Requires: %{name}-common = %{epoch}:%{version}-%{release}
917 This is a dynamic shared object (DSO) for PHP that will add mhash
920 %description mhash -l pl.UTF-8
921 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
924 Summary: mime_magic extension module for PHP
925 Summary(pl.UTF-8): Moduł mime_magic dla PHP
927 Requires: %{magic_mime}
928 Requires: %{name}-common = %{epoch}:%{version}-%{release}
929 Provides: php(mime_magic)
931 %description mime_magic
932 This PHP module adds support for MIME type lookup via file magic
933 numbers using magic.mime database.
935 %description mime_magic -l pl.UTF-8
936 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
937 znaczników plików z użyciem bazy danych magic.mime.
940 Summary: ming extension module for PHP
941 Summary(pl.UTF-8): Moduł ming dla PHP
943 Requires: %{name}-common = %{epoch}:%{version}-%{release}
944 Requires: ming >= 0.3
948 This is a dynamic shared object (DSO) for PHP that will add ming
949 (Flash - .swf files) support.
951 %description ming -l pl.UTF-8
952 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
956 Summary: MS SQL extension module for PHP
957 Summary(pl.UTF-8): Moduł MS SQL dla PHP
959 Requires: %{name}-common = %{epoch}:%{version}-%{release}
963 This is a dynamic shared object (DSO) for PHP that will add MS SQL
964 databases support through FreeTDS library.
966 %description mssql -l pl.UTF-8
967 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
971 Summary: MySQL database module for PHP
972 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
973 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
975 Requires: %{name}-common = %{epoch}:%{version}-%{release}
979 This is a dynamic shared object (DSO) for PHP that will add MySQL
982 %description mysql -l pl.UTF-8
983 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
985 %description mysql -l pt_BR.UTF-8
986 Um módulo para aplicações PHP que usam bancos de dados MySQL.
989 Summary: MySQLi module for PHP
990 Summary(pl.UTF-8): Moduł MySQLi dla PHP
992 Requires: %{name}-common = %{epoch}:%{version}-%{release}
993 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
994 Requires: mysql-libs >= 4.1.0
995 Provides: php(mysqli)
998 This is a dynamic shared object (DSO) for PHP that will add MySQLi
999 (Improved MySQL) support. The difference between it and mysql module
1000 is that it provides access to functionality of MySQL 4.1 and above.
1002 %description mysqli -l pl.UTF-8
1003 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1004 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1005 MySQL w wersji 4.1 i nowszych.
1008 Summary: ncurses module for PHP
1009 Summary(pl.UTF-8): Moduł ncurses dla PHP
1011 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1012 Provides: php(ncurses)
1014 %description ncurses
1015 This PHP module adds support for ncurses functions (only for cli and
1018 %description ncurses -l pl.UTF-8
1019 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1022 Summary: Oracle 8+ database module for PHP
1023 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1025 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1030 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1031 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1033 %description oci8 -l pl.UTF-8
1034 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1035 poprzez interfejs Oracle8 Call-Interface (OCI8).
1038 Summary: ODBC extension module for PHP
1039 Summary(pl.UTF-8): Moduł ODBC dla PHP
1040 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1042 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1043 Requires: unixODBC >= 2.1.1-3
1047 This is a dynamic shared object (DSO) for PHP that will add ODBC
1050 %description odbc -l pl.UTF-8
1051 Moduł PHP ze wsparciem dla ODBC.
1053 %description odbc -l pt_BR.UTF-8
1054 Um módulo para aplicações PHP que usam ODBC.
1057 Summary: OpenSSL extension module for PHP
1058 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1060 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1061 Provides: php(openssl)
1063 %description openssl
1064 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1067 %description openssl -l pl.UTF-8
1068 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1071 Summary: Process Control extension module for PHP
1072 Summary(pl.UTF-8): Moduł Process Control dla PHP
1074 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1075 Provides: php(pcntl)
1078 This is a dynamic shared object (DSO) for PHP that will add process
1079 spawning and control support. It supports functions like fork(),
1080 waitpid(), signal() etc.
1082 %description pcntl -l pl.UTF-8
1083 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1084 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1087 Summary: PCRE extension module for PHP
1088 Summary(pl.UTF-8): Moduł PCRE dla PHP
1090 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1094 This is a dynamic shared object (DSO) for PHP that will add Perl
1095 Compatible Regular Expression support.
1097 %description pcre -l pl.UTF-8
1098 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1099 (Perl Compatible Regular Expressions)
1102 Summary: PHP Data Objects (PDO)
1103 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1105 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1106 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1108 Obsoletes: php-pecl-PDO
1111 This is a dynamic shared object (DSO) for PHP that will add PDO
1114 %description pdo -l pl.UTF-8
1115 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1118 Summary: PHP Data Objects (PDO) FreeTDS support
1119 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1121 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1122 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1123 Provides: php(dblib)
1125 %description pdo-dblib
1126 This is a dynamic shared object (DSO) for PHP that will add PDO
1129 %description pdo-dblib -l pl.UTF-8
1130 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1133 %package pdo-firebird
1134 Summary: PHP Data Objects (PDO) Firebird support
1135 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1137 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1138 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1139 Provides: php(pdo-firebird)
1140 Obsoletes: php-pecl-PDO_FIREBIRD
1142 %description pdo-firebird
1143 This is a dynamic shared object (DSO) for PHP that will add PDO
1146 %description pdo-firebird -l pl.UTF-8
1147 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1151 Summary: PHP Data Objects (PDO) MySQL support
1152 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1154 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1155 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1156 Provides: php(pdo-mysql)
1157 Obsoletes: php-pecl-PDO_MYSQL
1159 %description pdo-mysql
1160 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1163 %description pdo-mysql -l pl.UTF-8
1164 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1168 Summary: PHP Data Objects (PDO) Oracle support
1169 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1171 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1172 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1173 Provides: php(pdo-oci)
1174 Obsoletes: php-pecl-PDO_OCI
1176 %description pdo-oci
1177 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1180 %description pdo-oci -l pl.UTF-8
1181 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1185 Summary: PHP Data Objects (PDO) ODBC support
1186 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1188 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1189 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1190 Provides: php(pdo-odbc)
1191 Obsoletes: php-pecl-PDO_ODBC
1193 %description pdo-odbc
1194 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1197 %description pdo-odbc -l pl.UTF-8
1198 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1202 Summary: PHP Data Objects (PDO) PostgreSQL support
1203 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1205 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1206 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1207 Provides: php(pdo-pgsql)
1208 Provides: php-pecl-PDO_PGSQL
1209 Obsoletes: php-pecl-PDO_PGSQL
1211 %description pdo-pgsql
1212 This is a dynamic shared object (DSO) for PHP that will add PDO
1215 %description pdo-pgsql -l pl.UTF-8
1216 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1220 Summary: PHP Data Objects (PDO) SQLite support
1221 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1223 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1224 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1225 Provides: php(pdo-sqlite)
1226 Obsoletes: php-pecl-PDO_SQLITE
1228 %description pdo-sqlite
1229 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1232 %description pdo-sqlite -l pl.UTF-8
1233 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1237 Summary: PostgreSQL database module for PHP
1238 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1240 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1241 Provides: php(pgsql)
1244 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1247 %description pgsql -l pl.UTF-8
1248 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1250 %description pgsql -l pt_BR.UTF-8
1251 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1254 Summary: POSIX extension module for PHP
1255 Summary(pl.UTF-8): Moduł POSIX dla PHP
1257 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1258 Provides: php(posix)
1261 This is a dynamic shared object (DSO) for PHP that will add POSIX
1262 functions support to PHP.
1264 %description posix -l pl.UTF-8
1265 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1268 Summary: pspell extension module for PHP
1269 Summary(pl.UTF-8): Moduł pspell dla PHP
1271 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1272 Provides: php(pspell)
1275 This is a dynamic shared object (DSO) for PHP that will add pspell
1276 support to PHP. It allows to check the spelling of a word and offer
1279 %description pspell -l pl.UTF-8
1280 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1281 sprawdzanie pisowni słowa i sugerowanie poprawek.
1284 Summary: readline extension module for PHP
1285 Summary(pl.UTF-8): Moduł readline dla PHP
1287 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1288 Provides: php(readline)
1290 %description readline
1291 This PHP module adds support for readline functions (only for cli and
1294 %description readline -l pl.UTF-8
1295 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1298 Summary: recode extension module for PHP
1299 Summary(pl.UTF-8): Moduł recode dla PHP
1301 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1302 Requires: recode >= 3.5d-3
1303 Provides: php(recode)
1306 This is a dynamic shared object (DSO) for PHP that will add recode
1309 %description recode -l pl.UTF-8
1310 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1314 Summary: session extension module for PHP
1315 Summary(pl.UTF-8): Moduł session dla PHP
1317 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1318 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1319 Provides: php(session)
1321 %description session
1322 This is a dynamic shared object (DSO) for PHP that will add session
1325 %description session -l pl.UTF-8
1326 Moduł PHP dodający obsługę sesji.
1329 Summary: Shared Memory Operations extension module for PHP
1330 Summary(pl.UTF-8): Moduł shmop dla PHP
1332 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1333 Provides: php(shmop)
1336 This is a dynamic shared object (DSO) for PHP that will add Shared
1337 Memory Operations support.
1339 %description shmop -l pl.UTF-8
1340 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1343 Summary: Simple XML extension module for PHP
1344 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1346 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1347 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1348 Provides: php(simplexml)
1350 %description simplexml
1351 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1354 %description simplexml -l pl.UTF-8
1355 Moduł PHP dodający obsługę prostego XML-a.
1358 Summary: SNMP extension module for PHP
1359 Summary(pl.UTF-8): Moduł SNMP dla PHP
1361 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1362 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1366 This is a dynamic shared object (DSO) for PHP that will add SNMP
1369 %description snmp -l pl.UTF-8
1370 Moduł PHP dodający obsługę SNMP.
1373 Summary: soap extension module for PHP
1374 Summary(pl.UTF-8): Moduł soap dla PHP
1376 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1380 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1383 %description soap -l pl.UTF-8
1384 Moduł PHP dodający obsługę SOAP/WSDL.
1387 Summary: sockets extension module for PHP
1388 Summary(pl.UTF-8): Moduł socket dla PHP
1390 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1391 Provides: php(sockets)
1393 %description sockets
1394 This is a dynamic shared object (DSO) for PHP that will add sockets
1397 %description sockets -l pl.UTF-8
1398 Moduł PHP dodający obsługę gniazdek.
1401 Summary: Standard PHP Library module for PHP
1402 Summary(pl.UTF-8): Moduł SPL dla PHP
1404 URL: http://php.net/manual/en/book.spl.php
1405 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1406 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1407 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1411 This is a dynamic shared object (DSO) for PHP that will add Standard
1412 PHP Library support.
1414 %description spl -l pl.UTF-8
1415 Moduł PHP dodający obsługę gniazdek.
1418 Summary: SQLite extension module for PHP
1419 Summary(pl.UTF-8): Moduł SQLite dla PHP
1421 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1422 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1423 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1424 Provides: php(sqlite)
1427 SQLite is a C library that implements an embeddable SQL database
1428 engine. Programs that link with the SQLite library can have SQL
1429 database access without running a separate RDBMS process.
1431 SQLite is not a client library used to connect to a big database
1432 server. SQLite is the server. The SQLite library reads and writes
1433 directly to and from the database files on disk.
1435 %description sqlite -l pl.UTF-8
1436 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1437 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1438 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1441 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1442 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1443 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1447 Summary: Sybase DB extension module for PHP
1448 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1450 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1451 Provides: php(sybase)
1452 Obsoletes: php-sybase-ct
1453 Conflicts: php-sybase-ct
1456 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1457 MS SQL databases support through SYBDB library. Currently Sybase
1458 module is not maintained. Using Sybase-CT module is recommended
1461 %description sybase -l pl.UTF-8
1462 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1463 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1464 Zaleca się używanie modułu Sybase-CT.
1467 Summary: Sybase-CT extension module for PHP
1468 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1470 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1471 Provides: php(sybase-ct)
1472 Obsoletes: php-sybase
1473 Conflicts: php-sybase
1475 %description sybase-ct
1476 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1477 MS SQL databases support through CT-lib.
1479 %description sybase-ct -l pl.UTF-8
1480 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1484 Summary: SysV msg extension module for PHP
1485 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1487 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1488 Provides: php(sysvmsg)
1490 %description sysvmsg
1491 This is a dynamic shared object (DSO) for PHP that will add SysV
1492 message queues support.
1494 %description sysvmsg -l pl.UTF-8
1495 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1498 Summary: SysV sem extension module for PHP
1499 Summary(pl.UTF-8): Moduł SysV sem dla 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 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1516 Provides: php(sysvshm)
1518 %description sysvshm
1519 This is a dynamic shared object (DSO) for PHP that will add SysV
1520 Shared Memory support.
1522 %description sysvshm -l pl.UTF-8
1523 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1526 Summary: Tidy extension module for PHP
1527 Summary(pl.UTF-8): Moduł Tidy dla PHP
1529 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1534 This is a dynamic shared object (DSO) for PHP that will add Tidy
1537 %description tidy -l pl.UTF-8
1538 Moduł PHP umożliwiający korzystanie z tidy.
1541 Summary: tokenizer extension module for PHP
1542 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1544 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1545 Provides: php(tokenizer)
1547 %description tokenizer
1548 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1551 %description tokenizer -l pl.UTF-8
1552 Moduł PHP dodający obsługę tokenizera do PHP.
1555 Summary: wddx extension module for PHP
1556 Summary(pl.UTF-8): Moduł wddx dla PHP
1558 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1559 # - wddx doesn't require session as it's disabled at compile time:
1560 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1561 # see also php.spec#rev1.120.2.22
1562 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1563 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1567 This is a dynamic shared object (DSO) for PHP that will add wddx
1570 %description wddx -l pl.UTF-8
1571 Moduł PHP umożliwiający korzystanie z wddx.
1574 Summary: XML extension module for PHP
1575 Summary(pl.UTF-8): Moduł XML dla PHP
1577 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1581 This is a dynamic shared object (DSO) for PHP that will add XML
1582 support. This extension lets you create XML parsers and then define
1583 handlers for different XML events.
1585 %description xml -l pl.UTF-8
1586 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1587 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1588 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1591 Summary: XML Reader extension module for PHP
1592 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1594 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1595 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1596 Provides: php(xmlreader)
1598 %description xmlreader
1599 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1600 support. The XMLReader extension is an XML Pull parser. The reader
1601 acts as a cursor going forward on the document stream and stopping at
1602 each node on the way.
1604 %description xmlreader -l pl.UTF-8
1605 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1606 działa jako kursor przechodzący przez strumień dokumentu i
1607 zatrzymujący się na każdym węźle po drodze.
1610 Summary: xmlrpc extension module for PHP
1611 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1613 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1614 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1615 Provides: php(xmlrpc)
1618 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1621 %description xmlrpc -l pl.UTF-8
1622 Moduł PHP dodający obsługę XMLRPC.
1625 Summary: Fast, non-cached, forward-only means to write XML data
1626 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1628 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1629 Provides: php(xmlwriter)
1630 Obsoletes: php-pecl-xmlwriter
1632 %description xmlwriter
1633 This extension wraps the libxml xmlWriter API. Represents a writer
1634 that provides a non-cached, forward-only means of generating streams
1635 or files containing XML data.
1637 %description xmlwriter -l pl.UTF-8
1638 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1639 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1640 plików zawierających dane XML.
1643 Summary: xsl extension module for PHP
1644 Summary(pl.UTF-8): Moduł xsl dla PHP
1646 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1647 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1648 Requires: libxslt >= 1.0.18
1649 # actually not true, functionality is similar, but API differs
1651 Obsoletes: php-xslt <= 3:4.3.8-1
1654 This is a dynamic shared object (DSO) for PHP that will add new XSL
1655 support (using libxslt).
1657 %description xsl -l pl.UTF-8
1658 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1661 Summary: Zip management extension
1662 Summary(pl.UTF-8): Zarządzanie archiwami zip
1664 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1666 Obsoletes: php-pecl-zip
1669 Zip is an extension to create, modify and read zip files.
1671 %description zip -l pl.UTF-8
1672 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1673 odczyt archiwów zip.
1676 Summary: Zlib extension module for PHP
1677 Summary(pl.UTF-8): Moduł zlib dla PHP
1679 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1683 This is a dynamic shared object (DSO) for PHP that will add zlib
1684 compression support to PHP.
1686 %description zlib -l pl.UTF-8
1687 Moduł PHP umożliwiający używanie kompresji zlib.
1692 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1705 cp php.ini-dist php.ini
1707 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1717 %if %{with system_gd}
1726 %{?with_versioning:%patch25 -p1}
1729 %{__tar} jxf %{SOURCE9}
1730 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1731 mv $v/$v gentoo-patchset
1732 for a in gentoo-patchset/*.patch; do
1745 %if "%{pld_release}" != "ac"
1750 # mysql default charset for mysql/mysql/pdo-mysql extensions
1774 # conflict seems to be resolved by recode patches
1775 rm -f ext/recode/config9.m4
1777 # remove all bundled libraries not to link with them accidentally
1778 #rm -rf ext/sqlite/libsqlite
1779 #rm -rf ext/bcmath/libbcmath
1780 #rm -rf ext/date/lib
1781 #rm -rf ext/dba/libcdb
1782 #rm -rf ext/dba/libflatfile
1783 #rm -rf ext/dba/libinifile
1784 #rm -rf ext/gd/libgd
1785 #rm -rf ext/mbstring/libmbfl
1786 #rm -rf ext/mbstring/oniguruma
1787 rm -rf ext/pcre/pcrelib
1788 rm -rf ext/pdo_sqlite/sqlite
1789 #rm -rf ext/soap/interop
1790 %if %{with system_xmlrpc_epi}
1791 rm -rf ext/xmlrpc/libxmlrpc
1795 # this test hungs on ac-ppc
1796 #mv ext/reflection/tests/007.php{,ignore}
1797 # this test gets killed by itself
1798 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1801 cp -af Zend/LICENSE{,.Zend}
1802 install -p %{SOURCE13} dep-tests.sh
1805 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1806 if [ $API != %{php_api_version} ]; then
1807 echo "Set %%define php_api_version to $API and re-run."
1811 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1812 if [ $API != %{zend_module_api} ]; then
1813 echo "Set %%define zend_module_api to $API and re-run."
1817 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1818 if [ $API != %{zend_extension_api} ]; then
1819 echo "Set %%define zend_extension_api to $API and re-run."
1823 export EXTENSION_DIR="%{php_extensiondir}"
1824 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1825 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1828 cp -f /usr/share/automake/config.* .
1832 export PROG_SENDMAIL="/usr/lib/sendmail"
1849 for sapi in $sapis; do
1851 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1856 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
1859 sapi_args='--disable-cgi'
1862 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
1865 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
1868 ver=$(rpm -q --qf '%{V}' apache1-devel)
1869 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
1872 ver=$(rpm -q --qf '%{V}' apache-devel)
1873 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
1879 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1880 --cache-file=config.cache \
1882 --with-libdir=%{_lib} \
1883 --with-config-file-path=%{_sysconfdir} \
1884 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1885 --with-exec-dir=%{_bindir} \
1886 --%{!?debug:dis}%{?debug:en}able-debug \
1887 %{?with_zts:--enable-maintainer-zts} \
1888 %{?with_suhosin:--enable-suhosin} \
1889 %{?with_zend_multibyte:--enable-zend-multibyte} \
1890 --enable-inline-optimization \
1891 --enable-bcmath=shared \
1892 --enable-calendar=shared \
1893 --enable-ctype=shared \
1894 --enable-dba=shared \
1895 --enable-dom=shared \
1896 --enable-exif=shared \
1897 --enable-ftp=shared \
1898 --enable-gd-native-ttf \
1899 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
1901 --enable-magic-quotes \
1902 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
1904 --enable-pcntl=shared \
1905 --enable-pdo=shared \
1906 --enable-json=shared \
1907 --enable-hash=shared \
1908 --enable-xmlwriter=shared \
1910 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
1911 --with-fpm-log=/var/log/fpm.log \
1912 --with-fpm-pid=/var/run/php/fpm.pid \
1914 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
1915 --with-pdo-dblib=shared \
1917 %if %{with interbase} && !%{with interbase_inst}
1918 --with-pdo-firebird=shared,/usr \
1920 --with-pdo-mysql=shared \
1921 %{?with_oci8:--with-pdo-oci=shared} \
1922 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1923 %{?with_pgsql:--with-pdo-pgsql=shared} \
1924 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1925 --enable-posix=shared \
1926 --enable-reflection \
1928 --enable-session=shared \
1929 --enable-shmop=shared \
1930 --enable-simplexml=shared \
1931 --enable-spl=shared \
1932 --enable-sysvmsg=shared \
1933 --enable-sysvsem=shared \
1934 --enable-sysvshm=shared \
1935 --enable-safe-mode \
1936 --enable-soap=shared \
1937 --enable-sockets=shared \
1938 --enable-tokenizer=shared \
1939 --enable-ucd-snmp-hack \
1940 %{?with_wddx:--enable-wddx=shared} \
1941 --enable-xml=shared \
1942 --enable-xmlreader=shared \
1944 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1946 --enable-dbase=shared \
1947 --without-libexpat-dir \
1948 %{?with_fdf:--with-fdftk=shared} \
1949 --with-iconv=shared \
1950 --with-freetype-dir=shared \
1951 --with-gettext=shared \
1952 --with-gd=shared%{?with_system_gd:,/usr} \
1955 %{?with_imap:--with-imap=shared --with-imap-ssl} \
1956 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1957 --with-jpeg-dir=/usr \
1958 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1959 --with-mcrypt=shared \
1960 %{?with_mhash:--with-mhash=shared} \
1961 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
1962 %{?with_ming:--with-ming=shared} \
1963 %{?with_mm:--with-mm} \
1964 %{?with_mssql:--with-mssql=shared} \
1965 --with-mysql=shared,/usr \
1966 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1967 %{?with_mysqli:--with-mysqli=shared} \
1968 --with-ncurses=shared \
1969 %{?with_oci8:--with-oci8=shared} \
1970 %{?with_openssl:--with-openssl=shared} \
1972 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
1973 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
1974 --with-pear=%{php_pear_dir} \
1975 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1976 --with-png-dir=/usr \
1977 %{?with_pspell:--with-pspell=shared} \
1978 --with-readline=shared \
1979 %{?with_recode:--with-recode=shared} \
1981 %{?with_snmp:--with-snmp=shared} \
1982 %{?with_sybase:--with-sybase=shared,/usr} \
1983 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1984 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1985 --with-t1lib=shared \
1986 %{?with_tidy:--with-tidy=shared} \
1987 %{?with_odbc:--with-unixODBC=shared,/usr} \
1988 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
1990 --with-zlib=shared \
1991 --with-zlib-dir=shared,/usr \
1992 --enable-zip=shared,/usr \
1994 cp -f Makefile Makefile.$sapi
1995 cp -f main/php_config.h php_config.h.$sapi
1996 cp -f config.log config.log.$sapi
1999 # as we build each SAPI in own make, adjust php-config.in forehead
2000 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2001 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2003 # must make this first, so modules can link against it.
2004 %{__make} libphp_common.la
2005 %{__make} build-modules
2008 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2012 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2016 cp -af php_config.h.cgi main/php_config.h
2017 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2018 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2019 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2022 cp -af php_config.h.cli main/php_config.h
2023 %{__make} sapi/cli/php -f Makefile.cli
2024 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2028 cp -af php_config.h.fcgi main/php_config.h
2029 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2030 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2031 cp -r sapi/cgi sapi/fcgi
2032 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2036 cp -af php_config.h.fpm main/php_config.h
2037 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2038 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2039 cp -r sapi/cgi sapi/fpm
2040 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2043 # Generate stub .ini files for each extension
2046 generate_inifiles() {
2047 for so in modules/*.so; do
2048 mod=$(basename $so .so)
2050 # xml needs to be loaded before wddx
2051 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2052 # pre needs to be loaded before SPL
2053 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2054 # spl needs to be loaded before mysqli
2055 [ "$mod" = "spl" ] && conf="SPL.ini"
2057 cat > conf.d/$conf <<-EOF
2058 ; Enable $mod extension module
2065 # Check that the module inner-dependencies are intact
2066 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2067 if grep -v OK dep-tests.log; then
2068 echo >&2 "The results above were not expected"
2074 # Run tests, using the CLI SAPI
2075 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2076 unset TZ LANG LC_ALL || :
2078 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
2082 rm -rf $RPM_BUILD_ROOT
2083 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2084 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2085 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2086 $RPM_BUILD_ROOT%{_mandir}/man1 \
2088 # install the apache modules' files
2089 %{__make} install-headers install-build install-modules install-programs \
2090 INSTALL_ROOT=$RPM_BUILD_ROOT
2092 # install apache1 DSO module
2094 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2097 # install apache2 DSO module
2099 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2102 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2103 # fix install paths, avoid evil rpaths
2104 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2106 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2109 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
2113 libtool --silent --mode=install install sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
2118 libtool --silent --mode=install install sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fpm
2119 %{__make} install-fpm -f Makefile.fpm \
2120 INSTALL_ROOT=$RPM_BUILD_ROOT
2121 install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/php-fpm
2122 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2123 install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/php-fpm
2127 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
2128 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2129 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
2131 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
2133 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2135 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2137 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2138 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2139 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2142 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2143 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2144 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2148 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2149 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2150 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2153 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2154 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2156 # per SAPI ini directories
2157 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2160 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2162 # use system automake and {lib,sh}tool
2163 %if "%{pld_release}" != "ac"
2164 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2165 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2166 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2168 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2170 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2171 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2173 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2175 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2176 # isn't installed by install-headers make target, we do it manually here.
2177 # this header file is required by e.g. filter PECL extension
2178 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2179 # for php-pecl-mailparse
2180 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2181 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2184 rm -rf $RPM_BUILD_ROOT
2186 %post -n apache1-mod_php
2187 if [ "$1" = "1" ]; then
2188 %service -q apache restart
2191 %postun -n apache1-mod_php
2192 if [ "$1" = "0" ]; then
2193 %service -q apache restart
2196 %post -n apache-mod_php
2197 if [ "$1" = "1" ]; then
2198 %service -q httpd restart
2201 %postun -n apache-mod_php
2202 if [ "$1" = "0" ]; then
2203 %service -q httpd restart
2207 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2210 /sbin/chkconfig --add php-fpm
2211 %service php-fpm restart
2214 if [ "$1" = 0 ]; then
2215 %service php-fpm stop
2216 /sbin/chkconfig --del php-fpm
2220 if [ "$1" = "0" ]; then
2224 %post common -p /sbin/ldconfig
2225 %postun common -p /sbin/ldconfig
2228 # minimizing apache restarts logics. we restart webserver:
2230 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2231 # 2. first install of extension (post: $1 = 1)
2232 # 2. uninstall of extension (postun: $1 == 0)
2234 # the strict internal deps between extensions (and apache modules) and
2235 # common package are very important for all this to work.
2237 # restart webserver at the end of transaction
2238 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2239 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2242 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2244 /^AddType application\/x-httpd-php \.php/s,^,#,
2245 /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2246 ' /etc/apache/apache.conf
2247 %service -q apache restart
2251 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
2252 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2253 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2254 cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2255 mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2259 # common macros called at extension post/postun scriptlet
2260 %define extension_scripts() \
2262 if [ "$1" = "1" ]; then \
2263 %php_webserver_restart \
2267 if [ "$1" = "0" ]; then \
2268 %php_webserver_restart \
2272 # extension scripts defines
2273 %extension_scripts bcmath
2274 %extension_scripts bzip2
2275 %extension_scripts calendar
2276 %extension_scripts ctype
2277 %extension_scripts curl
2278 %extension_scripts dba
2279 %extension_scripts dbase
2280 %extension_scripts dom
2281 %extension_scripts exif
2282 %extension_scripts fdf
2283 %extension_scripts filter
2284 %extension_scripts ftp
2285 %extension_scripts gd
2286 %extension_scripts gettext
2287 %extension_scripts gmp
2288 %extension_scripts hash
2289 %extension_scripts iconv
2290 %extension_scripts imap
2291 %extension_scripts interbase
2292 %extension_scripts json
2293 %extension_scripts ldap
2294 %extension_scripts mbstring
2295 %extension_scripts mcrypt
2296 %extension_scripts mhash
2297 %extension_scripts mime_magic
2298 %extension_scripts ming
2299 %extension_scripts mssql
2300 %extension_scripts mysql
2301 %extension_scripts mysqli
2302 %extension_scripts oci8
2303 %extension_scripts odbc
2304 %extension_scripts openssl
2305 %extension_scripts pcre
2306 %extension_scripts pdo-dblib
2307 %extension_scripts pdo-firebird
2308 %extension_scripts pdo-mysql
2309 %extension_scripts pdo-odbc
2310 %extension_scripts pdo-pgsql
2311 %extension_scripts pdo-sqlite
2312 %extension_scripts pgsql
2313 %extension_scripts posix
2314 %extension_scripts pspell
2315 %extension_scripts recode
2316 %extension_scripts session
2317 %extension_scripts shmop
2318 %extension_scripts snmp
2319 %extension_scripts soap
2320 %extension_scripts sockets
2321 %extension_scripts spl
2322 %extension_scripts sqlite
2323 %extension_scripts sybase
2324 %extension_scripts sybase-ct
2325 %extension_scripts sysvmsg
2326 %extension_scripts sysvsem
2327 %extension_scripts sysvshm
2328 %extension_scripts tidy
2329 %extension_scripts tokenizer
2330 %extension_scripts wddx
2331 %extension_scripts xml
2332 %extension_scripts xmlreader
2333 %extension_scripts xmlrpc
2334 %extension_scripts xmlwriter
2335 %extension_scripts xsl
2336 %extension_scripts zip
2337 %extension_scripts zlib
2339 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2340 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2342 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2343 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2345 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2346 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2348 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2349 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2351 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2352 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2354 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2355 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2357 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
2358 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2360 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2361 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2363 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2364 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2366 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2367 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2369 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2370 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2372 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2373 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2375 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2376 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2378 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2381 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2384 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2387 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2390 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2393 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2396 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2399 %triggerun mhash -- %{name}-mhash < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2402 %triggerun mime_magic -- %{name}-mime_magic < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2405 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.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 ncurses -- %{name}-ncurses < 4:5.1.2-9.5
2415 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2416 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2418 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2419 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2422 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2423 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2425 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2426 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2428 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2429 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2431 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2432 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2434 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2435 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2436 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2438 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2439 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2442 %triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
2443 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2445 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2446 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2448 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2449 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2451 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2452 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2454 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2455 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2456 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2458 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2459 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2462 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2463 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2465 %triggerun session -- %{name}-session < 4:5.0.4-9.1
2466 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
2468 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2469 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2471 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2472 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2474 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2475 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2477 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2478 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2480 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2481 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2483 %triggerun sybase -- %{name}-sybase < 4:5.0.4-9.1
2484 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2486 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2487 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2489 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2490 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2492 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2493 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2495 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2496 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2498 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2499 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2501 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2502 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2504 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2505 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2507 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2508 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2510 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2511 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2513 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2514 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2517 %files -n apache1-mod_php
2518 %defattr(644,root,root,755)
2519 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2520 %dir %{_sysconfdir}/apache.d
2521 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2522 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2526 %files -n apache-mod_php
2527 %defattr(644,root,root,755)
2528 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2529 %dir %{_sysconfdir}/apache2handler.d
2530 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2531 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2536 %defattr(644,root,root,755)
2537 %doc sapi/cgi/README.FastCGI
2538 %dir %{_sysconfdir}/cgi-fcgi.d
2539 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2540 %attr(755,root,root) %{_bindir}/php.fcgi
2544 %defattr(644,root,root,755)
2545 %dir %{_sysconfdir}/cgi.d
2546 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2547 %attr(755,root,root) %{_bindir}/php.cgi
2550 %defattr(644,root,root,755)
2551 %dir %{_sysconfdir}/cli.d
2552 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2553 %attr(755,root,root) %{_bindir}/php.cli
2554 %{_mandir}/man1/php.1*
2555 %{_mandir}/man1/php.cli.1*
2558 %defattr(644,root,root,755)
2559 %attr(755,root,root) %{_bindir}/php
2563 %defattr(644,root,root,755)
2564 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2565 %attr(755,root,root) %{_bindir}/php.fpm
2566 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/php-fpm
2567 %attr(754,root,root) /etc/rc.d/init.d/php-fpm
2571 %defattr(644,root,root,755)
2573 %doc CREDITS Zend/ZEND_CHANGES
2574 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2575 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2578 %dir %{_sysconfdir}/conf.d
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2581 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2582 %dir %{php_extensiondir}
2585 %defattr(644,root,root,755)
2586 %doc README.UNIX-BUILD-SYSTEM
2587 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2588 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2589 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2590 %attr(755,root,root) %{_bindir}/phpize
2591 %attr(755,root,root) %{_bindir}/php-config
2592 %attr(755,root,root) %{_libdir}/libphp_common.so
2593 %{_libdir}/libphp_common.la
2595 %{_libdir}/php/build
2596 %{_mandir}/man1/php-config.1*
2597 %{_mandir}/man1/phpize.1*
2600 %defattr(644,root,root,755)
2601 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2602 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2605 %defattr(644,root,root,755)
2606 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2607 %attr(755,root,root) %{php_extensiondir}/bz2.so
2610 %defattr(644,root,root,755)
2611 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2612 %attr(755,root,root) %{php_extensiondir}/calendar.so
2615 %defattr(644,root,root,755)
2616 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2617 %attr(755,root,root) %{php_extensiondir}/ctype.so
2621 %defattr(644,root,root,755)
2622 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2623 %attr(755,root,root) %{php_extensiondir}/curl.so
2627 %defattr(644,root,root,755)
2628 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2629 %attr(755,root,root) %{php_extensiondir}/dba.so
2632 %defattr(644,root,root,755)
2633 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2634 %attr(755,root,root) %{php_extensiondir}/dbase.so
2637 %defattr(644,root,root,755)
2638 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2639 %attr(755,root,root) %{php_extensiondir}/dom.so
2643 %defattr(644,root,root,755)
2644 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2645 %attr(755,root,root) %{php_extensiondir}/fdf.so
2650 %defattr(644,root,root,755)
2651 %doc README.input_filter
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2653 %attr(755,root,root) %{php_extensiondir}/filter.so
2657 %defattr(644,root,root,755)
2658 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2659 %attr(755,root,root) %{php_extensiondir}/exif.so
2662 %defattr(644,root,root,755)
2663 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2664 %attr(755,root,root) %{php_extensiondir}/ftp.so
2667 %defattr(644,root,root,755)
2668 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2669 %attr(755,root,root) %{php_extensiondir}/gd.so
2672 %defattr(644,root,root,755)
2673 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2674 %attr(755,root,root) %{php_extensiondir}/gettext.so
2677 %defattr(644,root,root,755)
2678 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2679 %attr(755,root,root) %{php_extensiondir}/gmp.so
2682 %defattr(644,root,root,755)
2683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2684 %attr(755,root,root) %{php_extensiondir}/hash.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2689 %attr(755,root,root) %{php_extensiondir}/iconv.so
2693 %defattr(644,root,root,755)
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2695 %attr(755,root,root) %{php_extensiondir}/imap.so
2698 %if %{with interbase}
2700 %defattr(644,root,root,755)
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2702 %attr(755,root,root) %{php_extensiondir}/interbase.so
2706 %defattr(644,root,root,755)
2707 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2708 %attr(755,root,root) %{php_extensiondir}/json.so
2712 %defattr(644,root,root,755)
2713 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2714 %attr(755,root,root) %{php_extensiondir}/ldap.so
2717 %if %{without zend_multibyte}
2719 %defattr(644,root,root,755)
2720 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2721 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2725 %defattr(644,root,root,755)
2726 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2727 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2731 %defattr(644,root,root,755)
2732 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2733 %attr(755,root,root) %{php_extensiondir}/mhash.so
2736 %if %{with mime_magic}
2738 %defattr(644,root,root,755)
2739 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2740 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2745 %defattr(644,root,root,755)
2746 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2747 %attr(755,root,root) %{php_extensiondir}/ming.so
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2754 %attr(755,root,root) %{php_extensiondir}/mssql.so
2758 %defattr(644,root,root,755)
2759 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2760 %attr(755,root,root) %{php_extensiondir}/mysql.so
2764 %defattr(644,root,root,755)
2765 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2766 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2770 %defattr(644,root,root,755)
2771 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2772 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2776 %defattr(644,root,root,755)
2777 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2778 %attr(755,root,root) %{php_extensiondir}/oci8.so
2783 %defattr(644,root,root,755)
2784 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2785 %attr(755,root,root) %{php_extensiondir}/odbc.so
2790 %defattr(644,root,root,755)
2791 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2792 %attr(755,root,root) %{php_extensiondir}/openssl.so
2796 %defattr(644,root,root,755)
2797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2798 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2802 %defattr(644,root,root,755)
2803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2804 %attr(755,root,root) %{php_extensiondir}/pcre.so
2808 %defattr(644,root,root,755)
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2810 %attr(755,root,root) %{php_extensiondir}/pdo.so
2812 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2814 %defattr(644,root,root,755)
2815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2816 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2819 %if %{with interbase} && !%{with interbase_inst}
2821 %defattr(644,root,root,755)
2822 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2823 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2827 %defattr(644,root,root,755)
2828 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2829 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2833 %defattr(644,root,root,755)
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2835 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2840 %defattr(644,root,root,755)
2841 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2842 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2847 %defattr(644,root,root,755)
2848 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2849 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2856 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2861 %defattr(644,root,root,755)
2862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2863 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2869 %attr(755,root,root) %{php_extensiondir}/posix.so
2873 %defattr(644,root,root,755)
2874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2875 %attr(755,root,root) %{php_extensiondir}/pspell.so
2879 %defattr(644,root,root,755)
2880 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2881 %attr(755,root,root) %{php_extensiondir}/readline.so
2885 %defattr(644,root,root,755)
2886 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2887 %attr(755,root,root) %{php_extensiondir}/recode.so
2891 %defattr(644,root,root,755)
2892 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2893 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2896 %defattr(644,root,root,755)
2897 %doc ext/session/mod_files.sh
2898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/session.ini
2899 %attr(755,root,root) %{php_extensiondir}/session.so
2902 %defattr(644,root,root,755)
2903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2904 %attr(755,root,root) %{php_extensiondir}/shmop.so
2908 %defattr(644,root,root,755)
2909 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2910 %attr(755,root,root) %{php_extensiondir}/snmp.so
2914 %defattr(644,root,root,755)
2915 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2916 %attr(755,root,root) %{php_extensiondir}/soap.so
2919 %defattr(644,root,root,755)
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2921 %attr(755,root,root) %{php_extensiondir}/sockets.so
2924 %defattr(644,root,root,755)
2925 %doc ext/spl/{CREDITS,README,TODO}
2926 %doc ext/spl/examples
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2928 %attr(755,root,root) %{php_extensiondir}/spl.so
2932 %defattr(644,root,root,755)
2933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2934 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2939 %defattr(644,root,root,755)
2940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2941 %attr(755,root,root) %{php_extensiondir}/sybase.so
2944 %if %{with sybase_ct}
2946 %defattr(644,root,root,755)
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2948 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2952 %defattr(644,root,root,755)
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2954 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2957 %defattr(644,root,root,755)
2958 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2959 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2962 %defattr(644,root,root,755)
2963 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2964 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2968 %defattr(644,root,root,755)
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2970 %attr(755,root,root) %{php_extensiondir}/tidy.so
2974 %defattr(644,root,root,755)
2975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2976 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2980 %defattr(644,root,root,755)
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2982 %attr(755,root,root) %{php_extensiondir}/wddx.so
2986 %defattr(644,root,root,755)
2987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2988 %attr(755,root,root) %{php_extensiondir}/xml.so
2991 %defattr(644,root,root,755)
2992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2993 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
2997 %defattr(644,root,root,755)
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2999 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3003 %defattr(644,root,root,755)
3004 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3005 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3008 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3010 %attr(755,root,root) %{php_extensiondir}/xsl.so
3013 %defattr(644,root,root,755)
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3015 %attr(755,root,root) %{php_extensiondir}/zip.so
3018 %defattr(644,root,root,755)
3019 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3020 %attr(755,root,root) %{php_extensiondir}/zlib.so