2 # - fix -threads-acfix.patch
3 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
4 # - removed from php 5.0 (currently in php4):
5 # db, hyperwave, java, mcal, overload, qtdom
6 # - removed from php 5.1:
8 # - removed from php 5.2:
10 # - mime_magic can't handle new "string/*" entries in magic.mime
11 # thus doesn't work with system magic.mime database
12 # - make additional headers and checking added by mail patch configurable
13 # - modularize session, standard (output from pure php -m)?
14 # - http://forum.lighttpd.net/topic/34454
15 # - Security note: CVE-2008-5498 (no solution at this time):
16 # http://securitytracker.com/alerts/2008/Dec/1021494.html
19 %bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
20 %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
21 %bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
22 %bcond_without curl # without CURL extension module
23 %bcond_without filter # without filter extension module
24 %bcond_without imap # without IMAP extension module
25 %bcond_without interbase # without InterBase extension module
26 %bcond_without ldap # without LDAP extension module
27 %bcond_without mhash # without mhash extension module
28 %bcond_without mime_magic # without mime-magic module
29 %bcond_without ming # without ming extension module
30 %bcond_without mm # without mm support for session storage
31 %bcond_without mssql # without MS SQL extension module
32 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
33 %bcond_without odbc # without ODBC extension module
34 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
35 %bcond_without pcre # without PCRE extension module
36 %bcond_without pgsql # without PostgreSQL extension module
37 %bcond_without pspell # without pspell extension module
38 %bcond_without recode # without recode extension module
39 %bcond_without snmp # without SNMP extension module
40 %bcond_without sqlite # without SQLite extension module
41 %bcond_without sybase # without Sybase extension module
42 %bcond_without sybase_ct # without Sybase-CT extension module
43 %bcond_without tidy # without Tidy extension module
44 %bcond_without wddx # without WDDX extension module
45 %bcond_without xmlrpc # without XML-RPC extension module
46 %bcond_without apache1 # disable building apache 1.3.x module
47 %bcond_without apache2 # disable building apache 2.x module
48 %bcond_without fcgi # disable building FCGI SAPI
49 %bcond_without zts # disable Zend Thread Safety
50 %bcond_without fpm # fpm patches from http://php-fpm.anight.org/
51 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
52 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
53 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
55 %define apxs1 /usr/sbin/apxs1
56 %define apxs2 /usr/sbin/apxs
58 # some problems with apache 2.x
63 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
64 %undefine with_interbase
66 %if "%{pld_release}" == "th"
68 # ppc disabled (broken on th-ppc)
69 %undefine with_interbase
73 %ifnarch %{ix86} %{x8664}
74 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
78 %if %{without apache1} && %{without apache2}
79 ERROR: You need to select at least one Apache SAPI to build shared modules.
82 # filter depends on pcre
88 Summary: PHP: Hypertext Preprocessor
89 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
90 Summary(pl.UTF-8): Język skryptowy PHP
91 Summary(pt_BR.UTF-8): A linguagem de script PHP
92 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
93 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
100 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
101 # Source0-md5: 8760a833cf10433d3e72271ab0d0eccf
102 Source2: %{name}-mod_%{name}.conf
103 Source3: %{name}-cgi-fcgi.ini
104 Source4: %{name}-cgi.ini
105 Source5: %{name}-apache.ini
106 Source6: %{name}-cli.ini
107 # Taken from: http://browsers.garykeith.com/downloads.asp
108 Source8: %{name}_browscap.ini
109 Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{name}-patchset-5.2.6-r8.tar.bz2
110 # Source9-md5: 0f411800537648d0748417124291bd58
111 Source10: %{name}-fpm.init
112 Source11: %{name}-fpm.logrotate
113 Patch0: %{name}-shared.patch
114 Patch1: %{name}-pldlogo.patch
115 Patch2: %{name}-mail.patch
116 Patch3: %{name}-link-libs.patch
117 Patch4: %{name}-libpq_fs_h_path.patch
118 Patch5: %{name}-filter-shared.patch
119 Patch6: %{name}-build_modules.patch
120 Patch7: %{name}-sapi-ini-file.patch
121 Patch8: %{name}-no-metaccld.patch
122 Patch9: %{name}-sh.patch
123 Patch10: %{name}-ini.patch
124 Patch11: %{name}-acam.patch
125 Patch12: %{name}-threads-acfix.patch
126 Patch13: %{name}-tsrmlsfetchgcc2.patch
127 Patch14: %{name}-no_pear_install.patch
128 Patch15: %{name}-zlib.patch
129 Patch16: %{name}-sybase-fix.patch
130 Patch17: %{name}-readline.patch
131 Patch18: %{name}-nohttpd.patch
132 Patch19: %{name}-gd_imagerotate_enable.patch
133 Patch20: %{name}-uint32_t.patch
134 Patch21: %{name}-dba-link.patch
136 Patch23: %{name}-both-apxs.patch
137 Patch24: %{name}-builddir.patch
138 Patch25: %{name}-zlib-for-getimagesize.patch
139 Patch26: %{name}-versioning.patch
140 Patch28: %{name}-pear.patch
141 Patch29: %{name}-config-dir.patch
142 Patch30: %{name}-bug-42952.patch
143 Patch31: %{name}-fcgi-graceful.patch
144 Patch32: %{name}-apr-apu.patch
145 Patch33: %{name}-fcgi-error_log-no-newlines.patch
146 Patch34: %{name}-curl-limit-speed.patch
147 Patch35: %{name}-ac.patch
148 Patch36: %{name}-mime_magic.patch
149 Patch37: %{name}-libtool.patch
150 Patch38: %{name}-tds.patch
151 Patch39: %{name}-mysql-charsetphpini.patch
152 Patch40: %{name}-mysqli-charsetphpini.patch
153 Patch41: %{name}-pdo_mysql-charsetphpini.patch
154 Patch42: %{name}-ini-charsetphpini.patch
155 Patch43: %{name}-use-prog_sendmail.patch
156 Patch44: %{name}-fpm.patch
157 Patch48: %{name}-fpm-config.patch
158 Patch49: %{name}-fpm-initdir.patch
159 # drop when http://bugs.php.net/bug.php?id=45996 solved
160 Patch50: %{name}-xml-force-expat.patch
161 Patch51: %{name}-include_path.patch
162 URL: http://www.php.net/
164 # http://securitytracker.com/alerts/2008/Oct/1020995.html
165 # BuildRequires: security(CVE-2008-3659)
166 # http://securitytracker.com/alerts/2008/Oct/1020994.html
167 # BuildRequires: security(CVE-2008-3660)
168 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
169 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
170 BuildRequires: autoconf >= 2.53
171 BuildRequires: automake >= 1.4d
173 BuildRequires: bzip2-devel
174 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
175 BuildRequires: cyrus-sasl-devel
176 BuildRequires: db-devel >= 4.0
177 BuildRequires: elfutils-devel
178 # until php bug#45996 is solved
179 BuildRequires: expat-devel
181 BuildRequires: expat-devel
182 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
184 %{?with_fcgi:BuildRequires: fcgi-devel}
185 %{?with_fdf:BuildRequires: fdftk-devel}
187 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
188 BuildRequires: freetds-devel
190 BuildRequires: freetype-devel >= 2.0
191 BuildRequires: gd-devel >= 2.0.28-4
192 BuildRequires: gd-devel(imagerotate) = 5.2.0
193 BuildRequires: gdbm-devel
194 BuildRequires: gmp-devel
195 %{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2}
196 BuildRequires: libjpeg-devel
197 BuildRequires: libltdl-devel >= 1.4
198 BuildRequires: libmcrypt-devel >= 2.4.4
199 BuildRequires: libpng-devel >= 1.0.8
200 BuildRequires: libtiff-devel
201 %if "%{pld_release}" != "ac"
202 BuildRequires: libtool >= 2:2.2
204 BuildRequires: libtool
206 BuildRequires: libwrap-devel
207 BuildRequires: libxml2-devel >= 2.5.10
208 BuildRequires: libxslt-devel >= 1.1.0
209 %{?with_mhash:BuildRequires: mhash-devel}
210 %{?with_ming:BuildRequires: ming-devel >= 0.3}
211 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
212 BuildRequires: mysql-devel >= 4.0.0
213 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
214 BuildRequires: ncurses-ext-devel
215 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
216 %if %{with openssl} || %{with ldap}
217 BuildRequires: openssl-devel >= 0.9.7d
219 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
220 BuildRequires: pam-devel
221 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
222 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
223 %{?with_pgsql:BuildRequires: postgresql-devel}
224 BuildRequires: readline-devel
225 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
226 BuildRequires: rpm >= 4.4.9-56
227 BuildRequires: rpm-build >= 4.4.0
228 BuildRequires: rpmbuild(macros) >= 1.238
229 %{?with_sqlite:BuildRequires: sqlite-devel}
230 %{?with_sqlite:BuildRequires: sqlite3-devel}
231 BuildRequires: t1lib-devel
232 %{?with_tidy:BuildRequires: tidy-devel}
233 %{?with_odbc:BuildRequires: unixODBC-devel}
234 BuildRequires: zlib-devel >= 1.0.9
236 BuildRequires: apache1-devel
239 BuildRequires: apache-devel >= 2.0.52-2
240 BuildRequires: apr-devel >= 1:1.0.0
241 BuildRequires: apr-util-devel >= 1:1.0.0
244 BuildRequires: judy-devel
245 BuildRequires: libevent-devel >= 1.4.7-3
247 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
249 %define php_sysconfdir /etc/php
250 %define php_extensiondir %{_libdir}/php
251 %define _sysconfdir %{php_sysconfdir}
253 # must be in sync with source. extra check ensuring that it is so is done in %%build
254 %define php_api_version 20041225
255 %define zend_module_api 20060613
256 %define zend_extension_api 220060519
257 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
258 %define php_debug %{!?debug:0}%{?debug:1}
261 PHP is an HTML-embedded scripting language. PHP attempts to make it
262 easy for developers to write dynamically generated web pages. PHP also
263 offers built-in database integration for several commercial and
264 non-commercial database management systems, so writing a
265 database-enabled web page with PHP is fairly simple. The most common
266 use of PHP coding is probably as a replacement for CGI scripts. The
267 mod_php module enables the Apache web server to understand and process
268 the embedded PHP language in web pages. This package contains php
271 %description -l fr.UTF-8
272 PHP est un langage de script embarque dans le HTM. PHP essaye de
273 rendre simple aux developpeurs d'ecrire des pages web generees
274 dynamiquement. PHP incorpore egalement une integration avec plusieurs
275 systemes de gestion de bases de donnees commerciaux et
276 non-connerciaux, qui rent facile la creation de pages web liees avec
277 des bases de donnees. L'utilisation la plus commune de PHP est
278 probablement en remplacement de scripts CGI. Le module mod_php permet
279 au serveur web apache de comprendre et de traiter le langage PHP
280 integre dans des pages web. Ce package contient php version
283 %description -l pl.UTF-8
284 PHP jest językiem skryptowym, którego polecenia umieszcza się w
285 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
286 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
287 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
288 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
289 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
290 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
291 język PHP osadzony w stronach. Ten pakiet zawiera php w wersji
294 %description -l pt_BR.UTF-8
295 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
296 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
297 com algumas características únicas, específicas ao PHP. O objetivo da
298 linguagem é permitir que desenvolvedores web escrevam páginas
299 dinamicamente geradas de forma rápida.
301 %description -l ru.UTF-8
302 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
303 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
304 для работы с базами данных относительно просто. Наиболее популярное
305 использование PHP - замена для CGI скриптов.
307 %description -l uk.UTF-8
308 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
309 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
310 роботи з базами даних є доволі простим. Найбільш популярне
311 використання PHP - заміна для CGI скриптів.
313 %package -n apache1-mod_php
314 Summary: PHP DSO module for apache 1.3.x
315 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 1.3.x
316 Group: Development/Languages/PHP
317 Requires(triggerpostun): sed >= 4.0
318 Requires: %{name}-common = %{epoch}:%{version}-%{release}
319 Requires: apache1(EAPI) >= 1.3.33-2
320 Requires: apache1-mod_mime
321 Provides: webserver(php) = %{version}
322 Obsoletes: apache-mod_php < 1:4.1.1
325 %description -n apache1-mod_php
326 PHP as DSO module for apache 1.3.x.
328 %description -n apache1-mod_php -l pl.UTF-8
329 php jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
331 %package -n apache-mod_php
332 Summary: PHP DSO module for apache 2.x
333 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) php dla apache 2.x
334 Group: Development/Languages/PHP
335 Requires: %{name}-common = %{epoch}:%{version}-%{release}
336 Requires: apache(modules-api) = %{apache_modules_api}
337 Requires: apache-mod_mime
338 Provides: webserver(php) = %{version}
341 %description -n apache-mod_php
342 PHP as DSO module for apache 2.x.
344 %description -n apache-mod_php -l pl.UTF-8
345 php jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
348 Summary: php as FastCGI program
349 Summary(pl.UTF-8): php jako program FastCGI
350 Group: Development/Languages/PHP
351 Requires: %{name}-common = %{epoch}:%{version}-%{release}
352 Provides: webserver(php) = %{version}
355 php as FastCGI program.
357 %description fcgi -l pl.UTF-8
358 php jako program FastCGI.
361 Summary: php as CGI program
362 Summary(pl.UTF-8): php jako program CGI
363 Group: Development/Languages/PHP
364 Requires: %{name}-common = %{epoch}:%{version}-%{release}
370 %description cgi -l pl.UTF-8
371 php jako program CGI.
374 Summary: php as CLI interpreter
375 Summary(pl.UTF-8): php jako interpreter działający z linii poleceń
376 Group: Development/Languages/PHP
377 Requires: %{name}-common = %{epoch}:%{version}-%{release}
380 php as CLI interpreter.
382 %description cli -l pl.UTF-8
383 php jako interpreter działający z linii poleceń.
386 Summary: /usr/bin/php symlink
387 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
388 Group: Development/Languages/PHP
389 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
390 Obsoletes: /usr/bin/php
393 Package providing /usr/bin/php symlink to PHP CLI.
395 %description program -l pl.UTF-8
396 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
399 Summary: PHP FastCGI Process Manager
400 Group: Development/Languages/PHP
401 URL: http://php-fpm.anight.org/
402 Requires(post,preun): /sbin/chkconfig
403 Requires: %{name}-common = %{epoch}:%{version}-%{release}
404 Requires: libevent >= 1.4.7-3
407 Provides: webserver(php) = %{version}
410 PHP FastCGI Process Manager.
413 Summary: Common files needed by both apache module and CGI
414 Summary(pl.UTF-8): Wspólne pliki dla modułu apache'a i programu CGI
415 Summary(ru.UTF-8): Разделяемые библиотеки для php
416 Summary(uk.UTF-8): Бібліотеки спільного використання для php
418 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
419 Requires: glibc >= 6:2.3.5
422 Provides: php(libxml)
423 Provides: php(modules_api) = %{php_api_version}
424 Provides: php(overload)
425 %{?with_pcre:Provides: php(pcre)}
426 Provides: php(reflection)
427 Provides: php(session)
428 Provides: php(simplexml)
430 Provides: php(standard)
431 Provides: php(zend_extension_api) = %{zend_extension_api}
432 Provides: php(zend_module_api) = %{zend_module_api}
433 %{?with_pcre:Provides: php-pcre}
434 Provides: php5(debug) = %{php_debug}
435 Provides: php5(thread-safety) = %{zend_zts}
436 Obsoletes: php-pcre < 4:5.2.0
437 Obsoletes: php-pecl-domxml
438 Obsoletes: php-session < 3:4.2.1-2
439 Conflicts: php4-common < 3:4.4.4-8
440 Conflicts: rpm < 4.4.2-0.2
443 Common files needed by both apache module and CGI.
445 %description common -l pl.UTF-8
446 Wspólne pliki dla modułu apacha i programu CGI.
448 %description common -l ru.UTF-8
449 Этот пакет содержит общие файлы для разных вариантов реализации PHP
450 (самодостаточной и в качестве модуля apache).
452 %description common -l uk.UTF-8
453 Цей пакет містить спільні файли для різних варіантів реалізації PHP
454 (самодостатньої та в якості модуля apache).
457 Summary: Files for PHP modules development
458 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
459 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
460 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
461 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
462 Group: Development/Languages/PHP
463 Requires: %{name}-common = %{epoch}:%{version}-%{release}
466 %if "%{pld_release}" != "ac"
467 Requires: libtool >= 2:2.2
471 %{?with_pcre:Requires: pcre-devel >= 6.6}
473 Obsoletes: php-pear-devel
474 Obsoletes: php4-devel
477 The php-devel package lets you compile dynamic extensions to PHP.
478 Included here is the source for the PHP extensions. Instead of
479 recompiling the whole php binary to add support for, say, oracle,
480 install this package and use the new self-contained extensions
481 support. For more information, read the file
482 README.SELF-CONTAINED-EXTENSIONS.
484 %description devel -l pl.UTF-8
485 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
486 rekompilować całe php aby dodać obsługę np. oracle, można przy użyciu
487 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
488 samodzielnych rozszerzeniach można znaleźć w pliku
489 README.SELF-CONTAINED-EXTENSIONS.
491 %description devel -l pt_BR.UTF-8
492 Este pacote contém arquivos usados no desenvolvimento de programas ou
495 %description devel -l ru.UTF-8
496 Пакет php-devel дает возможность компилировать динамические расширения
497 PHP. Пакет включает исходный код этих расширений. Вместо повторной
498 компиляции бинарного файла php для добавления, например, поддержки
499 oracle, установите этот пакет для компилирования отдельных расширений.
500 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
502 %description devel -l uk.UTF-8
503 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
504 До пакету включено вихідний код для розширень. Замість повторної
505 компіляції бінарного файлу php для додання, наприклад, підтримки
506 oracle, встановіть цей пакет для компіляції окремих розширень.
507 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
510 Summary: bcmath extension module for PHP
511 Summary(pl.UTF-8): Moduł bcmath dla PHP
513 Requires: %{name}-common = %{epoch}:%{version}-%{release}
514 Provides: php(bcmath)
517 This is a dynamic shared object (DSO) for PHP that will add bc style
518 precision math functions support.
520 %description bcmath -l pl.UTF-8
521 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
522 matematycznych takich jak w programie bc.
525 Summary: Bzip2 extension module for PHP
526 Summary(pl.UTF-8): Moduł bzip2 dla PHP
528 Requires: %{name}-common = %{epoch}:%{version}-%{release}
532 This is a dynamic shared object (DSO) for PHP that will add bzip2
533 compression support to PHP.
535 %description bzip2 -l pl.UTF-8
536 Moduł PHP umożliwiający używanie kompresji bzip2.
539 Summary: Calendar extension module for PHP
540 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
542 Requires: %{name}-common = %{epoch}:%{version}-%{release}
543 Provides: php(calendar)
545 %description calendar
546 This is a dynamic shared object (DSO) for PHP that will add calendar
549 %description calendar -l pl.UTF-8
550 Moduł PHP dodający wsparcie dla kalendarza.
553 Summary: ctype extension module for PHP
554 Summary(pl.UTF-8): Moduł ctype dla PHP
556 Requires: %{name}-common = %{epoch}:%{version}-%{release}
560 This is a dynamic shared object (DSO) for PHP that will add ctype
563 %description ctype -l pl.UTF-8
564 Moduł PHP umożliwiający korzystanie z funkcji ctype.
567 Summary: curl extension module for PHP
568 Summary(pl.UTF-8): Moduł curl dla PHP
570 Requires: %{name}-common = %{epoch}:%{version}-%{release}
574 This is a dynamic shared object (DSO) for PHP that will add curl
577 %description curl -l pl.UTF-8
578 Moduł PHP umożliwiający korzystanie z biblioteki curl.
581 Summary: DBA extension module for PHP
582 Summary(pl.UTF-8): Moduł DBA dla PHP
584 Requires: %{name}-common = %{epoch}:%{version}-%{release}
588 This is a dynamic shared object (DSO) for PHP that will add flat-file
589 databases (DBA) support.
591 %description dba -l pl.UTF-8
592 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
596 Summary: DBase extension module for PHP
597 Summary(pl.UTF-8): Moduł DBase dla PHP
599 Requires: %{name}-common = %{epoch}:%{version}-%{release}
603 This is a dynamic shared object (DSO) for PHP that will add DBase
606 %description dbase -l pl.UTF-8
607 Moduł PHP ze wsparciem dla DBase.
610 Summary: DOM extension module for PHP
611 Summary(pl.UTF-8): Moduł DOM dla PHP
613 Requires: %{name}-common = %{epoch}:%{version}-%{release}
615 # it has some compatibility functions
616 Provides: php(domxml)
617 Obsoletes: php-domxml <= 3:4.3.8-1
620 This is a dynamic shared object (DSO) for PHP that will add new DOM
623 %description dom -l pl.UTF-8
624 Moduł PHP dodający nową obsługę DOM.
627 Summary: exif extension module for PHP
628 Summary(pl.UTF-8): Moduł exif dla PHP
630 Requires: %{name}-common = %{epoch}:%{version}-%{release}
634 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
635 support in image files.
637 %description exif -l pl.UTF-8
638 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
641 Summary: FDF extension module for PHP
642 Summary(pl.UTF-8): Moduł FDF dla PHP
644 Requires: %{name}-common = %{epoch}:%{version}-%{release}
648 This PHP module adds support for PDF Forms through Adobe FDFTK
651 %description fdf -l pl.UTF-8
652 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
656 Summary: Extension for safely dealing with input parameters
657 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
659 Requires: %{name}-common = %{epoch}:%{version}-%{release}
660 Provides: php(filter)
661 Obsoletes: php-pecl-filter
664 We all know that you should always check input variables, but PHP does
665 not offer really good functionality for doing this in a safe way. The
666 Input Filter extension is meant to address this issue by implementing
667 a set of filters and mechanisms that users can use to safely access
670 %description filter -l pl.UTF-8
671 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
672 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
673 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
674 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
675 mogą bezpiecznie używać do dostępu do danych.
678 Summary: FTP extension module for PHP
679 Summary(pl.UTF-8): Moduł FTP dla PHP
681 Requires: %{name}-common = %{epoch}:%{version}-%{release}
685 This is a dynamic shared object (DSO) for PHP that will add FTP
688 %description ftp -l pl.UTF-8
689 Moduł PHP dodający obsługę protokołu FTP.
692 Summary: GD extension module for PHP
693 Summary(pl.UTF-8): Moduł GD dla PHP
695 Requires: %{name}-common = %{epoch}:%{version}-%{release}
696 Requires: gd >= 2.0.28-4
698 Requires: gd(imagerotate) = 5.2.0
702 This is a dynamic shared object (DSO) for PHP that will add GD
703 support, allowing you to create and manipulate images with PHP.
705 %description gd -l pl.UTF-8
706 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
707 tworzenie i obróbkę obrazków.
710 Summary: gettext extension module for PHP
711 Summary(pl.UTF-8): Moduł gettext dla PHP
713 Requires: %{name}-common = %{epoch}:%{version}-%{release}
714 Provides: php(gettext)
717 This is a dynamic shared object (DSO) for PHP that will add gettext
720 %description gettext -l pl.UTF-8
721 Moduł PHP dodający obsługę lokalizacji przez gettext.
724 Summary: gmp extension module for PHP
725 Summary(pl.UTF-8): Moduł gmp dla PHP
727 Requires: %{name}-common = %{epoch}:%{version}-%{release}
731 This is a dynamic shared object (DSO) for PHP that will add arbitrary
732 length number support with GNU MP library.
734 %description gmp -l pl.UTF-8
735 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
736 liczbach o dowolnej długości.
739 Summary: HASH Message Digest Framework
740 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
742 Requires: %{name}-common = %{epoch}:%{version}-%{release}
744 Obsoletes: php-pecl-hash
747 Native implementations of common message digest algorithms using a
748 generic factory method.
750 %description hash -l pl.UTF-8
751 Natywne implementacje popularnych algorytmów obliczania skrótów
752 wiadomości przy użyciu wspólnego interfejsu.
755 Summary: iconv extension module for PHP
756 Summary(pl.UTF-8): Moduł iconv dla PHP
758 Requires: %{_libdir}/gconv
759 Requires: %{name}-common = %{epoch}:%{version}-%{release}
764 This is a dynamic shared object (DSO) for PHP that will add iconv
767 %description iconv -l pl.UTF-8
768 Moduł PHP dodający obsługę iconv.
771 Summary: IMAP extension module for PHP
772 Summary(pl.UTF-8): Moduł IMAP dla PHP
773 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
775 Requires: %{name}-common = %{epoch}:%{version}-%{release}
779 This is a dynamic shared object (DSO) for PHP that will add IMAP
782 %description imap -l pl.UTF-8
783 Moduł PHP dodający obsługę skrzynek IMAP.
785 %description imap -l pt_BR.UTF-8
786 Um módulo para aplicações PHP que usam IMAP.
789 Summary: InterBase/Firebird database module for PHP
790 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
792 Requires: %{name}-common = %{epoch}:%{version}-%{release}
793 Provides: php(interbase)
794 %{?with_interbase_inst:Autoreq: false}
796 %description interbase
797 This is a dynamic shared object (DSO) for PHP that will add InterBase
798 and Firebird database support.
800 %description interbase -l pl.UTF-8
801 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
804 Summary: PHP C extension for JSON serialization
805 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
807 Requires: %{name}-common = %{epoch}:%{version}-%{release}
809 Obsoletes: php-pecl-json
812 php-json is an extremely fast PHP C extension for JSON (JavaScript
813 Object Notation) serialisation.
815 %description json -l pl.UTF-8
816 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
817 (JavaScript Object Notation).
820 Summary: LDAP extension module for PHP
821 Summary(pl.UTF-8): Moduł LDAP dla PHP
822 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
824 Requires: %{name}-common = %{epoch}:%{version}-%{release}
828 This is a dynamic shared object (DSO) for PHP that will add LDAP
831 %description ldap -l pl.UTF-8
832 Moduł PHP dodający obsługę LDAP.
834 %description ldap -l pt_BR.UTF-8
835 Um módulo para aplicações PHP que usam LDAP.
838 Summary: mbstring extension module for PHP
839 Summary(pl.UTF-8): Moduł mbstring dla PHP
841 Requires: %{name}-common = %{epoch}:%{version}-%{release}
842 Provides: php(mbstring)
844 %description mbstring
845 This is a dynamic shared object (DSO) for PHP that will add multibyte
848 %description mbstring -l pl.UTF-8
849 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
852 Summary: mcrypt extension module for PHP
853 Summary(pl.UTF-8): Moduł mcrypt dla PHP
855 Requires: %{name}-common = %{epoch}:%{version}-%{release}
856 Provides: php(mcrypt)
859 This is a dynamic shared object (DSO) for PHP that will add mcrypt
862 %description mcrypt -l pl.UTF-8
863 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
866 Summary: mhash extension module for PHP
867 Summary(pl.UTF-8): Moduł mhash dla PHP
869 Requires: %{name}-common = %{epoch}:%{version}-%{release}
873 This is a dynamic shared object (DSO) for PHP that will add mhash
876 %description mhash -l pl.UTF-8
877 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
880 Summary: mime_magic extension module for PHP
881 Summary(pl.UTF-8): Moduł mime_magic dla PHP
883 Requires: %{name}-common = %{epoch}:%{version}-%{release}
884 Requires: /usr/share/file/magic.mime
885 Provides: php(mime_magic)
887 %description mime_magic
888 This PHP module adds support for MIME type lookup via file magic
889 numbers using magic.mime database.
891 %description mime_magic -l pl.UTF-8
892 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
893 znaczników plików z użyciem bazy danych magic.mime.
896 Summary: ming extension module for PHP
897 Summary(pl.UTF-8): Moduł ming dla PHP
899 Requires: %{name}-common = %{epoch}:%{version}-%{release}
900 Requires: ming >= 0.3
904 This is a dynamic shared object (DSO) for PHP that will add ming
905 (Flash - .swf files) support.
907 %description ming -l pl.UTF-8
908 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
912 Summary: MS SQL extension module for PHP
913 Summary(pl.UTF-8): Moduł MS SQL dla PHP
915 Requires: %{name}-common = %{epoch}:%{version}-%{release}
919 This is a dynamic shared object (DSO) for PHP that will add MS SQL
920 databases support through FreeTDS library.
922 %description mssql -l pl.UTF-8
923 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
927 Summary: MySQL database module for PHP
928 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
929 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
931 Requires: %{name}-common = %{epoch}:%{version}-%{release}
935 This is a dynamic shared object (DSO) for PHP that will add MySQL
938 %description mysql -l pl.UTF-8
939 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
941 %description mysql -l pt_BR.UTF-8
942 Um módulo para aplicações PHP que usam bancos de dados MySQL.
945 Summary: MySQLi module for PHP
946 Summary(pl.UTF-8): Moduł MySQLi dla PHP
948 Requires: %{name}-common = %{epoch}:%{version}-%{release}
949 Requires: mysql-libs >= 4.1.0
950 Provides: php(mysqli)
953 This is a dynamic shared object (DSO) for PHP that will add MySQLi
954 (Improved MySQL) support. The difference between it and mysql module
955 is that it provides access to functionality of MySQL 4.1 and above.
957 %description mysqli -l pl.UTF-8
958 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
959 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
960 MySQL w wersji 4.1 i nowszych.
963 Summary: ncurses module for PHP
964 Summary(pl.UTF-8): Moduł ncurses dla PHP
966 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
967 Provides: php(ncurses)
970 This PHP module adds support for ncurses functions (only for cli and
973 %description ncurses -l pl.UTF-8
974 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
977 Summary: Oracle 8+ database module for PHP
978 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
980 Requires: %{name}-common = %{epoch}:%{version}-%{release}
985 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
986 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
988 %description oci8 -l pl.UTF-8
989 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
990 poprzez interfejs Oracle8 Call-Interface (OCI8).
993 Summary: ODBC extension module for PHP
994 Summary(pl.UTF-8): Moduł ODBC dla PHP
995 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
997 Requires: %{name}-common = %{epoch}:%{version}-%{release}
998 Requires: unixODBC >= 2.1.1-3
1002 This is a dynamic shared object (DSO) for PHP that will add ODBC
1005 %description odbc -l pl.UTF-8
1006 Moduł PHP ze wsparciem dla ODBC.
1008 %description odbc -l pt_BR.UTF-8
1009 Um módulo para aplicações PHP que usam ODBC.
1012 Summary: OpenSSL extension module for PHP
1013 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1015 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1016 Provides: php(openssl)
1018 %description openssl
1019 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1022 Warning: this is an experimental module.
1024 %description openssl -l pl.UTF-8
1025 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1027 Uwaga: to jest moduł eksperymentalny.
1030 Summary: Process Control extension module for PHP
1031 Summary(pl.UTF-8): Moduł Process Control dla PHP
1033 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1034 Provides: php(pcntl)
1037 This is a dynamic shared object (DSO) for PHP that will add process
1038 spawning and control support. It supports functions like fork(),
1039 waitpid(), signal() etc.
1041 Warning: this is an experimental module. Also, don't use it in
1042 webserver environment!
1044 %description pcntl -l pl.UTF-8
1045 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1046 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1048 Uwaga: to jest moduł eksperymentalny. Ponadto nie jest przeznaczony do
1049 używania z serwerem WWW - nie próbuj tego!
1052 Summary: PHP Data Objects (PDO)
1053 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1055 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1057 Obsoletes: php-pecl-PDO
1060 This is a dynamic shared object (DSO) for PHP that will add PDO
1063 %description pdo -l pl.UTF-8
1064 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1067 Summary: PHP Data Objects (PDO) FreeTDS support
1068 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1070 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1071 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1072 Provides: php(dblib)
1074 %description pdo-dblib
1075 This is a dynamic shared object (DSO) for PHP that will add PDO
1078 %description pdo-dblib -l pl.UTF-8
1079 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1082 %package pdo-firebird
1083 Summary: PHP Data Objects (PDO) Firebird support
1084 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1086 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1087 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1088 Provides: php(pdo-firebird)
1089 Obsoletes: php-pecl-PDO_FIREBIRD
1091 %description pdo-firebird
1092 This is a dynamic shared object (DSO) for PHP that will add PDO
1095 %description pdo-firebird -l pl.UTF-8
1096 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1100 Summary: PHP Data Objects (PDO) MySQL support
1101 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1103 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1104 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1105 Provides: php(pdo-mysql)
1106 Obsoletes: php-pecl-PDO_MYSQL
1108 %description pdo-mysql
1109 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1112 %description pdo-mysql -l pl.UTF-8
1113 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1117 Summary: PHP Data Objects (PDO) Oracle support
1118 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1120 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1121 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1122 Provides: php(pdo-oci)
1123 Obsoletes: php-pecl-PDO_OCI
1125 %description pdo-oci
1126 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1129 %description pdo-oci -l pl.UTF-8
1130 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1134 Summary: PHP Data Objects (PDO) ODBC support
1135 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1137 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1138 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1139 Provides: php(pdo-odbc)
1140 Obsoletes: php-pecl-PDO_ODBC
1142 %description pdo-odbc
1143 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1146 %description pdo-odbc -l pl.UTF-8
1147 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1151 Summary: PHP Data Objects (PDO) PostgreSQL support
1152 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1154 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1155 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1156 Provides: php(pdo-pgsql)
1157 Provides: php-pecl-PDO_PGSQL
1158 Obsoletes: php-pecl-PDO_PGSQL
1160 %description pdo-pgsql
1161 This is a dynamic shared object (DSO) for PHP that will add PDO
1164 %description pdo-pgsql -l pl.UTF-8
1165 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1169 Summary: PHP Data Objects (PDO) SQLite support
1170 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1172 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1173 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1174 Provides: php(pdo-sqlite)
1175 Obsoletes: php-pecl-PDO_SQLITE
1177 %description pdo-sqlite
1178 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1181 %description pdo-sqlite -l pl.UTF-8
1182 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1186 Summary: PostgreSQL database module for PHP
1187 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1189 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1190 Provides: php(pgsql)
1193 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1196 %description pgsql -l pl.UTF-8
1197 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1199 %description pgsql -l pt_BR.UTF-8
1200 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1203 Summary: POSIX extension module for PHP
1204 Summary(pl.UTF-8): Moduł POSIX dla PHP
1206 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1207 Provides: php(posix)
1210 This is a dynamic shared object (DSO) for PHP that will add POSIX
1211 functions support to PHP.
1213 %description posix -l pl.UTF-8
1214 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1217 Summary: pspell extension module for PHP
1218 Summary(pl.UTF-8): Moduł pspell dla PHP
1220 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1221 Provides: php(pspell)
1224 This is a dynamic shared object (DSO) for PHP that will add pspell
1225 support to PHP. It allows to check the spelling of a word and offer
1228 %description pspell -l pl.UTF-8
1229 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1230 sprawdzanie pisowni słowa i sugerowanie poprawek.
1233 Summary: readline extension module for PHP
1234 Summary(pl.UTF-8): Moduł readline dla PHP
1236 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1237 Provides: php(readline)
1239 %description readline
1240 This PHP module adds support for readline functions (only for cli and
1243 %description readline -l pl.UTF-8
1244 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1247 Summary: recode extension module for PHP
1248 Summary(pl.UTF-8): Moduł recode dla PHP
1250 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1251 Requires: recode >= 3.5d-3
1252 Provides: php(recode)
1255 This is a dynamic shared object (DSO) for PHP that will add recode
1258 %description recode -l pl.UTF-8
1259 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1263 Summary: Shared Memory Operations extension module for PHP
1264 Summary(pl.UTF-8): Moduł shmop dla PHP
1266 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1267 Provides: php(shmop)
1270 This is a dynamic shared object (DSO) for PHP that will add Shared
1271 Memory Operations support.
1273 Warning: this is an experimental module.
1275 %description shmop -l pl.UTF-8
1276 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1278 Uwaga: to jest moduł eksperymentalny.
1281 Summary: Simple XML extension module for PHP
1282 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1284 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1285 Provides: php(simplexml)
1287 %description simplexml
1288 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1291 %description simplexml -l pl.UTF-8
1292 Moduł PHP dodający obsługę prostego XML-a.
1295 Summary: SNMP extension module for PHP
1296 Summary(pl.UTF-8): Moduł SNMP dla PHP
1298 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1299 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1303 This is a dynamic shared object (DSO) for PHP that will add SNMP
1306 %description snmp -l pl.UTF-8
1307 Moduł PHP dodający obsługę SNMP.
1310 Summary: soap extension module for PHP
1311 Summary(pl.UTF-8): Moduł soap dla PHP
1313 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1317 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1320 %description soap -l pl.UTF-8
1321 Moduł PHP dodający obsługę SOAP/WSDL.
1324 Summary: sockets extension module for PHP
1325 Summary(pl.UTF-8): Moduł socket dla PHP
1327 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1328 Provides: php(sockets)
1330 %description sockets
1331 This is a dynamic shared object (DSO) for PHP that will add sockets
1334 Warning: this is an experimental module.
1336 %description sockets -l pl.UTF-8
1337 Moduł PHP dodający obsługę gniazdek.
1339 Uwaga: to jest moduł eksperymentalny.
1342 Summary: SQLite extension module for PHP
1343 Summary(pl.UTF-8): Moduł SQLite dla PHP
1345 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1346 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1347 Provides: php(sqlite)
1350 SQLite is a C library that implements an embeddable SQL database
1351 engine. Programs that link with the SQLite library can have SQL
1352 database access without running a separate RDBMS process.
1354 SQLite is not a client library used to connect to a big database
1355 server. SQLite is the server. The SQLite library reads and writes
1356 directly to and from the database files on disk.
1358 %description sqlite -l pl.UTF-8
1359 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1360 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1361 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1364 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1365 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1366 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1370 Summary: Sybase DB extension module for PHP
1371 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1373 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1374 Provides: php(sybase)
1375 Obsoletes: php-sybase-ct
1376 Conflicts: php-sybase-ct
1379 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1380 MS SQL databases support through SYBDB library. Currently Sybase
1381 module is not maintained. Using Sybase-CT module is recommended
1384 %description sybase -l pl.UTF-8
1385 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1386 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1387 Zaleca się używanie modułu Sybase-CT.
1390 Summary: Sybase-CT extension module for PHP
1391 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1393 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1394 Provides: php(sybase-ct)
1395 Obsoletes: php-sybase
1396 Conflicts: php-sybase
1398 %description sybase-ct
1399 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1400 MS SQL databases support through CT-lib.
1402 %description sybase-ct -l pl.UTF-8
1403 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1407 Summary: SysV msg extension module for PHP
1408 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1410 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1411 Provides: php(sysvmsg)
1413 %description sysvmsg
1414 This is a dynamic shared object (DSO) for PHP that will add SysV
1415 message queues support.
1417 %description sysvmsg -l pl.UTF-8
1418 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1421 Summary: SysV sem extension module for PHP
1422 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1424 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1425 Provides: php(sysvsem)
1427 %description sysvsem
1428 This is a dynamic shared object (DSO) for PHP that will add SysV
1431 %description sysvsem -l pl.UTF-8
1432 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1435 Summary: SysV shm extension module for PHP
1436 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1438 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1439 Provides: php(sysvshm)
1441 %description sysvshm
1442 This is a dynamic shared object (DSO) for PHP that will add SysV
1443 Shared Memory support.
1445 %description sysvshm -l pl.UTF-8
1446 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1449 Summary: Tidy extension module for PHP
1450 Summary(pl.UTF-8): Moduł Tidy dla PHP
1452 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1457 This is a dynamic shared object (DSO) for PHP that will add Tidy
1460 %description tidy -l pl.UTF-8
1461 Moduł PHP umożliwiający korzystanie z tidy.
1464 Summary: tokenizer extension module for PHP
1465 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1467 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1468 Provides: php(tokenizer)
1470 %description tokenizer
1471 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1474 %description tokenizer -l pl.UTF-8
1475 Moduł PHP dodający obsługę tokenizera do PHP.
1478 Summary: wddx extension module for PHP
1479 Summary(pl.UTF-8): Moduł wddx dla PHP
1481 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1482 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1483 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1487 This is a dynamic shared object (DSO) for PHP that will add wddx
1490 %description wddx -l pl.UTF-8
1491 Moduł PHP umożliwiający korzystanie z wddx.
1494 Summary: XML extension module for PHP
1495 Summary(pl.UTF-8): Moduł XML dla PHP
1497 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1501 This is a dynamic shared object (DSO) for PHP that will add XML
1502 support. This extension lets you create XML parsers and then define
1503 handlers for different XML events.
1505 %description xml -l pl.UTF-8
1506 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1507 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1508 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1511 Summary: XML Reader extension module for PHP
1512 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1514 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1515 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1516 Provides: php(xmlreader)
1518 %description xmlreader
1519 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1520 support. The XMLReader extension is an XML Pull parser. The reader
1521 acts as a cursor going forward on the document stream and stopping at
1522 each node on the way.
1524 %description xmlreader -l pl.UTF-8
1525 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1526 działa jako kursor przechodzący przez strumień dokumentu i
1527 zatrzymujący się na każdym węźle po drodze.
1530 Summary: xmlrpc extension module for PHP
1531 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1533 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1534 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1535 Provides: php(xmlrpc)
1538 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1541 Warning: this is an experimental module.
1543 %description xmlrpc -l pl.UTF-8
1544 Moduł PHP dodający obsługę XMLRPC.
1546 Uwaga: to jest moduł eksperymentalny.
1549 Summary: Fast, non-cached, forward-only means to write XML data
1550 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1552 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1553 Provides: php(xmlwriter)
1554 Obsoletes: php-pecl-xmlwriter
1556 %description xmlwriter
1557 This extension wraps the libxml xmlWriter API. Represents a writer
1558 that provides a non-cached, forward-only means of generating streams
1559 or files containing XML data.
1561 %description xmlwriter -l pl.UTF-8
1562 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1563 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1564 plików zawierających dane XML.
1567 Summary: xsl extension module for PHP
1568 Summary(pl.UTF-8): Moduł xsl dla PHP
1570 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1571 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1572 Requires: libxslt >= 1.0.18
1573 # actually not true, functionality is similar, but API differs
1575 Obsoletes: php-xslt <= 3:4.3.8-1
1578 This is a dynamic shared object (DSO) for PHP that will add new XSL
1579 support (using libxslt).
1581 %description xsl -l pl.UTF-8
1582 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1585 Summary: Zip management extension
1586 Summary(pl.UTF-8): Zarządzanie archiwami zip
1588 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1590 Obsoletes: php-pecl-zip
1593 Zip is an extension to create, modify and read zip files.
1595 %description zip -l pl.UTF-8
1596 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1597 odczyt archiwów zip.
1600 Summary: Zlib extension module for PHP
1601 Summary(pl.UTF-8): Moduł zlib dla PHP
1603 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1607 This is a dynamic shared object (DSO) for PHP that will add zlib
1608 compression support to PHP.
1610 %description zlib -l pl.UTF-8
1611 Moduł PHP umożliwiający używanie kompresji zlib.
1626 cp php.ini-dist php.ini
1628 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1646 %{?with_versioning:%patch26 -p1}
1648 %{__tar} jxf %{SOURCE9}
1649 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1650 mv $v/$v gentoo-patchset
1651 rm -f gentoo-patchset/001_tests-ignore-php-ini.patch
1652 rm -f gentoo-patchset/002_run-tests-ignore-php-ini.patch
1653 rm -f gentoo-patchset/005_stream_context_set_params-crash.patch
1654 rm -f gentoo-patchset/006_PDORow-crash.patch
1655 rm -f gentoo-patchset/007_dom-setAttributeNode-crash.patch
1656 rm -f gentoo-patchset/008_imap-bufferoverflows.patch
1657 rm -f gentoo-patchset/009_array-function-crashes.patch
1658 rm -f gentoo-patchset/010_ticks-zts-crashes.patch
1659 rm -f gentoo-patchset/011_ze-number-overflow-crash.patch
1660 rm -f gentoo-patchset/012_pcre-integer-overflow.patch
1661 rm -f gentoo-patchset/013_GNU_SOURCE-string.c.patch
1662 rm -f gentoo-patchset/014_explode-overflow.patch
1663 rm -f gentoo-patchset/015_CVE-2008-2665-wrapper-safemode-bypass.patch
1664 rm -f gentoo-patchset/016_cgi-doubledot-filename-DoS.patch
1665 rm -f gentoo-patchset/017_xmlrpc-invalid-callback-crash.patch
1666 rm -f gentoo-patchset/018_gd-imageloadfont-overflows.patch
1667 rm -f gentoo-patchset/019_new-memory-corruption.patch
1668 rm -f gentoo-patchset/020_gd-noise-gbug234459.patch
1669 rm -f gentoo-patchset/021_snmp-memleaks-gbug231528.patch
1670 for a in gentoo-patchset/*.patch; do
1683 %if "%{pld_release}" != "ac"
1688 # mysql default charset for mysql/mysql/pdo-mysql extensions
1705 # conflict seems to be resolved by recode patches
1706 rm -f ext/recode/config9.m4
1708 # remove all bundled libraries not to link with them accidentally
1709 #rm -rf ext/sqlite/libsqlite
1710 #rm -rf ext/bcmath/libbcmath
1711 #rm -rf ext/date/lib
1712 #rm -rf ext/dba/libcdb
1713 #rm -rf ext/dba/libflatfile
1714 #rm -rf ext/dba/libinifile
1715 #rm -rf ext/gd/libgd
1716 #rm -rf ext/mbstring/libmbfl
1717 #rm -rf ext/mbstring/oniguruma
1718 rm -rf ext/pcre/pcrelib
1719 rm -rf ext/pdo_sqlite/sqlite
1720 #rm -rf ext/soap/interop
1721 %if %{with system_xmlrpc_epi}
1722 rm -rf ext/xmlrpc/libxmlrpc
1726 # this test hungs on ac-ppc
1727 #mv ext/reflection/tests/007.php{,ignore}
1728 # this test gets killed by itself
1729 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1732 cp -f Zend/LICENSE{,.Zend}
1735 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1736 if [ $API != %{php_api_version} ]; then
1737 echo "Set %%define php_api_version to $API and re-run."
1741 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1742 if [ $API != %{zend_module_api} ]; then
1743 echo "Set %%define zend_module_api to $API and re-run."
1747 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1748 if [ $API != %{zend_extension_api} ]; then
1749 echo "Set %%define zend_extension_api to $API and re-run."
1753 export EXTENSION_DIR="%{php_extensiondir}"
1754 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1755 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1758 cp -f /usr/share/automake/config.* .
1762 export PROG_SENDMAIL="/usr/lib/sendmail"
1779 for sapi in $sapis; do
1781 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1786 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
1789 sapi_args='--disable-cgi'
1792 sapi_args='--disable-cli --enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect'
1795 sapi_args='--disable-cli --enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect --enable-fpm'
1798 ver=$(rpm -q --qf '%{V}' apache1-devel)
1799 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
1802 ver=$(rpm -q --qf '%{V}' apache-devel)
1803 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
1809 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1810 --cache-file=config.cache \
1812 --with-libdir=%{_lib} \
1813 --with-config-file-path=%{_sysconfdir} \
1814 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1815 --with-exec-dir=%{_bindir} \
1816 --%{!?debug:dis}%{?debug:en}able-debug \
1817 %{?with_zts:--enable-maintainer-zts} \
1818 --enable-inline-optimization \
1819 --enable-bcmath=shared \
1820 --enable-calendar=shared \
1821 --enable-ctype=shared \
1822 --enable-dba=shared \
1823 --enable-dom=shared \
1824 --enable-exif=shared \
1825 --enable-ftp=shared \
1826 --enable-gd-native-ttf \
1827 --enable-gd-jis-conv \
1829 --enable-magic-quotes \
1830 --enable-mbstring=shared,all \
1832 --enable-pcntl=shared \
1833 --enable-pdo=shared \
1834 --enable-json=shared \
1835 --enable-hash=shared \
1836 --enable-xmlwriter=shared \
1838 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
1839 --with-fpm-log=/var/log/fpm.log \
1840 --with-fpm-pid=/var/run/php/fpm.pid \
1842 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
1843 --with-pdo-dblib=shared \
1845 %if %{with interbase} && !%{with interbase_inst}
1846 --with-pdo-firebird=shared,/usr \
1848 --with-pdo-mysql=shared \
1849 %{?with_oci8:--with-pdo-oci=shared} \
1850 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1851 %{?with_pgsql:--with-pdo-pgsql=shared} \
1852 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1853 --enable-posix=shared \
1854 --enable-reflection \
1857 --enable-shmop=shared \
1858 --enable-simplexml \
1859 --enable-sysvmsg=shared \
1860 --enable-sysvsem=shared \
1861 --enable-sysvshm=shared \
1862 --enable-trans-sid \
1863 --enable-safe-mode \
1864 --enable-soap=shared \
1865 --enable-sockets=shared \
1866 --enable-tokenizer=shared \
1867 --enable-ucd-snmp-hack \
1868 %{?with_wddx:--enable-wddx=shared} \
1869 --enable-xml=shared \
1870 --enable-xmlreader=shared \
1872 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1874 --enable-dbase=shared \
1876 --with-libexpat-dir=shared,/usr \
1878 --without-libexpat-dir \
1880 %{?with_fdf:--with-fdftk=shared} \
1881 --with-iconv=shared \
1882 --with-freetype-dir=shared \
1883 --with-gettext=shared \
1884 --with-gd=shared,/usr \
1887 %{?with_imap:--with-imap=shared --with-imap-ssl} \
1888 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1889 --with-jpeg-dir=/usr \
1890 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1891 --with-mcrypt=shared \
1892 %{?with_mhash:--with-mhash=shared} \
1893 %{?with_mime_magic:--with-mime-magic=shared,/usr/share/file/magic.mime}%{!?with_mime_magic:--disable-mime-magic} \
1894 %{?with_ming:--with-ming=shared} \
1895 %{?with_mm:--with-mm} \
1896 %{?with_mssql:--with-mssql=shared} \
1897 --with-mysql=shared,/usr \
1898 --with-mysql-sock=/var/lib/mysql/mysql.sock \
1899 %{?with_mysqli:--with-mysqli=shared} \
1900 --with-ncurses=shared \
1901 %{?with_oci8:--with-oci8=shared} \
1902 %{?with_openssl:--with-openssl=shared} \
1904 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=/usr} \
1905 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
1906 --with-pear=%{php_pear_dir} \
1907 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1908 --with-png-dir=/usr \
1909 %{?with_pspell:--with-pspell=shared} \
1910 --with-readline=shared \
1911 %{?with_recode:--with-recode=shared} \
1913 %{?with_snmp:--with-snmp=shared} \
1914 %{?with_sybase:--with-sybase=shared,/usr} \
1915 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1916 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1917 --with-t1lib=shared \
1918 %{?with_tidy:--with-tidy=shared} \
1919 %{?with_odbc:--with-unixODBC=shared,/usr} \
1920 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
1922 --with-zlib=shared \
1923 --with-zlib-dir=shared,/usr \
1924 --enable-zip=shared,/usr \
1926 cp -f Makefile Makefile.$sapi
1927 cp -f main/php_config.h php_config.h.$sapi
1928 cp -f config.log config.log.$sapi
1931 # must make this first, so modules can link against it.
1932 %{__make} libphp_common.la
1933 %{__make} build-modules
1936 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
1940 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
1944 cp -af php_config.h.cgi main/php_config.h
1945 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1946 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
1947 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
1950 cp -af php_config.h.cli main/php_config.h
1951 %{__make} sapi/cli/php -f Makefile.cli
1952 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
1956 cp -af php_config.h.fcgi main/php_config.h
1957 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1958 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
1959 cp -r sapi/cgi sapi/fcgi
1960 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
1964 cp -af php_config.h.fpm main/php_config.h
1965 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1966 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
1967 cp -r sapi/cgi sapi/fpm
1968 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
1972 # Run tests, using the CLI SAPI
1973 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
1974 unset TZ LANG LC_ALL || :
1976 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
1980 rm -rf $RPM_BUILD_ROOT
1981 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
1982 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1983 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
1984 $RPM_BUILD_ROOT%{_mandir}/man1 \
1986 # install the apache modules' files
1987 %{__make} install-headers install-build install-modules install-programs \
1988 INSTALL_ROOT=$RPM_BUILD_ROOT
1990 # install apache1 DSO module
1992 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
1995 # install apache2 DSO module
1997 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2000 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2001 # fix install paths, avoid evil rpaths
2002 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2004 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2007 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
2011 libtool --silent --mode=install install sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
2016 libtool --silent --mode=install install sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fpm
2017 %{__make} install-fpm -f Makefile.fpm \
2018 INSTALL_ROOT=$RPM_BUILD_ROOT
2019 install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/php-fpm
2020 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2021 install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/php-fpm
2025 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
2026 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
2027 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
2029 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
2031 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2033 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2035 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2036 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2037 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2040 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2041 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2042 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2046 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2047 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2048 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2051 # Generate stub .ini files for each subpackage
2052 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2053 generate_inifiles() {
2054 for so in modules/*.so; do
2055 mod=$(basename $so .so)
2056 conf="%{_sysconfdir}/conf.d/$mod.ini"
2057 # xml needs to be loaded before wddx
2058 [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_$mod.ini"
2060 cat > $RPM_BUILD_ROOT$conf <<-EOF
2061 ; Enable $mod extension module
2068 # per SAPI ini directories
2069 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2072 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,pcntl,readline}.ini,cli.d}
2074 # use system automake and {lib,sh}tool
2075 %if "%{pld_release}" != "ac"
2076 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2077 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2078 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2080 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2082 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2083 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2085 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2087 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2088 # isn't installed by install-headers make target, we do it manually here.
2089 # this header file is required by e.g. filter PECL extension
2090 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2091 # for php-pecl-mailparse
2092 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2093 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2096 rm -rf $RPM_BUILD_ROOT
2098 %post -n apache1-mod_php
2099 if [ "$1" = "1" ]; then
2100 %service -q apache restart
2103 %postun -n apache1-mod_php
2104 if [ "$1" = "0" ]; then
2105 %service -q apache restart
2108 %post -n apache-mod_php
2109 if [ "$1" = "1" ]; then
2110 %service -q httpd restart
2113 %postun -n apache-mod_php
2114 if [ "$1" = "0" ]; then
2115 %service -q httpd restart
2119 /sbin/chkconfig --add php-fpm
2120 %service php-fpm restart
2123 if [ "$1" = 0 ]; then
2124 %service php-fpm stop
2125 /sbin/chkconfig --del php-fpm
2128 %post common -p /sbin/ldconfig
2129 %postun common -p /sbin/ldconfig
2132 # minimizing apache restarts logics. we restart webserver:
2134 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2135 # 2. first install of extension (post: $1 = 1)
2136 # 2. uninstall of extension (postun: $1 == 0)
2138 # the strict internal deps between extensions (and apache modules) and
2139 # common package are very important for all this to work.
2141 # restart webserver at the end of transaction
2142 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2143 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2146 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2148 /^AddType application\/x-httpd-php \.php/s,^,#,
2149 /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2150 ' /etc/apache/apache.conf
2151 %service -q apache restart
2155 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
2156 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2157 if [ -f %{php_sysconfdir}/php-apache.ini.rpmsave ]; then
2158 cp -f %{php_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2159 mv -f %{php_sysconfdir}/php-apache.ini.rpmsave %{php_sysconfdir}/php-apache2handler.ini
2163 # common macros called at extension post/postun scriptlet
2164 %define extension_scripts() \
2166 if [ "$1" = "1" ]; then \
2167 %php_webserver_restart \
2171 if [ "$1" = "0" ]; then \
2172 %php_webserver_restart \
2176 # extension scripts defines
2177 %extension_scripts bcmath
2178 %extension_scripts bzip2
2179 %extension_scripts calendar
2180 %extension_scripts ctype
2181 %extension_scripts curl
2182 %extension_scripts dba
2183 %extension_scripts dbase
2184 %extension_scripts dom
2185 %extension_scripts exif
2186 %extension_scripts fdf
2187 %extension_scripts filter
2188 %extension_scripts ftp
2189 %extension_scripts gd
2190 %extension_scripts gettext
2191 %extension_scripts gmp
2192 %extension_scripts hash
2193 %extension_scripts iconv
2194 %extension_scripts imap
2195 %extension_scripts interbase
2196 %extension_scripts json
2197 %extension_scripts ldap
2198 %extension_scripts mbstring
2199 %extension_scripts mcrypt
2200 %extension_scripts mhash
2201 %extension_scripts mime_magic
2202 %extension_scripts ming
2203 %extension_scripts mssql
2204 %extension_scripts mysql
2205 %extension_scripts mysqli
2206 %extension_scripts oci8
2207 %extension_scripts odbc
2208 %extension_scripts openssl
2209 %extension_scripts pdo-dblib
2210 %extension_scripts pdo-firebird
2211 %extension_scripts pdo-mysql
2212 %extension_scripts pdo-odbc
2213 %extension_scripts pdo-pgsql
2214 %extension_scripts pdo-sqlite
2215 %extension_scripts pgsql
2216 %extension_scripts posix
2217 %extension_scripts pspell
2218 %extension_scripts recode
2219 %extension_scripts shmop
2220 %extension_scripts snmp
2221 %extension_scripts soap
2222 %extension_scripts sockets
2223 %extension_scripts sqlite
2224 %extension_scripts sybase
2225 %extension_scripts sybase-ct
2226 %extension_scripts sysvmsg
2227 %extension_scripts sysvsem
2228 %extension_scripts sysvshm
2229 %extension_scripts tidy
2230 %extension_scripts tokenizer
2231 %extension_scripts wddx
2232 %extension_scripts xml
2233 %extension_scripts xmlreader
2234 %extension_scripts xmlrpc
2235 %extension_scripts xmlwriter
2236 %extension_scripts xsl
2237 %extension_scripts zip
2238 %extension_scripts zlib
2240 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2241 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{php_sysconfdir}/php.ini
2243 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2244 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{php_sysconfdir}/php.ini
2246 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2247 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{php_sysconfdir}/php.ini
2249 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2250 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{php_sysconfdir}/php.ini
2252 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2253 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{php_sysconfdir}/php.ini
2255 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2256 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{php_sysconfdir}/php.ini
2258 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
2259 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{php_sysconfdir}/php.ini
2261 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2262 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{php_sysconfdir}/php.ini
2264 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2265 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{php_sysconfdir}/php.ini
2267 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2268 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{php_sysconfdir}/php.ini
2270 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2271 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{php_sysconfdir}/php.ini
2273 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2274 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{php_sysconfdir}/php.ini
2276 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2277 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{php_sysconfdir}/php.ini
2279 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2280 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{php_sysconfdir}/php.ini
2282 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2283 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{php_sysconfdir}/php.ini
2285 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2286 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{php_sysconfdir}/php.ini
2288 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2289 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{php_sysconfdir}/php.ini
2291 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2292 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{php_sysconfdir}/php.ini
2294 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2295 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{php_sysconfdir}/php.ini
2297 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2298 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{php_sysconfdir}/php.ini
2300 %triggerun mhash -- %{name}-mhash < 4:5.0.4-9.1
2301 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{php_sysconfdir}/php.ini
2303 %triggerun mime_magic -- %{name}-mime_magic < 4:5.0.4-9.1
2304 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{php_sysconfdir}/php.ini
2306 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
2307 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{php_sysconfdir}/php.ini
2309 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2310 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{php_sysconfdir}/php.ini
2312 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2313 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{php_sysconfdir}/php.ini
2315 %triggerun ncurses -- %{name}-ncurses < 4:5.1.2-9.5
2316 if [ -f %{php_sysconfdir}/php-cgi.ini ]; then
2317 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{php_sysconfdir}/php-cgi.ini
2319 if [ -f %{php_sysconfdir}/php-cli.ini ]; then
2320 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{php_sysconfdir}/php-cli.ini
2323 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2324 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{php_sysconfdir}/php.ini
2326 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2327 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{php_sysconfdir}/php.ini
2329 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2330 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{php_sysconfdir}/php.ini
2332 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2333 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{php_sysconfdir}/php.ini
2335 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2336 if [ -f %{php_sysconfdir}/php-cgi.ini ]; then
2337 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{php_sysconfdir}/php-cgi.ini
2339 if [ -f %{php_sysconfdir}/php-cli.ini ]; then
2340 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{php_sysconfdir}/php-cli.ini
2343 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2344 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{php_sysconfdir}/php.ini
2346 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2347 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{php_sysconfdir}/php.ini
2349 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2350 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{php_sysconfdir}/php.ini
2352 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2353 if [ -f %{php_sysconfdir}/php-cgi.ini ]; then
2354 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{php_sysconfdir}/php-cgi.ini
2356 if [ -f %{php_sysconfdir}/php-cli.ini ]; then
2357 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{php_sysconfdir}/php-cli.ini
2360 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2361 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{php_sysconfdir}/php.ini
2363 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2364 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{php_sysconfdir}/php.ini
2366 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2367 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{php_sysconfdir}/php.ini
2369 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2370 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{php_sysconfdir}/php.ini
2372 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2373 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{php_sysconfdir}/php.ini
2375 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2376 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{php_sysconfdir}/php.ini
2378 %triggerun sybase -- %{name}-sybase < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{php_sysconfdir}/php.ini
2381 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{php_sysconfdir}/php.ini
2384 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{php_sysconfdir}/php.ini
2387 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{php_sysconfdir}/php.ini
2390 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{php_sysconfdir}/php.ini
2393 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{php_sysconfdir}/php.ini
2396 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{php_sysconfdir}/php.ini
2399 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{php_sysconfdir}/php.ini
2402 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{php_sysconfdir}/php.ini
2405 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{php_sysconfdir}/php.ini
2408 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2409 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{php_sysconfdir}/php.ini
2412 %files -n apache1-mod_php
2413 %defattr(644,root,root,755)
2414 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2415 %dir %{_sysconfdir}/apache.d
2416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2417 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2421 %files -n apache-mod_php
2422 %defattr(644,root,root,755)
2423 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2424 %dir %{_sysconfdir}/apache2handler.d
2425 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2426 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2431 %defattr(644,root,root,755)
2432 %doc sapi/cgi/README.FastCGI
2433 %dir %{_sysconfdir}/cgi-fcgi.d
2434 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2435 %attr(755,root,root) %{_bindir}/php.fcgi
2439 %defattr(644,root,root,755)
2440 %dir %{_sysconfdir}/cgi.d
2441 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2442 %attr(755,root,root) %{_bindir}/php.cgi
2445 %defattr(644,root,root,755)
2446 %dir %{_sysconfdir}/cli.d
2447 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2448 %attr(755,root,root) %{_bindir}/php.cli
2449 %{_mandir}/man1/php.1*
2450 %{_mandir}/man1/php.cli.1*
2453 %defattr(644,root,root,755)
2454 %attr(755,root,root) %{_bindir}/php
2458 %defattr(644,root,root,755)
2459 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2460 %attr(755,root,root) %{_bindir}/php.fpm
2461 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/php-fpm
2462 %attr(754,root,root) /etc/rc.d/init.d/php-fpm
2466 %defattr(644,root,root,755)
2468 %doc CREDITS Zend/ZEND_CHANGES
2469 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2470 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2473 %dir %{_sysconfdir}/conf.d
2474 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2475 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2476 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2477 %dir %{php_extensiondir}
2479 %doc ext/session/mod_files.sh
2482 %defattr(644,root,root,755)
2483 %doc README.UNIX-BUILD-SYSTEM
2484 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2485 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2486 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2487 %attr(755,root,root) %{_bindir}/phpize
2488 %attr(755,root,root) %{_bindir}/php-config
2489 %attr(755,root,root) %{_libdir}/libphp_common.so
2490 %{_libdir}/libphp_common.la
2492 %{_libdir}/php/build
2493 %{_mandir}/man1/php-config.1*
2494 %{_mandir}/man1/phpize.1*
2497 %defattr(644,root,root,755)
2498 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2499 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2502 %defattr(644,root,root,755)
2503 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2504 %attr(755,root,root) %{php_extensiondir}/bz2.so
2507 %defattr(644,root,root,755)
2508 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2509 %attr(755,root,root) %{php_extensiondir}/calendar.so
2512 %defattr(644,root,root,755)
2513 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2514 %attr(755,root,root) %{php_extensiondir}/ctype.so
2518 %defattr(644,root,root,755)
2519 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2520 %attr(755,root,root) %{php_extensiondir}/curl.so
2524 %defattr(644,root,root,755)
2525 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2526 %attr(755,root,root) %{php_extensiondir}/dba.so
2529 %defattr(644,root,root,755)
2530 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2531 %attr(755,root,root) %{php_extensiondir}/dbase.so
2534 %defattr(644,root,root,755)
2535 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2536 %attr(755,root,root) %{php_extensiondir}/dom.so
2540 %defattr(644,root,root,755)
2541 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2542 %attr(755,root,root) %{php_extensiondir}/fdf.so
2547 %defattr(644,root,root,755)
2548 %doc README.input_filter
2549 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2550 %attr(755,root,root) %{php_extensiondir}/filter.so
2554 %defattr(644,root,root,755)
2555 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2556 %attr(755,root,root) %{php_extensiondir}/exif.so
2559 %defattr(644,root,root,755)
2560 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2561 %attr(755,root,root) %{php_extensiondir}/ftp.so
2564 %defattr(644,root,root,755)
2565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2566 %attr(755,root,root) %{php_extensiondir}/gd.so
2569 %defattr(644,root,root,755)
2570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2571 %attr(755,root,root) %{php_extensiondir}/gettext.so
2574 %defattr(644,root,root,755)
2575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2576 %attr(755,root,root) %{php_extensiondir}/gmp.so
2579 %defattr(644,root,root,755)
2580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2581 %attr(755,root,root) %{php_extensiondir}/hash.so
2584 %defattr(644,root,root,755)
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2586 %attr(755,root,root) %{php_extensiondir}/iconv.so
2590 %defattr(644,root,root,755)
2591 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2592 %attr(755,root,root) %{php_extensiondir}/imap.so
2595 %if %{with interbase}
2597 %defattr(644,root,root,755)
2598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2599 %attr(755,root,root) %{php_extensiondir}/interbase.so
2603 %defattr(644,root,root,755)
2604 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2605 %attr(755,root,root) %{php_extensiondir}/json.so
2609 %defattr(644,root,root,755)
2610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2611 %attr(755,root,root) %{php_extensiondir}/ldap.so
2615 %defattr(644,root,root,755)
2616 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2617 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2620 %defattr(644,root,root,755)
2621 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2622 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2626 %defattr(644,root,root,755)
2627 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2628 %attr(755,root,root) %{php_extensiondir}/mhash.so
2631 %if %{with mime_magic}
2633 %defattr(644,root,root,755)
2634 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2635 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2640 %defattr(644,root,root,755)
2641 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2642 %attr(755,root,root) %{php_extensiondir}/ming.so
2647 %defattr(644,root,root,755)
2648 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2649 %attr(755,root,root) %{php_extensiondir}/mssql.so
2653 %defattr(644,root,root,755)
2654 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2655 %attr(755,root,root) %{php_extensiondir}/mysql.so
2659 %defattr(644,root,root,755)
2660 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2661 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2665 %defattr(644,root,root,755)
2666 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2667 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2671 %defattr(644,root,root,755)
2672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2673 %attr(755,root,root) %{php_extensiondir}/oci8.so
2678 %defattr(644,root,root,755)
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2680 %attr(755,root,root) %{php_extensiondir}/odbc.so
2685 %defattr(644,root,root,755)
2686 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2687 %attr(755,root,root) %{php_extensiondir}/openssl.so
2691 %defattr(644,root,root,755)
2692 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2693 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2696 %defattr(644,root,root,755)
2697 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2698 %attr(755,root,root) %{php_extensiondir}/pdo.so
2700 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2702 %defattr(644,root,root,755)
2703 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2704 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2707 %if %{with interbase} && !%{with interbase_inst}
2709 %defattr(644,root,root,755)
2710 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2711 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2715 %defattr(644,root,root,755)
2716 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2717 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2721 %defattr(644,root,root,755)
2722 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2723 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2730 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2735 %defattr(644,root,root,755)
2736 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2737 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2742 %defattr(644,root,root,755)
2743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2744 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2749 %defattr(644,root,root,755)
2750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2751 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2755 %defattr(644,root,root,755)
2756 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2757 %attr(755,root,root) %{php_extensiondir}/posix.so
2761 %defattr(644,root,root,755)
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2763 %attr(755,root,root) %{php_extensiondir}/pspell.so
2767 %defattr(644,root,root,755)
2768 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2769 %attr(755,root,root) %{php_extensiondir}/readline.so
2773 %defattr(644,root,root,755)
2774 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2775 %attr(755,root,root) %{php_extensiondir}/recode.so
2779 # simplexml is needed by spl, and spl can't be built shared as of now (5.2.0)
2780 # simplexml can be built shared, but SPL startup fails
2781 # we could add R: -simplexml to -common...
2783 %defattr(644,root,root,755)
2784 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2785 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2789 %defattr(644,root,root,755)
2790 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2791 %attr(755,root,root) %{php_extensiondir}/shmop.so
2795 %defattr(644,root,root,755)
2796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2797 %attr(755,root,root) %{php_extensiondir}/snmp.so
2801 %defattr(644,root,root,755)
2802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2803 %attr(755,root,root) %{php_extensiondir}/soap.so
2806 %defattr(644,root,root,755)
2807 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2808 %attr(755,root,root) %{php_extensiondir}/sockets.so
2812 %defattr(644,root,root,755)
2813 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2814 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2819 %defattr(644,root,root,755)
2820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2821 %attr(755,root,root) %{php_extensiondir}/sybase.so
2824 %if %{with sybase_ct}
2826 %defattr(644,root,root,755)
2827 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2828 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2832 %defattr(644,root,root,755)
2833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2834 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2837 %defattr(644,root,root,755)
2838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2839 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2844 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2850 %attr(755,root,root) %{php_extensiondir}/tidy.so
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2856 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2860 %defattr(644,root,root,755)
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2862 %attr(755,root,root) %{php_extensiondir}/wddx.so
2866 %defattr(644,root,root,755)
2867 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2868 %attr(755,root,root) %{php_extensiondir}/xml.so
2871 %defattr(644,root,root,755)
2872 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2873 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
2877 %defattr(644,root,root,755)
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2879 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
2883 %defattr(644,root,root,755)
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
2885 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
2888 %defattr(644,root,root,755)
2889 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
2890 %attr(755,root,root) %{php_extensiondir}/xsl.so
2893 %defattr(644,root,root,755)
2894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
2895 %attr(755,root,root) %{php_extensiondir}/zip.so
2898 %defattr(644,root,root,755)
2899 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
2900 %attr(755,root,root) %{php_extensiondir}/zlib.so