]> git.pld-linux.org Git - packages/php.git/blob - php.spec
let apache modules use just major.minor for filename
[packages/php.git] / php.spec
1 # TODO
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:
8 #   cpdf, fam, oracle
9 #   - removed from php 5.2:
10 #   filepro, hw
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
17 #
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)
27 #
28 # Conditional build:
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_without  curl            # without CURL extension module
37 %bcond_without  filter          # without filter extension module
38 %bcond_without  imap            # without IMAP extension module
39 %bcond_without  interbase       # without InterBase extension module
40 %bcond_without  ldap            # without LDAP extension module
41 %bcond_without  mhash           # without mhash extension module
42 %bcond_without  mime_magic      # without mime-magic module
43 %bcond_with     ming            # with ming extension module
44 %bcond_without  mm              # without mm support for session storage
45 %bcond_without  mssql           # without MS SQL extension module
46 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
47 %bcond_without  odbc            # without ODBC extension module
48 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
49 %bcond_without  pcre            # without PCRE extension module
50 %bcond_without  pgsql           # without PostgreSQL extension module
51 %bcond_without  pspell          # without pspell extension module
52 %bcond_without  recode          # without recode extension module
53 %bcond_without  snmp            # without SNMP extension module
54 %bcond_without  sqlite          # without SQLite extension module
55 %bcond_without  sybase          # without Sybase extension module
56 %bcond_without  sybase_ct       # without Sybase-CT extension module
57 %bcond_without  tidy            # without Tidy extension module
58 %bcond_without  wddx            # without WDDX extension module
59 %bcond_without  xmlrpc          # without XML-RPC extension module
60 %bcond_without  apache1         # disable building Apache 1.3.x module
61 %bcond_without  apache2         # disable building Apache 2.x module
62 %bcond_without  fcgi            # disable building FCGI SAPI
63 %bcond_with     zts             # disable Zend Thread Safety
64 %bcond_without  fpm             # fpm patches from http://www.php-fpm.org/
65 %bcond_without  suhosin         # with suhosin patch
66 %bcond_with     system_xmlrpc_epi       # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
67 %bcond_with     tests           # default off; test process very often hangs on builders; perform "make test"
68 %bcond_with     versioning      # build with experimental versioning (to load php4/php5 into same apache)
69
70 %define apxs1           /usr/sbin/apxs1
71 %define apxs2           /usr/sbin/apxs
72
73 # some problems with apache 2.x
74 %if %{with apache2}
75 %undefine       with_mm
76 %endif
77
78 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
79 %undefine       with_interbase
80 %endif
81 %if "%{pld_release}" == "th"
82 %ifarch ppc
83 # ppc disabled (broken on th-ppc)
84 %undefine       with_interbase
85 %endif
86 %endif
87
88 %ifnarch %{ix86} %{x8664}
89 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
90 %undefine       with_fpm
91 %endif
92
93 %if %{without apache1} && %{without apache2}
94 ERROR: You need to select at least one Apache SAPI to build shared modules.
95 %endif
96
97 # filter depends on pcre
98 %if %{without pcre}
99 %undefine       with_filter
100 %endif
101
102 %if "%{pld_release}" == "ac"
103 %define         magic_mime      /usr/share/file/magic.mime
104 %else
105 %define         magic_mime      /usr/share/misc/magic.mime
106 %endif
107
108 %define         orgname php
109 %if "%{pld_release}" == "th"
110 %define         php_suffix 52
111 %else
112 %define         php_suffix %{nil}
113 %endif
114
115 Summary:        PHP: Hypertext Preprocessor
116 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
117 Summary(pl.UTF-8):      Język skryptowy PHP
118 Summary(pt_BR.UTF-8):   A linguagem de script PHP
119 Summary(ru.UTF-8):      PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
120 Summary(uk.UTF-8):      PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
121 Name:           %{orgname}%{php_suffix}
122 Version:        5.2.17
123 Release:        33
124 Epoch:          4
125 License:        PHP
126 Group:          Libraries
127 Source0:        http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
128 # Source0-md5:  b27947f3045220faf16e4d9158cbfe13
129 Source2:        %{orgname}-mod_%{orgname}.conf
130 Source3:        %{orgname}-cgi-fcgi.ini
131 Source4:        %{orgname}-cgi.ini
132 Source5:        %{orgname}-apache.ini
133 Source6:        %{orgname}-cli.ini
134 # Taken from: http://browsers.garykeith.com/downloads.asp
135 Source8:        %{orgname}_browscap.ini
136 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
137 #Source9:       ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
138 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
139 Source10:       %{orgname}-fpm.init
140 Source11:       %{orgname}-fpm.logrotate
141 Source12:       %{orgname}-branch.sh
142 Source13:       dep-tests.sh
143 Source14:       skip-tests.sh
144 Patch100:       https://php52-backports.googlecode.com/files/php52-backports-20130320.patch
145 # Patch100-md5: 8428acfb94d5804e00333db01f7cd8dd
146 Patch0:         %{orgname}-shared.patch
147 Patch1:         %{orgname}-pldlogo.patch
148 Patch2:         %{orgname}-mail.patch
149 Patch3:         %{orgname}-link-libs.patch
150 Patch4:         %{orgname}-libpq_fs_h_path.patch
151 Patch5:         %{orgname}-filter-shared.patch
152 Patch6:         %{orgname}-build_modules.patch
153 Patch7:         %{orgname}-sapi-ini-file.patch
154 Patch8:         %{orgname}-no-metaccld.patch
155 Patch9:         %{orgname}-sh.patch
156 Patch10:        %{orgname}-ini.patch
157 Patch11:        %{orgname}-acam.patch
158 Patch12:        %{orgname}-threads-acfix.patch
159 Patch13:        %{orgname}-tsrmlsfetchgcc2.patch
160 Patch14:        %{orgname}-no_pear_install.patch
161 Patch15:        %{orgname}-zlib.patch
162 Patch16:        %{orgname}-sybase-fix.patch
163 Patch17:        %{orgname}-readline.patch
164 Patch18:        %{orgname}-nohttpd.patch
165 Patch19:        %{orgname}-gd_imagerotate_enable.patch
166 Patch20:        %{orgname}-uint32_t.patch
167 Patch21:        %{orgname}-dba-link.patch
168 Patch22:        %{orgname}-both-apxs.patch
169 Patch23:        %{orgname}-builddir.patch
170 Patch24:        %{orgname}-zlib-for-getimagesize.patch
171 Patch25:        %{orgname}-versioning.patch
172 Patch26:        %{orgname}-pear.patch
173 Patch27:        %{orgname}-config-dir.patch
174 Patch28:        %{orgname}-bug-42952.patch
175 Patch29:        %{orgname}-fcgi-graceful.patch
176 Patch30:        %{orgname}-apr-apu.patch
177 Patch31:        %{orgname}-fcgi-error_log-no-newlines.patch
178 Patch32:        %{orgname}-curl-limit-speed.patch
179 Patch33:        %{orgname}-mime_magic.patch
180 Patch34:        %{orgname}-libtool.patch
181 Patch35:        %{orgname}-tds.patch
182 Patch36:        %{orgname}-mysql-charsetphpini.patch
183 Patch37:        %{orgname}-mysqli-charsetphpini.patch
184 Patch38:        %{orgname}-pdo_mysql-charsetphpini.patch
185 Patch39:        %{orgname}-use-prog_sendmail.patch
186 Patch40:        %{orgname}-fpm.patch
187 Patch41:        %{orgname}-fpm-config.patch
188 Patch42:        %{orgname}-fpm-initdir.patch
189 Patch43:        %{orgname}-silent-session-cleanup.patch
190 Patch44:        %{orgname}-include_path.patch
191 Patch45:        %{orgname}-imap-annotations.patch
192 Patch46:        %{orgname}-imap-myrights.patch
193 Patch47:        suhosin.patch
194 Patch49:        %{orgname}-m4-divert.patch
195 Patch50:        extension-shared-optional-dep.patch
196 Patch51:        spl-shared.patch
197 Patch52:        %{orgname}-libpng.patch
198 Patch53:        %{orgname}-gmp.patch
199 Patch54:        fix-test-run.patch
200 Patch55:        bug-52078-fileinode.patch
201 Patch56:        %{orgname}-krb5.patch
202 Patch57:        php-php_dl.patch
203 Patch58:        php-svn-281516.patch
204 Patch59:        %{orgname}-systzdata.patch
205 Patch60:        bug-60986.patch
206 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
207 Patch65:        system-libzip.patch
208 Patch66:        bug-47930.patch
209 Patch67:        php-db.patch
210 Patch68:        php-libxml.patch
211 Patch69:        bug-50563.patch
212 Patch70:        php-crypt-null.patch
213 Patch71:        php-apache24.patch
214 # CENTALT patches
215 # Backport from 5.3.6
216 Patch311:       php-5.3.6-bug-47435.patch
217 Patch314:       php-5.3.6-39199.patch
218 # 5.3.7
219 #Patch333: php-5.3.7-bug-54924.patch
220 Patch355:       php-5.3.7-bug-55323.patch
221 # Bug-323016 CVE-2012-0831
222 Patch402:       php-5.2.17-bug-323016.patch
223 URL:            https://code.google.com/p/php52-backports/
224 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
225 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
226 BuildRequires:  autoconf >= 2.53
227 BuildRequires:  automake >= 1.4d
228 BuildRequires:  bison
229 BuildRequires:  bzip2-devel
230 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
231 BuildRequires:  cyrus-sasl-devel
232 BuildRequires:  db-devel >= 4.0
233 BuildRequires:  elfutils-devel
234 %if %{with xmlrpc}
235 %{?with_system_xmlrpc_epi:BuildRequires:    xmlrpc-epi-devel}
236 %endif
237 %{?with_fcgi:BuildRequires:     fcgi-devel}
238 %{?with_fdf:BuildRequires:      fdftk-devel}
239 BuildRequires:  flex
240 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
241 BuildRequires:  freetds-devel
242 %{?with_system_libzip:BuildRequires:    libzip-devel >= 0.10-3}
243 %endif
244 BuildRequires:  freetype-devel >= 2.0
245 %if %{with system_gd}
246 BuildRequires:  gd-devel >= 2.0.28-4
247 BuildRequires:  gd-devel(imagerotate) = 5.2.0
248 %endif
249 BuildRequires:  gdbm-devel
250 BuildRequires:  gmp-devel
251 %{?with_imap:BuildRequires:     imap-devel >= 1:2007e-2}
252 BuildRequires:  libjpeg-devel
253 BuildRequires:  libltdl-devel >= 1.4
254 BuildRequires:  libmcrypt-devel >= 2.4.4
255 BuildRequires:  libpng-devel >= 1.0.8
256 BuildRequires:  libtiff-devel
257 %if "%{pld_release}" != "ac"
258 BuildRequires:  libtool >= 2:2.2
259 %else
260 BuildRequires:  libtool
261 %endif
262 BuildRequires:  libwrap-devel
263 BuildRequires:  libxml2-devel >= 1:2.7.6-4
264 BuildRequires:  libxslt-devel >= 1.1.0
265 %{?with_mhash:BuildRequires:    mhash-devel}
266 %{?with_ming:BuildRequires:     ming-devel >= 0.3}
267 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
268 BuildRequires:  mysql-devel >= 4.0.0
269 %{?with_mysqli:BuildRequires:   mysql-devel >= 4.1}
270 BuildRequires:  ncurses-ext-devel
271 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
272 %if %{with openssl} || %{with ldap}
273 BuildRequires:  openssl-devel >= 0.9.7d
274 %endif
275 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
276 %{?with_snmp:%{?with_tests:mibs-net-snmp}}
277 BuildRequires:  pam-devel
278 %{?with_pcre:BuildRequires:     pcre-devel >= 6.6}
279 BuildRequires:  pkgconfig
280 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
281 %{?with_pgsql:BuildRequires:    postgresql-devel}
282 BuildRequires:  readline-devel
283 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
284 BuildRequires:  rpm >= 4.4.9-56
285 BuildRequires:  rpm-build >= 4.4.0
286 BuildRequires:  rpmbuild(macros) >= 1.519
287 %{?with_sqlite:BuildRequires:   sqlite-devel}
288 %{?with_sqlite:BuildRequires:   sqlite3-devel}
289 BuildRequires:  t1lib-devel
290 %{?with_tidy:BuildRequires:     tidy-devel}
291 %{?with_odbc:BuildRequires:     unixODBC-devel}
292 BuildRequires:  zlib-devel >= 1.0.9
293 %if %{with apache1}
294 BuildRequires:  apache1-devel
295 %endif
296 %if %{with apache2}
297 BuildRequires:  apache-devel >= 2.0.52-2
298 BuildRequires:  apr-devel >= 1:1.0.0
299 BuildRequires:  apr-util-devel >= 1:1.0.0
300 %endif
301 %if %{with fpm}
302 BuildRequires:  judy-devel
303 BuildRequires:  libevent-devel >= 1.4.7-3
304 %endif
305 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
306
307 %define         php_sysconfdir          /etc/%{name}
308 %define         php_extensiondir        %{_libdir}/%{name}
309 %define         _sysconfdir                     %{php_sysconfdir}
310
311 # must be in sync with source. extra check ensuring that it is so is done in %%build
312 %define         php_api_version         20041225
313 %define         zend_module_api         20060613
314 %define         zend_extension_api      220060519
315 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
316 %define         php_debug               %{!?debug:0}%{?debug:1}
317
318 %if %{with oci8}
319 # ORACLE_HOME is required for oci8 ext to build
320 %define _preserve_env %_preserve_env_base ORACLE_HOME
321 %endif
322
323 %description
324 PHP is an HTML-embedded scripting language. PHP attempts to make it
325 easy for developers to write dynamically generated web pages. PHP also
326 offers built-in database integration for several commercial and
327 non-commercial database management systems, so writing a
328 database-enabled web page with PHP is fairly simple. The most common
329 use of PHP coding is probably as a replacement for CGI scripts. The
330 mod_php module enables the Apache web server to understand and process
331 the embedded PHP language in web pages. This package contains PHP
332 version %{version}.
333
334 %description -l fr.UTF-8
335 PHP est un langage de script embarque dans le HTM. PHP essaye de
336 rendre simple aux developpeurs d'ecrire des pages web generees
337 dynamiquement. PHP incorpore egalement une integration avec plusieurs
338 systemes de gestion de bases de donnees commerciaux et
339 non-connerciaux, qui rent facile la creation de pages web liees avec
340 des bases de donnees. L'utilisation la plus commune de PHP est
341 probablement en remplacement de scripts CGI. Le module mod_php permet
342 au serveur web Apache de comprendre et de traiter le langage PHP
343 integre dans des pages web. Ce package contient PHP version
344 %{version}.
345
346 %description -l pl.UTF-8
347 PHP jest językiem skryptowym, którego polecenia umieszcza się w
348 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
349 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
350 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
351 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
352 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
353 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
354 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
355 %{version}.
356
357 %description -l pt_BR.UTF-8
358 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
359 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
360 com algumas características únicas, específicas ao PHP. O objetivo da
361 linguagem é permitir que desenvolvedores web escrevam páginas
362 dinamicamente geradas de forma rápida.
363
364 %description -l ru.UTF-8
365 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
366 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
367 для работы с базами данных относительно просто. Наиболее популярное
368 использование PHP - замена для CGI скриптов.
369
370 %description -l uk.UTF-8
371 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
372 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
373 роботи з базами даних є доволі простим. Найбільш популярне
374 використання PHP - заміна для CGI скриптів.
375
376 %package -n apache1-mod_%{name}
377 Summary:        PHP DSO module for Apache 1.3.x
378 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
379 Group:          Development/Languages/PHP
380 Requires(triggerpostun):        sed >= 4.0
381 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
382 Requires:       apache1(EAPI) >= 1.3.33-2
383 Requires:       apache1-mod_mime
384 Provides:       webserver(php) = %{version}
385 Obsoletes:      apache-mod_php < 1:4.1.1
386 Obsoletes:      phpfi
387
388 %description -n apache1-mod_%{name}
389 PHP as DSO module for Apache 1.3.x.
390
391 %description -n apache1-mod_%{name} -l pl.UTF-8
392 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
393
394 %package -n apache-mod_%{name}
395 Summary:        PHP DSO module for Apache 2.x
396 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
397 Group:          Development/Languages/PHP
398 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
399 Requires:       apache(modules-api) = %{apache_modules_api}
400 Requires:       apache-mod_mime
401 Provides:       webserver(php) = %{version}
402 Obsoletes:      phpfi
403
404 %description -n apache-mod_%{name}
405 PHP as DSO module for Apache 2.x.
406
407 %description -n apache-mod_%{name} -l pl.UTF-8
408 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
409
410 %package fcgi
411 Summary:        php as FastCGI program
412 Summary(pl.UTF-8):      php jako program FastCGI
413 Group:          Development/Languages/PHP
414 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
415 Provides:       php(fcgi)
416 Provides:       webserver(php) = %{version}
417
418 %description fcgi
419 php as FastCGI program.
420
421 %description fcgi -l pl.UTF-8
422 php jako program FastCGI.
423
424 %package cgi
425 Summary:        PHP as CGI/FastCGI program
426 Summary(pl.UTF-8):      PHP jako program CGI/FastCGI
427 Group:          Development/Languages/PHP
428 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
429 Provides:       php(cgi)
430 Provides:       webserver(php) = %{version}
431 %if "%{pld_release}" != "ac"
432 Conflicts:      logrotate < 3.8.0
433 %endif
434
435 %description cgi
436 php as CGI program.
437
438 %description cgi -l pl.UTF-8
439 php jako program CGI.
440
441 %package cli
442 Summary:        PHP as CLI interpreter
443 Summary(pl.UTF-8):      PHP jako interpreter działający z linii poleceń
444 Group:          Development/Languages/PHP
445 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
446
447 %description cli
448 PHP as CLI interpreter.
449
450 %description cli -l pl.UTF-8
451 PHP jako interpreter działający z linii poleceń.
452
453 %package program
454 Summary:        /usr/bin/php symlink
455 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
456 Group:          Development/Languages/PHP
457 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
458 Obsoletes:      /usr/bin/php
459
460 %description program
461 Package providing /usr/bin/php symlink to PHP CLI.
462
463 %description program -l pl.UTF-8
464 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
465
466 %package fpm
467 Summary:        PHP FastCGI Process Manager
468 Summary(pl.UTF-8):      PHP FastCGI Process Manager - zarządca procesów FastCGI
469 Group:          Development/Languages/PHP
470 URL:            http://www.php-fpm.org/
471 Requires(post,preun):   /sbin/chkconfig
472 Requires(postun):       /usr/sbin/userdel
473 Requires(pre):  /bin/id
474 Requires(pre):  /usr/sbin/useradd
475 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
476 Requires:       libevent >= 1.4.7-3
477 Requires:       rc-scripts
478 Provides:       user(http)
479 Provides:       webserver(php) = %{version}
480
481 %description fpm
482 PHP FastCGI Process Manager.
483
484 %description fpm -l pl.UTF-8
485 PHP FastCGI Process Manager - zarządca procesów FastCGI.
486
487 %package common
488 Summary:        Common files needed by both Apache modules and CGI/CLI SAPI-s
489 Summary(pl.UTF-8):      Wspólne pliki dla modułu Apache'a i programu CGI
490 Summary(ru.UTF-8):      Разделяемые библиотеки для PHP
491 Summary(uk.UTF-8):      Бібліотеки спільного використання для PHP
492 Group:          Libraries
493 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
494 Requires:       glibc >= 6:2.3.5
495 Requires:       php-dirs >= 1.4
496 Requires:       rpm-whiteout >= 1.28
497 Requires:       tzdata
498 Provides:       php(core) = %{version}
499 Provides:       php(date)
500 Provides:       php(ereg)
501 Provides:       php(libxml)
502 %{?with_zend_multibyte:Provides:        php(mbstring)}
503 Provides:       php(modules_api) = %{php_api_version}
504 Provides:       php(overload)
505 Provides:       php(reflection)
506 Provides:       php(standard)
507 Provides:       php(zend_extension_api) = %{zend_extension_api}
508 Provides:       php(zend_module_api) = %{zend_module_api}
509 Provides:       php-core
510 Provides:       php-date
511 Provides:       php-ereg
512 %{?with_zend_multibyte:Provides:        php-mbstring = %{epoch}:%{version}-%{release}}
513 Provides:       php-overload
514 Provides:       php-reflection
515 Provides:       php-standard
516 Provides:       php5(debug) = %{php_debug}
517 Provides:       php5(thread-safety) = %{zend_zts}
518 # ensure backward compatibility for Titanium
519 # to be dropped in future but ask Titanium RM before doing so
520 %if "%{pld_release}" == "ti"
521 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
522 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
523 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
524 %endif
525 %if "%{pld_release}" == "ac"
526 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
527 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
528 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
529 %endif
530 Obsoletes:      php-pecl-domxml
531 Conflicts:      php-pecl-memcache < 3.0.4-2
532 Conflicts:      php4-common < 3:4.4.4-8
533 Conflicts:      rpm < 4.4.2-0.2
534
535 %description common
536 Common files needed by both Apache modules and CGI/CLI SAPI-s.
537
538 %description common -l pl.UTF-8
539 Wspólne pliki dla modułu Apache'a i programu CGI.
540
541 %description common -l ru.UTF-8
542 Этот пакет содержит общие файлы для разных вариантов реализации PHP
543 (самодостаточной и в качестве модуля Apache).
544
545 %description common -l uk.UTF-8
546 Цей пакет містить спільні файли для різних варіантів реалізації PHP
547 (самодостатньої та в якості модуля Apache).
548
549 %package devel
550 Summary:        Files for PHP modules development
551 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
552 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
553 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
554 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
555 Group:          Development/Languages/PHP
556 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
557 Requires:       autoconf
558 Requires:       automake
559 %if "%{pld_release}" != "ac"
560 Requires:       libtool >= 2:2.2
561 %else
562 Requires:       libtool
563 %endif
564 %{?with_pcre:Requires:  pcre-devel >= 6.6}
565 Requires:       shtool
566 Obsoletes:      php-devel
567 Obsoletes:      php-pear-devel
568 Obsoletes:      php4-devel
569 Obsoletes:      php53-devel
570 Obsoletes:      php54-devel
571
572 %description devel
573 The php-devel package lets you compile dynamic extensions to PHP.
574 Included here is the source for the PHP extensions. Instead of
575 recompiling the whole PHP binary to add support for, say, oracle,
576 install this package and use the new self-contained extensions
577 support. For more information, read the file
578 README.SELF-CONTAINED-EXTENSIONS.
579
580 %description devel -l pl.UTF-8
581 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
582 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
583 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
584 samodzielnych rozszerzeniach można znaleźć w pliku
585 README.SELF-CONTAINED-EXTENSIONS.
586
587 %description devel -l pt_BR.UTF-8
588 Este pacote contém arquivos usados no desenvolvimento de programas ou
589 módulos PHP.
590
591 %description devel -l ru.UTF-8
592 Пакет php-devel дает возможность компилировать динамические расширения
593 PHP. Пакет включает исходный код этих расширений. Вместо повторной
594 компиляции бинарного файла PHP для добавления, например, поддержки
595 oracle, установите этот пакет для компилирования отдельных расширений.
596 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
597
598 %description devel -l uk.UTF-8
599 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
600 До пакету включено вихідний код для розширень. Замість повторної
601 компіляції бінарного файлу PHP для додання, наприклад, підтримки
602 oracle, встановіть цей пакет для компіляції окремих розширень.
603 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
604
605 %package bcmath
606 Summary:        bcmath extension module for PHP
607 Summary(pl.UTF-8):      Moduł bcmath dla PHP
608 Group:          Libraries
609 URL:            http://www.php.net/manual/en/book.bc.php
610 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
611 Provides:       php(bcmath)
612
613 %description bcmath
614 This is a dynamic shared object (DSO) for PHP that will add bc style
615 precision math functions support.
616
617 %description bcmath -l pl.UTF-8
618 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
619 matematycznych takich jak w programie bc.
620
621 %package bz2
622 Summary:        Bzip2 extension module for PHP
623 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
624 Group:          Libraries
625 URL:            http://www.php.net/manual/en/book.bzip2.php
626 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
627 Provides:       php(bz2)
628 Provides:       php(bzip2)
629 Provides:       php-bzip2 = %{epoch}:%{version}-%{release}
630 Obsoletes:      php-bzip2
631
632 %description bz2
633 This is a dynamic shared object (DSO) for PHP that will add bzip2
634 compression support to PHP.
635
636 %description bz2 -l pl.UTF-8
637 Moduł PHP umożliwiający używanie kompresji bzip2.
638
639 %package calendar
640 Summary:        Calendar extension module for PHP
641 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
642 Group:          Libraries
643 URL:            http://www.php.net/manual/en/book.calendar.php
644 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
645 Provides:       php(calendar)
646
647 %description calendar
648 This is a dynamic shared object (DSO) for PHP that will add calendar
649 support.
650
651 %description calendar -l pl.UTF-8
652 Moduł PHP dodający wsparcie dla kalendarza.
653
654 %package ctype
655 Summary:        ctype extension module for PHP
656 Summary(pl.UTF-8):      Moduł ctype dla PHP
657 Group:          Libraries
658 URL:            http://www.php.net/manual/en/book.ctype.php
659 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
660 Provides:       php(ctype)
661
662 %description ctype
663 This is a dynamic shared object (DSO) for PHP that will add ctype
664 support.
665
666 %description ctype -l pl.UTF-8
667 Moduł PHP umożliwiający korzystanie z funkcji ctype.
668
669 %package curl
670 Summary:        curl extension module for PHP
671 Summary(pl.UTF-8):      Moduł curl dla PHP
672 Group:          Libraries
673 URL:            http://www.php.net/manual/en/book.curl.php
674 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
675 Provides:       php(curl)
676
677 %description curl
678 This is a dynamic shared object (DSO) for PHP that will add curl
679 support.
680
681 %description curl -l pl.UTF-8
682 Moduł PHP umożliwiający korzystanie z biblioteki curl.
683
684 %package dba
685 Summary:        DBA extension module for PHP
686 Summary(pl.UTF-8):      Moduł DBA dla PHP
687 Group:          Libraries
688 URL:            http://www.php.net/manual/en/book.dba.php
689 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
690 Provides:       php(dba)
691
692 %description dba
693 This is a dynamic shared object (DSO) for PHP that will add flat-file
694 databases (DBA) support.
695
696 %description dba -l pl.UTF-8
697 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
698 (DBA).
699
700 %package dbase
701 Summary:        DBase extension module for PHP
702 Summary(pl.UTF-8):      Moduł DBase dla PHP
703 Group:          Libraries
704 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
705 Provides:       php(dbase)
706
707 %description dbase
708 This is a dynamic shared object (DSO) for PHP that will add DBase
709 support.
710
711 %description dbase -l pl.UTF-8
712 Moduł PHP ze wsparciem dla DBase.
713
714 %package dom
715 Summary:        DOM extension module for PHP
716 Summary(pl.UTF-8):      Moduł DOM dla PHP
717 Group:          Libraries
718 URL:            http://www.php.net/manual/en/book.dom.php
719 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
720 Provides:       php(dom)
721 # it has some compatibility functions
722 Provides:       php(domxml)
723 Provides:       php-domxml = %{epoch}:%{version}-%{release}
724 Obsoletes:      php-domxml <= 3:4.3.8-1
725
726 %description dom
727 This is a dynamic shared object (DSO) for PHP that will add new DOM
728 support.
729
730 %description dom -l pl.UTF-8
731 Moduł PHP dodający nową obsługę DOM.
732
733 %package exif
734 Summary:        exif extension module for PHP
735 Summary(pl.UTF-8):      Moduł exif dla PHP
736 Group:          Libraries
737 URL:            http://www.php.net/manual/en/book.exif.php
738 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
739 Provides:       php(exif)
740
741 %description exif
742 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
743 support in image files.
744
745 %description exif -l pl.UTF-8
746 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
747
748 %package fdf
749 Summary:        FDF extension module for PHP
750 Summary(pl.UTF-8):      Moduł FDF dla PHP
751 Group:          Libraries
752 URL:            http://www.php.net/manual/en/book.fdf.php
753 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
754 Provides:       php(fdf)
755
756 %description fdf
757 This PHP module adds support for PDF Forms through Adobe FDFTK
758 library.
759
760 %description fdf -l pl.UTF-8
761 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
762 FDFTK.
763
764 %package filter
765 Summary:        Extension for safely dealing with input parameters
766 Summary(pl.UTF-8):      Rozszerzenie do bezpiecznej obsługi danych wejściowych
767 Group:          Libraries
768 URL:            http://www.php.net/manual/en/book.filter.php
769 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
770 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
771 Provides:       php(filter)
772 Obsoletes:      php-pecl-filter
773
774 %description filter
775 We all know that you should always check input variables, but PHP does
776 not offer really good functionality for doing this in a safe way. The
777 Input Filter extension is meant to address this issue by implementing
778 a set of filters and mechanisms that users can use to safely access
779 their input data.
780
781 %description filter -l pl.UTF-8
782 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
783 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
784 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
785 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
786 mogą bezpiecznie używać do dostępu do danych.
787
788 %package ftp
789 Summary:        FTP extension module for PHP
790 Summary(pl.UTF-8):      Moduł FTP dla PHP
791 Group:          Libraries
792 URL:            http://www.php.net/manual/en/book.ftp.php
793 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
794 Provides:       php(ftp)
795
796 %description ftp
797 This is a dynamic shared object (DSO) for PHP that will add FTP
798 support.
799
800 %description ftp -l pl.UTF-8
801 Moduł PHP dodający obsługę protokołu FTP.
802
803 %package gd
804 Summary:        GD extension module for PHP
805 Summary(pl.UTF-8):      Moduł GD dla PHP
806 Group:          Libraries
807 URL:            http://www.php.net/manual/en/book.image.php
808 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
809 %if %{with system_gd}
810 Requires:       gd >= 2.0.28-4
811 Requires:       gd(gif)
812 Requires:       gd(imagerotate) = 5.2.0
813 %endif
814 Provides:       php(gd)
815
816 %description gd
817 This is a dynamic shared object (DSO) for PHP that will add GD
818 support, allowing you to create and manipulate images with PHP.
819
820 %description gd -l pl.UTF-8
821 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
822 tworzenie i obróbkę obrazków.
823
824 %package gettext
825 Summary:        gettext extension module for PHP
826 Summary(pl.UTF-8):      Moduł gettext dla PHP
827 Group:          Libraries
828 URL:            http://www.php.net/manual/en/book.gettext.php
829 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
830 Provides:       php(gettext)
831
832 %description gettext
833 This is a dynamic shared object (DSO) for PHP that will add gettext
834 support.
835
836 %description gettext -l pl.UTF-8
837 Moduł PHP dodający obsługę lokalizacji przez gettext.
838
839 %package gmp
840 Summary:        gmp extension module for PHP
841 Summary(pl.UTF-8):      Moduł gmp dla PHP
842 Group:          Libraries
843 URL:            http://www.php.net/manual/en/book.gmp.php
844 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
845 Provides:       php(gmp)
846
847 %description gmp
848 This is a dynamic shared object (DSO) for PHP that will add arbitrary
849 length number support with GNU MP library.
850
851 %description gmp -l pl.UTF-8
852 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
853 liczbach o dowolnej długości.
854
855 %package hash
856 Summary:        HASH Message Digest Framework
857 Summary(pl.UTF-8):      Szkielet do obliczania skrótów wiadomości
858 Group:          Libraries
859 URL:            http://www.php.net/manual/en/book.gmp.php
860 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
861 Provides:       php(hash)
862 Obsoletes:      php-pecl-hash
863
864 %description hash
865 Native implementations of common message digest algorithms using a
866 generic factory method.
867
868 %description hash -l pl.UTF-8
869 Natywne implementacje popularnych algorytmów obliczania skrótów
870 wiadomości przy użyciu wspólnego interfejsu.
871
872 %package iconv
873 Summary:        iconv extension module for PHP
874 Summary(pl.UTF-8):      Moduł iconv dla PHP
875 Group:          Libraries
876 URL:            http://www.php.net/manual/en/book.iconv.php
877 Requires:       %{_libdir}/gconv
878 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
879 Requires:       iconv
880 Provides:       php(iconv)
881
882 %description iconv
883 This is a dynamic shared object (DSO) for PHP that will add iconv
884 support.
885
886 %description iconv -l pl.UTF-8
887 Moduł PHP dodający obsługę iconv.
888
889 %package imap
890 Summary:        IMAP extension module for PHP
891 Summary(pl.UTF-8):      Moduł IMAP dla PHP
892 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
893 Group:          Libraries
894 URL:            http://www.php.net/manual/en/book.imap.php
895 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
896 Provides:       php(imap)
897
898 %description imap
899 This is a dynamic shared object (DSO) for PHP that will add IMAP
900 support.
901
902 %description imap -l pl.UTF-8
903 Moduł PHP dodający obsługę skrzynek IMAP.
904
905 %description imap -l pt_BR.UTF-8
906 Um módulo para aplicações PHP que usam IMAP.
907
908 %package interbase
909 Summary:        InterBase/Firebird database module for PHP
910 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
911 Group:          Libraries
912 URL:            http://www.php.net/manual/en/book.ibase.php
913 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
914 Provides:       php(interbase)
915 %{?with_interbase_inst:Autoreq: false}
916
917 %description interbase
918 This is a dynamic shared object (DSO) for PHP that will add InterBase
919 and Firebird database support.
920
921 %description interbase -l pl.UTF-8
922 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
923
924 %package json
925 Summary:        PHP C extension for JSON serialization
926 Summary(pl.UTF-8):      Rozszerzenie C PHP dla serializacji JSON
927 Group:          Libraries
928 URL:            http://www.php.net/manual/en/book.json.php
929 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
930 Provides:       php(json)
931 Obsoletes:      php-pecl-json
932
933 %description json
934 php-json is an extremely fast PHP C extension for JSON (JavaScript
935 Object Notation) serialisation.
936
937 %description json -l pl.UTF-8
938 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
939 (JavaScript Object Notation).
940
941 %package ldap
942 Summary:        LDAP extension module for PHP
943 Summary(pl.UTF-8):      Moduł LDAP dla PHP
944 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
945 Group:          Libraries
946 URL:            http://www.php.net/manual/en/book.ldap.php
947 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
948 Provides:       php(ldap)
949
950 %description ldap
951 This is a dynamic shared object (DSO) for PHP that will add LDAP
952 support.
953
954 %description ldap -l pl.UTF-8
955 Moduł PHP dodający obsługę LDAP.
956
957 %description ldap -l pt_BR.UTF-8
958 Um módulo para aplicações PHP que usam LDAP.
959
960 %package mbstring
961 Summary:        mbstring extension module for PHP
962 Summary(pl.UTF-8):      Moduł mbstring dla PHP
963 Group:          Libraries
964 URL:            http://www.php.net/manual/en/book.mbstring.php
965 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
966 Provides:       php(mbstring)
967
968 %description mbstring
969 This is a dynamic shared object (DSO) for PHP that will add multibyte
970 string support.
971
972 %description mbstring -l pl.UTF-8
973 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
974
975 %package mcrypt
976 Summary:        mcrypt extension module for PHP
977 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
978 Group:          Libraries
979 URL:            http://www.php.net/manual/en/book.mcrypt.php
980 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
981 Provides:       php(mcrypt)
982
983 %description mcrypt
984 This is a dynamic shared object (DSO) for PHP that will add mcrypt
985 support.
986
987 %description mcrypt -l pl.UTF-8
988 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
989
990 %package mhash
991 Summary:        mhash extension module for PHP
992 Summary(pl.UTF-8):      Moduł mhash dla PHP
993 Group:          Libraries
994 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
995 Provides:       php(mhash)
996
997 %description mhash
998 This is a dynamic shared object (DSO) for PHP that will add mhash
999 support.
1000
1001 %description mhash -l pl.UTF-8
1002 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1003
1004 %package mime_magic
1005 Summary:        mime_magic extension module for PHP
1006 Summary(pl.UTF-8):      Moduł mime_magic dla PHP
1007 Group:          Libraries
1008 Requires:       %{magic_mime}
1009 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1010 Provides:       php(mime_magic)
1011
1012 %description mime_magic
1013 This PHP module adds support for MIME type lookup via file magic
1014 numbers using magic.mime database.
1015
1016 %description mime_magic -l pl.UTF-8
1017 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1018 znaczników plików z użyciem bazy danych magic.mime.
1019
1020 %package ming
1021 Summary:        ming extension module for PHP
1022 Summary(pl.UTF-8):      Moduł ming dla PHP
1023 Group:          Libraries
1024 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1025 Requires:       ming >= 0.3
1026 Provides:       php(ming)
1027
1028 %description ming
1029 This is a dynamic shared object (DSO) for PHP that will add ming
1030 (Flash - .swf files) support.
1031
1032 %description ming -l pl.UTF-8
1033 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1034 ming.
1035
1036 %package mssql
1037 Summary:        MS SQL extension module for PHP
1038 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1039 Group:          Libraries
1040 URL:            http://www.php.net/manual/en/book.mssql.php
1041 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1042 Provides:       php(mssql)
1043
1044 %description mssql
1045 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1046 databases support through FreeTDS library.
1047
1048 %description mssql -l pl.UTF-8
1049 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1050 FreeTDS.
1051
1052 %package mysql
1053 Summary:        MySQL database module for PHP
1054 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1055 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1056 Group:          Libraries
1057 URL:            http://www.php.net/manual/en/book.mysql.php
1058 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1059 Provides:       php(mysql)
1060
1061 %description mysql
1062 This is a dynamic shared object (DSO) for PHP that will add MySQL
1063 database support.
1064
1065 %description mysql -l pl.UTF-8
1066 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1067
1068 %description mysql -l pt_BR.UTF-8
1069 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1070
1071 %package mysqli
1072 Summary:        MySQLi module for PHP
1073 Summary(pl.UTF-8):      Moduł MySQLi dla PHP
1074 Group:          Libraries
1075 URL:            http://www.php.net/manual/en/book.mysqli.php
1076 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1077 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1078 Requires:       mysql-libs >= 4.1.0
1079 Provides:       php(mysqli)
1080
1081 %description mysqli
1082 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1083 (Improved MySQL) support. The difference between it and mysql module
1084 is that it provides access to functionality of MySQL 4.1 and above.
1085
1086 %description mysqli -l pl.UTF-8
1087 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1088 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1089 MySQL w wersji 4.1 i nowszych.
1090
1091 %package ncurses
1092 Summary:        ncurses module for PHP
1093 Summary(pl.UTF-8):      Moduł ncurses dla PHP
1094 Group:          Libraries
1095 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1096 Provides:       php(ncurses)
1097
1098 %description ncurses
1099 This PHP module adds support for ncurses functions (only for cli and
1100 cgi SAPIs).
1101
1102 %description ncurses -l pl.UTF-8
1103 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1104
1105 %package oci8
1106 Summary:        Oracle 8+ database module for PHP
1107 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8+ dla PHP
1108 Group:          Libraries
1109 URL:            http://www.php.net/manual/en/book.oci8.php
1110 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1111 Provides:       php(oci8)
1112 AutoReq:        false
1113
1114 %description oci8
1115 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1116 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1117
1118 %description oci8 -l pl.UTF-8
1119 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1120 poprzez interfejs Oracle8 Call-Interface (OCI8).
1121
1122 %package odbc
1123 Summary:        ODBC extension module for PHP
1124 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1125 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1126 Group:          Libraries
1127 URL:            http://www.php.net/manual/en/book.uodbc.php
1128 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1129 Requires:       unixODBC >= 2.1.1-3
1130 Provides:       php(odbc)
1131
1132 %description odbc
1133 This is a dynamic shared object (DSO) for PHP that will add ODBC
1134 support.
1135
1136 %description odbc -l pl.UTF-8
1137 Moduł PHP ze wsparciem dla ODBC.
1138
1139 %description odbc -l pt_BR.UTF-8
1140 Um módulo para aplicações PHP que usam ODBC.
1141
1142 %package openssl
1143 Summary:        OpenSSL extension module for PHP
1144 Summary(pl.UTF-8):      Moduł OpenSSL dla PHP
1145 Group:          Libraries
1146 URL:            http://www.php.net/manual/en/book.openssl.php
1147 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1148 Provides:       php(openssl)
1149
1150 %description openssl
1151 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1152 support.
1153
1154 %description openssl -l pl.UTF-8
1155 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1156
1157 %package pcntl
1158 Summary:        Process Control extension module for PHP
1159 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1160 Group:          Libraries
1161 URL:            http://www.php.net/manual/en/book.pcntl.php
1162 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1163 Provides:       php(pcntl)
1164
1165 %description pcntl
1166 This is a dynamic shared object (DSO) for PHP that will add process
1167 spawning and control support. It supports functions like fork(),
1168 waitpid(), signal() etc.
1169
1170 %description pcntl -l pl.UTF-8
1171 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1172 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1173
1174 %package pcre
1175 Summary:        PCRE extension module for PHP
1176 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1177 Group:          Libraries
1178 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1179 Provides:       php(pcre)
1180
1181 %description pcre
1182 This is a dynamic shared object (DSO) for PHP that will add Perl
1183 Compatible Regular Expression support.
1184
1185 %description pcre -l pl.UTF-8
1186 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1187 (Perl Compatible Regular Expressions)
1188
1189 %package pdo
1190 Summary:        PHP Data Objects (PDO)
1191 Summary(pl.UTF-8):      Obsługa PHP Data Objects (PDO)
1192 Group:          Libraries
1193 URL:            http://www.php.net/manual/en/book.pdo.php
1194 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1195 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1196 Provides:       php(pdo)
1197 Obsoletes:      php-pecl-PDO
1198
1199 %description pdo
1200 This is a dynamic shared object (DSO) for PHP that will add PDO
1201 support.
1202
1203 %description pdo -l pl.UTF-8
1204 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1205
1206 %package pdo-dblib
1207 Summary:        PHP Data Objects (PDO) FreeTDS support
1208 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1209 Group:          Libraries
1210 URL:            http://www.php.net/manual/en/ref.pdo-dblib.php
1211 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1212 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1213 Provides:       php(dblib)
1214
1215 %description pdo-dblib
1216 This is a dynamic shared object (DSO) for PHP that will add PDO
1217 FreeTDS support.
1218
1219 %description pdo-dblib -l pl.UTF-8
1220 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1221 interfejsu PDO.
1222
1223 %package pdo-firebird
1224 Summary:        PHP Data Objects (PDO) Firebird support
1225 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Firebirda
1226 Group:          Libraries
1227 URL:            http://www.php.net/manual/en/ref.pdo-firebird.php
1228 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1229 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1230 Provides:       php(pdo-firebird)
1231 Obsoletes:      php-pecl-PDO_FIREBIRD
1232
1233 %description pdo-firebird
1234 This is a dynamic shared object (DSO) for PHP that will add PDO
1235 Firebird support.
1236
1237 %description pdo-firebird -l pl.UTF-8
1238 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1239 interfejsu PDO.
1240
1241 %package pdo-mysql
1242 Summary:        PHP Data Objects (PDO) MySQL support
1243 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1244 Group:          Libraries
1245 URL:            http://www.php.net/manual/en/ref.pdo-mysql.php
1246 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1247 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1248 Provides:       php(pdo-mysql)
1249 Obsoletes:      php-pecl-PDO_MYSQL
1250
1251 %description pdo-mysql
1252 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1253 support.
1254
1255 %description pdo-mysql -l pl.UTF-8
1256 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1257 interfejsu PDO.
1258
1259 %package pdo-oci
1260 Summary:        PHP Data Objects (PDO) Oracle support
1261 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1262 Group:          Libraries
1263 URL:            http://www.php.net/manual/en/ref.pdo-oci.php
1264 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1265 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1266 Provides:       php(pdo-oci)
1267 Obsoletes:      php-pecl-PDO_OCI
1268
1269 %description pdo-oci
1270 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1271 support.
1272
1273 %description pdo-oci -l pl.UTF-8
1274 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1275 interfejsu PDO.
1276
1277 %package pdo-odbc
1278 Summary:        PHP Data Objects (PDO) ODBC support
1279 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą ODBC
1280 Group:          Libraries
1281 URL:            http://www.php.net/manual/en/ref.pdo-odbc.php
1282 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1283 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1284 Provides:       php(pdo-odbc)
1285 Obsoletes:      php-pecl-PDO_ODBC
1286
1287 %description pdo-odbc
1288 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1289 support.
1290
1291 %description pdo-odbc -l pl.UTF-8
1292 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1293 interfejsu PDO.
1294
1295 %package pdo-pgsql
1296 Summary:        PHP Data Objects (PDO) PostgreSQL support
1297 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1298 Group:          Libraries
1299 URL:            http://www.php.net/manual/en/ref.pdo-pgsql.php
1300 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1301 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1302 Provides:       php(pdo-pgsql)
1303 Provides:       php-pecl-PDO_PGSQL
1304 Obsoletes:      php-pecl-PDO_PGSQL
1305
1306 %description pdo-pgsql
1307 This is a dynamic shared object (DSO) for PHP that will add PDO
1308 PostgreSQL support.
1309
1310 %description pdo-pgsql -l pl.UTF-8
1311 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1312 interfejsu PDO.
1313
1314 %package pdo-sqlite
1315 Summary:        PHP Data Objects (PDO) SQLite support
1316 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą SQLite
1317 Group:          Libraries
1318 URL:            http://www.php.net/manual/en/ref.pdo-sqlite.php
1319 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1320 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1321 Provides:       php(pdo-sqlite)
1322 Obsoletes:      php-pecl-PDO_SQLITE
1323
1324 %description pdo-sqlite
1325 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1326 support.
1327
1328 %description pdo-sqlite -l pl.UTF-8
1329 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1330 interfejsu PDO.
1331
1332 %package pgsql
1333 Summary:        PostgreSQL database module for PHP
1334 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1335 Group:          Libraries
1336 URL:            http://www.php.net/manual/en/book.pgsql.php
1337 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1338 Provides:       php(pgsql)
1339
1340 %description pgsql
1341 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1342 database support.
1343
1344 %description pgsql -l pl.UTF-8
1345 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1346
1347 %description pgsql -l pt_BR.UTF-8
1348 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1349
1350 %package posix
1351 Summary:        POSIX extension module for PHP
1352 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1353 Group:          Libraries
1354 URL:            http://www.php.net/manual/en/book.posix.php
1355 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1356 Provides:       php(posix)
1357
1358 %description posix
1359 This is a dynamic shared object (DSO) for PHP that will add POSIX
1360 functions support to PHP.
1361
1362 %description posix -l pl.UTF-8
1363 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1364
1365 %package pspell
1366 Summary:        pspell extension module for PHP
1367 Summary(pl.UTF-8):      Moduł pspell dla PHP
1368 Group:          Libraries
1369 URL:            http://www.php.net/manual/en/book.pspell.php
1370 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1371 Provides:       php(pspell)
1372
1373 %description pspell
1374 This is a dynamic shared object (DSO) for PHP that will add pspell
1375 support to PHP. It allows to check the spelling of a word and offer
1376 suggestions.
1377
1378 %description pspell -l pl.UTF-8
1379 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1380 sprawdzanie pisowni słowa i sugerowanie poprawek.
1381
1382 %package readline
1383 Summary:        readline extension module for PHP
1384 Summary(pl.UTF-8):      Moduł readline dla PHP
1385 Group:          Libraries
1386 URL:            http://www.php.net/manual/en/book.readline.php
1387 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1388 Provides:       php(readline)
1389
1390 %description readline
1391 This PHP module adds support for readline functions (only for cli and
1392 cgi SAPIs).
1393
1394 %description readline -l pl.UTF-8
1395 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1396
1397 %package recode
1398 Summary:        recode extension module for PHP
1399 Summary(pl.UTF-8):      Moduł recode dla PHP
1400 Group:          Libraries
1401 URL:            http://www.php.net/manual/en/book.recode.php
1402 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1403 Requires:       recode >= 3.5d-3
1404 Provides:       php(recode)
1405
1406 %description recode
1407 This is a dynamic shared object (DSO) for PHP that will add recode
1408 support.
1409
1410 %description recode -l pl.UTF-8
1411 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1412 bibliotekę recode).
1413
1414 %package session
1415 Summary:        session extension module for PHP
1416 Summary(pl.UTF-8):      Moduł session dla PHP
1417 Group:          Libraries
1418 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1419 Suggests:       %{name}-hash = %{epoch}:%{version}-%{release}
1420 Provides:       php(session)
1421
1422 %description session
1423 This is a dynamic shared object (DSO) for PHP that will add session
1424 support.
1425
1426 %description session -l pl.UTF-8
1427 Moduł PHP dodający obsługę sesji.
1428
1429 %package shmop
1430 Summary:        Shared Memory Operations extension module for PHP
1431 Summary(pl.UTF-8):      Moduł shmop dla PHP
1432 Group:          Libraries
1433 URL:            http://www.php.net/manual/en/book.shmop.php
1434 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1435 Provides:       php(shmop)
1436
1437 %description shmop
1438 This is a dynamic shared object (DSO) for PHP that will add Shared
1439 Memory Operations support.
1440
1441 %description shmop -l pl.UTF-8
1442 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1443
1444 %package simplexml
1445 Summary:        Simple XML extension module for PHP
1446 Summary(pl.UTF-8):      Moduł prostego rozszerzenia XML dla PHP
1447 Group:          Libraries
1448 URL:            http://www.php.net/manual/en/book.simplexml.php
1449 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1450 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1451 Provides:       php(simplexml)
1452
1453 %description simplexml
1454 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1455 support.
1456
1457 %description simplexml -l pl.UTF-8
1458 Moduł PHP dodający obsługę prostego XML-a.
1459
1460 %package snmp
1461 Summary:        SNMP extension module for PHP
1462 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1463 Group:          Libraries
1464 URL:            http://www.php.net/manual/en/book.snmp.php
1465 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1466 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1467 Provides:       php(snmp)
1468
1469 %description snmp
1470 This is a dynamic shared object (DSO) for PHP that will add SNMP
1471 support.
1472
1473 %description snmp -l pl.UTF-8
1474 Moduł PHP dodający obsługę SNMP.
1475
1476 %package soap
1477 Summary:        soap extension module for PHP
1478 Summary(pl.UTF-8):      Moduł soap dla PHP
1479 Group:          Libraries
1480 URL:            http://www.php.net/manual/en/book.soap.php
1481 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1482 Provides:       php(soap)
1483
1484 %description soap
1485 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1486 support.
1487
1488 %description soap -l pl.UTF-8
1489 Moduł PHP dodający obsługę SOAP/WSDL.
1490
1491 %package sockets
1492 Summary:        sockets extension module for PHP
1493 Summary(pl.UTF-8):      Moduł socket dla PHP
1494 Group:          Libraries
1495 URL:            http://www.php.net/manual/en/book.sockets.php
1496 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1497 Provides:       php(sockets)
1498
1499 %description sockets
1500 This is a dynamic shared object (DSO) for PHP that will add sockets
1501 support.
1502
1503 %description sockets -l pl.UTF-8
1504 Moduł PHP dodający obsługę gniazdek.
1505
1506 %package spl
1507 Summary:        Standard PHP Library module for PHP
1508 Summary(pl.UTF-8):      Moduł SPL dla PHP
1509 Group:          Libraries
1510 URL:            http://php.net/manual/en/book.spl.php
1511 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1512 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
1513 Requires:       %{name}-simplexml = %{epoch}:%{version}-%{release}
1514 Provides:       php(spl)
1515
1516 %description spl
1517 This is a dynamic shared object (DSO) for PHP that will add Standard
1518 PHP Library support.
1519
1520 %description spl -l pl.UTF-8
1521 Moduł PHP dodający obsługę gniazdek.
1522
1523 %package sqlite
1524 Summary:        SQLite extension module for PHP
1525 Summary(pl.UTF-8):      Moduł SQLite dla PHP
1526 Group:          Libraries
1527 URL:            http://www.php.net/manual/en/book.sqlite.php
1528 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1529 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1530 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1531 Provides:       php(sqlite)
1532
1533 %description sqlite
1534 SQLite is a C library that implements an embeddable SQL database
1535 engine. Programs that link with the SQLite library can have SQL
1536 database access without running a separate RDBMS process.
1537
1538 SQLite is not a client library used to connect to a big database
1539 server. SQLite is the server. The SQLite library reads and writes
1540 directly to and from the database files on disk.
1541
1542 %description sqlite -l pl.UTF-8
1543 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1544 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1545 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1546 RDBMS.
1547
1548 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1549 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1550 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1551 dysku.
1552
1553 %package sybase
1554 Summary:        Sybase DB extension module for PHP
1555 Summary(pl.UTF-8):      Moduł Sybase DB dla PHP
1556 Group:          Libraries
1557 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1558 Provides:       php(sybase)
1559 Obsoletes:      php-sybase-ct
1560 Conflicts:      php-sybase-ct
1561
1562 %description sybase
1563 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1564 MS SQL databases support through SYBDB library. Currently Sybase
1565 module is not maintained. Using Sybase-CT module is recommended
1566 instead.
1567
1568 %description sybase -l pl.UTF-8
1569 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1570 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1571 Zaleca się używanie modułu Sybase-CT.
1572
1573 %package sybase-ct
1574 Summary:        Sybase-CT extension module for PHP
1575 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1576 Group:          Libraries
1577 URL:            http://www.php.net/manual/en/book.sybase.php
1578 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1579 Provides:       php(sybase-ct)
1580 Obsoletes:      php-sybase
1581 Conflicts:      php-sybase
1582
1583 %description sybase-ct
1584 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1585 MS SQL databases support through CT-lib.
1586
1587 %description sybase-ct -l pl.UTF-8
1588 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1589 CT-lib.
1590
1591 %package sysvmsg
1592 Summary:        SysV msg extension module for PHP
1593 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1594 Group:          Libraries
1595 URL:            http://www.php.net/manual/en/book.sem.php
1596 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1597 Provides:       php(sysvmsg)
1598
1599 %description sysvmsg
1600 This is a dynamic shared object (DSO) for PHP that will add SysV
1601 message queues support.
1602
1603 %description sysvmsg -l pl.UTF-8
1604 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1605
1606 %package sysvsem
1607 Summary:        SysV sem extension module for PHP
1608 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1609 Group:          Libraries
1610 URL:            http://www.php.net/manual/en/book.sem.php
1611 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1612 Provides:       php(sysvsem)
1613
1614 %description sysvsem
1615 This is a dynamic shared object (DSO) for PHP that will add SysV
1616 semaphores support.
1617
1618 %description sysvsem -l pl.UTF-8
1619 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1620
1621 %package sysvshm
1622 Summary:        SysV shm extension module for PHP
1623 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1624 Group:          Libraries
1625 URL:            http://www.php.net/manual/en/book.shmop.php
1626 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1627 Provides:       php(sysvshm)
1628
1629 %description sysvshm
1630 This is a dynamic shared object (DSO) for PHP that will add SysV
1631 Shared Memory support.
1632
1633 %description sysvshm -l pl.UTF-8
1634 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1635
1636 %package tests
1637 Summary:        Contains unit test files for PHP and extensions
1638 Summary(pl.UTF-8):      Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1639 Group:          Libraries
1640 URL:            http://qa.php.net/
1641 Requires:       %{name}-cli
1642
1643 %description tests
1644 This package contains unit tests for PHP and it's extensions.
1645
1646 %description tests -l pl.UTF-8
1647 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1648
1649 %package tidy
1650 Summary:        Tidy extension module for PHP
1651 Summary(pl.UTF-8):      Moduł Tidy dla PHP
1652 Group:          Libraries
1653 URL:            http://www.php.net/manual/en/book.tidy.php
1654 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1655 Requires:       tidy
1656 Provides:       php(tidy)
1657
1658 %description tidy
1659 This is a dynamic shared object (DSO) for PHP that will add Tidy
1660 support.
1661
1662 %description tidy -l pl.UTF-8
1663 Moduł PHP umożliwiający korzystanie z tidy.
1664
1665 %package tokenizer
1666 Summary:        tokenizer extension module for PHP
1667 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1668 Group:          Libraries
1669 URL:            http://www.php.net/manual/en/book.tokenizer.php
1670 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1671 Provides:       php(tokenizer)
1672
1673 %description tokenizer
1674 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1675 support.
1676
1677 %description tokenizer -l pl.UTF-8
1678 Moduł PHP dodający obsługę tokenizera do PHP.
1679
1680 %package wddx
1681 Summary:        wddx extension module for PHP
1682 Summary(pl.UTF-8):      Moduł wddx dla PHP
1683 Group:          Libraries
1684 URL:            http://www.php.net/manual/en/book.wddx.php
1685 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1686 # - wddx doesn't require session as it's disabled at compile time:
1687 #   if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1688 #   see also php.spec#rev1.120.2.22
1689 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1690 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1691 Provides:       php(wddx)
1692
1693 %description wddx
1694 This is a dynamic shared object (DSO) for PHP that will add wddx
1695 support.
1696
1697 %description wddx -l pl.UTF-8
1698 Moduł PHP umożliwiający korzystanie z wddx.
1699
1700 %package xml
1701 Summary:        XML extension module for PHP
1702 Summary(pl.UTF-8):      Moduł XML dla PHP
1703 Group:          Libraries
1704 URL:            http://www.php.net/manual/en/book.xml.php
1705 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1706 Provides:       php(xml)
1707
1708 %description xml
1709 This is a dynamic shared object (DSO) for PHP that will add XML
1710 support. This extension lets you create XML parsers and then define
1711 handlers for different XML events.
1712
1713 %description xml -l pl.UTF-8
1714 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1715 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1716 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1717
1718 %package xmlreader
1719 Summary:        XML Reader extension module for PHP
1720 Summary(pl.UTF-8):      Moduł XML Reader dla PHP
1721 Group:          Libraries
1722 URL:            http://www.php.net/manual/en/book.xmlreader.php
1723 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1724 Suggests:       %{name}-dom = %{epoch}:%{version}-%{release}
1725 Provides:       php(xmlreader)
1726
1727 %description xmlreader
1728 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1729 support. The XMLReader extension is an XML Pull parser. The reader
1730 acts as a cursor going forward on the document stream and stopping at
1731 each node on the way.
1732
1733 %description xmlreader -l pl.UTF-8
1734 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1735 działa jako kursor przechodzący przez strumień dokumentu i
1736 zatrzymujący się na każdym węźle po drodze.
1737
1738 %package xmlrpc
1739 Summary:        xmlrpc extension module for PHP
1740 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1741 Group:          Libraries
1742 URL:            http://www.php.net/manual/en/book.xmlrpc.php
1743 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1744 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1745 Provides:       php(xmlrpc)
1746
1747 %description xmlrpc
1748 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1749 support.
1750
1751 %description xmlrpc -l pl.UTF-8
1752 Moduł PHP dodający obsługę XMLRPC.
1753
1754 %package xmlwriter
1755 Summary:        Fast, non-cached, forward-only means to write XML data
1756 Summary(pl.UTF-8):      Szybka, nie cachowana metoda zapisu danych w formacie XML
1757 Group:          Libraries
1758 URL:            http://www.php.net/manual/en/book.xmlwriter.php
1759 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1760 Provides:       php(xmlwriter)
1761 Obsoletes:      php-pecl-xmlwriter
1762
1763 %description xmlwriter
1764 This extension wraps the libxml xmlWriter API. Represents a writer
1765 that provides a non-cached, forward-only means of generating streams
1766 or files containing XML data.
1767
1768 %description xmlwriter -l pl.UTF-8
1769 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1770 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1771 plików zawierających dane XML.
1772
1773 %package xsl
1774 Summary:        xsl extension module for PHP
1775 Summary(pl.UTF-8):      Moduł xsl dla PHP
1776 Group:          Libraries
1777 URL:            http://www.php.net/manual/en/book.xsl.php
1778 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1779 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1780 Requires:       libxslt >= 1.0.18
1781 # actually not true, functionality is similar, but API differs
1782 Provides:       php(xsl)
1783 Obsoletes:      php-xslt <= 3:4.3.8-1
1784
1785 %description xsl
1786 This is a dynamic shared object (DSO) for PHP that will add new XSL
1787 support (using libxslt).
1788
1789 %description xsl -l pl.UTF-8
1790 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1791
1792 %package zip
1793 Summary:        Zip management extension
1794 Summary(pl.UTF-8):      Zarządzanie archiwami zip
1795 Group:          Libraries
1796 URL:            http://www.php.net/manual/en/book.zip.php
1797 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1798 Provides:       php(zip)
1799 Obsoletes:      php-pecl-zip
1800 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1801
1802 %description zip
1803 Zip is an extension to create, modify and read zip files.
1804
1805 %description zip -l pl.UTF-8
1806 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1807 odczyt archiwów zip.
1808
1809 %package zlib
1810 Summary:        Zlib extension module for PHP
1811 Summary(pl.UTF-8):      Moduł zlib dla PHP
1812 Group:          Libraries
1813 URL:            http://www.php.net/manual/en/book.zlib.php
1814 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1815 Provides:       php(zlib)
1816
1817 %description zlib
1818 This is a dynamic shared object (DSO) for PHP that will add zlib
1819 compression support to PHP.
1820
1821 %description zlib -l pl.UTF-8
1822 Moduł PHP umożliwiający używanie kompresji zlib.
1823
1824 %prep
1825 %setup -q -n %{orgname}-%{version}
1826 %patch100 -p1
1827 # for suhosin patch
1828 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1829
1830 %patch0 -p1
1831 %patch1 -p1
1832 %patch2 -p1
1833 %patch3 -p1
1834 %patch4 -p1
1835 %patch5 -p1
1836 %patch6 -p1
1837 %patch7 -p1
1838 %patch8 -p1
1839 %patch9 -p1
1840
1841 cp php.ini-dist php.ini
1842 %patch10 -p1
1843 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1844 # conditionally...
1845 %patch11 -p1
1846 %patch12 -p1
1847 %patch13 -p1
1848 %patch14 -p1
1849 %patch15 -p1
1850 %patch16 -p1
1851 %patch17 -p1
1852 %patch18 -p1
1853 %if %{with system_gd}
1854 %patch19 -p1
1855 %endif
1856 %patch20 -p1
1857 %patch21 -p1
1858 %patch22 -p1
1859 %patch23 -p1
1860 %patch24 -p1
1861
1862 %{?with_versioning:%patch25 -p1}
1863
1864 %if 0
1865 %{__tar} jxf %{SOURCE9}
1866 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1867 mv $v/$v gentoo-patchset
1868 for a in gentoo-patchset/*.patch; do
1869         %{__patch} -p1 < $a
1870 done
1871 %endif
1872
1873 %patch26 -p1
1874 %patch27 -p1
1875 %patch28 -p1
1876 %patch29 -p1
1877 %patch30 -p1
1878 #%patch31 -p1
1879 %patch32 -p1
1880 %patch33 -p1
1881 %if "%{pld_release}" != "ac"
1882 %patch34 -p1
1883 %endif
1884 %patch35 -p1
1885
1886 # mysql default charset for mysql/mysql/pdo-mysql extensions
1887 %patch36 -p1
1888 %patch37 -p0
1889 %patch38 -p0
1890
1891 %patch39 -p1
1892
1893 %if %{with fpm}
1894 %patch40 -p1
1895 %patch41 -p1
1896 %patch42 -p1
1897 %endif
1898
1899 %patch43 -p1
1900 %patch44 -p1
1901 %patch45 -p1
1902 %patch46 -p1
1903 %if %{with suhosin}
1904 %patch47 -p1
1905 %endif
1906 %patch49 -p1
1907 %patch50 -p1
1908 %patch51 -p1
1909 %patch52 -p1
1910 %patch53 -p1
1911 %patch54 -p1
1912 %patch55 -p1
1913 %patch56 -p1
1914 %patch57 -p1
1915 %patch58 -p4
1916 %patch59 -p1
1917 %patch60 -p4
1918 %{?with_system_libzip:%patch65 -p1}
1919 %patch66 -p2
1920 %patch67 -p1
1921 %patch68 -p1
1922 %patch69 -p4
1923 %patch70 -p1
1924 %patch71 -p1
1925
1926 # Bugfix backport from 5.3.6
1927 %patch311 -p1 -b .bug-47435
1928 %patch314 -p1 -b .bug-39199
1929 # Bugfix backport from 5.3.7
1930 #accert %patch333 -p1 -b .bug-54924
1931 #soap %patch355 -p1 -b .bug-55323
1932 # causes regression -> magic_quotes_gpc setting cannot be changed
1933 #%%patch402 -p1 -b .bug-323016
1934
1935 # conflict seems to be resolved by recode patches
1936 rm -f ext/recode/config9.m4
1937
1938 # remove all bundled libraries not to link with them accidentally
1939 #rm -rf ext/sqlite/libsqlite
1940 #rm -rf ext/bcmath/libbcmath
1941 #rm -rf ext/date/lib
1942 #rm -rf ext/dba/libcdb
1943 #rm -rf ext/dba/libflatfile
1944 #rm -rf ext/dba/libinifile
1945 #rm -rf ext/gd/libgd
1946 #rm -rf ext/mbstring/libmbfl
1947 #rm -rf ext/mbstring/oniguruma
1948 rm -rf ext/pcre/pcrelib
1949 rm -rf ext/pdo_sqlite/sqlite
1950 #rm -rf ext/soap/interop
1951 %if %{with system_xmlrpc_epi}
1952 rm -rf ext/xmlrpc/libxmlrpc
1953 %endif
1954
1955 %ifarch ppc ppc64
1956 # this test hungs on ac-ppc
1957 #mv ext/reflection/tests/007.php{,ignore}
1958 # this test gets killed by itself
1959 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1960 %endif
1961
1962 cp -af Zend/LICENSE{,.Zend}
1963 install -p %{SOURCE13} dep-tests.sh
1964
1965 # disable broken tests
1966 # says just "Terminated" twice and fails
1967 mv sapi/cli/tests/022.phpt{,.broken}
1968
1969 sh -xe %{_sourcedir}/skip-tests.sh
1970
1971 %build
1972 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1973 if [ $API != %{php_api_version} ]; then
1974         echo "Set %%define php_api_version to $API and re-run."
1975         exit 1
1976 fi
1977
1978 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1979 if [ $API != %{zend_module_api} ]; then
1980         echo "Set %%define zend_module_api to $API and re-run."
1981         exit 1
1982 fi
1983
1984 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1985 if [ $API != %{zend_extension_api} ]; then
1986         echo "Set %%define zend_extension_api to $API and re-run."
1987         exit 1
1988 fi
1989
1990 export EXTENSION_DIR="%{php_extensiondir}"
1991 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1992         rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
1993         %{__libtoolize}
1994         %{__aclocal}
1995         cp -f /usr/share/automake/config.* .
1996         ./buildconf --force
1997         touch _built-conf
1998 fi
1999 export PROG_SENDMAIL="/usr/lib/sendmail"
2000
2001 sapis="
2002 %if %{with fcgi}
2003 fcgi
2004 %endif
2005 %if %{with fpm}
2006 fpm
2007 %endif
2008 cgi cli
2009 %if %{with apache1}
2010 apxs1
2011 %endif
2012 %if %{with apache2}
2013 apxs2
2014 %endif
2015 "
2016 for sapi in $sapis; do
2017         : SAPI $sapi
2018         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2019
2020         sapi_args=''
2021         case $sapi in
2022         cgi)
2023                 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2024                 ;;
2025         cli)
2026                 sapi_args='--disable-cgi'
2027                 ;;
2028         fcgi)
2029                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2030                 ;;
2031         fpm)
2032                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2033                 ;;
2034         apxs1)
2035                 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2036                 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2037                 ;;
2038         apxs2)
2039                 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2040                 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2041                 ;;
2042         esac
2043
2044         %configure \
2045         FORCE_APACHE_VERSION="${apache_ver}" \
2046         $sapi_args \
2047 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2048         --cache-file=config.cache \
2049 %endif
2050         --with-libdir=%{_lib} \
2051         --with-config-file-path=%{_sysconfdir} \
2052         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2053         --with-exec-dir=%{_bindir} \
2054         --with-system-tzdata \
2055         --%{!?debug:dis}%{?debug:en}able-debug \
2056         %{?with_zts:--enable-maintainer-zts} \
2057         %{?with_suhosin:--enable-suhosin} \
2058         %{?with_zend_multibyte:--enable-zend-multibyte} \
2059         --enable-inline-optimization \
2060         --enable-bcmath=shared \
2061         --enable-calendar=shared \
2062         --enable-ctype=shared \
2063         --enable-dba=shared \
2064         --enable-dom=shared \
2065         --enable-exif=shared \
2066         --enable-ftp=shared \
2067         --enable-gd-native-ttf \
2068         %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2069         --enable-libxml \
2070         --enable-magic-quotes \
2071         --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2072         --enable-mbregex \
2073         --enable-pcntl=shared \
2074         --enable-pdo=shared \
2075         --enable-json=shared \
2076         --enable-hash=shared \
2077         --enable-xmlwriter=shared \
2078 %if %{with fpm}
2079         --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2080         --with-fpm-log=/var/log/php/%{name}-fpm.log \
2081         --with-fpm-pid=/var/run/%{name}-fpm.pid \
2082 %endif
2083 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2084         --with-pdo-dblib=shared \
2085 %endif
2086 %if %{with interbase} && !%{with interbase_inst}
2087         --with-pdo-firebird=shared,/usr \
2088 %endif
2089         --with-pdo-mysql=shared \
2090         %{?with_oci8:--with-pdo-oci=shared} \
2091         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2092         %{?with_pgsql:--with-pdo-pgsql=shared} \
2093         %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2094         --enable-posix=shared \
2095         --enable-reflection \
2096         --enable-shared \
2097         --enable-session=shared \
2098         --enable-shmop=shared \
2099         --enable-simplexml=shared \
2100         --enable-spl=shared \
2101         --enable-sysvmsg=shared \
2102         --enable-sysvsem=shared \
2103         --enable-sysvshm=shared \
2104         --enable-safe-mode \
2105         --enable-soap=shared \
2106         --enable-sockets=shared \
2107         --enable-tokenizer=shared \
2108         --enable-ucd-snmp-hack \
2109         %{?with_wddx:--enable-wddx=shared} \
2110         --enable-xml=shared \
2111         --enable-xmlreader=shared \
2112         --with-bz2=shared \
2113         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2114         --with-db4 \
2115         --enable-dbase=shared \
2116         --without-libexpat-dir \
2117         %{?with_fdf:--with-fdftk=shared} \
2118         --with-iconv=shared \
2119         --with-freetype-dir=shared \
2120         --with-gettext=shared \
2121         --with-gd=shared%{?with_system_gd:,/usr} \
2122         --with-gdbm \
2123         --with-gmp=shared \
2124         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2125         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2126         --with-jpeg-dir=/usr \
2127         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2128         --with-mcrypt=shared \
2129         %{?with_mhash:--with-mhash=shared} \
2130         %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2131         %{?with_ming:--with-ming=shared} \
2132         %{?with_mm:--with-mm} \
2133         %{?with_mssql:--with-mssql=shared} \
2134         --with-mysql=shared,/usr \
2135         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2136         %{?with_mysqli:--with-mysqli=shared} \
2137         --with-ncurses=shared \
2138         %{?with_oci8:--with-oci8=shared} \
2139         %{?with_openssl:--with-openssl=shared} \
2140         --with-kerberos \
2141         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2142         %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2143         --with-pear=%{php_pear_dir} \
2144         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2145         --with-png-dir=/usr \
2146         %{?with_pspell:--with-pspell=shared} \
2147         --with-readline=shared \
2148         %{?with_recode:--with-recode=shared} \
2149         --with-regex=php \
2150         %{?with_snmp:--with-snmp=shared} \
2151         %{?with_sybase:--with-sybase=shared,/usr} \
2152         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2153         %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2154         --with-t1lib=shared \
2155         %{?with_tidy:--with-tidy=shared} \
2156         %{?with_odbc:--with-unixODBC=shared,/usr} \
2157         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2158         --with-xsl=shared \
2159         --with-zlib=shared \
2160         --with-zlib-dir=shared,/usr \
2161         %{?with_system_libzip:--with-libzip} \
2162         --enable-zip=shared,/usr \
2163
2164         cp -f Makefile Makefile.$sapi
2165         cp -f main/php_config.h php_config.h.$sapi
2166         cp -f config.log config.log.$sapi
2167 done
2168
2169 # as we build each SAPI in own make, adjust php-config.in forehead
2170 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2171 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2172
2173 # must make this first, so modules can link against it.
2174 %{__make} libphp_common.la
2175 %{__make} build-modules
2176
2177 %if %{with apache1}
2178 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2179 %endif
2180
2181 %if %{with apache2}
2182 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2183 %endif
2184
2185 # CGI
2186 cp -af php_config.h.cgi main/php_config.h
2187 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2188 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2189 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2190
2191 # FCGI
2192 %if %{with fcgi}
2193 cp -af php_config.h.fcgi main/php_config.h
2194 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2195 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2196 cp -r sapi/cgi sapi/fcgi
2197 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2198 %endif
2199
2200 %if %{with fpm}
2201 cp -af php_config.h.fpm main/php_config.h
2202 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2203 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2204 cp -r sapi/cgi sapi/fpm
2205 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2206 %endif
2207
2208 # CLI
2209 cp -af php_config.h.cli main/php_config.h
2210 %{__make} sapi/cli/php -f Makefile.cli
2211 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2212
2213 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2214 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x>&lt;</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2215
2216 # Generate stub .ini files for each extension
2217 rm -rf conf.d
2218 install -d conf.d
2219 generate_inifiles() {
2220         for so in modules/*.so; do
2221                 mod=$(basename $so .so)
2222                 conf="$mod.ini"
2223                 # xml needs to be loaded before wddx
2224                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2225                 # pre needs to be loaded before SPL
2226                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2227                 # spl needs to be loaded before mysqli
2228                 [ "$mod" = "spl" ] && conf="SPL.ini"
2229                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2230                 [ "$mod" = "session" ] && conf="Session.ini"
2231                 echo "+ $conf"
2232                 cat > conf.d/$conf <<-EOF
2233                         ; Enable $mod extension module
2234                         extension=$mod.so
2235                 EOF
2236         done
2237 }
2238 generate_inifiles
2239
2240 # Check that the module inner-dependencies are intact
2241 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2242 if grep -v OK dep-tests.log; then
2243         echo >&2 "The results above were not expected"
2244 # TEMP: ac-i386 builder is broken
2245 %ifnarch i386
2246         exit 1
2247 %endif
2248 fi
2249
2250
2251 %if %{with tests}
2252 # Run tests, using the CLI SAPI
2253 cp -af php_config.h.cli main/php_config.h
2254 cp -af Makefile.cli Makefile
2255 # sybase modules collide, remove one
2256 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2257
2258 cat <<'EOF' > run-tests.sh
2259 #!/bin/sh
2260 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2261 unset TZ LANG LC_ALL || :
2262 %{__make} test \
2263         EXTENSION_DIR=. \
2264         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2265         RUN_TESTS_SETTINGS="-q $*"
2266 EOF
2267 chmod +x run-tests.sh
2268 ./run-tests.sh -w failed.log -s test.log
2269
2270 # collect failed tests into cleanup script used in prep.
2271 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2272 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2273         >> %{_sourcedir}/skip-tests.sh
2274
2275 failed=$(wc -l < tests-failed.log)
2276 if [ "$failed" != 0 ]; then
2277         exit 1
2278 fi
2279 %endif
2280
2281 %install
2282 rm -rf $RPM_BUILD_ROOT
2283 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2284         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2285         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2286         $RPM_BUILD_ROOT%{_mandir}/man1 \
2287
2288 # install the Apache modules' files
2289 %{__make} install-headers install-build install-modules install-programs \
2290         INSTALL_ROOT=$RPM_BUILD_ROOT
2291
2292 # version suffix
2293 v=$(echo %{version} | cut -d. -f1-2)
2294
2295 # install Apache1 DSO module
2296 %if %{with apache1}
2297 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2298 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2299 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2300 %endif
2301
2302 # install Apache2 DSO module
2303 %if %{with apache2}
2304 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2305 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2306 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2307 %endif
2308
2309 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2310 # fix install paths, avoid evil rpaths
2311 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2312 # better solution?
2313 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
2314
2315 # install CGI
2316 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2317
2318 # install FCGI
2319 %if %{with fcgi}
2320 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2321 %endif
2322
2323 # install FCGI PM
2324 %if %{with fpm}
2325 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2326 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2327 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2328 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2329 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2330 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2331 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2332 %if "%{pld_release}" == "ac"
2333 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2334 %endif
2335
2336 %{__sed} -i -e '
2337         s#/usr/lib/php#%{php_extensiondir}#
2338         s#/etc/php#%{_sysconfdir}#
2339         s#@processname@#%{name}-fpm#g
2340 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2341 %endif
2342
2343 # install CLI
2344 # without suffix, install as php.cli
2345 %if "%{?php_suffix}" == ""
2346 %define phpfn %{name}.cli
2347 %else
2348 %define phpfn %{name}
2349 %endif
2350 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2351 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2352 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2353 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2354 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2355
2356 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2357 %if %{with fcgi}
2358 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2359 %endif
2360 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2361 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2362 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2363
2364 %if %{with apache1}
2365 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2366 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2367 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2368 %endif
2369
2370 %if %{with apache2}
2371 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2372 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2373 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2374 %endif
2375
2376 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2377 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2378
2379 # ensure that paths are correct for current php version and arch
2380 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2381 %{__sed} -i -e '
2382         s#/usr/lib/php#%{php_extensiondir}#g
2383         s#/etc/php#%{_sysconfdir}#g
2384 '
2385
2386 # per SAPI ini directories
2387 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2388
2389 # for CLI SAPI only
2390 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2391
2392 # use system automake and {lib,sh}tool
2393 %if "%{pld_release}" != "ac"
2394         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
2395         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2396                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
2397         done
2398         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2399 %else
2400         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
2401         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
2402 %endif
2403 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
2404
2405 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2406 # isn't installed by install-headers make target, we do it manually here.
2407 # this header file is required by e.g. filter PECL extension
2408 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2409 # for php-pecl-mailparse
2410 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2411 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2412
2413 # tests
2414 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2415 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2416 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2417
2418 %clean
2419 rm -rf $RPM_BUILD_ROOT
2420
2421 %post -n apache1-mod_%{name}
2422 if [ "$1" = "1" ]; then
2423         %service -q apache restart
2424 fi
2425
2426 %postun -n apache1-mod_%{name}
2427 if [ "$1" = "0" ]; then
2428         %service -q apache restart
2429 fi
2430
2431 %post -n apache-mod_%{name}
2432 if [ "$1" = "1" ]; then
2433         %service -q httpd restart
2434 fi
2435
2436 %postun -n apache-mod_%{name}
2437 if [ "$1" = "0" ]; then
2438         %service -q httpd restart
2439 fi
2440
2441 %pre fpm
2442 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2443
2444 %post fpm
2445 /sbin/chkconfig --add %{name}-fpm
2446 %service %{name}-fpm restart
2447
2448 %preun fpm
2449 if [ "$1" = 0 ]; then
2450         %service %{name}-fpm stop
2451         /sbin/chkconfig --del %{name}-fpm
2452 fi
2453
2454 %postun fpm
2455 if [ "$1" = "0" ]; then
2456         %userremove http
2457 fi
2458
2459 %post   common -p /sbin/ldconfig
2460 %postun common -p /sbin/ldconfig
2461
2462 %posttrans common
2463 # minimizing apache restarts logics. we restart webserver:
2464 #
2465 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2466 # 2. first install of extension (post: $1 = 1)
2467 # 2. uninstall of extension (postun: $1 == 0)
2468 #
2469 # the strict internal deps between extensions (and apache modules) and
2470 # common package are very important for all this to work.
2471
2472 # restart webserver at the end of transaction
2473 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2474 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2475
2476 # common macros called at extension post/postun scriptlet
2477 %define extension_scripts() \
2478 %post %1 \
2479 if [ "$1" = "1" ]; then \
2480         %php_webserver_restart \
2481 fi \
2482 \
2483 %postun %1 \
2484 if [ "$1" = "0" ]; then \
2485         %php_webserver_restart \
2486 fi
2487 %{nil}
2488
2489 # extension scripts defines
2490 %extension_scripts bcmath
2491 %extension_scripts bz2
2492 %extension_scripts calendar
2493 %extension_scripts ctype
2494 %extension_scripts curl
2495 %extension_scripts dba
2496 %extension_scripts dbase
2497 %extension_scripts dom
2498 %extension_scripts exif
2499 %extension_scripts fdf
2500 %extension_scripts filter
2501 %extension_scripts ftp
2502 %extension_scripts gd
2503 %extension_scripts gettext
2504 %extension_scripts gmp
2505 %extension_scripts hash
2506 %extension_scripts iconv
2507 %extension_scripts imap
2508 %extension_scripts interbase
2509 %extension_scripts json
2510 %extension_scripts ldap
2511 %extension_scripts mbstring
2512 %extension_scripts mcrypt
2513 %extension_scripts mhash
2514 %extension_scripts mime_magic
2515 %extension_scripts ming
2516 %extension_scripts mssql
2517 %extension_scripts mysql
2518 %extension_scripts mysqli
2519 %extension_scripts oci8
2520 %extension_scripts odbc
2521 %extension_scripts openssl
2522 %extension_scripts pcntl
2523 %extension_scripts pcre
2524 %extension_scripts pdo
2525 %extension_scripts pdo-dblib
2526 %extension_scripts pdo-firebird
2527 %extension_scripts pdo-oci
2528 %extension_scripts pdo-mysql
2529 %extension_scripts pdo-odbc
2530 %extension_scripts pdo-pgsql
2531 %extension_scripts pdo-sqlite
2532 %extension_scripts pgsql
2533 %extension_scripts posix
2534 %extension_scripts pspell
2535 %extension_scripts recode
2536 %extension_scripts session
2537 %extension_scripts simplexml
2538 %extension_scripts shmop
2539 %extension_scripts snmp
2540 %extension_scripts soap
2541 %extension_scripts sockets
2542 %extension_scripts spl
2543 %extension_scripts sqlite
2544 %extension_scripts sybase
2545 %extension_scripts sybase-ct
2546 %extension_scripts sysvmsg
2547 %extension_scripts sysvsem
2548 %extension_scripts sysvshm
2549 %extension_scripts tidy
2550 %extension_scripts tokenizer
2551 %extension_scripts wddx
2552 %extension_scripts xml
2553 %extension_scripts xmlreader
2554 %extension_scripts xmlrpc
2555 %extension_scripts xmlwriter
2556 %extension_scripts xsl
2557 %extension_scripts zip
2558 %extension_scripts zlib
2559
2560 %if %{with apache1}
2561 %files -n apache1-mod_%{name}
2562 %defattr(644,root,root,755)
2563 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2564 %dir %{_sysconfdir}/apache.d
2565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2566 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2567 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2568 %endif
2569
2570 %if %{with apache2}
2571 %files -n apache-mod_%{name}
2572 %defattr(644,root,root,755)
2573 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2574 %dir %{_sysconfdir}/apache2handler.d
2575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2576 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2577 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2578 %endif
2579
2580 %if %{with fcgi}
2581 %files fcgi
2582 %defattr(644,root,root,755)
2583 %doc sapi/cgi/README.FastCGI
2584 %dir %{_sysconfdir}/cgi-fcgi.d
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2586 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2587 %endif
2588
2589 %files cgi
2590 %defattr(644,root,root,755)
2591 %dir %{_sysconfdir}/cgi.d
2592 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2593 %attr(755,root,root) %{_bindir}/%{name}.cgi
2594
2595 %files cli
2596 %defattr(644,root,root,755)
2597 %dir %{_sysconfdir}/cli.d
2598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2599 %attr(755,root,root) %{_bindir}/%{phpfn}
2600 %{_mandir}/man1/%{phpfn}.1*
2601
2602 %files program
2603 %defattr(644,root,root,755)
2604 %attr(755,root,root) %{_bindir}/php
2605 %{_mandir}/man1/php.1*
2606
2607 %if %{with fpm}
2608 %files fpm
2609 %defattr(644,root,root,755)
2610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2611 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2612 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2613 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2614 %endif
2615
2616 %files common
2617 %defattr(644,root,root,755)
2618 %doc php.ini-*
2619 %doc CREDITS Zend/ZEND_CHANGES
2620 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2621 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2622
2623 %dir %{_sysconfdir}
2624 %dir %{_sysconfdir}/conf.d
2625 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2627 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2628 %dir %{php_extensiondir}
2629
2630 %files devel
2631 %defattr(644,root,root,755)
2632 %doc README.UNIX-BUILD-SYSTEM
2633 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2634 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2635 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2636 %attr(755,root,root) %{_bindir}/phpize
2637 %attr(755,root,root) %{_bindir}/php-config
2638 %attr(755,root,root) %{_libdir}/libphp_common.so
2639 %{_libdir}/libphp_common.la
2640 %{_includedir}/php
2641 %{_libdir}/php/build
2642 %{_mandir}/man1/php-config.1*
2643 %{_mandir}/man1/phpize.1*
2644
2645 %files bcmath
2646 %defattr(644,root,root,755)
2647 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2648 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2649
2650 %files bz2
2651 %defattr(644,root,root,755)
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2653 %attr(755,root,root) %{php_extensiondir}/bz2.so
2654
2655 %files calendar
2656 %defattr(644,root,root,755)
2657 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2658 %attr(755,root,root) %{php_extensiondir}/calendar.so
2659
2660 %files ctype
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2663 %attr(755,root,root) %{php_extensiondir}/ctype.so
2664
2665 %if %{with curl}
2666 %files curl
2667 %defattr(644,root,root,755)
2668 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2669 %attr(755,root,root) %{php_extensiondir}/curl.so
2670 %endif
2671
2672 %files dba
2673 %defattr(644,root,root,755)
2674 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2675 %attr(755,root,root) %{php_extensiondir}/dba.so
2676
2677 %files dbase
2678 %defattr(644,root,root,755)
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2680 %attr(755,root,root) %{php_extensiondir}/dbase.so
2681
2682 %files dom
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2685 %attr(755,root,root) %{php_extensiondir}/dom.so
2686
2687 %if %{with fdf}
2688 %files fdf
2689 %defattr(644,root,root,755)
2690 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2691 %attr(755,root,root) %{php_extensiondir}/fdf.so
2692 %endif
2693
2694 %if %{with filter}
2695 %files filter
2696 %defattr(644,root,root,755)
2697 %doc README.input_filter
2698 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2699 %attr(755,root,root) %{php_extensiondir}/filter.so
2700 %endif
2701
2702 %files exif
2703 %defattr(644,root,root,755)
2704 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2705 %attr(755,root,root) %{php_extensiondir}/exif.so
2706
2707 %files ftp
2708 %defattr(644,root,root,755)
2709 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2710 %attr(755,root,root) %{php_extensiondir}/ftp.so
2711
2712 %files gd
2713 %defattr(644,root,root,755)
2714 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2715 %attr(755,root,root) %{php_extensiondir}/gd.so
2716
2717 %files gettext
2718 %defattr(644,root,root,755)
2719 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2720 %attr(755,root,root) %{php_extensiondir}/gettext.so
2721
2722 %files gmp
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2725 %attr(755,root,root) %{php_extensiondir}/gmp.so
2726
2727 %files hash
2728 %defattr(644,root,root,755)
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2730 %attr(755,root,root) %{php_extensiondir}/hash.so
2731
2732 %files iconv
2733 %defattr(644,root,root,755)
2734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2735 %attr(755,root,root) %{php_extensiondir}/iconv.so
2736
2737 %if %{with imap}
2738 %files imap
2739 %defattr(644,root,root,755)
2740 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2741 %attr(755,root,root) %{php_extensiondir}/imap.so
2742 %endif
2743
2744 %if %{with interbase}
2745 %files interbase
2746 %defattr(644,root,root,755)
2747 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2748 %attr(755,root,root) %{php_extensiondir}/interbase.so
2749 %endif
2750
2751 %files json
2752 %defattr(644,root,root,755)
2753 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2754 %attr(755,root,root) %{php_extensiondir}/json.so
2755
2756 %if %{with ldap}
2757 %files ldap
2758 %defattr(644,root,root,755)
2759 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2760 %attr(755,root,root) %{php_extensiondir}/ldap.so
2761 %endif
2762
2763 %if %{without zend_multibyte}
2764 %files mbstring
2765 %defattr(644,root,root,755)
2766 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2767 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2768 %endif
2769
2770 %files mcrypt
2771 %defattr(644,root,root,755)
2772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2773 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2774
2775 %if %{with mhash}
2776 %files mhash
2777 %defattr(644,root,root,755)
2778 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2779 %attr(755,root,root) %{php_extensiondir}/mhash.so
2780 %endif
2781
2782 %if %{with mime_magic}
2783 %files mime_magic
2784 %defattr(644,root,root,755)
2785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2786 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2787 %endif
2788
2789 %if %{with ming}
2790 %files ming
2791 %defattr(644,root,root,755)
2792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2793 %attr(755,root,root) %{php_extensiondir}/ming.so
2794 %endif
2795
2796 %if %{with mssql}
2797 %files mssql
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2800 %attr(755,root,root) %{php_extensiondir}/mssql.so
2801 %endif
2802
2803 %files mysql
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2806 %attr(755,root,root) %{php_extensiondir}/mysql.so
2807
2808 %if %{with mysqli}
2809 %files mysqli
2810 %defattr(644,root,root,755)
2811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2812 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2813 %endif
2814
2815 %files ncurses
2816 %defattr(644,root,root,755)
2817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2818 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2819
2820 %if %{with oci8}
2821 %files oci8
2822 %defattr(644,root,root,755)
2823 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2824 %attr(755,root,root) %{php_extensiondir}/oci8.so
2825 %endif
2826
2827 %if %{with odbc}
2828 %files odbc
2829 %defattr(644,root,root,755)
2830 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2831 %attr(755,root,root) %{php_extensiondir}/odbc.so
2832 %endif
2833
2834 %if %{with openssl}
2835 %files openssl
2836 %defattr(644,root,root,755)
2837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2838 %attr(755,root,root) %{php_extensiondir}/openssl.so
2839 %endif
2840
2841 %files pcntl
2842 %defattr(644,root,root,755)
2843 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2844 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2845
2846 %if %{with pcre}
2847 %files pcre
2848 %defattr(644,root,root,755)
2849 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2850 %attr(755,root,root) %{php_extensiondir}/pcre.so
2851 %endif
2852
2853 %files pdo
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2856 %attr(755,root,root) %{php_extensiondir}/pdo.so
2857
2858 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2859 %files pdo-dblib
2860 %defattr(644,root,root,755)
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2862 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2863 %endif
2864
2865 %if %{with interbase} && !%{with interbase_inst}
2866 %files pdo-firebird
2867 %defattr(644,root,root,755)
2868 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2869 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2870 %endif
2871
2872 %files pdo-mysql
2873 %defattr(644,root,root,755)
2874 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2875 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2876
2877 %if %{with oci8}
2878 %files pdo-oci
2879 %defattr(644,root,root,755)
2880 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2881 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2882 %endif
2883
2884 %if %{with odbc}
2885 %files pdo-odbc
2886 %defattr(644,root,root,755)
2887 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2888 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2889 %endif
2890
2891 %if %{with pgsql}
2892 %files pdo-pgsql
2893 %defattr(644,root,root,755)
2894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2895 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2896 %endif
2897
2898 %if %{with sqlite}
2899 %files pdo-sqlite
2900 %defattr(644,root,root,755)
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2902 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2903 %endif
2904
2905 %if %{with pgsql}
2906 %files pgsql
2907 %defattr(644,root,root,755)
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2909 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2910 %endif
2911
2912 %files posix
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2915 %attr(755,root,root) %{php_extensiondir}/posix.so
2916
2917 %if %{with pspell}
2918 %files pspell
2919 %defattr(644,root,root,755)
2920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2921 %attr(755,root,root) %{php_extensiondir}/pspell.so
2922 %endif
2923
2924 %files readline
2925 %defattr(644,root,root,755)
2926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2927 %attr(755,root,root) %{php_extensiondir}/readline.so
2928
2929 %if %{with recode}
2930 %files recode
2931 %defattr(644,root,root,755)
2932 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2933 %attr(755,root,root) %{php_extensiondir}/recode.so
2934 %endif
2935
2936 %files simplexml
2937 %defattr(644,root,root,755)
2938 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2939 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2940
2941 %files session
2942 %defattr(644,root,root,755)
2943 %doc ext/session/mod_files.sh
2944 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2945 %attr(755,root,root) %{php_extensiondir}/session.so
2946
2947 %files shmop
2948 %defattr(644,root,root,755)
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2950 %attr(755,root,root) %{php_extensiondir}/shmop.so
2951
2952 %if %{with snmp}
2953 %files snmp
2954 %defattr(644,root,root,755)
2955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2956 %attr(755,root,root) %{php_extensiondir}/snmp.so
2957 %endif
2958
2959 %files soap
2960 %defattr(644,root,root,755)
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2962 %attr(755,root,root) %{php_extensiondir}/soap.so
2963
2964 %files sockets
2965 %defattr(644,root,root,755)
2966 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2967 %attr(755,root,root) %{php_extensiondir}/sockets.so
2968
2969 %files spl
2970 %defattr(644,root,root,755)
2971 %doc ext/spl/{CREDITS,README,TODO}
2972 %doc ext/spl/examples
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
2974 %attr(755,root,root) %{php_extensiondir}/spl.so
2975
2976 %if %{with sqlite}
2977 %files sqlite
2978 %defattr(644,root,root,755)
2979 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2980 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2981 %endif
2982
2983 %if %{with sybase}
2984 %files sybase
2985 %defattr(644,root,root,755)
2986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2987 %attr(755,root,root) %{php_extensiondir}/sybase.so
2988 %endif
2989
2990 %if %{with sybase_ct}
2991 %files sybase-ct
2992 %defattr(644,root,root,755)
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2994 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2995 %endif
2996
2997 %files sysvmsg
2998 %defattr(644,root,root,755)
2999 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3000 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3001
3002 %files sysvsem
3003 %defattr(644,root,root,755)
3004 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3005 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3006
3007 %files sysvshm
3008 %defattr(644,root,root,755)
3009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3010 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3011
3012 %files tests
3013 %defattr(644,root,root,755)
3014 %dir %{php_data_dir}/tests
3015 %dir %{php_data_dir}/tests/php
3016 %{php_data_dir}/tests/php/basic
3017 %{php_data_dir}/tests/php/classes
3018 %{php_data_dir}/tests/php/func
3019 %{php_data_dir}/tests/php/lang
3020 %{php_data_dir}/tests/php/output
3021 %{php_data_dir}/tests/php/run-test
3022 %{php_data_dir}/tests/php/security
3023 %{php_data_dir}/tests/php/strings
3024 %{php_data_dir}/tests/php/quicktester.inc
3025 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3026
3027 # random junk, didn't check, maybe can be just removed
3028 %{php_data_dir}/tests/php/bin-info.inc
3029 %{php_data_dir}/tests/php/foo*
3030 %{php_data_dir}/tests/php/odbc*.php
3031 %{php_data_dir}/tests/php/recurse
3032 %{php_data_dir}/tests/php/run.*
3033 %{php_data_dir}/tests/php/scan_cases
3034 %{php_data_dir}/tests/php/test*
3035
3036 %if %{with tidy}
3037 %files tidy
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3040 %attr(755,root,root) %{php_extensiondir}/tidy.so
3041 %endif
3042
3043 %files tokenizer
3044 %defattr(644,root,root,755)
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3046 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3047
3048 %if %{with wddx}
3049 %files wddx
3050 %defattr(644,root,root,755)
3051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3052 %attr(755,root,root) %{php_extensiondir}/wddx.so
3053 %endif
3054
3055 %files xml
3056 %defattr(644,root,root,755)
3057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3058 %attr(755,root,root) %{php_extensiondir}/xml.so
3059
3060 %files xmlreader
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3063 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3064
3065 %if %{with xmlrpc}
3066 %files xmlrpc
3067 %defattr(644,root,root,755)
3068 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3069 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3070 %endif
3071
3072 %files xmlwriter
3073 %defattr(644,root,root,755)
3074 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3075 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3076
3077 %files xsl
3078 %defattr(644,root,root,755)
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3080 %attr(755,root,root) %{php_extensiondir}/xsl.so
3081
3082 %files zip
3083 %defattr(644,root,root,755)
3084 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3085 %attr(755,root,root) %{php_extensiondir}/zip.so
3086
3087 %files zlib
3088 %defattr(644,root,root,755)
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3090 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.582478 seconds and 3 git commands to generate.