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