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