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 tidy # without Tidy extension module
56 %bcond_without wddx # without WDDX extension module
57 %bcond_without xmlrpc # without XML-RPC extension module
58 %bcond_without apache1 # disable building apache 1.3.x module
59 %bcond_without apache2 # disable building apache 2.x module
60 %bcond_without fcgi # disable building FCGI SAPI
61 %bcond_without zts # disable Zend Thread Safety
62 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
63 %bcond_without suhosin # with suhosin patch
64 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
65 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
66 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
68 %define apxs1 /usr/sbin/apxs1
69 %define apxs2 /usr/sbin/apxs
71 # some problems with apache 2.x
76 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
77 %undefine with_interbase
79 %if "%{pld_release}" == "th"
81 # ppc disabled (broken on th-ppc)
82 %undefine with_interbase
86 %ifnarch %{ix86} %{x8664}
87 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
91 %if %{without apache1} && %{without apache2}
92 ERROR: You need to select at least one Apache SAPI to build shared modules.
95 # filter depends on pcre
100 %if "%{pld_release}" == "ac"
101 %define magic_mime /usr/share/file/magic.mime
103 %define magic_mime /usr/share/misc/magic.mime
106 Summary: PHP: Hypertext Preprocessor
107 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
108 Summary(pl.UTF-8): Język skryptowy PHP
109 Summary(pt_BR.UTF-8): A linguagem de script PHP
110 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
111 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
118 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
119 # Source0-md5: 5b7077e366c7eeab34da31dd860a1923
120 Source2: %{name}-mod_%{name}.conf
121 Source3: %{name}-cgi-fcgi.ini
122 Source4: %{name}-cgi.ini
123 Source5: %{name}-apache.ini
124 Source6: %{name}-cli.ini
125 # Taken from: http://browsers.garykeith.com/downloads.asp
126 Source8: %{name}_browscap.ini
127 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
128 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{name}-patchset-%{version}-r1.tar.bz2
129 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
130 Source10: %{name}-fpm.init
131 Source11: %{name}-fpm.logrotate
132 Source12: %{name}-branch.sh
133 Source13: dep-tests.sh
134 Patch0: %{name}-shared.patch
135 Patch1: %{name}-pldlogo.patch
136 Patch2: %{name}-mail.patch
137 Patch3: %{name}-link-libs.patch
138 Patch4: %{name}-libpq_fs_h_path.patch
139 Patch5: %{name}-filter-shared.patch
140 Patch6: %{name}-build_modules.patch
141 Patch7: %{name}-sapi-ini-file.patch
142 Patch8: %{name}-no-metaccld.patch
143 Patch9: %{name}-sh.patch
144 Patch10: %{name}-ini.patch
145 Patch11: %{name}-acam.patch
146 Patch12: %{name}-threads-acfix.patch
147 Patch13: %{name}-tsrmlsfetchgcc2.patch
148 Patch14: %{name}-no_pear_install.patch
149 Patch15: %{name}-zlib.patch
150 Patch16: %{name}-sybase-fix.patch
151 Patch17: %{name}-readline.patch
152 Patch18: %{name}-nohttpd.patch
153 Patch19: %{name}-gd_imagerotate_enable.patch
154 Patch20: %{name}-uint32_t.patch
155 Patch21: %{name}-dba-link.patch
156 Patch22: %{name}-both-apxs.patch
157 Patch23: %{name}-builddir.patch
158 Patch24: %{name}-zlib-for-getimagesize.patch
159 Patch25: %{name}-versioning.patch
160 Patch26: %{name}-pear.patch
161 Patch27: %{name}-config-dir.patch
162 Patch28: %{name}-bug-42952.patch
163 Patch29: %{name}-fcgi-graceful.patch
164 Patch30: %{name}-apr-apu.patch
165 Patch31: %{name}-fcgi-error_log-no-newlines.patch
166 Patch32: %{name}-curl-limit-speed.patch
167 Patch33: %{name}-mime_magic.patch
168 Patch34: %{name}-libtool.patch
169 Patch35: %{name}-tds.patch
170 Patch36: %{name}-mysql-charsetphpini.patch
171 Patch37: %{name}-mysqli-charsetphpini.patch
172 Patch38: %{name}-pdo_mysql-charsetphpini.patch
173 Patch39: %{name}-use-prog_sendmail.patch
174 Patch40: %{name}-fpm.patch
175 Patch41: %{name}-fpm-config.patch
176 Patch42: %{name}-fpm-initdir.patch
177 Patch43: %{name}-silent-session-cleanup.patch
178 Patch44: %{name}-include_path.patch
179 Patch45: %{name}-imap-annotations.patch
180 Patch46: %{name}-imap-myrights.patch
181 Patch47: suhosin.patch
182 Patch49: %{name}-m4-divert.patch
183 Patch50: extension-shared-optional-dep.patch
184 Patch51: spl-shared.patch
185 URL: http://www.php.net/
186 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
187 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
188 BuildRequires: autoconf >= 2.53
189 BuildRequires: automake >= 1.4d
191 BuildRequires: bzip2-devel
192 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
193 BuildRequires: cyrus-sasl-devel
194 BuildRequires: db-devel >= 4.0
195 BuildRequires: elfutils-devel
197 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
199 %{?with_fcgi:BuildRequires: fcgi-devel}
200 %{?with_fdf:BuildRequires: fdftk-devel}
202 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
203 BuildRequires: freetds-devel
205 BuildRequires: freetype-devel >= 2.0
206 %if %{with system_gd}
207 BuildRequires: gd-devel >= 2.0.28-4
208 BuildRequires: gd-devel(imagerotate) = 5.2.0
210 BuildRequires: gdbm-devel
211 BuildRequires: gmp-devel
212 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
213 BuildRequires: libjpeg-devel
214 BuildRequires: libltdl-devel >= 1.4
215 BuildRequires: libmcrypt-devel >= 2.4.4
216 BuildRequires: libpng-devel >= 1.0.8
217 BuildRequires: libtiff-devel
218 %if "%{pld_release}" != "ac"
219 BuildRequires: libtool >= 2:2.2
221 BuildRequires: libtool
223 BuildRequires: libwrap-devel
224 BuildRequires: libxml2-devel >= 2.5.10
225 BuildRequires: libxslt-devel >= 1.1.0
226 %{?with_mhash:BuildRequires: mhash-devel}
227 %{?with_ming:BuildRequires: ming-devel >= 0.3}
228 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
229 BuildRequires: mysql-devel >= 4.0.0
230 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
231 BuildRequires: ncurses-ext-devel
232 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
233 %if %{with openssl} || %{with ldap}
234 BuildRequires: openssl-devel >= 0.9.7d
236 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
237 BuildRequires: pam-devel
238 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
239 BuildRequires: pkgconfig
240 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
241 %{?with_pgsql:BuildRequires: postgresql-devel}
242 BuildRequires: readline-devel
243 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
244 BuildRequires: rpm >= 4.4.9-56
245 BuildRequires: rpm-build >= 4.4.0
246 BuildRequires: rpmbuild(macros) >= 1.519
247 %{?with_sqlite:BuildRequires: sqlite-devel}
248 %{?with_sqlite:BuildRequires: sqlite3-devel}
249 BuildRequires: t1lib-devel
250 %{?with_tidy:BuildRequires: tidy-devel}
251 %{?with_odbc:BuildRequires: unixODBC-devel}
252 BuildRequires: zlib-devel >= 1.0.9
254 BuildRequires: apache1-devel
257 BuildRequires: apache-devel >= 2.0.52-2
258 BuildRequires: apr-devel >= 1:1.0.0
259 BuildRequires: apr-util-devel >= 1:1.0.0
262 BuildRequires: judy-devel
263 BuildRequires: libevent-devel >= 1.4.7-3
265 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
267 %define php_sysconfdir /etc/php
268 %define php_extensiondir %{_libdir}/php
269 %define _sysconfdir %{php_sysconfdir}
271 # must be in sync with source. extra check ensuring that it is so is done in %%build
272 %define php_api_version 20041225
273 %define zend_module_api 20060613
274 %define zend_extension_api 220060519
275 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
276 %define php_debug %{!?debug:0}%{?debug:1}
279 # ORACLE_HOME is required for oci8 ext to build
280 %define _preserve_env %_preserve_env_base ORACLE_HOME
284 PHP is an HTML-embedded scripting language. PHP attempts to make it
285 easy for developers to write dynamically generated web pages. PHP also
286 offers built-in database integration for several commercial and
287 non-commercial database management systems, so writing a
288 database-enabled web page with PHP is fairly simple. The most common
289 use of PHP coding is probably as a replacement for CGI scripts. The
290 mod_php module enables the Apache web server to understand and process
291 the embedded PHP language in web pages. This package contains php
294 %description -l fr.UTF-8
295 PHP est un langage de script embarque dans le HTM. PHP essaye de
296 rendre simple aux developpeurs d'ecrire des pages web generees
297 dynamiquement. PHP incorpore egalement une integration avec plusieurs
298 systemes de gestion de bases de donnees commerciaux et
299 non-connerciaux, qui rent facile la creation de pages web liees avec
300 des bases de donnees. L'utilisation la plus commune de PHP est
301 probablement en remplacement de scripts CGI. Le module mod_php permet
302 au serveur web apache de comprendre et de traiter le langage PHP
303 integre dans des pages web. Ce package contient php version
306 %description -l pl.UTF-8
307 PHP jest językiem skryptowym, którego polecenia umieszcza się w
308 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
309 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
310 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
311 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
312 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
313 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
314 język PHP osadzony w stronach. Ten pakiet zawiera php w wersji
317 %description -l pt_BR.UTF-8
318 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
319 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
320 com algumas características únicas, específicas ao PHP. O objetivo da
321 linguagem é permitir que desenvolvedores web escrevam páginas
322 dinamicamente geradas de forma rápida.
324 %description -l ru.UTF-8
325 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
326 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
327 для работы с базами данных относительно просто. Наиболее популярное
328 использование PHP - замена для CGI скриптов.
330 %description -l uk.UTF-8
331 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
332 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
333 роботи з базами даних є доволі простим. Найбільш популярне
334 використання PHP - заміна для CGI скриптів.
336 %package -n apache1-mod_php
337 Summary: PHP DSO module for apache 1.3.x
338 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 1.3.x
339 Group: Development/Languages/PHP
340 Requires(triggerpostun): sed >= 4.0
341 Requires: %{name}-common = %{epoch}:%{version}-%{release}
342 Requires: apache1(EAPI) >= 1.3.33-2
343 Requires: apache1-mod_mime
344 Provides: webserver(php) = %{version}
345 Obsoletes: apache-mod_php < 1:4.1.1
348 %description -n apache1-mod_php
349 PHP as DSO module for apache 1.3.x.
351 %description -n apache1-mod_php -l pl.UTF-8
352 php jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
354 %package -n apache-mod_php
355 Summary: PHP DSO module for apache 2.x
356 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 2.x
357 Group: Development/Languages/PHP
358 Requires: %{name}-common = %{epoch}:%{version}-%{release}
359 Requires: apache(modules-api) = %{apache_modules_api}
360 Requires: apache-mod_mime
361 Provides: webserver(php) = %{version}
364 %description -n apache-mod_php
365 PHP as DSO module for apache 2.x.
367 %description -n apache-mod_php -l pl.UTF-8
368 php jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
371 Summary: php as FastCGI program
372 Summary(pl.UTF-8): php jako program FastCGI
373 Group: Development/Languages/PHP
374 Requires: %{name}-common = %{epoch}:%{version}-%{release}
375 Provides: webserver(php) = %{version}
378 php as FastCGI program.
380 %description fcgi -l pl.UTF-8
381 php jako program FastCGI.
384 Summary: php as CGI program
385 Summary(pl.UTF-8): php jako program CGI
386 Group: Development/Languages/PHP
387 Requires: %{name}-common = %{epoch}:%{version}-%{release}
393 %description cgi -l pl.UTF-8
394 php jako program CGI.
397 Summary: php as CLI interpreter
398 Summary(pl.UTF-8): php jako interpreter działający z linii poleceń
399 Group: Development/Languages/PHP
400 Requires: %{name}-common = %{epoch}:%{version}-%{release}
403 php as CLI interpreter.
405 %description cli -l pl.UTF-8
406 php jako interpreter działający z linii poleceń.
409 Summary: /usr/bin/php symlink
410 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
411 Group: Development/Languages/PHP
412 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
413 Obsoletes: /usr/bin/php
416 Package providing /usr/bin/php symlink to PHP CLI.
418 %description program -l pl.UTF-8
419 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
422 Summary: PHP FastCGI Process Manager
423 Group: Development/Languages/PHP
424 URL: http://www.php-fpm.org/
425 Requires(post,preun): /sbin/chkconfig
426 Requires(postun): /usr/sbin/userdel
427 Requires(pre): /bin/id
428 Requires(pre): /usr/sbin/useradd
429 Requires: %{name}-common = %{epoch}:%{version}-%{release}
430 Requires: libevent >= 1.4.7-3
433 Provides: webserver(php) = %{version}
436 PHP FastCGI Process Manager.
439 Summary: Common files needed by both apache module and CGI
440 Summary(pl.UTF-8): Wspólne pliki dla modułu apache'a i programu CGI
441 Summary(ru.UTF-8): Разделяемые библиотеки для php
442 Summary(uk.UTF-8): Бібліотеки спільного використання для php
444 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
445 Requires: glibc >= 6:2.3.5
447 Requires: rpm-whiteout >= 1.28
450 Provides: php(libxml)
451 %{?with_zend_multibyte:Provides: php(mbstring)}
452 Provides: php(modules_api) = %{php_api_version}
453 Provides: php(overload)
454 Provides: php(reflection)
455 Provides: php(standard)
456 Provides: php(zend_extension_api) = %{zend_extension_api}
457 Provides: php(zend_module_api) = %{zend_module_api}
458 %{?with_zend_multibyte:Provides: php-mbstring = %{epoch}:%{version}-%{release}}
459 Provides: php5(debug) = %{php_debug}
460 Provides: php5(thread-safety) = %{zend_zts}
461 # ensure backward compatibility for Titanium
462 # to be dropped in future but ask Titanium RM before doing so
463 %if "%{pld_release}" == "ti"
464 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
465 Requires: %{name}-session = %{epoch}:%{version}-%{release}
466 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
468 %if "%{pld_release}" == "ac"
469 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
470 Requires: %{name}-session = %{epoch}:%{version}-%{release}
471 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
473 Obsoletes: php-pecl-domxml
474 Conflicts: php4-common < 3:4.4.4-8
475 Conflicts: rpm < 4.4.2-0.2
478 Common files needed by both apache module and CGI.
480 %description common -l pl.UTF-8
481 Wspólne pliki dla modułu apacha i programu CGI.
483 %description common -l ru.UTF-8
484 Этот пакет содержит общие файлы для разных вариантов реализации PHP
485 (самодостаточной и в качестве модуля apache).
487 %description common -l uk.UTF-8
488 Цей пакет містить спільні файли для різних варіантів реалізації PHP
489 (самодостатньої та в якості модуля apache).
492 Summary: Files for PHP modules development
493 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
494 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
495 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
496 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
497 Group: Development/Languages/PHP
498 Requires: %{name}-common = %{epoch}:%{version}-%{release}
501 %if "%{pld_release}" != "ac"
502 Requires: libtool >= 2:2.2
506 %{?with_pcre:Requires: pcre-devel >= 6.6}
508 Obsoletes: php-pear-devel
509 Obsoletes: php4-devel
512 The php-devel package lets you compile dynamic extensions to PHP.
513 Included here is the source for the PHP extensions. Instead of
514 recompiling the whole php binary to add support for, say, oracle,
515 install this package and use the new self-contained extensions
516 support. For more information, read the file
517 README.SELF-CONTAINED-EXTENSIONS.
519 %description devel -l pl.UTF-8
520 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
521 rekompilować całe php aby dodać obsługę np. oracle, można przy użyciu
522 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
523 samodzielnych rozszerzeniach można znaleźć w pliku
524 README.SELF-CONTAINED-EXTENSIONS.
526 %description devel -l pt_BR.UTF-8
527 Este pacote contém arquivos usados no desenvolvimento de programas ou
530 %description devel -l ru.UTF-8
531 Пакет php-devel дает возможность компилировать динамические расширения
532 PHP. Пакет включает исходный код этих расширений. Вместо повторной
533 компиляции бинарного файла php для добавления, например, поддержки
534 oracle, установите этот пакет для компилирования отдельных расширений.
535 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
537 %description devel -l uk.UTF-8
538 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
539 До пакету включено вихідний код для розширень. Замість повторної
540 компіляції бінарного файлу php для додання, наприклад, підтримки
541 oracle, встановіть цей пакет для компіляції окремих розширень.
542 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
545 Summary: bcmath extension module for PHP
546 Summary(pl.UTF-8): Moduł bcmath dla PHP
548 Requires: %{name}-common = %{epoch}:%{version}-%{release}
549 Provides: php(bcmath)
552 This is a dynamic shared object (DSO) for PHP that will add bc style
553 precision math functions support.
555 %description bcmath -l pl.UTF-8
556 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
557 matematycznych takich jak w programie bc.
560 Summary: Bzip2 extension module for PHP
561 Summary(pl.UTF-8): Moduł bzip2 dla PHP
563 Requires: %{name}-common = %{epoch}:%{version}-%{release}
567 This is a dynamic shared object (DSO) for PHP that will add bzip2
568 compression support to PHP.
570 %description bzip2 -l pl.UTF-8
571 Moduł PHP umożliwiający używanie kompresji bzip2.
574 Summary: Calendar extension module for PHP
575 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
577 Requires: %{name}-common = %{epoch}:%{version}-%{release}
578 Provides: php(calendar)
580 %description calendar
581 This is a dynamic shared object (DSO) for PHP that will add calendar
584 %description calendar -l pl.UTF-8
585 Moduł PHP dodający wsparcie dla kalendarza.
588 Summary: ctype extension module for PHP
589 Summary(pl.UTF-8): Moduł ctype dla PHP
591 Requires: %{name}-common = %{epoch}:%{version}-%{release}
595 This is a dynamic shared object (DSO) for PHP that will add ctype
598 %description ctype -l pl.UTF-8
599 Moduł PHP umożliwiający korzystanie z funkcji ctype.
602 Summary: curl extension module for PHP
603 Summary(pl.UTF-8): Moduł curl dla PHP
605 Requires: %{name}-common = %{epoch}:%{version}-%{release}
609 This is a dynamic shared object (DSO) for PHP that will add curl
612 %description curl -l pl.UTF-8
613 Moduł PHP umożliwiający korzystanie z biblioteki curl.
616 Summary: DBA extension module for PHP
617 Summary(pl.UTF-8): Moduł DBA dla PHP
619 Requires: %{name}-common = %{epoch}:%{version}-%{release}
623 This is a dynamic shared object (DSO) for PHP that will add flat-file
624 databases (DBA) support.
626 %description dba -l pl.UTF-8
627 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
631 Summary: DBase extension module for PHP
632 Summary(pl.UTF-8): Moduł DBase dla PHP
634 Requires: %{name}-common = %{epoch}:%{version}-%{release}
638 This is a dynamic shared object (DSO) for PHP that will add DBase
641 %description dbase -l pl.UTF-8
642 Moduł PHP ze wsparciem dla DBase.
645 Summary: DOM extension module for PHP
646 Summary(pl.UTF-8): Moduł DOM dla PHP
648 Requires: %{name}-common = %{epoch}:%{version}-%{release}
650 # it has some compatibility functions
651 Provides: php(domxml)
652 Obsoletes: php-domxml <= 3:4.3.8-1
655 This is a dynamic shared object (DSO) for PHP that will add new DOM
658 %description dom -l pl.UTF-8
659 Moduł PHP dodający nową obsługę DOM.
662 Summary: exif extension module for PHP
663 Summary(pl.UTF-8): Moduł exif dla PHP
665 Requires: %{name}-common = %{epoch}:%{version}-%{release}
669 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
670 support in image files.
672 %description exif -l pl.UTF-8
673 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
676 Summary: FDF extension module for PHP
677 Summary(pl.UTF-8): Moduł FDF dla PHP
679 Requires: %{name}-common = %{epoch}:%{version}-%{release}
683 This PHP module adds support for PDF Forms through Adobe FDFTK
686 %description fdf -l pl.UTF-8
687 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
691 Summary: Extension for safely dealing with input parameters
692 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
694 Requires: %{name}-common = %{epoch}:%{version}-%{release}
695 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
696 Provides: php(filter)
697 Obsoletes: php-pecl-filter
700 We all know that you should always check input variables, but PHP does
701 not offer really good functionality for doing this in a safe way. The
702 Input Filter extension is meant to address this issue by implementing
703 a set of filters and mechanisms that users can use to safely access
706 %description filter -l pl.UTF-8
707 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
708 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
709 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
710 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
711 mogą bezpiecznie używać do dostępu do danych.
714 Summary: FTP extension module for PHP
715 Summary(pl.UTF-8): Moduł FTP dla PHP
717 Requires: %{name}-common = %{epoch}:%{version}-%{release}
721 This is a dynamic shared object (DSO) for PHP that will add FTP
724 %description ftp -l pl.UTF-8
725 Moduł PHP dodający obsługę protokołu FTP.
728 Summary: GD extension module for PHP
729 Summary(pl.UTF-8): Moduł GD dla PHP
731 Requires: %{name}-common = %{epoch}:%{version}-%{release}
732 %if %{with system_gd}
733 Requires: gd >= 2.0.28-4
735 Requires: gd(imagerotate) = 5.2.0
740 This is a dynamic shared object (DSO) for PHP that will add GD
741 support, allowing you to create and manipulate images with PHP.
743 %description gd -l pl.UTF-8
744 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
745 tworzenie i obróbkę obrazków.
748 Summary: gettext extension module for PHP
749 Summary(pl.UTF-8): Moduł gettext dla PHP
751 Requires: %{name}-common = %{epoch}:%{version}-%{release}
752 Provides: php(gettext)
755 This is a dynamic shared object (DSO) for PHP that will add gettext
758 %description gettext -l pl.UTF-8
759 Moduł PHP dodający obsługę lokalizacji przez gettext.
762 Summary: gmp extension module for PHP
763 Summary(pl.UTF-8): Moduł gmp dla PHP
765 Requires: %{name}-common = %{epoch}:%{version}-%{release}
769 This is a dynamic shared object (DSO) for PHP that will add arbitrary
770 length number support with GNU MP library.
772 %description gmp -l pl.UTF-8
773 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
774 liczbach o dowolnej długości.
777 Summary: HASH Message Digest Framework
778 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
780 Requires: %{name}-common = %{epoch}:%{version}-%{release}
782 Obsoletes: php-pecl-hash
785 Native implementations of common message digest algorithms using a
786 generic factory method.
788 %description hash -l pl.UTF-8
789 Natywne implementacje popularnych algorytmów obliczania skrótów
790 wiadomości przy użyciu wspólnego interfejsu.
793 Summary: iconv extension module for PHP
794 Summary(pl.UTF-8): Moduł iconv dla PHP
796 Requires: %{_libdir}/gconv
797 Requires: %{name}-common = %{epoch}:%{version}-%{release}
802 This is a dynamic shared object (DSO) for PHP that will add iconv
805 %description iconv -l pl.UTF-8
806 Moduł PHP dodający obsługę iconv.
809 Summary: IMAP extension module for PHP
810 Summary(pl.UTF-8): Moduł IMAP dla PHP
811 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
813 Requires: %{name}-common = %{epoch}:%{version}-%{release}
817 This is a dynamic shared object (DSO) for PHP that will add IMAP
820 %description imap -l pl.UTF-8
821 Moduł PHP dodający obsługę skrzynek IMAP.
823 %description imap -l pt_BR.UTF-8
824 Um módulo para aplicações PHP que usam IMAP.
827 Summary: InterBase/Firebird database module for PHP
828 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
830 Requires: %{name}-common = %{epoch}:%{version}-%{release}
831 Provides: php(interbase)
832 %{?with_interbase_inst:Autoreq: false}
834 %description interbase
835 This is a dynamic shared object (DSO) for PHP that will add InterBase
836 and Firebird database support.
838 %description interbase -l pl.UTF-8
839 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
842 Summary: PHP C extension for JSON serialization
843 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
845 Requires: %{name}-common = %{epoch}:%{version}-%{release}
847 Obsoletes: php-pecl-json
850 php-json is an extremely fast PHP C extension for JSON (JavaScript
851 Object Notation) serialisation.
853 %description json -l pl.UTF-8
854 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
855 (JavaScript Object Notation).
858 Summary: LDAP extension module for PHP
859 Summary(pl.UTF-8): Moduł LDAP dla PHP
860 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
862 Requires: %{name}-common = %{epoch}:%{version}-%{release}
866 This is a dynamic shared object (DSO) for PHP that will add LDAP
869 %description ldap -l pl.UTF-8
870 Moduł PHP dodający obsługę LDAP.
872 %description ldap -l pt_BR.UTF-8
873 Um módulo para aplicações PHP que usam LDAP.
876 Summary: mbstring extension module for PHP
877 Summary(pl.UTF-8): Moduł mbstring dla PHP
879 Requires: %{name}-common = %{epoch}:%{version}-%{release}
880 Provides: php(mbstring)
882 %description mbstring
883 This is a dynamic shared object (DSO) for PHP that will add multibyte
886 %description mbstring -l pl.UTF-8
887 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
890 Summary: mcrypt extension module for PHP
891 Summary(pl.UTF-8): Moduł mcrypt dla PHP
893 Requires: %{name}-common = %{epoch}:%{version}-%{release}
894 Provides: php(mcrypt)
897 This is a dynamic shared object (DSO) for PHP that will add mcrypt
900 %description mcrypt -l pl.UTF-8
901 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
904 Summary: mhash extension module for PHP
905 Summary(pl.UTF-8): Moduł mhash dla PHP
907 Requires: %{name}-common = %{epoch}:%{version}-%{release}
911 This is a dynamic shared object (DSO) for PHP that will add mhash
914 %description mhash -l pl.UTF-8
915 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
918 Summary: mime_magic extension module for PHP
919 Summary(pl.UTF-8): Moduł mime_magic dla PHP
921 Requires: %{magic_mime}
922 Requires: %{name}-common = %{epoch}:%{version}-%{release}
923 Provides: php(mime_magic)
925 %description mime_magic
926 This PHP module adds support for MIME type lookup via file magic
927 numbers using magic.mime database.
929 %description mime_magic -l pl.UTF-8
930 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
931 znaczników plików z użyciem bazy danych magic.mime.
934 Summary: ming extension module for PHP
935 Summary(pl.UTF-8): Moduł ming dla PHP
937 Requires: %{name}-common = %{epoch}:%{version}-%{release}
938 Requires: ming >= 0.3
942 This is a dynamic shared object (DSO) for PHP that will add ming
943 (Flash - .swf files) support.
945 %description ming -l pl.UTF-8
946 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
950 Summary: MS SQL extension module for PHP
951 Summary(pl.UTF-8): Moduł MS SQL dla PHP
953 Requires: %{name}-common = %{epoch}:%{version}-%{release}
957 This is a dynamic shared object (DSO) for PHP that will add MS SQL
958 databases support through FreeTDS library.
960 %description mssql -l pl.UTF-8
961 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
965 Summary: MySQL database module for PHP
966 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
967 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
969 Requires: %{name}-common = %{epoch}:%{version}-%{release}
973 This is a dynamic shared object (DSO) for PHP that will add MySQL
976 %description mysql -l pl.UTF-8
977 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
979 %description mysql -l pt_BR.UTF-8
980 Um módulo para aplicações PHP que usam bancos de dados MySQL.
983 Summary: MySQLi module for PHP
984 Summary(pl.UTF-8): Moduł MySQLi dla PHP
986 Requires: %{name}-common = %{epoch}:%{version}-%{release}
987 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
988 Requires: mysql-libs >= 4.1.0
989 Provides: php(mysqli)
992 This is a dynamic shared object (DSO) for PHP that will add MySQLi
993 (Improved MySQL) support. The difference between it and mysql module
994 is that it provides access to functionality of MySQL 4.1 and above.
996 %description mysqli -l pl.UTF-8
997 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
998 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
999 MySQL w wersji 4.1 i nowszych.
1002 Summary: ncurses module for PHP
1003 Summary(pl.UTF-8): Moduł ncurses dla PHP
1005 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1006 Provides: php(ncurses)
1008 %description ncurses
1009 This PHP module adds support for ncurses functions (only for cli and
1012 %description ncurses -l pl.UTF-8
1013 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1016 Summary: Oracle 8+ database module for PHP
1017 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1019 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1024 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1025 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1027 %description oci8 -l pl.UTF-8
1028 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1029 poprzez interfejs Oracle8 Call-Interface (OCI8).
1032 Summary: ODBC extension module for PHP
1033 Summary(pl.UTF-8): Moduł ODBC dla PHP
1034 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1036 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1037 Requires: unixODBC >= 2.1.1-3
1041 This is a dynamic shared object (DSO) for PHP that will add ODBC
1044 %description odbc -l pl.UTF-8
1045 Moduł PHP ze wsparciem dla ODBC.
1047 %description odbc -l pt_BR.UTF-8
1048 Um módulo para aplicações PHP que usam ODBC.
1051 Summary: OpenSSL extension module for PHP
1052 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1054 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1055 Provides: php(openssl)
1057 %description openssl
1058 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1061 %description openssl -l pl.UTF-8
1062 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1065 Summary: Process Control extension module for PHP
1066 Summary(pl.UTF-8): Moduł Process Control dla PHP
1068 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1069 Provides: php(pcntl)
1072 This is a dynamic shared object (DSO) for PHP that will add process
1073 spawning and control support. It supports functions like fork(),
1074 waitpid(), signal() etc.
1076 %description pcntl -l pl.UTF-8
1077 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1078 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1081 Summary: PCRE extension module for PHP
1082 Summary(pl.UTF-8): Moduł PCRE dla PHP
1084 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1088 This is a dynamic shared object (DSO) for PHP that will add Perl
1089 Compatible Regular Expression support.
1091 %description pcre -l pl.UTF-8
1092 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1093 (Perl Compatible Regular Expressions)
1096 Summary: PHP Data Objects (PDO)
1097 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1099 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1100 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1102 Obsoletes: php-pecl-PDO
1105 This is a dynamic shared object (DSO) for PHP that will add PDO
1108 %description pdo -l pl.UTF-8
1109 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1112 Summary: PHP Data Objects (PDO) FreeTDS support
1113 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1115 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1116 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1117 Provides: php(dblib)
1119 %description pdo-dblib
1120 This is a dynamic shared object (DSO) for PHP that will add PDO
1123 %description pdo-dblib -l pl.UTF-8
1124 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1127 %package pdo-firebird
1128 Summary: PHP Data Objects (PDO) Firebird support
1129 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1131 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1132 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1133 Provides: php(pdo-firebird)
1134 Obsoletes: php-pecl-PDO_FIREBIRD
1136 %description pdo-firebird
1137 This is a dynamic shared object (DSO) for PHP that will add PDO
1140 %description pdo-firebird -l pl.UTF-8
1141 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1145 Summary: PHP Data Objects (PDO) MySQL support
1146 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1148 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1149 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1150 Provides: php(pdo-mysql)
1151 Obsoletes: php-pecl-PDO_MYSQL
1153 %description pdo-mysql
1154 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1157 %description pdo-mysql -l pl.UTF-8
1158 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1162 Summary: PHP Data Objects (PDO) Oracle support
1163 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1165 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1166 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1167 Provides: php(pdo-oci)
1168 Obsoletes: php-pecl-PDO_OCI
1170 %description pdo-oci
1171 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1174 %description pdo-oci -l pl.UTF-8
1175 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1179 Summary: PHP Data Objects (PDO) ODBC support
1180 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1182 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1183 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1184 Provides: php(pdo-odbc)
1185 Obsoletes: php-pecl-PDO_ODBC
1187 %description pdo-odbc
1188 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1191 %description pdo-odbc -l pl.UTF-8
1192 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1196 Summary: PHP Data Objects (PDO) PostgreSQL support
1197 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1199 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1200 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1201 Provides: php(pdo-pgsql)
1202 Provides: php-pecl-PDO_PGSQL
1203 Obsoletes: php-pecl-PDO_PGSQL
1205 %description pdo-pgsql
1206 This is a dynamic shared object (DSO) for PHP that will add PDO
1209 %description pdo-pgsql -l pl.UTF-8
1210 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1214 Summary: PHP Data Objects (PDO) SQLite support
1215 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1217 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1218 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1219 Provides: php(pdo-sqlite)
1220 Obsoletes: php-pecl-PDO_SQLITE
1222 %description pdo-sqlite
1223 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1226 %description pdo-sqlite -l pl.UTF-8
1227 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1231 Summary: PostgreSQL database module for PHP
1232 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1234 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1235 Provides: php(pgsql)
1238 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1241 %description pgsql -l pl.UTF-8
1242 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1244 %description pgsql -l pt_BR.UTF-8
1245 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1248 Summary: POSIX extension module for PHP
1249 Summary(pl.UTF-8): Moduł POSIX dla PHP
1251 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1252 Provides: php(posix)
1255 This is a dynamic shared object (DSO) for PHP that will add POSIX
1256 functions support to PHP.
1258 %description posix -l pl.UTF-8
1259 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1262 Summary: pspell extension module for PHP
1263 Summary(pl.UTF-8): Moduł pspell dla PHP
1265 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1266 Provides: php(pspell)
1269 This is a dynamic shared object (DSO) for PHP that will add pspell
1270 support to PHP. It allows to check the spelling of a word and offer
1273 %description pspell -l pl.UTF-8
1274 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1275 sprawdzanie pisowni słowa i sugerowanie poprawek.
1278 Summary: readline extension module for PHP
1279 Summary(pl.UTF-8): Moduł readline dla PHP
1281 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1282 Provides: php(readline)
1284 %description readline
1285 This PHP module adds support for readline functions (only for cli and
1288 %description readline -l pl.UTF-8
1289 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1292 Summary: recode extension module for PHP
1293 Summary(pl.UTF-8): Moduł recode dla PHP
1295 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1296 Requires: recode >= 3.5d-3
1297 Provides: php(recode)
1300 This is a dynamic shared object (DSO) for PHP that will add recode
1303 %description recode -l pl.UTF-8
1304 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1308 Summary: session extension module for PHP
1309 Summary(pl.UTF-8): Moduł session dla PHP
1311 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1312 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1313 Provides: php(session)
1315 %description session
1316 This is a dynamic shared object (DSO) for PHP that will add session
1319 %description session -l pl.UTF-8
1320 Moduł PHP dodający obsługę sesji.
1323 Summary: Shared Memory Operations extension module for PHP
1324 Summary(pl.UTF-8): Moduł shmop dla PHP
1326 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1327 Provides: php(shmop)
1330 This is a dynamic shared object (DSO) for PHP that will add Shared
1331 Memory Operations support.
1333 %description shmop -l pl.UTF-8
1334 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1337 Summary: Simple XML extension module for PHP
1338 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1340 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1341 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1342 Provides: php(simplexml)
1344 %description simplexml
1345 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1348 %description simplexml -l pl.UTF-8
1349 Moduł PHP dodający obsługę prostego XML-a.
1352 Summary: SNMP extension module for PHP
1353 Summary(pl.UTF-8): Moduł SNMP dla PHP
1355 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1356 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1360 This is a dynamic shared object (DSO) for PHP that will add SNMP
1363 %description snmp -l pl.UTF-8
1364 Moduł PHP dodający obsługę SNMP.
1367 Summary: soap extension module for PHP
1368 Summary(pl.UTF-8): Moduł soap dla PHP
1370 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1374 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1377 %description soap -l pl.UTF-8
1378 Moduł PHP dodający obsługę SOAP/WSDL.
1381 Summary: sockets extension module for PHP
1382 Summary(pl.UTF-8): Moduł socket dla PHP
1384 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1385 Provides: php(sockets)
1387 %description sockets
1388 This is a dynamic shared object (DSO) for PHP that will add sockets
1391 %description sockets -l pl.UTF-8
1392 Moduł PHP dodający obsługę gniazdek.
1395 Summary: Standard PHP Library module for PHP
1396 Summary(pl.UTF-8): Moduł SPL dla PHP
1398 URL: http://php.net/manual/en/book.spl.php
1399 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1400 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1401 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1405 This is a dynamic shared object (DSO) for PHP that will add Standard
1406 PHP Library support.
1408 %description spl -l pl.UTF-8
1409 Moduł PHP dodający obsługę gniazdek.
1412 Summary: SQLite extension module for PHP
1413 Summary(pl.UTF-8): Moduł SQLite dla PHP
1415 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1416 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1417 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1418 Provides: php(sqlite)
1421 SQLite is a C library that implements an embeddable SQL database
1422 engine. Programs that link with the SQLite library can have SQL
1423 database access without running a separate RDBMS process.
1425 SQLite is not a client library used to connect to a big database
1426 server. SQLite is the server. The SQLite library reads and writes
1427 directly to and from the database files on disk.
1429 %description sqlite -l pl.UTF-8
1430 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1431 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1432 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1435 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1436 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1437 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1441 Summary: Sybase DB extension module for PHP
1442 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1444 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1445 Provides: php(sybase)
1446 Obsoletes: php-sybase-ct
1447 Conflicts: php-sybase-ct
1450 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1451 MS SQL databases support through SYBDB library. Currently Sybase
1452 module is not maintained. Using Sybase-CT module is recommended
1455 %description sybase -l pl.UTF-8
1456 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1457 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1458 Zaleca się używanie modułu Sybase-CT.
1461 Summary: Sybase-CT extension module for PHP
1462 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1464 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1465 Provides: php(sybase-ct)
1466 Obsoletes: php-sybase
1467 Conflicts: php-sybase
1469 %description sybase-ct
1470 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1471 MS SQL databases support through CT-lib.
1473 %description sybase-ct -l pl.UTF-8
1474 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1478 Summary: SysV msg extension module for PHP
1479 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1481 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1482 Provides: php(sysvmsg)
1484 %description sysvmsg
1485 This is a dynamic shared object (DSO) for PHP that will add SysV
1486 message queues support.
1488 %description sysvmsg -l pl.UTF-8
1489 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1492 Summary: SysV sem extension module for PHP
1493 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1495 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1496 Provides: php(sysvsem)
1498 %description sysvsem
1499 This is a dynamic shared object (DSO) for PHP that will add SysV
1502 %description sysvsem -l pl.UTF-8
1503 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1506 Summary: SysV shm extension module for PHP
1507 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1509 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1510 Provides: php(sysvshm)
1512 %description sysvshm
1513 This is a dynamic shared object (DSO) for PHP that will add SysV
1514 Shared Memory support.
1516 %description sysvshm -l pl.UTF-8
1517 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1520 Summary: Tidy extension module for PHP
1521 Summary(pl.UTF-8): Moduł Tidy dla PHP
1523 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1528 This is a dynamic shared object (DSO) for PHP that will add Tidy
1531 %description tidy -l pl.UTF-8
1532 Moduł PHP umożliwiający korzystanie z tidy.
1535 Summary: tokenizer extension module for PHP
1536 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1538 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1539 Provides: php(tokenizer)
1541 %description tokenizer
1542 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1545 %description tokenizer -l pl.UTF-8
1546 Moduł PHP dodający obsługę tokenizera do PHP.
1549 Summary: wddx extension module for PHP
1550 Summary(pl.UTF-8): Moduł wddx dla PHP
1552 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1553 # - wddx doesn't require session as it's disabled at compile time:
1554 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1555 # see also php.spec#rev1.120.2.22
1556 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1557 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1561 This is a dynamic shared object (DSO) for PHP that will add wddx
1564 %description wddx -l pl.UTF-8
1565 Moduł PHP umożliwiający korzystanie z wddx.
1568 Summary: XML extension module for PHP
1569 Summary(pl.UTF-8): Moduł XML dla PHP
1571 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1575 This is a dynamic shared object (DSO) for PHP that will add XML
1576 support. This extension lets you create XML parsers and then define
1577 handlers for different XML events.
1579 %description xml -l pl.UTF-8
1580 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1581 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1582 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1585 Summary: XML Reader extension module for PHP
1586 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1588 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1589 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1590 Provides: php(xmlreader)
1592 %description xmlreader
1593 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1594 support. The XMLReader extension is an XML Pull parser. The reader
1595 acts as a cursor going forward on the document stream and stopping at
1596 each node on the way.
1598 %description xmlreader -l pl.UTF-8
1599 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1600 działa jako kursor przechodzący przez strumień dokumentu i
1601 zatrzymujący się na każdym węźle po drodze.
1604 Summary: xmlrpc extension module for PHP
1605 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1607 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1608 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1609 Provides: php(xmlrpc)
1612 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1615 %description xmlrpc -l pl.UTF-8
1616 Moduł PHP dodający obsługę XMLRPC.
1619 Summary: Fast, non-cached, forward-only means to write XML data
1620 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1622 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1623 Provides: php(xmlwriter)
1624 Obsoletes: php-pecl-xmlwriter
1626 %description xmlwriter
1627 This extension wraps the libxml xmlWriter API. Represents a writer
1628 that provides a non-cached, forward-only means of generating streams
1629 or files containing XML data.
1631 %description xmlwriter -l pl.UTF-8
1632 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1633 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1634 plików zawierających dane XML.
1637 Summary: xsl extension module for PHP
1638 Summary(pl.UTF-8): Moduł xsl dla PHP
1640 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1641 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1642 Requires: libxslt >= 1.0.18
1643 # actually not true, functionality is similar, but API differs
1645 Obsoletes: php-xslt <= 3:4.3.8-1
1648 This is a dynamic shared object (DSO) for PHP that will add new XSL
1649 support (using libxslt).
1651 %description xsl -l pl.UTF-8
1652 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1655 Summary: Zip management extension
1656 Summary(pl.UTF-8): Zarządzanie archiwami zip
1658 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1660 Obsoletes: php-pecl-zip
1663 Zip is an extension to create, modify and read zip files.
1665 %description zip -l pl.UTF-8
1666 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1667 odczyt archiwów zip.
1670 Summary: Zlib extension module for PHP
1671 Summary(pl.UTF-8): Moduł zlib dla PHP
1673 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1677 This is a dynamic shared object (DSO) for PHP that will add zlib
1678 compression support to PHP.
1680 %description zlib -l pl.UTF-8
1681 Moduł PHP umożliwiający używanie kompresji zlib.
1686 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1699 cp php.ini-dist php.ini
1701 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1711 %if %{with system_gd}
1720 %{?with_versioning:%patch25 -p1}
1723 %{__tar} jxf %{SOURCE9}
1724 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1725 mv $v/$v gentoo-patchset
1726 for a in gentoo-patchset/*.patch; do
1739 %if "%{pld_release}" != "ac"
1744 # mysql default charset for mysql/mysql/pdo-mysql extensions
1768 # conflict seems to be resolved by recode patches
1769 rm -f ext/recode/config9.m4
1771 # remove all bundled libraries not to link with them accidentally
1772 #rm -rf ext/sqlite/libsqlite
1773 #rm -rf ext/bcmath/libbcmath
1774 #rm -rf ext/date/lib
1775 #rm -rf ext/dba/libcdb
1776 #rm -rf ext/dba/libflatfile
1777 #rm -rf ext/dba/libinifile
1778 #rm -rf ext/gd/libgd
1779 #rm -rf ext/mbstring/libmbfl
1780 #rm -rf ext/mbstring/oniguruma
1781 rm -rf ext/pcre/pcrelib
1782 rm -rf ext/pdo_sqlite/sqlite
1783 #rm -rf ext/soap/interop
1784 %if %{with system_xmlrpc_epi}
1785 rm -rf ext/xmlrpc/libxmlrpc
1789 # this test hungs on ac-ppc
1790 #mv ext/reflection/tests/007.php{,ignore}
1791 # this test gets killed by itself
1792 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1795 cp -af Zend/LICENSE{,.Zend}
1796 install -p %{SOURCE13} dep-tests.sh
1799 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1800 if [ $API != %{php_api_version} ]; then
1801 echo "Set %%define php_api_version to $API and re-run."
1805 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1806 if [ $API != %{zend_module_api} ]; then
1807 echo "Set %%define zend_module_api to $API and re-run."
1811 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1812 if [ $API != %{zend_extension_api} ]; then
1813 echo "Set %%define zend_extension_api to $API and re-run."
1817 export EXTENSION_DIR="%{php_extensiondir}"
1818 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1819 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1822 cp -f /usr/share/automake/config.* .
1826 export PROG_SENDMAIL="/usr/lib/sendmail"
1843 for sapi in $sapis; do
1845 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1850 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
1853 sapi_args='--disable-cgi'
1856 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
1859 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
1862 ver=$(rpm -q --qf '%{V}' apache1-devel)
1863 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
1866 ver=$(rpm -q --qf '%{V}' apache-devel)
1867 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
1873 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1874 --cache-file=config.cache \
1876 --with-libdir=%{_lib} \
1877 --with-config-file-path=%{_sysconfdir} \
1878 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1879 --with-exec-dir=%{_bindir} \
1880 --%{!?debug:dis}%{?debug:en}able-debug \
1881 %{?with_zts:--enable-maintainer-zts} \
1882 %{?with_suhosin:--enable-suhosin} \
1883 %{?with_zend_multibyte:--enable-zend-multibyte} \
1884 --enable-inline-optimization \
1885 --enable-bcmath=shared \
1886 --enable-calendar=shared \
1887 --enable-ctype=shared \
1888 --enable-dba=shared \
1889 --enable-dom=shared \
1890 --enable-exif=shared \
1891 --enable-ftp=shared \
1892 --enable-gd-native-ttf \
1893 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
1895 --enable-magic-quotes \
1896 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
1898 --enable-pcntl=shared \
1899 --enable-pdo=shared \
1900 --enable-json=shared \
1901 --enable-hash=shared \
1902 --enable-xmlwriter=shared \
1904 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
1905 --with-fpm-log=/var/log/fpm.log \
1906 --with-fpm-pid=/var/run/php/fpm.pid \
1908 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
1909 --with-pdo-dblib=shared \
1911 %if %{with interbase} && !%{with interbase_inst}
1912 --with-pdo-firebird=shared,/usr \
1914 --with-pdo-mysql=shared \
1915 %{?with_oci8:--with-pdo-oci=shared} \
1916 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1917 %{?with_pgsql:--with-pdo-pgsql=shared} \
1918 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1919 --enable-posix=shared \
1920 --enable-reflection \
1922 --enable-session=shared \
1923 --enable-shmop=shared \
1924 --enable-simplexml=shared \
1925 --enable-spl=shared \
1926 --enable-sysvmsg=shared \
1927 --enable-sysvsem=shared \
1928 --enable-sysvshm=shared \
1929 --enable-safe-mode \
1930 --enable-soap=shared \
1931 --enable-sockets=shared \
1932 --enable-tokenizer=shared \
1933 --enable-ucd-snmp-hack \
1934 %{?with_wddx:--enable-wddx=shared} \
1935 --enable-xml=shared \
1936 --enable-xmlreader=shared \
1938 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1940 --enable-dbase=shared \
1941 --without-libexpat-dir \
1942 %{?with_fdf:--with-fdftk=shared} \
1943 --with-iconv=shared \
1944 --with-freetype-dir=shared \
1945 --with-gettext=shared \
1946 --with-gd=shared%{?with_system_gd:,/usr} \
1949 %{?with_imap:--with-imap=shared --with-imap-ssl} \
1950 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1951 --with-jpeg-dir=/usr \
1952 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1953 --with-mcrypt=shared \
1954 %{?with_mhash:--with-mhash=shared} \
1955 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
1956 %{?with_ming:--with-ming=shared} \
1957 %{?with_mm:--with-mm} \
1958 %{?with_mssql:--with-mssql=shared} \
1959 --with-mysql=shared,/usr \
1960 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1961 %{?with_mysqli:--with-mysqli=shared} \
1962 --with-ncurses=shared \
1963 %{?with_oci8:--with-oci8=shared} \
1964 %{?with_openssl:--with-openssl=shared} \
1966 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
1967 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
1968 --with-pear=%{php_pear_dir} \
1969 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1970 --with-png-dir=/usr \
1971 %{?with_pspell:--with-pspell=shared} \
1972 --with-readline=shared \
1973 %{?with_recode:--with-recode=shared} \
1975 %{?with_snmp:--with-snmp=shared} \
1976 %{?with_sybase:--with-sybase=shared,/usr} \
1977 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1978 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1979 --with-t1lib=shared \
1980 %{?with_tidy:--with-tidy=shared} \
1981 %{?with_odbc:--with-unixODBC=shared,/usr} \
1982 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
1984 --with-zlib=shared \
1985 --with-zlib-dir=shared,/usr \
1986 --enable-zip=shared,/usr \
1988 cp -f Makefile Makefile.$sapi
1989 cp -f main/php_config.h php_config.h.$sapi
1990 cp -f config.log config.log.$sapi
1993 # as we build each SAPI in own make, adjust php-config.in forehead
1994 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
1995 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
1997 # must make this first, so modules can link against it.
1998 %{__make} libphp_common.la
1999 %{__make} build-modules
2002 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2006 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2010 cp -af php_config.h.cgi main/php_config.h
2011 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2012 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2013 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2016 cp -af php_config.h.cli main/php_config.h
2017 %{__make} sapi/cli/php -f Makefile.cli
2018 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2022 cp -af php_config.h.fcgi main/php_config.h
2023 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2024 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2025 cp -r sapi/cgi sapi/fcgi
2026 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2030 cp -af php_config.h.fpm main/php_config.h
2031 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2032 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2033 cp -r sapi/cgi sapi/fpm
2034 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2037 # Generate stub .ini files for each extension
2040 generate_inifiles() {
2041 for so in modules/*.so; do
2042 mod=$(basename $so .so)
2044 # xml needs to be loaded before wddx
2045 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2046 # pre needs to be loaded before SPL
2047 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2048 # spl needs to be loaded before mysqli
2049 [ "$mod" = "spl" ] && conf="SPL.ini"
2051 cat > conf.d/$conf <<-EOF
2052 ; Enable $mod extension module
2059 # Check that the module inner-dependencies are intact
2060 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2061 if grep -v OK dep-tests.log; then
2062 echo >&2 "The results above were not expected"
2068 # Run tests, using the CLI SAPI
2069 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2070 unset TZ LANG LC_ALL || :
2072 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
2076 rm -rf $RPM_BUILD_ROOT
2077 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2078 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2079 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2080 $RPM_BUILD_ROOT%{_mandir}/man1 \
2082 # install the apache modules' files
2083 %{__make} install-headers install-build install-modules install-programs \
2084 INSTALL_ROOT=$RPM_BUILD_ROOT
2086 # install apache1 DSO module
2088 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2091 # install apache2 DSO module
2093 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2096 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2097 # fix install paths, avoid evil rpaths
2098 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2100 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2103 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
2107 libtool --silent --mode=install install sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
2112 libtool --silent --mode=install install sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fpm
2113 %{__make} install-fpm -f Makefile.fpm \
2114 INSTALL_ROOT=$RPM_BUILD_ROOT
2115 install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/php-fpm
2116 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2117 install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/php-fpm
2121 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
2122 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2123 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
2125 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
2127 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2129 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2131 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2132 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2133 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2136 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2137 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2138 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2142 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2143 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2144 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2147 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2148 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2150 # per SAPI ini directories
2151 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2154 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2156 # use system automake and {lib,sh}tool
2157 %if "%{pld_release}" != "ac"
2158 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2159 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2160 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2162 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2164 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2165 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2167 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2169 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2170 # isn't installed by install-headers make target, we do it manually here.
2171 # this header file is required by e.g. filter PECL extension
2172 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2173 # for php-pecl-mailparse
2174 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2175 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2178 rm -rf $RPM_BUILD_ROOT
2180 %post -n apache1-mod_php
2181 if [ "$1" = "1" ]; then
2182 %service -q apache restart
2185 %postun -n apache1-mod_php
2186 if [ "$1" = "0" ]; then
2187 %service -q apache restart
2190 %post -n apache-mod_php
2191 if [ "$1" = "1" ]; then
2192 %service -q httpd restart
2195 %postun -n apache-mod_php
2196 if [ "$1" = "0" ]; then
2197 %service -q httpd restart
2201 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2204 /sbin/chkconfig --add php-fpm
2205 %service php-fpm restart
2208 if [ "$1" = 0 ]; then
2209 %service php-fpm stop
2210 /sbin/chkconfig --del php-fpm
2214 if [ "$1" = "0" ]; then
2218 %post common -p /sbin/ldconfig
2219 %postun common -p /sbin/ldconfig
2222 # minimizing apache restarts logics. we restart webserver:
2224 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2225 # 2. first install of extension (post: $1 = 1)
2226 # 2. uninstall of extension (postun: $1 == 0)
2228 # the strict internal deps between extensions (and apache modules) and
2229 # common package are very important for all this to work.
2231 # restart webserver at the end of transaction
2232 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2233 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2236 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2238 /^AddType application\/x-httpd-php \.php/s,^,#,
2239 /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2240 ' /etc/apache/apache.conf
2241 %service -q apache restart
2245 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
2246 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2247 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2248 cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2249 mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2253 # common macros called at extension post/postun scriptlet
2254 %define extension_scripts() \
2256 if [ "$1" = "1" ]; then \
2257 %php_webserver_restart \
2261 if [ "$1" = "0" ]; then \
2262 %php_webserver_restart \
2266 # extension scripts defines
2267 %extension_scripts bcmath
2268 %extension_scripts bzip2
2269 %extension_scripts calendar
2270 %extension_scripts ctype
2271 %extension_scripts curl
2272 %extension_scripts dba
2273 %extension_scripts dbase
2274 %extension_scripts dom
2275 %extension_scripts exif
2276 %extension_scripts fdf
2277 %extension_scripts filter
2278 %extension_scripts ftp
2279 %extension_scripts gd
2280 %extension_scripts gettext
2281 %extension_scripts gmp
2282 %extension_scripts hash
2283 %extension_scripts iconv
2284 %extension_scripts imap
2285 %extension_scripts interbase
2286 %extension_scripts json
2287 %extension_scripts ldap
2288 %extension_scripts mbstring
2289 %extension_scripts mcrypt
2290 %extension_scripts mhash
2291 %extension_scripts mime_magic
2292 %extension_scripts ming
2293 %extension_scripts mssql
2294 %extension_scripts mysql
2295 %extension_scripts mysqli
2296 %extension_scripts oci8
2297 %extension_scripts odbc
2298 %extension_scripts openssl
2299 %extension_scripts pcre
2300 %extension_scripts pdo-dblib
2301 %extension_scripts pdo-firebird
2302 %extension_scripts pdo-mysql
2303 %extension_scripts pdo-odbc
2304 %extension_scripts pdo-pgsql
2305 %extension_scripts pdo-sqlite
2306 %extension_scripts pgsql
2307 %extension_scripts posix
2308 %extension_scripts pspell
2309 %extension_scripts recode
2310 %extension_scripts session
2311 %extension_scripts shmop
2312 %extension_scripts snmp
2313 %extension_scripts soap
2314 %extension_scripts sockets
2315 %extension_scripts spl
2316 %extension_scripts sqlite
2317 %extension_scripts sybase
2318 %extension_scripts sybase-ct
2319 %extension_scripts sysvmsg
2320 %extension_scripts sysvsem
2321 %extension_scripts sysvshm
2322 %extension_scripts tidy
2323 %extension_scripts tokenizer
2324 %extension_scripts wddx
2325 %extension_scripts xml
2326 %extension_scripts xmlreader
2327 %extension_scripts xmlrpc
2328 %extension_scripts xmlwriter
2329 %extension_scripts xsl
2330 %extension_scripts zip
2331 %extension_scripts zlib
2333 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2334 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2336 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2337 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2339 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2340 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2342 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2343 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2345 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2346 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2348 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2349 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2351 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
2352 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2354 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2355 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2357 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2358 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2360 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2361 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2363 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2364 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2366 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2367 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2369 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2370 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2372 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2373 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2375 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2376 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2378 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2381 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2384 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2387 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2390 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2393 %triggerun mhash -- %{name}-mhash < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2396 %triggerun mime_magic -- %{name}-mime_magic < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2399 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{_sysconfdir}/php.ini
2402 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2405 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2408 %triggerun ncurses -- %{name}-ncurses < 4:5.1.2-9.5
2409 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2410 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2412 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2413 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2416 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2417 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2419 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2420 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2422 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2423 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2425 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2426 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2428 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2429 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2430 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2432 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2433 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2436 %triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
2437 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2439 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2440 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2442 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2443 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2445 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2446 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2448 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2449 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2450 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2452 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2453 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2456 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2457 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2459 %triggerun session -- %{name}-session < 4:5.0.4-9.1
2460 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
2462 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2463 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2465 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2466 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2468 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2469 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2471 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2472 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2474 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2475 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2477 %triggerun sybase -- %{name}-sybase < 4:5.0.4-9.1
2478 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2480 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2481 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2483 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2484 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2486 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2487 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2489 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2490 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2492 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2493 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2495 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2496 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2498 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2499 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2501 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2502 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2504 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2505 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2507 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2508 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2511 %files -n apache1-mod_php
2512 %defattr(644,root,root,755)
2513 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2514 %dir %{_sysconfdir}/apache.d
2515 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2516 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2520 %files -n apache-mod_php
2521 %defattr(644,root,root,755)
2522 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2523 %dir %{_sysconfdir}/apache2handler.d
2524 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2525 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2530 %defattr(644,root,root,755)
2531 %doc sapi/cgi/README.FastCGI
2532 %dir %{_sysconfdir}/cgi-fcgi.d
2533 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2534 %attr(755,root,root) %{_bindir}/php.fcgi
2538 %defattr(644,root,root,755)
2539 %dir %{_sysconfdir}/cgi.d
2540 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2541 %attr(755,root,root) %{_bindir}/php.cgi
2544 %defattr(644,root,root,755)
2545 %dir %{_sysconfdir}/cli.d
2546 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2547 %attr(755,root,root) %{_bindir}/php.cli
2548 %{_mandir}/man1/php.1*
2549 %{_mandir}/man1/php.cli.1*
2552 %defattr(644,root,root,755)
2553 %attr(755,root,root) %{_bindir}/php
2557 %defattr(644,root,root,755)
2558 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2559 %attr(755,root,root) %{_bindir}/php.fpm
2560 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/php-fpm
2561 %attr(754,root,root) /etc/rc.d/init.d/php-fpm
2565 %defattr(644,root,root,755)
2567 %doc CREDITS Zend/ZEND_CHANGES
2568 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2569 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2572 %dir %{_sysconfdir}/conf.d
2573 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2574 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2575 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2576 %dir %{php_extensiondir}
2579 %defattr(644,root,root,755)
2580 %doc README.UNIX-BUILD-SYSTEM
2581 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2582 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2583 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2584 %attr(755,root,root) %{_bindir}/phpize
2585 %attr(755,root,root) %{_bindir}/php-config
2586 %attr(755,root,root) %{_libdir}/libphp_common.so
2587 %{_libdir}/libphp_common.la
2589 %{_libdir}/php/build
2590 %{_mandir}/man1/php-config.1*
2591 %{_mandir}/man1/phpize.1*
2594 %defattr(644,root,root,755)
2595 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2596 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2599 %defattr(644,root,root,755)
2600 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2601 %attr(755,root,root) %{php_extensiondir}/bz2.so
2604 %defattr(644,root,root,755)
2605 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2606 %attr(755,root,root) %{php_extensiondir}/calendar.so
2609 %defattr(644,root,root,755)
2610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2611 %attr(755,root,root) %{php_extensiondir}/ctype.so
2615 %defattr(644,root,root,755)
2616 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2617 %attr(755,root,root) %{php_extensiondir}/curl.so
2621 %defattr(644,root,root,755)
2622 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2623 %attr(755,root,root) %{php_extensiondir}/dba.so
2626 %defattr(644,root,root,755)
2627 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2628 %attr(755,root,root) %{php_extensiondir}/dbase.so
2631 %defattr(644,root,root,755)
2632 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2633 %attr(755,root,root) %{php_extensiondir}/dom.so
2637 %defattr(644,root,root,755)
2638 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2639 %attr(755,root,root) %{php_extensiondir}/fdf.so
2644 %defattr(644,root,root,755)
2645 %doc README.input_filter
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2647 %attr(755,root,root) %{php_extensiondir}/filter.so
2651 %defattr(644,root,root,755)
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2653 %attr(755,root,root) %{php_extensiondir}/exif.so
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2658 %attr(755,root,root) %{php_extensiondir}/ftp.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2663 %attr(755,root,root) %{php_extensiondir}/gd.so
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2668 %attr(755,root,root) %{php_extensiondir}/gettext.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2673 %attr(755,root,root) %{php_extensiondir}/gmp.so
2676 %defattr(644,root,root,755)
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2678 %attr(755,root,root) %{php_extensiondir}/hash.so
2681 %defattr(644,root,root,755)
2682 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2683 %attr(755,root,root) %{php_extensiondir}/iconv.so
2687 %defattr(644,root,root,755)
2688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2689 %attr(755,root,root) %{php_extensiondir}/imap.so
2692 %if %{with interbase}
2694 %defattr(644,root,root,755)
2695 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2696 %attr(755,root,root) %{php_extensiondir}/interbase.so
2700 %defattr(644,root,root,755)
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2702 %attr(755,root,root) %{php_extensiondir}/json.so
2706 %defattr(644,root,root,755)
2707 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2708 %attr(755,root,root) %{php_extensiondir}/ldap.so
2711 %if %{without zend_multibyte}
2713 %defattr(644,root,root,755)
2714 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2715 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2719 %defattr(644,root,root,755)
2720 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2721 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2725 %defattr(644,root,root,755)
2726 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2727 %attr(755,root,root) %{php_extensiondir}/mhash.so
2730 %if %{with mime_magic}
2732 %defattr(644,root,root,755)
2733 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2734 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2739 %defattr(644,root,root,755)
2740 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2741 %attr(755,root,root) %{php_extensiondir}/ming.so
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2748 %attr(755,root,root) %{php_extensiondir}/mssql.so
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2754 %attr(755,root,root) %{php_extensiondir}/mysql.so
2758 %defattr(644,root,root,755)
2759 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2760 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2764 %defattr(644,root,root,755)
2765 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2766 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2770 %defattr(644,root,root,755)
2771 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2772 %attr(755,root,root) %{php_extensiondir}/oci8.so
2777 %defattr(644,root,root,755)
2778 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2779 %attr(755,root,root) %{php_extensiondir}/odbc.so
2784 %defattr(644,root,root,755)
2785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2786 %attr(755,root,root) %{php_extensiondir}/openssl.so
2790 %defattr(644,root,root,755)
2791 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2792 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2796 %defattr(644,root,root,755)
2797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2798 %attr(755,root,root) %{php_extensiondir}/pcre.so
2802 %defattr(644,root,root,755)
2803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2804 %attr(755,root,root) %{php_extensiondir}/pdo.so
2806 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2808 %defattr(644,root,root,755)
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2810 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2813 %if %{with interbase} && !%{with interbase_inst}
2815 %defattr(644,root,root,755)
2816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2817 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2821 %defattr(644,root,root,755)
2822 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2823 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2827 %defattr(644,root,root,755)
2828 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2829 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2834 %defattr(644,root,root,755)
2835 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2836 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2841 %defattr(644,root,root,755)
2842 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2843 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2850 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2855 %defattr(644,root,root,755)
2856 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2857 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2861 %defattr(644,root,root,755)
2862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2863 %attr(755,root,root) %{php_extensiondir}/posix.so
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2869 %attr(755,root,root) %{php_extensiondir}/pspell.so
2873 %defattr(644,root,root,755)
2874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2875 %attr(755,root,root) %{php_extensiondir}/readline.so
2879 %defattr(644,root,root,755)
2880 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2881 %attr(755,root,root) %{php_extensiondir}/recode.so
2885 %defattr(644,root,root,755)
2886 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2887 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2890 %defattr(644,root,root,755)
2891 %doc ext/session/mod_files.sh
2892 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/session.ini
2893 %attr(755,root,root) %{php_extensiondir}/session.so
2896 %defattr(644,root,root,755)
2897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2898 %attr(755,root,root) %{php_extensiondir}/shmop.so
2902 %defattr(644,root,root,755)
2903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2904 %attr(755,root,root) %{php_extensiondir}/snmp.so
2908 %defattr(644,root,root,755)
2909 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2910 %attr(755,root,root) %{php_extensiondir}/soap.so
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2915 %attr(755,root,root) %{php_extensiondir}/sockets.so
2918 %defattr(644,root,root,755)
2919 %doc ext/spl/{CREDITS,README,TODO}
2920 %doc ext/spl/examples
2921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2922 %attr(755,root,root) %{php_extensiondir}/spl.so
2926 %defattr(644,root,root,755)
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2928 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2933 %defattr(644,root,root,755)
2934 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2935 %attr(755,root,root) %{php_extensiondir}/sybase.so
2938 %if %{with sybase_ct}
2940 %defattr(644,root,root,755)
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2942 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2946 %defattr(644,root,root,755)
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2948 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2951 %defattr(644,root,root,755)
2952 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2953 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2956 %defattr(644,root,root,755)
2957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2958 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2962 %defattr(644,root,root,755)
2963 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2964 %attr(755,root,root) %{php_extensiondir}/tidy.so
2968 %defattr(644,root,root,755)
2969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2970 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2974 %defattr(644,root,root,755)
2975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2976 %attr(755,root,root) %{php_extensiondir}/wddx.so
2980 %defattr(644,root,root,755)
2981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2982 %attr(755,root,root) %{php_extensiondir}/xml.so
2985 %defattr(644,root,root,755)
2986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2987 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
2991 %defattr(644,root,root,755)
2992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2993 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
2997 %defattr(644,root,root,755)
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
2999 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3002 %defattr(644,root,root,755)
3003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3004 %attr(755,root,root) %{php_extensiondir}/xsl.so
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3009 %attr(755,root,root) %{php_extensiondir}/zip.so
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3014 %attr(755,root,root) %{php_extensiondir}/zlib.so