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 system_libzip # with system libzip (reported broken: https://bugs.php.net/bug.php?id=60100)
34 %bcond_with gd_jis_conv # causes imagettfbbox(): any2eucjp(): invalid code in input string when internal gd used
35 %bcond_with zend_multibyte # enable zend multibyte, mbstring can't be shared then anymore
36 %bcond_with default_php # use this PHP as default PHP in distro
37 %bcond_without curl # without CURL extension module
38 %bcond_without filter # without filter extension module
39 %bcond_without imap # without IMAP extension module
40 %bcond_without interbase # without InterBase extension module
41 %bcond_without ldap # without LDAP extension module
42 %bcond_without mhash # without mhash extension module
43 %bcond_without mime_magic # without mime-magic module
44 %bcond_with ming # with ming extension module
45 %bcond_without mm # without mm support for session storage
46 %bcond_without mssql # without MS SQL extension module
47 %bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
48 %bcond_without odbc # without ODBC extension module
49 %bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
50 %bcond_without pcre # without PCRE extension module
51 %bcond_without pgsql # without PostgreSQL extension module
52 %bcond_without pspell # without pspell extension module
53 %bcond_without recode # without recode extension module
54 %bcond_without snmp # without SNMP extension module
55 %bcond_without sqlite # without SQLite extension module
56 %bcond_without sybase # without Sybase extension module
57 %bcond_without sybase_ct # without Sybase-CT extension module
58 %bcond_without tidy # without Tidy extension module
59 %bcond_without wddx # without WDDX extension module
60 %bcond_without xmlrpc # without XML-RPC extension module
61 %bcond_without apache1 # disable building Apache 1.3.x module
62 %bcond_without apache2 # disable building Apache 2.x module
63 %bcond_without fcgi # disable building FCGI SAPI
64 %bcond_with zts # disable Zend Thread Safety
65 %bcond_without fpm # fpm patches from http://www.php-fpm.org/
66 %bcond_without suhosin # with suhosin patch
67 %bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
68 %bcond_with tests # default off; test process very often hangs on builders; perform "make test"
69 %bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
71 %define apxs1 /usr/sbin/apxs1
72 %define apxs2 /usr/sbin/apxs
74 # some problems with apache 2.x
79 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
80 %undefine with_interbase
82 %if "%{pld_release}" == "th"
84 # ppc disabled (broken on th-ppc)
85 %undefine with_interbase
89 %ifnarch %{ix86} %{x8664}
90 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
94 %if %{without apache1} && %{without apache2}
95 ERROR: You need to select at least one Apache SAPI to build shared modules.
98 # filter depends on pcre
100 %undefine with_filter
103 %if "%{pld_release}" == "ac"
104 %define magic_mime /usr/share/file/magic.mime
105 %define _noautoreqdep libphp_common.*
106 # if commandline --without was given. respect that
107 %if 0%{!?_without_default_php:1}
108 %define with_default_php 1
111 %define magic_mime /usr/share/misc/magic.mime
116 %define ver_suffix 52
117 %define php_suffix %{!?with_default_php:%{ver_suffix}}
118 %define backport_date 20130717
119 Summary: PHP: Hypertext Preprocessor
120 Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
121 Summary(pl.UTF-8): Język skryptowy PHP
122 Summary(pt_BR.UTF-8): A linguagem de script PHP
123 Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
124 Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
125 Name: %{orgname}%{php_suffix}
127 Release: %{backport_date}.%{rel}
131 Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
132 # Source0-md5: b27947f3045220faf16e4d9158cbfe13
133 Source2: %{orgname}-mod_%{orgname}.conf
134 Source3: %{orgname}-cgi-fcgi.ini
135 Source4: %{orgname}-cgi.ini
136 Source5: %{orgname}-apache.ini
137 Source6: %{orgname}-cli.ini
138 # Taken from: http://browsers.garykeith.com/downloads.asp
139 Source8: %{orgname}_browscap.ini
140 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
141 #Source9: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
142 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
143 Source10: %{orgname}-fpm.init
144 Source11: %{orgname}-fpm.logrotate
145 Source12: %{orgname}-branch.sh
146 Source13: dep-tests.sh
147 Source14: skip-tests.sh
148 Patch100: https://php52-backports.googlecode.com/files/php52-backports-%{backport_date}.patch
149 # Patch100-md5: 80014a8f7894d4e893a8b1292b8b3032
150 Patch0: %{orgname}-shared.patch
151 Patch1: %{orgname}-pldlogo.patch
152 Patch2: %{orgname}-mail.patch
153 Patch3: %{orgname}-link-libs.patch
154 Patch4: %{orgname}-libpq_fs_h_path.patch
155 Patch5: %{orgname}-filter-shared.patch
156 Patch6: %{orgname}-build_modules.patch
157 Patch7: %{orgname}-sapi-ini-file.patch
158 Patch8: %{orgname}-no-metaccld.patch
159 Patch9: %{orgname}-sh.patch
160 Patch10: %{orgname}-ini.patch
161 Patch11: %{orgname}-acam.patch
162 Patch12: %{orgname}-threads-acfix.patch
163 Patch13: %{orgname}-tsrmlsfetchgcc2.patch
164 Patch14: %{orgname}-no_pear_install.patch
165 Patch15: %{orgname}-zlib.patch
166 Patch16: %{orgname}-sybase-fix.patch
167 Patch17: %{orgname}-readline.patch
168 Patch18: %{orgname}-nohttpd.patch
169 Patch19: %{orgname}-gd_imagerotate_enable.patch
170 Patch20: %{orgname}-uint32_t.patch
171 Patch21: %{orgname}-dba-link.patch
172 Patch22: %{orgname}-both-apxs.patch
173 Patch23: %{orgname}-builddir.patch
174 Patch24: %{orgname}-zlib-for-getimagesize.patch
175 Patch25: %{orgname}-versioning.patch
176 Patch26: %{orgname}-pear.patch
177 Patch27: %{orgname}-config-dir.patch
178 Patch28: %{orgname}-bug-42952.patch
179 Patch29: %{orgname}-fcgi-graceful.patch
180 Patch30: %{orgname}-apr-apu.patch
181 Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
182 Patch32: %{orgname}-curl-limit-speed.patch
183 Patch33: %{orgname}-mime_magic.patch
184 Patch34: %{orgname}-libtool.patch
185 Patch35: %{orgname}-tds.patch
186 Patch36: %{orgname}-mysql-charsetphpini.patch
187 Patch37: %{orgname}-mysqli-charsetphpini.patch
188 Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
189 Patch39: %{orgname}-use-prog_sendmail.patch
190 Patch40: %{orgname}-fpm.patch
191 Patch41: %{orgname}-fpm-config.patch
192 Patch42: %{orgname}-fpm-initdir.patch
193 Patch43: %{orgname}-silent-session-cleanup.patch
194 Patch44: %{orgname}-include_path.patch
195 Patch45: %{orgname}-imap-annotations.patch
196 Patch46: %{orgname}-imap-myrights.patch
197 Patch47: suhosin.patch
198 Patch49: %{orgname}-m4-divert.patch
199 Patch50: extension-shared-optional-dep.patch
200 Patch51: spl-shared.patch
201 Patch52: %{orgname}-libpng.patch
202 Patch53: %{orgname}-gmp.patch
203 Patch54: fix-test-run.patch
204 Patch55: bug-52078-fileinode.patch
205 Patch56: %{orgname}-krb5.patch
206 Patch57: php-php_dl.patch
207 Patch58: php-svn-281516.patch
208 Patch59: %{orgname}-systzdata.patch
209 Patch60: bug-60986.patch
210 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
211 Patch65: system-libzip.patch
212 Patch66: bug-47930.patch
213 Patch67: php-db.patch
214 Patch69: bug-50563.patch
215 Patch70: php-crypt-null.patch
216 Patch71: php-apache24.patch
218 # Backport from 5.3.6
219 Patch311: php-5.3.6-bug-47435.patch
220 Patch314: php-5.3.6-39199.patch
222 #Patch333: php-5.3.7-bug-54924.patch
223 Patch355: php-5.3.7-bug-55323.patch
224 # Bug-323016 CVE-2012-0831
225 Patch402: php-5.2.17-bug-323016.patch
226 URL: https://code.google.com/p/php52-backports/
227 %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
228 %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
229 BuildRequires: autoconf >= 2.53
230 BuildRequires: automake >= 1.4d
232 BuildRequires: bzip2-devel
233 %{?with_curl:BuildRequires: curl-devel >= 7.12.0}
234 BuildRequires: cyrus-sasl-devel
235 BuildRequires: db-devel >= 4.0
236 BuildRequires: elfutils-devel
238 %{?with_system_xmlrpc_epi:BuildRequires: xmlrpc-epi-devel}
240 %{?with_fcgi:BuildRequires: fcgi-devel}
241 %{?with_fdf:BuildRequires: fdftk-devel}
243 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
244 BuildRequires: freetds-devel
245 %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10-3}
247 BuildRequires: freetype-devel >= 2.0
248 %if %{with system_gd}
249 BuildRequires: gd-devel >= 2.0.28-4
250 BuildRequires: gd-devel(imagerotate) = 5.2.0
252 BuildRequires: gdbm-devel
253 BuildRequires: gmp-devel
254 %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
255 BuildRequires: libjpeg-devel
256 BuildRequires: libltdl-devel >= 1.4
257 BuildRequires: libmcrypt-devel >= 2.4.4
258 BuildRequires: libpng-devel >= 1.0.8
259 BuildRequires: libtiff-devel
260 %if "%{pld_release}" != "ac"
261 BuildRequires: libtool >= 2:2.2
263 BuildRequires: libtool
265 BuildRequires: libwrap-devel
266 BuildRequires: libxml2-devel >= 1:2.7.6-4
267 BuildRequires: libxslt-devel >= 1.1.0
268 %{?with_mhash:BuildRequires: mhash-devel}
269 %{?with_ming:BuildRequires: ming-devel >= 0.3}
270 %{?with_mm:BuildRequires: mm-devel >= 1.3.0}
271 BuildRequires: mysql-devel >= 4.0.0
272 %{?with_mysqli:BuildRequires: mysql-devel >= 4.1}
273 BuildRequires: ncurses-ext-devel
274 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
275 %if %{with openssl} || %{with ldap}
276 BuildRequires: openssl-devel >= 0.9.7d
278 %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
279 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
280 BuildRequires: pam-devel
281 %{?with_pcre:BuildRequires: pcre-devel >= 6.6}
282 BuildRequires: pkgconfig
283 %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
284 %{?with_pgsql:BuildRequires: postgresql-devel}
285 BuildRequires: readline-devel
286 %{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
287 BuildRequires: rpm >= 4.4.9-56
288 BuildRequires: rpm-build >= 4.4.0
289 BuildRequires: rpmbuild(macros) >= 1.519
290 %{?with_sqlite:BuildRequires: sqlite-devel}
291 %{?with_sqlite:BuildRequires: sqlite3-devel}
292 BuildRequires: t1lib-devel
293 %{?with_tidy:BuildRequires: tidy-devel}
294 %{?with_odbc:BuildRequires: unixODBC-devel}
295 BuildRequires: zlib-devel >= 1.0.9
297 BuildRequires: apache1-devel
300 BuildRequires: apache-devel >= 2.0.52-2
301 BuildRequires: apr-devel >= 1:1.0.0
302 BuildRequires: apr-util-devel >= 1:1.0.0
305 BuildRequires: judy-devel
306 BuildRequires: libevent-devel >= 1.4.7-3
308 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
310 %define php_sysconfdir /etc/%{name}
311 %define php_extensiondir %{_libdir}/%{name}
312 %define _sysconfdir %{php_sysconfdir}
314 # must be in sync with source. extra check ensuring that it is so is done in %%build
315 %define php_api_version 20041225
316 %define zend_module_api 20060613
317 %define zend_extension_api 220060519
318 %define zend_zts %{!?with_zts:0}%{?with_zts:1}
319 %define php_debug %{!?debug:0}%{?debug:1}
322 # ORACLE_HOME is required for oci8 ext to build
323 %define _preserve_env %_preserve_env_base ORACLE_HOME
327 PHP is an HTML-embedded scripting language. PHP attempts to make it
328 easy for developers to write dynamically generated web pages. PHP also
329 offers built-in database integration for several commercial and
330 non-commercial database management systems, so writing a
331 database-enabled web page with PHP is fairly simple. The most common
332 use of PHP coding is probably as a replacement for CGI scripts. The
333 mod_php module enables the Apache web server to understand and process
334 the embedded PHP language in web pages. This package contains PHP
337 %description -l fr.UTF-8
338 PHP est un langage de script embarque dans le HTM. PHP essaye de
339 rendre simple aux developpeurs d'ecrire des pages web generees
340 dynamiquement. PHP incorpore egalement une integration avec plusieurs
341 systemes de gestion de bases de donnees commerciaux et
342 non-connerciaux, qui rent facile la creation de pages web liees avec
343 des bases de donnees. L'utilisation la plus commune de PHP est
344 probablement en remplacement de scripts CGI. Le module mod_php permet
345 au serveur web Apache de comprendre et de traiter le langage PHP
346 integre dans des pages web. Ce package contient PHP version
349 %description -l pl.UTF-8
350 PHP jest językiem skryptowym, którego polecenia umieszcza się w
351 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
352 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
353 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
354 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
355 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
356 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
357 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
360 %description -l pt_BR.UTF-8
361 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
362 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
363 com algumas características únicas, específicas ao PHP. O objetivo da
364 linguagem é permitir que desenvolvedores web escrevam páginas
365 dinamicamente geradas de forma rápida.
367 %description -l ru.UTF-8
368 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
369 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
370 для работы с базами данных относительно просто. Наиболее популярное
371 использование PHP - замена для CGI скриптов.
373 %description -l uk.UTF-8
374 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
375 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
376 роботи з базами даних є доволі простим. Найбільш популярне
377 використання PHP - заміна для CGI скриптів.
379 %package -n apache1-mod_%{name}
380 Summary: PHP DSO module for Apache 1.3.x
381 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
382 Group: Development/Languages/PHP
383 Requires(triggerpostun): sed >= 4.0
384 Requires: %{name}-common = %{epoch}:%{version}-%{release}
385 Requires: apache1(EAPI) >= 1.3.33-2
386 Requires: apache1-mod_mime
387 Provides: webserver(php) = %{version}
388 Obsoletes: apache-mod_php < 1:4.1.1
391 %description -n apache1-mod_%{name}
392 PHP as DSO module for Apache 1.3.x.
394 %description -n apache1-mod_%{name} -l pl.UTF-8
395 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
397 %package -n apache-mod_%{name}
398 Summary: PHP DSO module for Apache 2.x
399 Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
400 Group: Development/Languages/PHP
401 Requires: %{name}-common = %{epoch}:%{version}-%{release}
402 Requires: apache(modules-api) = %{apache_modules_api}
403 Requires: apache-mod_mime
404 Provides: webserver(php) = %{version}
407 %description -n apache-mod_%{name}
408 PHP as DSO module for Apache 2.x.
410 %description -n apache-mod_%{name} -l pl.UTF-8
411 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
414 Summary: php as FastCGI program
415 Summary(pl.UTF-8): php jako program FastCGI
416 Group: Development/Languages/PHP
417 Requires: %{name}-common = %{epoch}:%{version}-%{release}
419 Provides: webserver(php) = %{version}
422 php as FastCGI program.
424 %description fcgi -l pl.UTF-8
425 php jako program FastCGI.
428 Summary: PHP as CGI/FastCGI program
429 Summary(pl.UTF-8): PHP jako program CGI/FastCGI
430 Group: Development/Languages/PHP
431 Requires: %{name}-common = %{epoch}:%{version}-%{release}
433 Provides: webserver(php) = %{version}
434 %if "%{pld_release}" != "ac"
435 Conflicts: logrotate < 3.8.0
441 %description cgi -l pl.UTF-8
442 php jako program CGI.
445 Summary: PHP as CLI interpreter
446 Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
447 Group: Development/Languages/PHP
448 Requires: %{name}-common = %{epoch}:%{version}-%{release}
451 PHP as CLI interpreter.
453 %description cli -l pl.UTF-8
454 PHP jako interpreter działający z linii poleceń.
457 Summary: /usr/bin/php symlink
458 Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
459 Group: Development/Languages/PHP
460 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
461 Obsoletes: /usr/bin/php
464 Package providing /usr/bin/php symlink to PHP CLI.
466 %description program -l pl.UTF-8
467 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
470 Summary: PHP FastCGI Process Manager
471 Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
472 Group: Development/Languages/PHP
473 URL: http://www.php-fpm.org/
474 Requires(post,preun): /sbin/chkconfig
475 Requires(postun): /usr/sbin/userdel
476 Requires(pre): /bin/id
477 Requires(pre): /usr/sbin/useradd
478 Requires: %{name}-common = %{epoch}:%{version}-%{release}
479 Requires: libevent >= 1.4.7-3
482 Provides: webserver(php) = %{version}
485 PHP FastCGI Process Manager.
487 %description fpm -l pl.UTF-8
488 PHP FastCGI Process Manager - zarządca procesów FastCGI.
491 Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
492 Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
493 Summary(ru.UTF-8): Разделяемые библиотеки для PHP
494 Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
496 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
497 Requires: glibc >= 6:2.3.5
498 Requires: php-dirs >= 1.4
499 Requires: rpm-whiteout >= 1.28
501 Provides: %{name}(debug) = %{php_debug}
502 Provides: %{name}(modules_api) = %{php_api_version}
503 Provides: %{name}(thread-safety) = %{zend_zts}
504 Provides: %{name}(zend_extension_api) = %{zend_extension_api}
505 Provides: %{name}(zend_module_api) = %{zend_module_api}
506 Provides: %{name}-core
507 Provides: %{name}-date
508 Provides: %{name}-ereg
509 %{?with_zend_multibyte:Provides: %{name}-mbstring = %{epoch}:%{version}-%{release}}
510 Provides: %{name}-overload
511 Provides: %{name}-reflection
512 Provides: %{name}-standard
513 Provides: php(core) = %{version}
516 Provides: php(libxml)
517 %{?with_zend_multibyte:Provides: php(mbstring)}
518 Provides: php(modules_api) = %{php_api_version}
519 Provides: php(overload)
520 Provides: php(reflection)
521 Provides: php(standard)
522 # ensure backward compatibility for Titanium
523 # to be dropped in future but ask Titanium RM before doing so
524 %if "%{pld_release}" == "ti"
525 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
526 Requires: %{name}-session = %{epoch}:%{version}-%{release}
527 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
529 %if "%{pld_release}" == "ac"
530 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
531 Requires: %{name}-session = %{epoch}:%{version}-%{release}
532 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
534 %{!?with_mysqlnd:Obsoletes: php-mysqlnd}
535 %{?with_pcre:%requires_ge_to pcre pcre-devel}
536 Obsoletes: php-pecl-domxml
537 Conflicts: php-pecl-memcache < 3.0.4-2
538 Conflicts: php4-common < 3:4.4.4-8
539 Conflicts: rpm < 4.4.2-0.2
542 Common files needed by both Apache modules and CGI/CLI SAPI-s.
544 %description common -l pl.UTF-8
545 Wspólne pliki dla modułu Apache'a i programu CGI.
547 %description common -l ru.UTF-8
548 Этот пакет содержит общие файлы для разных вариантов реализации PHP
549 (самодостаточной и в качестве модуля Apache).
551 %description common -l uk.UTF-8
552 Цей пакет містить спільні файли для різних варіантів реалізації PHP
553 (самодостатньої та в якості модуля Apache).
556 Summary: Files for PHP modules development
557 Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
558 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
559 Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
560 Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
561 Group: Development/Languages/PHP
562 Requires: %{name}-common = %{epoch}:%{version}-%{release}
565 %if "%{pld_release}" != "ac"
566 Requires: libtool >= 2:2.2
570 %{?with_pcre:Requires: pcre-devel >= 6.6}
573 Obsoletes: php-pear-devel
574 Obsoletes: php4-devel
575 Obsoletes: php53-devel
576 Obsoletes: php54-devel
579 The php-devel package lets you compile dynamic extensions to PHP.
580 Included here is the source for the PHP extensions. Instead of
581 recompiling the whole PHP binary to add support for, say, oracle,
582 install this package and use the new self-contained extensions
583 support. For more information, read the file
584 README.SELF-CONTAINED-EXTENSIONS.
586 %description devel -l pl.UTF-8
587 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
588 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
589 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
590 samodzielnych rozszerzeniach można znaleźć w pliku
591 README.SELF-CONTAINED-EXTENSIONS.
593 %description devel -l pt_BR.UTF-8
594 Este pacote contém arquivos usados no desenvolvimento de programas ou
597 %description devel -l ru.UTF-8
598 Пакет php-devel дает возможность компилировать динамические расширения
599 PHP. Пакет включает исходный код этих расширений. Вместо повторной
600 компиляции бинарного файла PHP для добавления, например, поддержки
601 oracle, установите этот пакет для компилирования отдельных расширений.
602 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
604 %description devel -l uk.UTF-8
605 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
606 До пакету включено вихідний код для розширень. Замість повторної
607 компіляції бінарного файлу PHP для додання, наприклад, підтримки
608 oracle, встановіть цей пакет для компіляції окремих розширень.
609 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
612 Summary: bcmath extension module for PHP
613 Summary(pl.UTF-8): Moduł bcmath dla PHP
615 URL: http://www.php.net/manual/en/book.bc.php
616 Requires: %{name}-common = %{epoch}:%{version}-%{release}
617 Provides: php(bcmath)
620 This is a dynamic shared object (DSO) for PHP that will add bc style
621 precision math functions support.
623 %description bcmath -l pl.UTF-8
624 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
625 matematycznych takich jak w programie bc.
628 Summary: Bzip2 extension module for PHP
629 Summary(pl.UTF-8): Moduł bzip2 dla PHP
631 URL: http://www.php.net/manual/en/book.bzip2.php
632 Requires: %{name}-common = %{epoch}:%{version}-%{release}
633 Provides: %{name}-bzip2 = %{epoch}:%{version}-%{release}
639 This is a dynamic shared object (DSO) for PHP that will add bzip2
640 compression support to PHP.
642 %description bz2 -l pl.UTF-8
643 Moduł PHP umożliwiający używanie kompresji bzip2.
646 Summary: Calendar extension module for PHP
647 Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
649 URL: http://www.php.net/manual/en/book.calendar.php
650 Requires: %{name}-common = %{epoch}:%{version}-%{release}
651 Provides: php(calendar)
653 %description calendar
654 This is a dynamic shared object (DSO) for PHP that will add calendar
657 %description calendar -l pl.UTF-8
658 Moduł PHP dodający wsparcie dla kalendarza.
661 Summary: ctype extension module for PHP
662 Summary(pl.UTF-8): Moduł ctype dla PHP
664 URL: http://www.php.net/manual/en/book.ctype.php
665 Requires: %{name}-common = %{epoch}:%{version}-%{release}
669 This is a dynamic shared object (DSO) for PHP that will add ctype
672 %description ctype -l pl.UTF-8
673 Moduł PHP umożliwiający korzystanie z funkcji ctype.
676 Summary: curl extension module for PHP
677 Summary(pl.UTF-8): Moduł curl dla PHP
679 URL: http://www.php.net/manual/en/book.curl.php
680 Requires: %{name}-common = %{epoch}:%{version}-%{release}
684 This is a dynamic shared object (DSO) for PHP that will add curl
687 %description curl -l pl.UTF-8
688 Moduł PHP umożliwiający korzystanie z biblioteki curl.
691 Summary: DBA extension module for PHP
692 Summary(pl.UTF-8): Moduł DBA dla PHP
694 URL: http://www.php.net/manual/en/book.dba.php
695 Requires: %{name}-common = %{epoch}:%{version}-%{release}
699 This is a dynamic shared object (DSO) for PHP that will add flat-file
700 databases (DBA) support.
702 %description dba -l pl.UTF-8
703 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
707 Summary: DBase extension module for PHP
708 Summary(pl.UTF-8): Moduł DBase dla PHP
710 Requires: %{name}-common = %{epoch}:%{version}-%{release}
714 This is a dynamic shared object (DSO) for PHP that will add DBase
717 %description dbase -l pl.UTF-8
718 Moduł PHP ze wsparciem dla DBase.
721 Summary: DOM extension module for PHP
722 Summary(pl.UTF-8): Moduł DOM dla PHP
724 URL: http://www.php.net/manual/en/book.dom.php
725 Requires: %{name}-common = %{epoch}:%{version}-%{release}
727 # it has some compatibility functions
728 Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
729 Provides: php(domxml)
730 Obsoletes: php-domxml <= 3:4.3.8-1
733 This is a dynamic shared object (DSO) for PHP that will add new DOM
736 %description dom -l pl.UTF-8
737 Moduł PHP dodający nową obsługę DOM.
740 Summary: exif extension module for PHP
741 Summary(pl.UTF-8): Moduł exif dla PHP
743 URL: http://www.php.net/manual/en/book.exif.php
744 Requires: %{name}-common = %{epoch}:%{version}-%{release}
748 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
749 support in image files.
751 %description exif -l pl.UTF-8
752 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
755 Summary: FDF extension module for PHP
756 Summary(pl.UTF-8): Moduł FDF dla PHP
758 URL: http://www.php.net/manual/en/book.fdf.php
759 Requires: %{name}-common = %{epoch}:%{version}-%{release}
763 This PHP module adds support for PDF Forms through Adobe FDFTK
766 %description fdf -l pl.UTF-8
767 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
771 Summary: Extension for safely dealing with input parameters
772 Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
774 URL: http://www.php.net/manual/en/book.filter.php
775 Requires: %{name}-common = %{epoch}:%{version}-%{release}
776 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
777 Provides: php(filter)
778 Obsoletes: php-pecl-filter
781 We all know that you should always check input variables, but PHP does
782 not offer really good functionality for doing this in a safe way. The
783 Input Filter extension is meant to address this issue by implementing
784 a set of filters and mechanisms that users can use to safely access
787 %description filter -l pl.UTF-8
788 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
789 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
790 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
791 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
792 mogą bezpiecznie używać do dostępu do danych.
795 Summary: FTP extension module for PHP
796 Summary(pl.UTF-8): Moduł FTP dla PHP
798 URL: http://www.php.net/manual/en/book.ftp.php
799 Requires: %{name}-common = %{epoch}:%{version}-%{release}
803 This is a dynamic shared object (DSO) for PHP that will add FTP
806 %description ftp -l pl.UTF-8
807 Moduł PHP dodający obsługę protokołu FTP.
810 Summary: GD extension module for PHP
811 Summary(pl.UTF-8): Moduł GD dla PHP
813 URL: http://www.php.net/manual/en/book.image.php
814 Requires: %{name}-common = %{epoch}:%{version}-%{release}
815 %if %{with system_gd}
816 Requires: gd >= 2.0.28-4
818 Requires: gd(imagerotate) = 5.2.0
823 This is a dynamic shared object (DSO) for PHP that will add GD
824 support, allowing you to create and manipulate images with PHP.
826 %description gd -l pl.UTF-8
827 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
828 tworzenie i obróbkę obrazków.
831 Summary: gettext extension module for PHP
832 Summary(pl.UTF-8): Moduł gettext dla PHP
834 URL: http://www.php.net/manual/en/book.gettext.php
835 Requires: %{name}-common = %{epoch}:%{version}-%{release}
836 Provides: php(gettext)
839 This is a dynamic shared object (DSO) for PHP that will add gettext
842 %description gettext -l pl.UTF-8
843 Moduł PHP dodający obsługę lokalizacji przez gettext.
846 Summary: gmp extension module for PHP
847 Summary(pl.UTF-8): Moduł gmp dla PHP
849 URL: http://www.php.net/manual/en/book.gmp.php
850 Requires: %{name}-common = %{epoch}:%{version}-%{release}
854 This is a dynamic shared object (DSO) for PHP that will add arbitrary
855 length number support with GNU MP library.
857 %description gmp -l pl.UTF-8
858 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
859 liczbach o dowolnej długości.
862 Summary: HASH Message Digest Framework
863 Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
865 URL: http://www.php.net/manual/en/book.gmp.php
866 Requires: %{name}-common = %{epoch}:%{version}-%{release}
868 Obsoletes: php-pecl-hash
871 Native implementations of common message digest algorithms using a
872 generic factory method.
874 %description hash -l pl.UTF-8
875 Natywne implementacje popularnych algorytmów obliczania skrótów
876 wiadomości przy użyciu wspólnego interfejsu.
879 Summary: iconv extension module for PHP
880 Summary(pl.UTF-8): Moduł iconv dla PHP
882 URL: http://www.php.net/manual/en/book.iconv.php
883 Requires: %{_libdir}/gconv
884 Requires: %{name}-common = %{epoch}:%{version}-%{release}
889 This is a dynamic shared object (DSO) for PHP that will add iconv
892 %description iconv -l pl.UTF-8
893 Moduł PHP dodający obsługę iconv.
896 Summary: IMAP extension module for PHP
897 Summary(pl.UTF-8): Moduł IMAP dla PHP
898 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
900 URL: http://www.php.net/manual/en/book.imap.php
901 Requires: %{name}-common = %{epoch}:%{version}-%{release}
905 This is a dynamic shared object (DSO) for PHP that will add IMAP
908 %description imap -l pl.UTF-8
909 Moduł PHP dodający obsługę skrzynek IMAP.
911 %description imap -l pt_BR.UTF-8
912 Um módulo para aplicações PHP que usam IMAP.
915 Summary: InterBase/Firebird database module for PHP
916 Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
918 URL: http://www.php.net/manual/en/book.ibase.php
919 Requires: %{name}-common = %{epoch}:%{version}-%{release}
920 Provides: php(interbase)
921 %{?with_interbase_inst:Autoreq: false}
923 %description interbase
924 This is a dynamic shared object (DSO) for PHP that will add InterBase
925 and Firebird database support.
927 %description interbase -l pl.UTF-8
928 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
931 Summary: PHP C extension for JSON serialization
932 Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
934 URL: http://www.php.net/manual/en/book.json.php
935 Requires: %{name}-common = %{epoch}:%{version}-%{release}
937 Obsoletes: php-pecl-json
940 php-json is an extremely fast PHP C extension for JSON (JavaScript
941 Object Notation) serialisation.
943 %description json -l pl.UTF-8
944 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
945 (JavaScript Object Notation).
948 Summary: LDAP extension module for PHP
949 Summary(pl.UTF-8): Moduł LDAP dla PHP
950 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
952 URL: http://www.php.net/manual/en/book.ldap.php
953 Requires: %{name}-common = %{epoch}:%{version}-%{release}
957 This is a dynamic shared object (DSO) for PHP that will add LDAP
960 %description ldap -l pl.UTF-8
961 Moduł PHP dodający obsługę LDAP.
963 %description ldap -l pt_BR.UTF-8
964 Um módulo para aplicações PHP que usam LDAP.
967 Summary: mbstring extension module for PHP
968 Summary(pl.UTF-8): Moduł mbstring dla PHP
970 URL: http://www.php.net/manual/en/book.mbstring.php
971 Requires: %{name}-common = %{epoch}:%{version}-%{release}
972 Provides: php(mbstring)
974 %description mbstring
975 This is a dynamic shared object (DSO) for PHP that will add multibyte
978 %description mbstring -l pl.UTF-8
979 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
982 Summary: mcrypt extension module for PHP
983 Summary(pl.UTF-8): Moduł mcrypt dla PHP
985 URL: http://www.php.net/manual/en/book.mcrypt.php
986 Requires: %{name}-common = %{epoch}:%{version}-%{release}
987 Provides: php(mcrypt)
990 This is a dynamic shared object (DSO) for PHP that will add mcrypt
993 %description mcrypt -l pl.UTF-8
994 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
997 Summary: mhash extension module for PHP
998 Summary(pl.UTF-8): Moduł mhash dla PHP
1000 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1001 Provides: php(mhash)
1004 This is a dynamic shared object (DSO) for PHP that will add mhash
1007 %description mhash -l pl.UTF-8
1008 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1011 Summary: mime_magic extension module for PHP
1012 Summary(pl.UTF-8): Moduł mime_magic dla PHP
1014 Requires: %{magic_mime}
1015 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1016 Provides: php(mime_magic)
1018 %description mime_magic
1019 This PHP module adds support for MIME type lookup via file magic
1020 numbers using magic.mime database.
1022 %description mime_magic -l pl.UTF-8
1023 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1024 znaczników plików z użyciem bazy danych magic.mime.
1027 Summary: ming extension module for PHP
1028 Summary(pl.UTF-8): Moduł ming dla PHP
1030 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1031 Requires: ming >= 0.3
1035 This is a dynamic shared object (DSO) for PHP that will add ming
1036 (Flash - .swf files) support.
1038 %description ming -l pl.UTF-8
1039 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1043 Summary: MS SQL extension module for PHP
1044 Summary(pl.UTF-8): Moduł MS SQL dla PHP
1046 URL: http://www.php.net/manual/en/book.mssql.php
1047 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1048 Provides: php(mssql)
1051 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1052 databases support through FreeTDS library.
1054 %description mssql -l pl.UTF-8
1055 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1059 Summary: MySQL database module for PHP
1060 Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1061 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1063 URL: http://www.php.net/manual/en/book.mysql.php
1064 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1065 Provides: php(mysql)
1068 This is a dynamic shared object (DSO) for PHP that will add MySQL
1071 %description mysql -l pl.UTF-8
1072 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1074 %description mysql -l pt_BR.UTF-8
1075 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1078 Summary: MySQLi module for PHP
1079 Summary(pl.UTF-8): Moduł MySQLi dla PHP
1081 URL: http://www.php.net/manual/en/book.mysqli.php
1082 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1083 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1084 Requires: mysql-libs >= 4.1.0
1085 Provides: php(mysqli)
1088 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1089 (Improved MySQL) support. The difference between it and mysql module
1090 is that it provides access to functionality of MySQL 4.1 and above.
1092 %description mysqli -l pl.UTF-8
1093 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1094 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1095 MySQL w wersji 4.1 i nowszych.
1098 Summary: ncurses module for PHP
1099 Summary(pl.UTF-8): Moduł ncurses dla PHP
1101 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1102 Provides: php(ncurses)
1104 %description ncurses
1105 This PHP module adds support for ncurses functions (only for cli and
1108 %description ncurses -l pl.UTF-8
1109 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1112 Summary: Oracle 8+ database module for PHP
1113 Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1115 URL: http://www.php.net/manual/en/book.oci8.php
1116 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1121 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1122 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1124 %description oci8 -l pl.UTF-8
1125 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1126 poprzez interfejs Oracle8 Call-Interface (OCI8).
1129 Summary: ODBC extension module for PHP
1130 Summary(pl.UTF-8): Moduł ODBC dla PHP
1131 Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1133 URL: http://www.php.net/manual/en/book.uodbc.php
1134 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1135 Requires: unixODBC >= 2.1.1-3
1139 This is a dynamic shared object (DSO) for PHP that will add ODBC
1142 %description odbc -l pl.UTF-8
1143 Moduł PHP ze wsparciem dla ODBC.
1145 %description odbc -l pt_BR.UTF-8
1146 Um módulo para aplicações PHP que usam ODBC.
1149 Summary: OpenSSL extension module for PHP
1150 Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1152 URL: http://www.php.net/manual/en/book.openssl.php
1153 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1154 Provides: php(openssl)
1156 %description openssl
1157 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1160 %description openssl -l pl.UTF-8
1161 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1164 Summary: Process Control extension module for PHP
1165 Summary(pl.UTF-8): Moduł Process Control dla PHP
1167 URL: http://www.php.net/manual/en/book.pcntl.php
1168 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1169 Provides: php(pcntl)
1172 This is a dynamic shared object (DSO) for PHP that will add process
1173 spawning and control support. It supports functions like fork(),
1174 waitpid(), signal() etc.
1176 %description pcntl -l pl.UTF-8
1177 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1178 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1181 Summary: PCRE extension module for PHP
1182 Summary(pl.UTF-8): Moduł PCRE dla PHP
1184 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1188 This is a dynamic shared object (DSO) for PHP that will add Perl
1189 Compatible Regular Expression support.
1191 %description pcre -l pl.UTF-8
1192 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1193 (Perl Compatible Regular Expressions)
1196 Summary: PHP Data Objects (PDO)
1197 Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1199 URL: http://www.php.net/manual/en/book.pdo.php
1200 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1201 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1203 Obsoletes: php-pecl-PDO
1206 This is a dynamic shared object (DSO) for PHP that will add PDO
1209 %description pdo -l pl.UTF-8
1210 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1213 Summary: PHP Data Objects (PDO) FreeTDS support
1214 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1216 URL: http://www.php.net/manual/en/ref.pdo-dblib.php
1217 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1218 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1219 Provides: php(dblib)
1221 %description pdo-dblib
1222 This is a dynamic shared object (DSO) for PHP that will add PDO
1225 %description pdo-dblib -l pl.UTF-8
1226 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1229 %package pdo-firebird
1230 Summary: PHP Data Objects (PDO) Firebird support
1231 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1233 URL: http://www.php.net/manual/en/ref.pdo-firebird.php
1234 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1235 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1236 Provides: php(pdo-firebird)
1237 Obsoletes: php-pecl-PDO_FIREBIRD
1239 %description pdo-firebird
1240 This is a dynamic shared object (DSO) for PHP that will add PDO
1243 %description pdo-firebird -l pl.UTF-8
1244 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1248 Summary: PHP Data Objects (PDO) MySQL support
1249 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1251 URL: http://www.php.net/manual/en/ref.pdo-mysql.php
1252 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1253 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1254 Provides: php(pdo-mysql)
1255 Obsoletes: php-pecl-PDO_MYSQL
1257 %description pdo-mysql
1258 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1261 %description pdo-mysql -l pl.UTF-8
1262 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1266 Summary: PHP Data Objects (PDO) Oracle support
1267 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1269 URL: http://www.php.net/manual/en/ref.pdo-oci.php
1270 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1271 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1272 Provides: php(pdo-oci)
1273 Obsoletes: php-pecl-PDO_OCI
1275 %description pdo-oci
1276 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1279 %description pdo-oci -l pl.UTF-8
1280 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1284 Summary: PHP Data Objects (PDO) ODBC support
1285 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1287 URL: http://www.php.net/manual/en/ref.pdo-odbc.php
1288 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1289 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1290 Provides: php(pdo-odbc)
1291 Obsoletes: php-pecl-PDO_ODBC
1293 %description pdo-odbc
1294 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1297 %description pdo-odbc -l pl.UTF-8
1298 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1302 Summary: PHP Data Objects (PDO) PostgreSQL support
1303 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1305 URL: http://www.php.net/manual/en/ref.pdo-pgsql.php
1306 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1307 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1308 Provides: php(pdo-pgsql)
1309 Provides: php-pecl-PDO_PGSQL
1310 Obsoletes: php-pecl-PDO_PGSQL
1312 %description pdo-pgsql
1313 This is a dynamic shared object (DSO) for PHP that will add PDO
1316 %description pdo-pgsql -l pl.UTF-8
1317 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1321 Summary: PHP Data Objects (PDO) SQLite support
1322 Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1324 URL: http://www.php.net/manual/en/ref.pdo-sqlite.php
1325 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1326 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1327 Provides: php(pdo-sqlite)
1328 Obsoletes: php-pecl-PDO_SQLITE
1330 %description pdo-sqlite
1331 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1334 %description pdo-sqlite -l pl.UTF-8
1335 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1339 Summary: PostgreSQL database module for PHP
1340 Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1342 URL: http://www.php.net/manual/en/book.pgsql.php
1343 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1344 Provides: php(pgsql)
1347 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1350 %description pgsql -l pl.UTF-8
1351 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1353 %description pgsql -l pt_BR.UTF-8
1354 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1357 Summary: POSIX extension module for PHP
1358 Summary(pl.UTF-8): Moduł POSIX dla PHP
1360 URL: http://www.php.net/manual/en/book.posix.php
1361 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1362 Provides: php(posix)
1365 This is a dynamic shared object (DSO) for PHP that will add POSIX
1366 functions support to PHP.
1368 %description posix -l pl.UTF-8
1369 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1372 Summary: pspell extension module for PHP
1373 Summary(pl.UTF-8): Moduł pspell dla PHP
1375 URL: http://www.php.net/manual/en/book.pspell.php
1376 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1377 Provides: php(pspell)
1380 This is a dynamic shared object (DSO) for PHP that will add pspell
1381 support to PHP. It allows to check the spelling of a word and offer
1384 %description pspell -l pl.UTF-8
1385 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1386 sprawdzanie pisowni słowa i sugerowanie poprawek.
1389 Summary: readline extension module for PHP
1390 Summary(pl.UTF-8): Moduł readline dla PHP
1392 URL: http://www.php.net/manual/en/book.readline.php
1393 Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1394 Provides: php(readline)
1396 %description readline
1397 This PHP module adds support for readline functions (only for cli and
1400 %description readline -l pl.UTF-8
1401 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1404 Summary: recode extension module for PHP
1405 Summary(pl.UTF-8): Moduł recode dla PHP
1407 URL: http://www.php.net/manual/en/book.recode.php
1408 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1409 Requires: recode >= 3.5d-3
1410 Provides: php(recode)
1413 This is a dynamic shared object (DSO) for PHP that will add recode
1416 %description recode -l pl.UTF-8
1417 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1421 Summary: session extension module for PHP
1422 Summary(pl.UTF-8): Moduł session dla PHP
1424 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1425 Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1426 Provides: php(session)
1428 %description session
1429 This is a dynamic shared object (DSO) for PHP that will add session
1432 %description session -l pl.UTF-8
1433 Moduł PHP dodający obsługę sesji.
1436 Summary: Shared Memory Operations extension module for PHP
1437 Summary(pl.UTF-8): Moduł shmop dla PHP
1439 URL: http://www.php.net/manual/en/book.shmop.php
1440 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1441 Provides: php(shmop)
1444 This is a dynamic shared object (DSO) for PHP that will add Shared
1445 Memory Operations support.
1447 %description shmop -l pl.UTF-8
1448 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1451 Summary: Simple XML extension module for PHP
1452 Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1454 URL: http://www.php.net/manual/en/book.simplexml.php
1455 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1456 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1457 Provides: php(simplexml)
1459 %description simplexml
1460 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1463 %description simplexml -l pl.UTF-8
1464 Moduł PHP dodający obsługę prostego XML-a.
1467 Summary: SNMP extension module for PHP
1468 Summary(pl.UTF-8): Moduł SNMP dla PHP
1470 URL: http://www.php.net/manual/en/book.snmp.php
1471 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1472 Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1476 This is a dynamic shared object (DSO) for PHP that will add SNMP
1479 %description snmp -l pl.UTF-8
1480 Moduł PHP dodający obsługę SNMP.
1483 Summary: soap extension module for PHP
1484 Summary(pl.UTF-8): Moduł soap dla PHP
1486 URL: http://www.php.net/manual/en/book.soap.php
1487 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1491 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1494 %description soap -l pl.UTF-8
1495 Moduł PHP dodający obsługę SOAP/WSDL.
1498 Summary: sockets extension module for PHP
1499 Summary(pl.UTF-8): Moduł socket dla PHP
1501 URL: http://www.php.net/manual/en/book.sockets.php
1502 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1503 Provides: php(sockets)
1505 %description sockets
1506 This is a dynamic shared object (DSO) for PHP that will add sockets
1509 %description sockets -l pl.UTF-8
1510 Moduł PHP dodający obsługę gniazdek.
1513 Summary: Standard PHP Library module for PHP
1514 Summary(pl.UTF-8): Moduł SPL dla PHP
1516 URL: http://php.net/manual/en/book.spl.php
1517 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1518 Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1519 Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1523 This is a dynamic shared object (DSO) for PHP that will add Standard
1524 PHP Library support.
1526 %description spl -l pl.UTF-8
1527 Moduł PHP dodający obsługę gniazdek.
1530 Summary: SQLite extension module for PHP
1531 Summary(pl.UTF-8): Moduł SQLite dla PHP
1533 URL: http://www.php.net/manual/en/book.sqlite.php
1534 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1535 Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1536 Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1537 Provides: php(sqlite)
1540 SQLite is a C library that implements an embeddable SQL database
1541 engine. Programs that link with the SQLite library can have SQL
1542 database access without running a separate RDBMS process.
1544 SQLite is not a client library used to connect to a big database
1545 server. SQLite is the server. The SQLite library reads and writes
1546 directly to and from the database files on disk.
1548 %description sqlite -l pl.UTF-8
1549 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1550 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1551 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1554 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1555 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1556 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1560 Summary: Sybase DB extension module for PHP
1561 Summary(pl.UTF-8): Moduł Sybase DB dla PHP
1563 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1564 Provides: php(sybase)
1565 Obsoletes: php-sybase-ct
1566 Conflicts: php-sybase-ct
1569 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1570 MS SQL databases support through SYBDB library. Currently Sybase
1571 module is not maintained. Using Sybase-CT module is recommended
1574 %description sybase -l pl.UTF-8
1575 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1576 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1577 Zaleca się używanie modułu Sybase-CT.
1580 Summary: Sybase-CT extension module for PHP
1581 Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1583 URL: http://www.php.net/manual/en/book.sybase.php
1584 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1585 Provides: php(sybase-ct)
1586 Obsoletes: php-sybase
1587 Conflicts: php-sybase
1589 %description sybase-ct
1590 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1591 MS SQL databases support through CT-lib.
1593 %description sybase-ct -l pl.UTF-8
1594 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1598 Summary: SysV msg extension module for PHP
1599 Summary(pl.UTF-8): Moduł SysV msg dla PHP
1601 URL: http://www.php.net/manual/en/book.sem.php
1602 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1603 Provides: php(sysvmsg)
1605 %description sysvmsg
1606 This is a dynamic shared object (DSO) for PHP that will add SysV
1607 message queues support.
1609 %description sysvmsg -l pl.UTF-8
1610 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1613 Summary: SysV sem extension module for PHP
1614 Summary(pl.UTF-8): Moduł SysV sem dla PHP
1616 URL: http://www.php.net/manual/en/book.sem.php
1617 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1618 Provides: php(sysvsem)
1620 %description sysvsem
1621 This is a dynamic shared object (DSO) for PHP that will add SysV
1624 %description sysvsem -l pl.UTF-8
1625 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1628 Summary: SysV shm extension module for PHP
1629 Summary(pl.UTF-8): Moduł SysV shm dla PHP
1631 URL: http://www.php.net/manual/en/book.shmop.php
1632 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1633 Provides: php(sysvshm)
1635 %description sysvshm
1636 This is a dynamic shared object (DSO) for PHP that will add SysV
1637 Shared Memory support.
1639 %description sysvshm -l pl.UTF-8
1640 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1643 Summary: Contains unit test files for PHP and extensions
1644 Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1646 URL: http://qa.php.net/
1647 Requires: %{name}-cli
1650 This package contains unit tests for PHP and it's extensions.
1652 %description tests -l pl.UTF-8
1653 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1656 Summary: Tidy extension module for PHP
1657 Summary(pl.UTF-8): Moduł Tidy dla PHP
1659 URL: http://www.php.net/manual/en/book.tidy.php
1660 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1665 This is a dynamic shared object (DSO) for PHP that will add Tidy
1668 %description tidy -l pl.UTF-8
1669 Moduł PHP umożliwiający korzystanie z tidy.
1672 Summary: tokenizer extension module for PHP
1673 Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1675 URL: http://www.php.net/manual/en/book.tokenizer.php
1676 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1677 Provides: php(tokenizer)
1679 %description tokenizer
1680 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1683 %description tokenizer -l pl.UTF-8
1684 Moduł PHP dodający obsługę tokenizera do PHP.
1687 Summary: wddx extension module for PHP
1688 Summary(pl.UTF-8): Moduł wddx dla PHP
1690 URL: http://www.php.net/manual/en/book.wddx.php
1691 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1692 # - wddx doesn't require session as it's disabled at compile time:
1693 # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1694 # see also php.spec#rev1.120.2.22
1695 #Requires: %{name}-session = %{epoch}:%{version}-%{release}
1696 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1700 This is a dynamic shared object (DSO) for PHP that will add wddx
1703 %description wddx -l pl.UTF-8
1704 Moduł PHP umożliwiający korzystanie z wddx.
1707 Summary: XML extension module for PHP
1708 Summary(pl.UTF-8): Moduł XML dla PHP
1710 URL: http://www.php.net/manual/en/book.xml.php
1711 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1715 This is a dynamic shared object (DSO) for PHP that will add XML
1716 support. This extension lets you create XML parsers and then define
1717 handlers for different XML events.
1719 %description xml -l pl.UTF-8
1720 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1721 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1722 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1725 Summary: XML Reader extension module for PHP
1726 Summary(pl.UTF-8): Moduł XML Reader dla PHP
1728 URL: http://www.php.net/manual/en/book.xmlreader.php
1729 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1730 Suggests: %{name}-dom = %{epoch}:%{version}-%{release}
1731 Provides: php(xmlreader)
1733 %description xmlreader
1734 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1735 support. The XMLReader extension is an XML Pull parser. The reader
1736 acts as a cursor going forward on the document stream and stopping at
1737 each node on the way.
1739 %description xmlreader -l pl.UTF-8
1740 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1741 działa jako kursor przechodzący przez strumień dokumentu i
1742 zatrzymujący się na każdym węźle po drodze.
1745 Summary: xmlrpc extension module for PHP
1746 Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1748 URL: http://www.php.net/manual/en/book.xmlrpc.php
1749 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1750 Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1751 Provides: php(xmlrpc)
1754 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1757 %description xmlrpc -l pl.UTF-8
1758 Moduł PHP dodający obsługę XMLRPC.
1761 Summary: Fast, non-cached, forward-only means to write XML data
1762 Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
1764 URL: http://www.php.net/manual/en/book.xmlwriter.php
1765 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1766 Provides: php(xmlwriter)
1767 Obsoletes: php-pecl-xmlwriter
1769 %description xmlwriter
1770 This extension wraps the libxml xmlWriter API. Represents a writer
1771 that provides a non-cached, forward-only means of generating streams
1772 or files containing XML data.
1774 %description xmlwriter -l pl.UTF-8
1775 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1776 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1777 plików zawierających dane XML.
1780 Summary: xsl extension module for PHP
1781 Summary(pl.UTF-8): Moduł xsl dla PHP
1783 URL: http://www.php.net/manual/en/book.xsl.php
1784 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1785 Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1786 Requires: libxslt >= 1.0.18
1787 # actually not true, functionality is similar, but API differs
1789 Obsoletes: php-xslt <= 3:4.3.8-1
1792 This is a dynamic shared object (DSO) for PHP that will add new XSL
1793 support (using libxslt).
1795 %description xsl -l pl.UTF-8
1796 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1799 Summary: Zip management extension
1800 Summary(pl.UTF-8): Zarządzanie archiwami zip
1802 URL: http://www.php.net/manual/en/book.zip.php
1803 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1804 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1806 Obsoletes: php-pecl-zip
1809 Zip is an extension to create, modify and read zip files.
1811 %description zip -l pl.UTF-8
1812 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1813 odczyt archiwów zip.
1816 Summary: Zlib extension module for PHP
1817 Summary(pl.UTF-8): Moduł zlib dla PHP
1819 URL: http://www.php.net/manual/en/book.zlib.php
1820 Requires: %{name}-common = %{epoch}:%{version}-%{release}
1824 This is a dynamic shared object (DSO) for PHP that will add zlib
1825 compression support to PHP.
1827 %description zlib -l pl.UTF-8
1828 Moduł PHP umożliwiający używanie kompresji zlib.
1831 %setup -q -n %{orgname}-%{version}
1834 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1847 cp php.ini-dist php.ini
1849 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1859 %if %{with system_gd}
1868 %{?with_versioning:%patch25 -p1}
1871 %{__tar} jxf %{SOURCE9}
1872 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1873 mv $v/$v gentoo-patchset
1874 for a in gentoo-patchset/*.patch; do
1887 %if "%{pld_release}" != "ac"
1892 # mysql default charset for mysql/mysql/pdo-mysql extensions
1924 %{?with_system_libzip:%patch65 -p1}
1931 # Bugfix backport from 5.3.6
1932 %patch311 -p1 -b .bug-47435
1933 %patch314 -p1 -b .bug-39199
1934 # Bugfix backport from 5.3.7
1935 #accert %patch333 -p1 -b .bug-54924
1936 #soap %patch355 -p1 -b .bug-55323
1937 # causes regression -> magic_quotes_gpc setting cannot be changed
1938 #%%patch402 -p1 -b .bug-323016
1940 # conflict seems to be resolved by recode patches
1941 rm -f ext/recode/config9.m4
1943 # remove all bundled libraries not to link with them accidentally
1944 #rm -rf ext/sqlite/libsqlite
1945 #rm -rf ext/bcmath/libbcmath
1946 #rm -rf ext/date/lib
1947 #rm -rf ext/dba/libcdb
1948 #rm -rf ext/dba/libflatfile
1949 #rm -rf ext/dba/libinifile
1950 #rm -rf ext/gd/libgd
1951 #rm -rf ext/mbstring/libmbfl
1952 #rm -rf ext/mbstring/oniguruma
1953 rm -rf ext/pcre/pcrelib
1954 rm -rf ext/pdo_sqlite/sqlite
1955 #rm -rf ext/soap/interop
1956 %if %{with system_xmlrpc_epi}
1957 rm -rf ext/xmlrpc/libxmlrpc
1961 # this test hungs on ac-ppc
1962 #mv ext/reflection/tests/007.php{,ignore}
1963 # this test gets killed by itself
1964 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1967 cp -af Zend/LICENSE{,.Zend}
1968 install -p %{SOURCE13} dep-tests.sh
1970 # disable broken tests
1971 # says just "Terminated" twice and fails
1972 mv sapi/cli/tests/022.phpt{,.broken}
1974 sh -xe %{_sourcedir}/skip-tests.sh
1977 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1978 if [ $API != %{php_api_version} ]; then
1979 echo "Set %%define php_api_version to $API and re-run."
1983 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1984 if [ $API != %{zend_module_api} ]; then
1985 echo "Set %%define zend_module_api to $API and re-run."
1989 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1990 if [ $API != %{zend_extension_api} ]; then
1991 echo "Set %%define zend_extension_api to $API and re-run."
1995 export EXTENSION_DIR="%{php_extensiondir}"
1996 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1997 rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
2000 cp -f /usr/share/automake/config.* .
2004 export PROG_SENDMAIL="/usr/lib/sendmail"
2021 for sapi in $sapis; do
2023 [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2028 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2031 sapi_args='--disable-cgi'
2034 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2037 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2040 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2041 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2044 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2045 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2050 FORCE_APACHE_VERSION="${apache_ver}" \
2052 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2053 --cache-file=config.cache \
2055 --with-libdir=%{_lib} \
2056 --with-config-file-path=%{_sysconfdir} \
2057 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2058 --with-exec-dir=%{_bindir} \
2059 --with-system-tzdata \
2060 --%{!?debug:dis}%{?debug:en}able-debug \
2061 %{?with_zts:--enable-maintainer-zts} \
2062 %{?with_suhosin:--enable-suhosin} \
2063 %{?with_zend_multibyte:--enable-zend-multibyte} \
2064 --enable-inline-optimization \
2065 --enable-bcmath=shared \
2066 --enable-calendar=shared \
2067 --enable-ctype=shared \
2068 --enable-dba=shared \
2069 --enable-dom=shared \
2070 --enable-exif=shared \
2071 --enable-ftp=shared \
2072 --enable-gd-native-ttf \
2073 %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2075 --enable-magic-quotes \
2076 --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2078 --enable-pcntl=shared \
2079 --enable-pdo=shared \
2080 --enable-json=shared \
2081 --enable-hash=shared \
2082 --enable-xmlwriter=shared \
2084 --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2085 --with-fpm-log=/var/log/php/%{name}-fpm.log \
2086 --with-fpm-pid=/var/run/%{name}-fpm.pid \
2088 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2089 --with-pdo-dblib=shared \
2091 %if %{with interbase} && !%{with interbase_inst}
2092 --with-pdo-firebird=shared,/usr \
2094 --with-pdo-mysql=shared \
2095 %{?with_oci8:--with-pdo-oci=shared} \
2096 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2097 %{?with_pgsql:--with-pdo-pgsql=shared} \
2098 %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2099 --enable-posix=shared \
2100 --enable-reflection \
2102 --enable-session=shared \
2103 --enable-shmop=shared \
2104 --enable-simplexml=shared \
2105 --enable-spl=shared \
2106 --enable-sysvmsg=shared \
2107 --enable-sysvsem=shared \
2108 --enable-sysvshm=shared \
2109 --enable-safe-mode \
2110 --enable-soap=shared \
2111 --enable-sockets=shared \
2112 --enable-tokenizer=shared \
2113 --enable-ucd-snmp-hack \
2114 %{?with_wddx:--enable-wddx=shared} \
2115 --enable-xml=shared \
2116 --enable-xmlreader=shared \
2118 %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2120 --enable-dbase=shared \
2121 --without-libexpat-dir \
2122 %{?with_fdf:--with-fdftk=shared} \
2123 --with-iconv=shared \
2124 --with-freetype-dir=shared \
2125 --with-gettext=shared \
2126 --with-gd=shared%{?with_system_gd:,/usr} \
2129 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2130 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2131 --with-jpeg-dir=/usr \
2132 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2133 --with-mcrypt=shared \
2134 %{?with_mhash:--with-mhash=shared} \
2135 %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2136 %{?with_ming:--with-ming=shared} \
2137 %{?with_mm:--with-mm} \
2138 %{?with_mssql:--with-mssql=shared} \
2139 --with-mysql=shared,/usr \
2140 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2141 %{?with_mysqli:--with-mysqli=shared} \
2142 --with-ncurses=shared \
2143 %{?with_oci8:--with-oci8=shared} \
2144 %{?with_openssl:--with-openssl=shared} \
2146 %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2147 %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2148 --with-pear=%{php_pear_dir} \
2149 %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2150 --with-png-dir=/usr \
2151 %{?with_pspell:--with-pspell=shared} \
2152 --with-readline=shared \
2153 %{?with_recode:--with-recode=shared} \
2155 %{?with_snmp:--with-snmp=shared} \
2156 %{?with_sybase:--with-sybase=shared,/usr} \
2157 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2158 %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2159 --with-t1lib=shared \
2160 %{?with_tidy:--with-tidy=shared} \
2161 %{?with_odbc:--with-unixODBC=shared,/usr} \
2162 %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2164 --with-zlib=shared \
2165 --with-zlib-dir=shared,/usr \
2166 %{?with_system_libzip:--with-libzip} \
2167 --enable-zip=shared,/usr \
2169 cp -f Makefile Makefile.$sapi
2170 cp -f main/php_config.h php_config.h.$sapi
2171 cp -f config.log config.log.$sapi
2174 # as we build each SAPI in own make, adjust php-config.in forehead
2175 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2176 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2178 # must make this first, so modules can link against it.
2179 %{__make} libphp_common.la
2180 %{__make} build-modules
2183 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2187 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2191 cp -af php_config.h.cgi main/php_config.h
2192 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2193 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2194 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2198 cp -af php_config.h.fcgi main/php_config.h
2199 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2200 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2201 cp -r sapi/cgi sapi/fcgi
2202 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2206 cp -af php_config.h.fpm main/php_config.h
2207 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2208 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2209 cp -r sapi/cgi sapi/fpm
2210 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2214 cp -af php_config.h.cli main/php_config.h
2215 %{__make} sapi/cli/php -f Makefile.cli
2216 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2218 # check for stupid xml parse breakage where < and > just get lost in parse result
2219 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x><</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2221 # Generate stub .ini files for each extension
2224 generate_inifiles() {
2225 for so in modules/*.so; do
2226 mod=$(basename $so .so)
2228 # xml needs to be loaded before wddx
2229 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2230 # pre needs to be loaded before SPL
2231 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2232 # spl needs to be loaded before mysqli
2233 [ "$mod" = "spl" ] && conf="SPL.ini"
2234 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2235 [ "$mod" = "session" ] && conf="Session.ini"
2237 cat > conf.d/$conf <<-EOF
2238 ; Enable $mod extension module
2245 # Check that the module inner-dependencies are intact
2246 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2247 if grep -v OK dep-tests.log; then
2248 echo >&2 "The results above were not expected"
2249 # TEMP: ac-i386 builder is broken
2257 # Run tests, using the CLI SAPI
2258 cp -af php_config.h.cli main/php_config.h
2259 cp -af Makefile.cli Makefile
2260 # sybase modules collide, remove one
2261 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2263 cat <<'EOF' > run-tests.sh
2265 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2266 unset TZ LANG LC_ALL || :
2269 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2270 RUN_TESTS_SETTINGS="-q $*"
2272 chmod +x run-tests.sh
2273 ./run-tests.sh -w failed.log -s test.log
2275 # collect failed tests into cleanup script used in prep.
2276 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2277 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2278 >> %{_sourcedir}/skip-tests.sh
2280 failed=$(wc -l < tests-failed.log)
2281 if [ "$failed" != 0 ]; then
2287 rm -rf $RPM_BUILD_ROOT
2288 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2289 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2290 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2291 $RPM_BUILD_ROOT%{_mandir}/man1 \
2293 # install the Apache modules' files
2294 %{__make} install-headers install-build install-modules install-programs \
2295 INSTALL_ROOT=$RPM_BUILD_ROOT
2298 v=$(echo %{version} | cut -d. -f1-2)
2300 # install Apache1 DSO module
2302 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2303 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2304 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2307 # install Apache2 DSO module
2309 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2310 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2311 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2314 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2315 # fix install paths, avoid evil rpaths
2316 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2318 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2321 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2325 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2330 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2331 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2332 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2333 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2334 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2335 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2336 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2337 %if "%{pld_release}" == "ac"
2338 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2342 s#/usr/lib/php#%{php_extensiondir}#
2343 s#/etc/php#%{_sysconfdir}#
2344 s#@processname@#%{name}-fpm#g
2345 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2349 # without suffix, install as php.cli
2350 %if "%{?php_suffix}" == ""
2351 %define phpfn %{name}.cli
2353 %define phpfn %{name}
2355 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2356 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2357 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2358 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2359 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2361 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2363 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2365 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2366 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2367 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2370 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2371 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2372 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2376 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2377 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2378 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2381 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2382 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2384 # ensure that paths are correct for current php version and arch
2385 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2387 s#/usr/lib/php#%{php_extensiondir}#g
2388 s#/etc/php#%{_sysconfdir}#g
2391 # per SAPI ini directories
2392 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2395 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2397 # use system automake and {lib,sh}tool
2398 %if "%{pld_release}" != "ac"
2399 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2400 for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2401 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2403 ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2405 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2406 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2408 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2410 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2411 # isn't installed by install-headers make target, we do it manually here.
2412 # this header file is required by e.g. filter PECL extension
2413 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2414 # for php-pecl-mailparse
2415 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2416 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2419 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2420 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2421 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2424 rm -rf $RPM_BUILD_ROOT
2426 %post -n apache1-mod_%{name}
2427 if [ "$1" = "1" ]; then
2428 %service -q apache restart
2431 %postun -n apache1-mod_%{name}
2432 if [ "$1" = "0" ]; then
2433 %service -q apache restart
2436 %post -n apache-mod_%{name}
2437 if [ "$1" = "1" ]; then
2438 %service -q httpd restart
2441 %postun -n apache-mod_%{name}
2442 if [ "$1" = "0" ]; then
2443 %service -q httpd restart
2447 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2450 /sbin/chkconfig --add %{name}-fpm
2451 %service %{name}-fpm restart
2454 if [ "$1" = 0 ]; then
2455 %service %{name}-fpm stop
2456 /sbin/chkconfig --del %{name}-fpm
2460 if [ "$1" = "0" ]; then
2464 %post common -p /sbin/ldconfig
2465 %postun common -p /sbin/ldconfig
2468 # minimizing apache restarts logics. we restart webserver:
2470 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2471 # 2. first install of extension (post: $1 = 1)
2472 # 2. uninstall of extension (postun: $1 == 0)
2474 # the strict internal deps between extensions (and apache modules) and
2475 # common package are very important for all this to work.
2477 # restart webserver at the end of transaction
2478 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2479 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2481 # common macros called at extension post/postun scriptlet
2482 %define extension_scripts() \
2484 if [ "$1" = "1" ]; then \
2485 %php_webserver_restart \
2489 if [ "$1" = "0" ]; then \
2490 %php_webserver_restart \
2494 # extension scripts defines
2495 %extension_scripts bcmath
2496 %extension_scripts bz2
2497 %extension_scripts calendar
2498 %extension_scripts ctype
2499 %extension_scripts curl
2500 %extension_scripts dba
2501 %extension_scripts dbase
2502 %extension_scripts dom
2503 %extension_scripts exif
2504 %extension_scripts fdf
2505 %extension_scripts filter
2506 %extension_scripts ftp
2507 %extension_scripts gd
2508 %extension_scripts gettext
2509 %extension_scripts gmp
2510 %extension_scripts hash
2511 %extension_scripts iconv
2512 %extension_scripts imap
2513 %extension_scripts interbase
2514 %extension_scripts json
2515 %extension_scripts ldap
2516 %extension_scripts mbstring
2517 %extension_scripts mcrypt
2518 %extension_scripts mhash
2519 %extension_scripts mime_magic
2520 %extension_scripts ming
2521 %extension_scripts mssql
2522 %extension_scripts mysql
2523 %extension_scripts mysqli
2524 %extension_scripts oci8
2525 %extension_scripts odbc
2526 %extension_scripts openssl
2527 %extension_scripts pcntl
2528 %extension_scripts pcre
2529 %extension_scripts pdo
2530 %extension_scripts pdo-dblib
2531 %extension_scripts pdo-firebird
2532 %extension_scripts pdo-oci
2533 %extension_scripts pdo-mysql
2534 %extension_scripts pdo-odbc
2535 %extension_scripts pdo-pgsql
2536 %extension_scripts pdo-sqlite
2537 %extension_scripts pgsql
2538 %extension_scripts posix
2539 %extension_scripts pspell
2540 %extension_scripts recode
2541 %extension_scripts session
2542 %extension_scripts simplexml
2543 %extension_scripts shmop
2544 %extension_scripts snmp
2545 %extension_scripts soap
2546 %extension_scripts sockets
2547 %extension_scripts spl
2548 %extension_scripts sqlite
2549 %extension_scripts sybase
2550 %extension_scripts sybase-ct
2551 %extension_scripts sysvmsg
2552 %extension_scripts sysvsem
2553 %extension_scripts sysvshm
2554 %extension_scripts tidy
2555 %extension_scripts tokenizer
2556 %extension_scripts wddx
2557 %extension_scripts xml
2558 %extension_scripts xmlreader
2559 %extension_scripts xmlrpc
2560 %extension_scripts xmlwriter
2561 %extension_scripts xsl
2562 %extension_scripts zip
2563 %extension_scripts zlib
2566 %files -n apache1-mod_%{name}
2567 %defattr(644,root,root,755)
2568 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2569 %dir %{_sysconfdir}/apache.d
2570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2571 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2572 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2576 %files -n apache-mod_%{name}
2577 %defattr(644,root,root,755)
2578 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2579 %dir %{_sysconfdir}/apache2handler.d
2580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2581 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2582 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2587 %defattr(644,root,root,755)
2588 %doc sapi/cgi/README.FastCGI
2589 %dir %{_sysconfdir}/cgi-fcgi.d
2590 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2591 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2595 %defattr(644,root,root,755)
2596 %dir %{_sysconfdir}/cgi.d
2597 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2598 %attr(755,root,root) %{_bindir}/%{name}.cgi
2601 %defattr(644,root,root,755)
2602 %dir %{_sysconfdir}/cli.d
2603 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2604 %attr(755,root,root) %{_bindir}/%{phpfn}
2605 %{_mandir}/man1/%{phpfn}.1*
2608 %defattr(644,root,root,755)
2609 %attr(755,root,root) %{_bindir}/php
2610 %{_mandir}/man1/php.1*
2614 %defattr(644,root,root,755)
2615 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2616 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2617 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2618 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2622 %defattr(644,root,root,755)
2624 %doc CREDITS Zend/ZEND_CHANGES
2625 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2626 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2629 %dir %{_sysconfdir}/conf.d
2630 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2631 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2632 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2633 %dir %{php_extensiondir}
2636 %defattr(644,root,root,755)
2637 %doc README.UNIX-BUILD-SYSTEM
2638 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2639 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2640 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2641 %attr(755,root,root) %{_bindir}/phpize
2642 %attr(755,root,root) %{_bindir}/php-config
2643 %attr(755,root,root) %{_libdir}/libphp_common.so
2644 %{_libdir}/libphp_common.la
2646 %{_libdir}/php/build
2647 %{_mandir}/man1/php-config.1*
2648 %{_mandir}/man1/phpize.1*
2651 %defattr(644,root,root,755)
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2653 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2658 %attr(755,root,root) %{php_extensiondir}/bz2.so
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2663 %attr(755,root,root) %{php_extensiondir}/calendar.so
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2668 %attr(755,root,root) %{php_extensiondir}/ctype.so
2672 %defattr(644,root,root,755)
2673 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2674 %attr(755,root,root) %{php_extensiondir}/curl.so
2678 %defattr(644,root,root,755)
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2680 %attr(755,root,root) %{php_extensiondir}/dba.so
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2685 %attr(755,root,root) %{php_extensiondir}/dbase.so
2688 %defattr(644,root,root,755)
2689 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2690 %attr(755,root,root) %{php_extensiondir}/dom.so
2694 %defattr(644,root,root,755)
2695 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2696 %attr(755,root,root) %{php_extensiondir}/fdf.so
2701 %defattr(644,root,root,755)
2702 %doc README.input_filter
2703 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2704 %attr(755,root,root) %{php_extensiondir}/filter.so
2708 %defattr(644,root,root,755)
2709 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2710 %attr(755,root,root) %{php_extensiondir}/exif.so
2713 %defattr(644,root,root,755)
2714 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2715 %attr(755,root,root) %{php_extensiondir}/ftp.so
2718 %defattr(644,root,root,755)
2719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2720 %attr(755,root,root) %{php_extensiondir}/gd.so
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2725 %attr(755,root,root) %{php_extensiondir}/gettext.so
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2730 %attr(755,root,root) %{php_extensiondir}/gmp.so
2733 %defattr(644,root,root,755)
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2735 %attr(755,root,root) %{php_extensiondir}/hash.so
2738 %defattr(644,root,root,755)
2739 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2740 %attr(755,root,root) %{php_extensiondir}/iconv.so
2744 %defattr(644,root,root,755)
2745 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2746 %attr(755,root,root) %{php_extensiondir}/imap.so
2749 %if %{with interbase}
2751 %defattr(644,root,root,755)
2752 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2753 %attr(755,root,root) %{php_extensiondir}/interbase.so
2757 %defattr(644,root,root,755)
2758 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2759 %attr(755,root,root) %{php_extensiondir}/json.so
2763 %defattr(644,root,root,755)
2764 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2765 %attr(755,root,root) %{php_extensiondir}/ldap.so
2768 %if %{without zend_multibyte}
2770 %defattr(644,root,root,755)
2771 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2772 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2776 %defattr(644,root,root,755)
2777 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2778 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2782 %defattr(644,root,root,755)
2783 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2784 %attr(755,root,root) %{php_extensiondir}/mhash.so
2787 %if %{with mime_magic}
2789 %defattr(644,root,root,755)
2790 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2791 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2796 %defattr(644,root,root,755)
2797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2798 %attr(755,root,root) %{php_extensiondir}/ming.so
2803 %defattr(644,root,root,755)
2804 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2805 %attr(755,root,root) %{php_extensiondir}/mssql.so
2809 %defattr(644,root,root,755)
2810 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2811 %attr(755,root,root) %{php_extensiondir}/mysql.so
2815 %defattr(644,root,root,755)
2816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2817 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2821 %defattr(644,root,root,755)
2822 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2823 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2827 %defattr(644,root,root,755)
2828 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2829 %attr(755,root,root) %{php_extensiondir}/oci8.so
2834 %defattr(644,root,root,755)
2835 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2836 %attr(755,root,root) %{php_extensiondir}/odbc.so
2841 %defattr(644,root,root,755)
2842 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2843 %attr(755,root,root) %{php_extensiondir}/openssl.so
2847 %defattr(644,root,root,755)
2848 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2849 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2853 %defattr(644,root,root,755)
2854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2855 %attr(755,root,root) %{php_extensiondir}/pcre.so
2859 %defattr(644,root,root,755)
2860 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2861 %attr(755,root,root) %{php_extensiondir}/pdo.so
2863 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2865 %defattr(644,root,root,755)
2866 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2867 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2870 %if %{with interbase} && !%{with interbase_inst}
2872 %defattr(644,root,root,755)
2873 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2874 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2878 %defattr(644,root,root,755)
2879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2880 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2884 %defattr(644,root,root,755)
2885 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2886 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2891 %defattr(644,root,root,755)
2892 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2893 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2898 %defattr(644,root,root,755)
2899 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2900 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2905 %defattr(644,root,root,755)
2906 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2907 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2912 %defattr(644,root,root,755)
2913 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2914 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2918 %defattr(644,root,root,755)
2919 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2920 %attr(755,root,root) %{php_extensiondir}/posix.so
2924 %defattr(644,root,root,755)
2925 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2926 %attr(755,root,root) %{php_extensiondir}/pspell.so
2930 %defattr(644,root,root,755)
2931 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2932 %attr(755,root,root) %{php_extensiondir}/readline.so
2936 %defattr(644,root,root,755)
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2938 %attr(755,root,root) %{php_extensiondir}/recode.so
2942 %defattr(644,root,root,755)
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2944 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2947 %defattr(644,root,root,755)
2948 %doc ext/session/mod_files.sh
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2950 %attr(755,root,root) %{php_extensiondir}/session.so
2953 %defattr(644,root,root,755)
2954 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2955 %attr(755,root,root) %{php_extensiondir}/shmop.so
2959 %defattr(644,root,root,755)
2960 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2961 %attr(755,root,root) %{php_extensiondir}/snmp.so
2965 %defattr(644,root,root,755)
2966 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2967 %attr(755,root,root) %{php_extensiondir}/soap.so
2970 %defattr(644,root,root,755)
2971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2972 %attr(755,root,root) %{php_extensiondir}/sockets.so
2975 %defattr(644,root,root,755)
2976 %doc ext/spl/{CREDITS,README,TODO}
2977 %doc ext/spl/examples
2978 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2979 %attr(755,root,root) %{php_extensiondir}/spl.so
2983 %defattr(644,root,root,755)
2984 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2985 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2990 %defattr(644,root,root,755)
2991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2992 %attr(755,root,root) %{php_extensiondir}/sybase.so
2995 %if %{with sybase_ct}
2997 %defattr(644,root,root,755)
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2999 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3003 %defattr(644,root,root,755)
3004 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3005 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3008 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3010 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3013 %defattr(644,root,root,755)
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3015 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3018 %defattr(644,root,root,755)
3019 %dir %{php_data_dir}/tests
3020 %dir %{php_data_dir}/tests/php
3021 %{php_data_dir}/tests/php/basic
3022 %{php_data_dir}/tests/php/classes
3023 %{php_data_dir}/tests/php/func
3024 %{php_data_dir}/tests/php/lang
3025 %{php_data_dir}/tests/php/output
3026 %{php_data_dir}/tests/php/run-test
3027 %{php_data_dir}/tests/php/security
3028 %{php_data_dir}/tests/php/strings
3029 %{php_data_dir}/tests/php/quicktester.inc
3030 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3032 # random junk, didn't check, maybe can be just removed
3033 %{php_data_dir}/tests/php/bin-info.inc
3034 %{php_data_dir}/tests/php/foo*
3035 %{php_data_dir}/tests/php/odbc*.php
3036 %{php_data_dir}/tests/php/recurse
3037 %{php_data_dir}/tests/php/run.*
3038 %{php_data_dir}/tests/php/scan_cases
3039 %{php_data_dir}/tests/php/test*
3043 %defattr(644,root,root,755)
3044 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3045 %attr(755,root,root) %{php_extensiondir}/tidy.so
3049 %defattr(644,root,root,755)
3050 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3051 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3055 %defattr(644,root,root,755)
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3057 %attr(755,root,root) %{php_extensiondir}/wddx.so
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3063 %attr(755,root,root) %{php_extensiondir}/xml.so
3066 %defattr(644,root,root,755)
3067 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3068 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3072 %defattr(644,root,root,755)
3073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3074 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3078 %defattr(644,root,root,755)
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3080 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3083 %defattr(644,root,root,755)
3084 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3085 %attr(755,root,root) %{php_extensiondir}/xsl.so
3088 %defattr(644,root,root,755)
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3090 %attr(755,root,root) %{php_extensiondir}/zip.so
3093 %defattr(644,root,root,755)
3094 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3095 %attr(755,root,root) %{php_extensiondir}/zlib.so