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