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