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