]> git.pld-linux.org Git - packages/php.git/blob - php.spec
1ed099196682feb8e9981c3d653bcf5642841600
[packages/php.git] / php.spec
1 # UNPACKAGED EXTENSION NOTES:
2 # - com_dotnet is Win32-only
3 # TODO:
4 # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
5 # - wddx: restore session support (not compiled in due DL extension check)
6 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
7 #   - removed from php 5.0 (currently in php4):
8 #   db [pecl-svn], hyperwave [pecl-svn], java [pecl-svn], mcal [pecl-svn], qtdom [pecl-svn]
9 #   - removed from php 5.1:
10 #   oracle [pecl-svn]
11 #   - removed from php 5.2:
12 #   filepro [pecl-svn], hwapi [pecl-svn]
13 # - make additional headers and checking added by mail patch configurable
14 # - modularize standard (output from pure php -m)?
15 # - lib64 patch obsolete by $PHP_LIBDIR ?
16 # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is
17 #   built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared.
18 #   make it runtime dep and add Suggests (or php warning messages)
19 # - some mods should be shared:
20 #$ php -m
21 # [PHP Modules]
22 #+Core
23 # date
24 #+ereg
25 # libxml
26 # Reflection
27 #
28 # Conditional build:
29 # - packaging options
30 %bcond_without  alternatives    # use alternatives system to select default phar and php-fpm
31 %bcond_with     default_php     # build this PHP as default PHP in system (disables alternatives)
32 # - General options:
33 %bcond_without  embed           # disable building Embedded API
34 %bcond_with     gcov            # Enable Code coverage reporting
35 %bcond_without  kerberos5       # without Kerberos5 support
36 %bcond_with     lfs             # Build with FILE_OFFSET_BITS=64
37 %bcond_with     suhosin         # with suhosin patch, has little point in PHP>=5.3, see https://github.com/stefanesser/suhosin/issues/42#issuecomment-41728178
38 %bcond_with     tests           # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
39 %bcond_with     type_hints      # experimental support for strict typing/casting
40 %bcond_with     zts             # Zend Thread Safety
41 %bcond_with     debug           # Zend Debug Build
42 # - SAPI
43 %bcond_without  apache1         # disable building Apache 1.3.x SAPI
44 %bcond_without  apache2         # disable building Apache 2.x SAPI
45 %bcond_without  cgi             # disable CGI/FCGI SAPI
46 %bcond_without  fpm             # disable FPM SAPI
47 %bcond_without  litespeed       # build litespeed SAPI
48 # - Extensions
49 %bcond_without  bcmath          # without bcmath extension module
50 %bcond_without  bz2             # without bz2 extension module
51 %bcond_without  calendar        # without calendar extension module
52 %bcond_without  ctype           # without ctype extension module
53 %bcond_without  curl            # without CURL extension module
54 %bcond_without  filter          # without filter extension module
55 %bcond_without  enchant         # without Enchant extension module
56 %bcond_without  imap            # without IMAP extension module
57 %bcond_without  interbase       # without InterBase extension module
58 %bcond_without  intl            # without Intl extension module
59 %bcond_without  ldap            # without LDAP extension module
60 %bcond_without  mhash           # without mhash extension (supported by hash extension)
61 %bcond_without  mssql           # without MS SQL extension module
62 %bcond_with     mysqlnd         # with mysqlnd support in mysql related extensions
63 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
64 %bcond_with     oci             # with Oracle oci8 extension module     (BR: proprietary libs)
65 %bcond_without  odbc            # without ODBC extension module
66 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
67 %bcond_without  pcre            # without PCRE extension module
68 %bcond_without  pdo_sqlite      # without PDO SQLite extension module
69 %bcond_without  pgsql           # without PostgreSQL extension module
70 %bcond_without  phar            # without phar extension module
71 %bcond_without  pspell          # without pspell extension module
72 %bcond_without  recode          # without recode extension module
73 %bcond_without  snmp            # without SNMP extension module
74 %bcond_without  sqlite2         # without SQLite extension module
75 %bcond_without  sqlite3         # without SQLite3 extension module
76 %bcond_without  sybase_ct       # without Sybase-CT extension module
77 %bcond_without  tidy            # without Tidy extension module
78 %bcond_without  wddx            # without WDDX extension module
79 %bcond_without  xmlrpc          # without XML-RPC extension module
80 # extensions options
81 %bcond_without  instantclient   # build Oracle oci8 extension module against oracle-instantclient package
82 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
83 %bcond_with     mm              # without mm support for session storage
84 %bcond_with     system_gd       # with system gd (imageantialias function is missing then)
85 %bcond_with     system_libzip   # with system libzip (reported broken currently)
86
87 %define apxs1           /usr/sbin/apxs1
88 %define apxs2           /usr/sbin/apxs
89 %define litespeed_version       5.5
90
91 # disable all sapis
92 %if %{with gcov}
93 %undefine       with_apache1
94 %undefine       with_apache2
95 %undefine       with_cgi
96 %undefine       with_litespeed
97 %endif
98
99 %ifnarch %{ix86} x32
100 # has no effect on 64bit systems
101 %undefine       with_lfs
102 %endif
103
104 %if %{with default_php}
105 %undefine       with_alternatives
106 %endif
107
108 # mm is not thread safe
109 %if %{with zts}
110 %undefine       with_mm
111 %endif
112
113 %ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha
114 # ppc disabled (broken on th-ppc)
115 %undefine       with_interbase
116 %endif
117
118 %ifnarch %{ix86} %{x8664} x32
119 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
120 %undefine       with_fpm
121 %endif
122
123 %if 0
124 %if %{without apache1} && %{without apache2}
125 ERROR: You need to select at least one Apache SAPI to build shared modules.
126 %endif
127 %endif
128
129 # filter depends on pcre
130 %if %{without pcre}
131 %undefine       with_filter
132 %endif
133
134 %if "%{pld_release}" == "ac"
135 %define         _noautoreqdep libphp_common.*
136 # if commandline --without was given. respect that
137 %if 0%{!?_without_default_php:1}
138 %define         with_default_php        1
139 %endif
140 %endif
141
142 %if %{with default_php}
143 %undefine       with_alternatives
144 %endif
145
146 %define         rel     63
147 %define         orgname php
148 %define         ver_suffix 53
149 %define         php_suffix %{!?with_default_php:%{ver_suffix}}
150 Summary:        PHP: Hypertext Preprocessor
151 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
152 Summary(pl.UTF-8):      Język skryptowy PHP
153 Summary(pt_BR.UTF-8):   A linguagem de script PHP
154 Summary(ru.UTF-8):      PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
155 Summary(uk.UTF-8):      PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
156 Name:           %{orgname}%{php_suffix}
157 Version:        5.3.29
158 Release:        %{rel}%{?with_type_hints:.th}%{?with_oci8:.oci}
159 Epoch:          4
160 # All files licensed under PHP version 3.01, except
161 # Zend is licensed under Zend
162 # TSRM is licensed under BSD
163 License:        PHP 3.01 and Zend and BSD
164 Group:          Libraries
165 Source0:        http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
166 # Source0-md5:  9469e240cbe6ac865aeaec89b253dd30
167 Source2:        %{orgname}-mod_%{orgname}.conf
168 Source3:        %{orgname}-cgi-fcgi.ini
169 Source4:        %{orgname}-apache.ini
170 Source5:        %{orgname}-cli.ini
171 Source10:       %{orgname}-fpm.init
172 Source11:       %{orgname}-fpm.logrotate
173 Source12:       %{orgname}-branch.sh
174 Source13:       dep-tests.sh
175 Source14:       skip-tests.sh
176 Source15:       http://litespeedtech.com/packages/lsapi/%{orgname}-litespeed-%{litespeed_version}.tgz
177 # Source15-md5: 9d58485d5fd6b5f5fefcec41b9ce283e
178 Patch0:         %{orgname}-shared.patch
179 Patch1:         %{orgname}-pldlogo.patch
180 Patch2:         %{orgname}-mail.patch
181 Patch3:         %{orgname}-link-libs.patch
182 Patch4:         %{orgname}-libpq_fs_h_path.patch
183 Patch5:         %{orgname}-filter-shared.patch
184 Patch6:         %{orgname}-build_modules.patch
185 Patch7:         %{orgname}-sapi-ini-file.patch
186 Patch8:         %{orgname}-config-file-scan-dir.patch
187 Patch9:         %{orgname}-sh.patch
188 Patch10:        %{orgname}-ini.patch
189 Patch11:        embed.patch
190 %if %{with type_hints}
191 Patch12:        http://ilia.ws/patch/type_hint_53_v2.txt
192 %endif
193 Patch13:        bug-test-pcntl-55479.patch
194 Patch14:        %{orgname}-no_pear_install.patch
195 Patch15:        %{orgname}-zlib.patch
196 Patch16:        php-bug-71475.patch
197 Patch17:        %{orgname}-readline.patch
198 Patch18:        %{orgname}-nohttpd.patch
199 Patch19:        %{orgname}-gd_imagerotate_enable.patch
200 Patch20:        %{orgname}-uint32_t.patch
201 Patch21:        %{orgname}-dba-link.patch
202 Patch22:        %{orgname}-both-apxs.patch
203 Patch23:        %{orgname}-builddir.patch
204 Patch24:        %{orgname}-zlib-for-getimagesize.patch
205 Patch25:        %{orgname}-stupidapache_version.patch
206 Patch26:        %{orgname}-pear.patch
207 Patch27:        %{orgname}-config-dir.patch
208 Patch29:        %{orgname}-fcgi-graceful.patch
209 Patch31:        %{orgname}-fcgi-error_log-no-newlines.patch
210 Patch34:        %{orgname}-libtool.patch
211 Patch35:        %{orgname}-tds.patch
212 Patch36:        %{orgname}-mysql-charsetphpini.patch
213 Patch37:        %{orgname}-mysqli-charsetphpini.patch
214 Patch38:        %{orgname}-pdo_mysql-charsetphpini.patch
215 Patch39:        %{orgname}-use-prog_sendmail.patch
216 Patch41:        %{orgname}-fpm-config.patch
217 Patch42:        %{orgname}-fpm-shared.patch
218 Patch43:        %{orgname}-silent-session-cleanup.patch
219 Patch44:        %{orgname}-include_path.patch
220 Patch45:        %{orgname}-imap-annotations.patch
221 Patch46:        %{orgname}-imap-myrights.patch
222 Patch47:        suhosin.patch
223 Patch48:        php-bug-60598.patch
224 Patch49:        %{orgname}-m4-divert.patch
225 Patch50:        extension-shared-optional-dep.patch
226 Patch51:        spl-shared.patch
227 Patch52:        pcre-shared.patch
228 Patch53:        fix-test-run.patch
229 Patch59:        %{orgname}-systzdata.patch
230 Patch60:        %{orgname}-oracle-instantclient.patch
231 Patch62:        mcrypt-libs.patch
232 Patch63:        %{orgname}-mysql-nowarning.patch
233 Patch64:        %{orgname}-m4.patch
234 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
235 Patch65:        system-libzip.patch
236 Patch66:        %{orgname}-db.patch
237 Patch67:        php-litespeed.patch
238 Patch68:        x32.patch
239 Patch69:        fpm-conf-split.patch
240 Patch70:        mysql-lib-ver-mismatch.patch
241 # git clone git://github.com/php/php-src.git && git checkout PHP_5_6
242 # git diff php-5.3.29..PHP-5.6 ./ext/fileinfo/libmagic > ~/rpm/packages/php/php-fileinfo.patch
243 # git diff php-5.3.29..PHP-5.6 ./ext/fileinfo/config.m4 >> ~/rpm/packages/php/php-fileinfo.patch
244 # git diff php-5.3.29..PHP-5.6 ./ext/fileinfo/Makefile.frag >> ~/rpm/packages/php/php-fileinfo.patch
245 # git diff php-5.3.29..PHP-5.6 ./ext/fileinfo/data_file.c >> ~/rpm/packages/php/php-fileinfo.patch
246 Patch71:        php-fileinfo.patch
247 # Patch71-md5:  771e4934132c5f5c968248c954d1ef6e
248 Patch72:        x32-suhosin.patch
249 Patch73:        php-bug-68486.patch
250 Patch74:        mysqli-err.patch
251 Patch75:        openssl.patch
252 Patch76:        php-bug-61930.patch
253 Patch77:        php-icu64.patch
254 Patch78:        icu69.patch
255 # Fixes for security bugs
256 # https://repo.webtatic.com/yum/centos/5/SRPMS/repoview/php.html
257 # also from RHEL6/CentOS7
258 Patch220:       php-5.3.3-CVE-2011-4153.patch
259 Patch221:       CVE-2019-11043.patch
260
261 Patch247:       php-5.3.3-CVE-2014-2497.patch
262
263 Patch249:       php-5.3.29-CVE-2014-3597.patch
264 Patch250:       php-5.3.3-CVE-2014-4698.patch
265 Patch251:       php-5.3.3-CVE-2014-4670.patch
266 Patch252:       php-5.3.3-CVE-2014-3668.patch
267 Patch253:       php-5.3.3-CVE-2014-3669.patch
268 Patch254:       php-5.3.3-CVE-2014-3670.patch
269
270 Patch256:       php-5.3.29-CVE-2014-8142.patch
271 Patch257:       php-5.3.29-CVE-2015-0231.patch
272 Patch258:       php-5.3.29-CVE-2015-0232.patch
273 URL:            https://www.php.net/
274 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
275 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
276 BuildRequires:  apache-base
277 BuildRequires:  autoconf >= 2.53
278 BuildRequires:  automake >= 1.4d
279 BuildRequires:  bison
280 BuildRequires:  bzip2-devel
281 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
282 BuildRequires:  cyrus-sasl-devel
283 BuildRequires:  db-devel >= 4.0
284 BuildRequires:  elfutils-devel
285 %{?with_enchant:BuildRequires:  enchant-devel >= 1.1.3}
286 BuildRequires:  file
287 %{?with_kerberos5:BuildRequires:        heimdal-devel}
288 BuildRequires:  libatomic-devel
289 %{?with_system_libzip:BuildRequires:    libzip-devel >= 0.10-3}
290 BuildRequires:  mysql-devel
291 BuildRequires:  pkgconfig
292 BuildRequires:  re2c
293 BuildRequires:  sed >= 4.0
294 %if %{with mssql} || %{with sybase_ct}
295 BuildRequires:  freetds-devel >= 0.82
296 %endif
297 BuildRequires:  freetype-devel >= 2.0
298 %if %{with system_gd}
299 BuildRequires:  gd-devel >= 2.0.28-4
300 BuildRequires:  gd-devel(imagerotate) = 5.2.0
301 %endif
302 BuildRequires:  gdbm-devel
303 BuildRequires:  gmp-devel
304 %{?with_imap:BuildRequires:     imap-devel >= 1:2007e-2}
305 BuildRequires:  libicu-devel
306 BuildRequires:  libjpeg-devel
307 BuildRequires:  libltdl-devel >= 1.4
308 BuildRequires:  libmcrypt-devel >= 2.4.4
309 BuildRequires:  libpng-devel >= 1.0.8
310 %{?with_intl:BuildRequires:     libstdc++-devel}
311 %if "%{pld_release}" != "ac"
312 BuildRequires:  libtool >= 2:2.4.6
313 %else
314 BuildRequires:  libtool >= 1.4.3
315 %endif
316 BuildRequires:  libxml2-devel >= 1:2.7.6-4
317 BuildRequires:  libxslt-devel >= 1.1.0
318 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
319 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
320 %if %{with openssl} || %{with ldap}
321 BuildRequires:  openssl-devel >= 0.9.7d
322 %endif
323 %{?with_gcov:BuildRequires:     lcov}
324 %{?with_snmp:%{?with_tests:BuildRequires:       mibs-net-snmp}}
325 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
326 %{?with_oci:%{?with_instantclient:BuildRequires:        oracle-instantclient-devel}}
327 BuildRequires:  pam-devel
328 %{?with_pcre:BuildRequires:     pcre-devel >= 8.10}
329 BuildRequires:  pkgconfig
330 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
331 %{?with_pgsql:BuildRequires:    postgresql-devel}
332 BuildRequires:  readline-devel
333 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
334 BuildRequires:  rpm >= 4.4.9-56
335 BuildRequires:  rpm-build >= 4.4.0
336 BuildRequires:  rpmbuild(macros) >= 1.566
337 %{?with_sqlite2:BuildRequires:  sqlite-devel}
338 %if %{with sqlite3} || %{with pdo_sqlite}
339 BuildRequires:  sqlite3-devel >= 3.3.9
340 %endif
341 BuildRequires:  t1lib-devel
342 %{?with_tidy:BuildRequires:     tidy-devel}
343 %{?with_odbc:BuildRequires:     unixODBC-devel}
344 %{?with_xmlrpc:BuildRequires:   xmlrpc-epi-devel >= 0.54.1}
345 BuildRequires:  zlib-devel >= 1.0.9
346 %if %{with apache1}
347 BuildRequires:  apache1-devel
348 %endif
349 %if %{with apache2}
350 BuildRequires:  apache-devel >= 2.0.52-2
351 BuildRequires:  apr-devel >= 1:1.0.0
352 BuildRequires:  apr-util-devel >= 1:1.0.0
353 %endif
354 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
355
356 %define         php_sysconfdir          /etc/%{name}
357 %define         php_extensiondir        %{_libdir}/%{name}
358 %define         _sysconfdir                     %{php_sysconfdir}
359
360 # must be in sync with source. extra check ensuring that it is so is done in %%build
361 %define         php_api_version         20090626
362 %define         zend_module_api         20090626
363 %define         zend_extension_api      220090626
364
365 # Extension versions
366 %define         bz2ver          1.0
367 %define         enchantver      1.1.0
368 %define         fileinfover     1.0.5-dev
369 %define         hashver         1.0
370 %define         intlver         1.1.0
371 %define         jsonver         1.2.1
372 %define         pharver         2.0.1
373 %define         sqlitever       2.0-dev
374 %define         sqlite3ver      0.7-dev
375 %define         zipver          1.11.0
376
377 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
378 %define         php_debug               %{!?with_debug:0}%{?with_debug:1}
379
380 %if %{with gcov}
381 %undefine       with_ccache
382 %endif
383
384 %if %{with oci}
385 # ORACLE_HOME is required for oci8 ext to build
386 %define _preserve_env %_preserve_env_base ORACLE_HOME
387 %endif
388
389 %description
390 PHP is an HTML-embedded scripting language. PHP attempts to make it
391 easy for developers to write dynamically generated web pages. PHP also
392 offers built-in database integration for several commercial and
393 non-commercial database management systems, so writing a
394 database-enabled web page with PHP is fairly simple. The most common
395 use of PHP coding is probably as a replacement for CGI scripts. The
396 mod_php module enables the Apache web server to understand and process
397 the embedded PHP language in web pages. This package contains PHP
398 version %{version}.
399
400 %{?with_suhosin:This version is built with Suhosin-Patch for PHP.}
401
402 %description -l fr.UTF-8
403 PHP est un langage de script embarque dans le HTM. PHP essaye de
404 rendre simple aux developpeurs d'ecrire des pages web generees
405 dynamiquement. PHP incorpore egalement une integration avec plusieurs
406 systemes de gestion de bases de donnees commerciaux et
407 non-connerciaux, qui rent facile la creation de pages web liees avec
408 des bases de donnees. L'utilisation la plus commune de PHP est
409 probablement en remplacement de scripts CGI. Le module mod_php permet
410 au serveur web Apache de comprendre et de traiter le langage PHP
411 integre dans des pages web. Ce package contient PHP version
412 %{version}.
413
414 %description -l pl.UTF-8
415 PHP jest językiem skryptowym, którego polecenia umieszcza się w
416 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
417 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
418 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
419 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
420 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
421 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
422 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
423 %{version}.
424
425 %description -l pt_BR.UTF-8
426 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
427 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
428 com algumas características únicas, específicas ao PHP. O objetivo da
429 linguagem é permitir que desenvolvedores web escrevam páginas
430 dinamicamente geradas de forma rápida.
431
432 %description -l ru.UTF-8
433 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
434 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
435 для работы с базами данных относительно просто. Наиболее популярное
436 использование PHP - замена для CGI скриптов.
437
438 %description -l uk.UTF-8
439 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
440 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
441 роботи з базами даних є доволі простим. Найбільш популярне
442 використання PHP - заміна для CGI скриптів.
443
444 %package -n apache1-mod_%{name}
445 Summary:        PHP DSO module for Apache 1.3.x
446 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
447 Group:          Development/Languages/PHP
448 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
449 Requires:       apache1(EAPI) >= 1.3.33-2
450 Requires:       apache1-mod_mime
451 Provides:       webserver(php) = %{version}
452 Obsoletes:      apache-mod_php < 1:4.1.1
453 Obsoletes:      apache1-mod_php < 4:5.3.28-7
454 Obsoletes:      phpfi
455
456 %description -n apache1-mod_%{name}
457 PHP as DSO module for Apache 1.3.x.
458
459 %description -n apache1-mod_%{name} -l pl.UTF-8
460 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
461
462 %package -n apache-mod_%{name}
463 Summary:        PHP support for Apache 2.x
464 Summary(pl.UTF-8):      Wsparcie PHP dla Apache 2.x
465 Group:          Development/Languages/PHP
466 Requires:       apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
467 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
468 Provides:       webserver(php) = %{version}
469 Obsoletes:      apache-mod_php < 4:5.3.28-7
470 Obsoletes:      phpfi
471
472 %description -n apache-mod_%{name}
473 PHP support for Apache 2.x.
474
475 %description -n apache-mod_%{name} -l pl.UTF-8
476 Wsparcie PHP dla Apache 2.x.
477
478 %package -n apache-mod_%{name}-core
479 Summary:        PHP DSO module for Apache 2.x
480 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
481 Group:          Development/Languages/PHP
482 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
483 Requires:       apache(modules-api) = %{apache_modules_api}
484 Requires:       apache-mod_mime
485
486 %description -n apache-mod_%{name}-core
487 PHP as DSO module for Apache 2.x.
488
489 %description -n apache-mod_%{name}-core -l pl.UTF-8
490 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
491
492 %package litespeed
493 Summary:        PHP for litespeed HTTP server
494 Summary(pl.UTF-8):      PHP dla serwera HTTP litespeed
495 Group:          Development/Languages/PHP
496 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
497 Provides:       php(litespeed)
498 Provides:       webserver(php) = %{version}
499 Obsoletes:      php-litespeed < 4:5.3.28-7
500
501 %description litespeed
502 PHP for litespeed HTTP server.
503
504 %description litespeed -l pl.UTF-8
505 PHP dla serwera HTTP litespeed.
506
507 %package cgi
508 Summary:        PHP as CGI/FastCGI program
509 Summary(pl.UTF-8):      PHP jako program CGI/FastCGI
510 Group:          Development/Languages/PHP
511 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
512 Provides:       %{name}-fcgi = %{epoch}:%{version}-%{release}
513 Provides:       php(cgi)
514 Provides:       php(fcgi)
515 Provides:       webserver(php) = %{version}
516 Obsoletes:      php-cgi < 4:5.3.28-7
517 Obsoletes:      php-fcgi < 4:5.3.0
518
519 %description cgi
520 PHP as CGI or FastCGI program.
521
522 %description cgi -l pl.UTF-8
523 PHP jako program CGI lub FastCGI.
524
525 %package cli
526 Summary:        PHP as CLI interpreter
527 Summary(pl.UTF-8):      PHP jako interpreter działający z linii poleceń
528 Group:          Development/Languages/PHP
529 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
530 Obsoletes:      php-cli < 4:5.3.28-7
531
532 %description cli
533 PHP as CLI interpreter.
534
535 %description cli -l pl.UTF-8
536 PHP jako interpreter działający z linii poleceń.
537
538 %package embedded
539 Summary:        PHP library for embedding in applications
540 Summary(pl.UTF-8):      Biblioteka PHP do osadzania w aplikacjach
541 Group:          Libraries
542 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
543 Obsoletes:      php-embedded < 4:5.3.28-7
544
545 %description embedded
546 The php-embedded package contains a library which can be embedded into
547 applications to provide PHP scripting language support.
548
549 %description embedded -l pl.UTF-8
550 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
551 celu obsługi PHP jako języka skryptowego.
552
553 %package program
554 Summary:        /usr/bin/php symlink
555 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
556 Group:          Development/Languages/PHP
557 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
558 Obsoletes:      php-program < 4:5.3.28-7
559 Obsoletes:      php4-program < 3:5
560 Obsoletes:      php52-program < 4:5.3
561 Obsoletes:      php54-program < 4:5.5
562 Obsoletes:      php55-program < 4:5.6
563 Obsoletes:      php56-program < 4:7
564 Obsoletes:      php70-program < 4:7.1
565 Obsoletes:      php71-program < 4:7.2
566 Obsoletes:      php72-program < 4:7.3
567 Obsoletes:      php73-program < 4:7.4
568 Obsoletes:      php74-program < 4:8
569 Obsoletes:      php80-program < 4:8.1
570 Obsoletes:      php81-program < 4:8.2
571 Obsoletes:      php82-program < 4:8.3
572
573 %description program
574 Package providing /usr/bin/php symlink to PHP CLI.
575
576 %description program -l pl.UTF-8
577 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
578
579 %package fpm
580 Summary:        PHP FastCGI Process Manager
581 Summary(pl.UTF-8):      PHP FastCGI Process Manager - zarządca procesów FastCGI
582 Group:          Development/Languages/PHP
583 URL:            http://www.php-fpm.org/
584 Requires(post,preun):   /sbin/chkconfig
585 Requires(postun):       /usr/sbin/userdel
586 Requires(pre):  /bin/id
587 Requires(pre):  /usr/sbin/useradd
588 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
589 %{?with_alternatives:Requires:  alternatives}
590 Requires:       php-dirs >= 1.4-2
591 Requires:       rc-scripts
592 Provides:       php(fcgi)
593 Provides:       php(fpm)
594 Provides:       user(http)
595 Provides:       webserver(php) = %{version}
596 Obsoletes:      php-fpm < 4:5.3.28-7
597 %if "%{pld_release}" != "ac"
598 Conflicts:      logrotate < 3.8.0
599 %endif
600
601 %description fpm
602 PHP FastCGI Process Manager.
603
604 %description fpm -l pl.UTF-8
605 PHP FastCGI Process Manager - zarządca procesów FastCGI.
606
607 %package common
608 Summary:        Common files needed by both Apache modules and CGI/CLI SAPIs
609 Summary(pl.UTF-8):      Wspólne pliki dla modułu Apache'a i programu CGI
610 Summary(ru.UTF-8):      Разделяемые библиотеки для PHP
611 Summary(uk.UTF-8):      Бібліотеки спільного використання для PHP
612 Group:          Libraries
613 Requires(post): sed >= 4.0
614 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
615 Requires:       glibc >= 6:2.3.5
616 Requires:       php-dirs >= 1.4
617 Requires:       rpm-whiteout >= 1.28
618 Requires:       tzdata
619 %if "%{pld_release}" == "ac"
620 # postpone tree rebuild in ac
621 Provides:       php5(debug) = %{php_debug}
622 Provides:       php5(thread-safety) = %{zend_zts}
623 %endif
624 Provides:       %{name}(debug) = %{php_debug}
625 Provides:       %{name}(modules_api) = %{php_api_version}
626 Provides:       %{name}(thread-safety) = %{zend_zts}
627 Provides:       %{name}(zend_extension_api) = %{zend_extension_api}
628 Provides:       %{name}(zend_module_api) = %{zend_module_api}
629 Provides:       %{name}-core
630 Provides:       %{name}-date
631 Provides:       %{name}-ereg
632 Provides:       %{name}-reflection
633 Provides:       %{name}-standard
634 Provides:       php(core) = %{version}
635 Provides:       php(date)
636 Provides:       php(ereg)
637 Provides:       php(libxml)
638 Provides:       php(reflection)
639 Provides:       php(standard)
640 %{!?with_mysqlnd:Obsoletes:     php-mysqlnd}
641 %{?with_pcre:%requires_ge_to    pcre pcre-devel}
642 Suggests:       browscap
643 Obsoletes:      php-common < 4:5.3.28-7
644 Obsoletes:      php-pecl-domxml
645 Conflicts:      php4-common < 3:4.4.4-8
646 Conflicts:      rpm < 4.4.2-0.2
647
648 %description common
649 Common files needed by both Apache modules and CGI/CLI SAPIs.
650
651 %description common -l pl.UTF-8
652 Wspólne pliki dla modułu Apache'a i programu CGI.
653
654 %description common -l ru.UTF-8
655 Этот пакет содержит общие файлы для разных вариантов реализации PHP
656 (самодостаточной и в качестве модуля Apache).
657
658 %description common -l uk.UTF-8
659 Цей пакет містить спільні файли для різних варіантів реалізації PHP
660 (самодостатньої та в якості модуля Apache).
661
662 %package devel
663 Summary:        Files for PHP modules development
664 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
665 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
666 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
667 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
668 Group:          Development/Languages/PHP
669 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
670 Requires:       autoconf >= 2.13
671 Requires:       automake
672 %if "%{pld_release}" != "ac"
673 Requires:       libtool >= 2:2.4.6
674 %else
675 Requires:       libtool
676 %endif
677 %{?with_embed:Requires: %{name}-embedded = %{epoch}:%{version}-%{release}}
678 %{?with_pcre:Requires:  pcre-devel >= 8.10}
679 Requires:       shtool
680 Provides:       php-devel = %{epoch}:%{version}-%{release}
681 Obsoletes:      php-devel
682 Obsoletes:      php-pear-devel < 3:4.3.0-1
683 Obsoletes:      php4-devel < 3:5
684 Obsoletes:      php52-devel < 4:5.3
685 Obsoletes:      php54-devel < 4:5.5
686 Obsoletes:      php55-devel < 4:5.6
687 Obsoletes:      php56-devel < 4:7
688 Obsoletes:      php70-devel < 4:7.1
689 Obsoletes:      php71-devel < 4:7.2
690 Obsoletes:      php72-devel < 4:7.3
691 Obsoletes:      php73-devel < 4:7.4
692 Obsoletes:      php74-devel < 4:8
693 Obsoletes:      php80-devel < 4:8.1
694 Obsoletes:      php81-devel < 4:8.2
695 Obsoletes:      php82-devel < 4:8.3
696
697 %description devel
698 The php-devel package lets you compile dynamic extensions to PHP.
699 Included here is the source for the PHP extensions. Instead of
700 recompiling the whole PHP binary to add support for, say, oracle,
701 install this package and use the new self-contained extensions
702 support. For more information, read the file
703 README.SELF-CONTAINED-EXTENSIONS.
704
705 %description devel -l pl.UTF-8
706 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
707 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
708 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
709 samodzielnych rozszerzeniach można znaleźć w pliku
710 README.SELF-CONTAINED-EXTENSIONS.
711
712 %description devel -l pt_BR.UTF-8
713 Este pacote contém arquivos usados no desenvolvimento de programas ou
714 módulos PHP.
715
716 %description devel -l ru.UTF-8
717 Пакет php-devel дает возможность компилировать динамические расширения
718 PHP. Пакет включает исходный код этих расширений. Вместо повторной
719 компиляции бинарного файла PHP для добавления, например, поддержки
720 oracle, установите этот пакет для компилирования отдельных расширений.
721 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
722
723 %description devel -l uk.UTF-8
724 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
725 До пакету включено вихідний код для розширень. Замість повторної
726 компіляції бінарного файлу PHP для додання, наприклад, підтримки
727 oracle, встановіть цей пакет для компіляції окремих розширень.
728 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
729
730 %package bcmath
731 Summary:        bcmath extension module for PHP
732 Summary(pl.UTF-8):      Moduł bcmath dla PHP
733 Group:          Libraries
734 URL:            http://www.php.net/manual/en/book.bc.php
735 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
736 Provides:       php(bcmath)
737 Obsoletes:      php-bcmath < 4:5.3.28-7
738
739 %description bcmath
740 This is a dynamic shared object (DSO) for PHP that will add bc style
741 precision math functions support.
742
743 %description bcmath -l pl.UTF-8
744 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
745 matematycznych takich jak w programie bc.
746
747 %package bz2
748 Summary:        Bzip2 extension module for PHP
749 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
750 Group:          Libraries
751 URL:            http://www.php.net/manual/en/book.bzip2.php
752 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
753 Provides:       php(bz2) = %{bz2ver}
754 Provides:       php(bzip2)
755 Provides:       php-bzip2 = %{epoch}:%{version}-%{release}
756 Obsoletes:      php-bz2 < 4:5.3.28-7
757 Obsoletes:      php-bzip2 < 4:5.2.14-3
758 Obsoletes:      php-pecl-bz2 < %{bz2ver}
759
760 %description bz2
761 This is a dynamic shared object (DSO) for PHP that will add bzip2
762 compression support to PHP.
763
764 %description bz2 -l pl.UTF-8
765 Moduł PHP umożliwiający używanie kompresji bzip2.
766
767 %package calendar
768 Summary:        Calendar extension module for PHP
769 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
770 Group:          Libraries
771 URL:            http://www.php.net/manual/en/book.calendar.php
772 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
773 Provides:       php(calendar)
774 Obsoletes:      php-calendar < 4:5.3.28-7
775
776 %description calendar
777 This is a dynamic shared object (DSO) for PHP that will add calendar
778 support.
779
780 %description calendar -l pl.UTF-8
781 Moduł PHP dodający wsparcie dla kalendarza.
782
783 %package ctype
784 Summary:        ctype extension module for PHP
785 Summary(pl.UTF-8):      Moduł ctype dla PHP
786 Group:          Libraries
787 URL:            http://www.php.net/manual/en/book.ctype.php
788 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
789 Provides:       php(ctype)
790 Obsoletes:      php-ctype < 4:5.3.28-7
791
792 %description ctype
793 This is a dynamic shared object (DSO) for PHP that will add ctype
794 support.
795
796 %description ctype -l pl.UTF-8
797 Moduł PHP umożliwiający korzystanie z funkcji ctype.
798
799 %package curl
800 Summary:        curl extension module for PHP
801 Summary(pl.UTF-8):      Moduł curl dla PHP
802 Group:          Libraries
803 URL:            http://www.php.net/manual/en/book.curl.php
804 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
805 Provides:       php(curl)
806 Obsoletes:      php-curl < 4:5.3.28-7
807
808 %description curl
809 This is a dynamic shared object (DSO) for PHP that will add curl
810 support.
811
812 %description curl -l pl.UTF-8
813 Moduł PHP umożliwiający korzystanie z biblioteki curl.
814
815 %package dba
816 Summary:        DBA extension module for PHP
817 Summary(pl.UTF-8):      Moduł DBA dla PHP
818 Group:          Libraries
819 URL:            http://www.php.net/manual/en/book.dba.php
820 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
821 Provides:       php(dba)
822 Obsoletes:      php-dba < 4:5.3.28-7
823
824 %description dba
825 This is a dynamic shared object (DSO) for PHP that will add flat-file
826 databases (DBA) support.
827
828 %description dba -l pl.UTF-8
829 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
830 (DBA).
831
832 %package dom
833 Summary:        DOM extension module for PHP
834 Summary(pl.UTF-8):      Moduł DOM dla PHP
835 Group:          Libraries
836 URL:            http://www.php.net/manual/en/book.dom.php
837 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
838 Provides:       php(dom)
839 # it has some compatibility functions
840 Provides:       %{name}-domxml = %{epoch}:%{version}-%{release}
841 Provides:       php(domxml)
842 Obsoletes:      php-dom < 4:5.3.28-7
843 Obsoletes:      php-domxml <= 3:4.3.8-1
844
845 %description dom
846 This is a dynamic shared object (DSO) for PHP that will add new DOM
847 support.
848
849 %description dom -l pl.UTF-8
850 Moduł PHP dodający nową obsługę DOM.
851
852 %package enchant
853 Summary:        libenchant binder
854 Summary(pl.UTF-8):      dowiązania biblioteki libenchant
855 Group:          Libraries
856 URL:            http://www.php.net/manual/en/book.exif.php
857 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
858 Provides:       php(enchant) = %{enchantver}
859 Obsoletes:      php-enchant < 4:5.3.28-7
860 Obsoletes:      php-pecl-enchant < %{enchantver}
861
862 %description enchant
863 Enchant is a binder for libenchant. Libenchant provides a common API
864 for many spell libraries:
865 - aspell/pspell (intended to replace ispell)
866 - hspell (hebrew)
867 - ispell
868 - myspell (OpenOffice.org project, mozilla)
869 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
870   plugin system allows to add custom spell support.
871
872 %description enchant -l pl.UTF-8
873 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
874 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
875 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
876 - hspell (hebrajski)
877 - ispell
878 - myspell (projekt OpenOffice.org, mozilla)
879 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
880   System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
881
882 %package exif
883 Summary:        exif extension module for PHP
884 Summary(pl.UTF-8):      Moduł exif dla PHP
885 Group:          Libraries
886 URL:            http://www.php.net/manual/en/book.exif.php
887 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
888 Provides:       php(exif)
889 Obsoletes:      php-exif < 4:5.3.28-7
890
891 %description exif
892 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
893 support in image files.
894
895 %description exif -l pl.UTF-8
896 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
897
898 %package fileinfo
899 Summary:        libmagic bindings
900 Summary(pl.UTF-8):      Wiązania do libmagic
901 Group:          Libraries
902 URL:            http://www.php.net/manual/en/book.fileinfo.php
903 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
904 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
905 Provides:       php(fileinfo) = %{fileinfover}
906 Obsoletes:      php-fileinfo < 4:5.3.28-7
907 Obsoletes:      php-mime_magic
908 Obsoletes:      php-pecl-fileinfo < %{fileinfover}
909
910 %description fileinfo
911 This extension allows retrieval of information regarding vast majority
912 of file. This information may include dimensions, quality, length
913 etc...
914
915 Additionally it can also be used to retrieve the MIME type for a
916 particular file and for text files proper language encoding.
917
918 %description fileinfo -l pl.UTF-8
919 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
920 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
921
922 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
923 pliku oraz kodowania plików tekstowych.
924
925 %package filter
926 Summary:        Extension for safely dealing with input parameters
927 Summary(pl.UTF-8):      Rozszerzenie do bezpiecznej obsługi danych wejściowych
928 Group:          Libraries
929 URL:            http://www.php.net/manual/en/book.filter.php
930 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
931 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
932 Provides:       php(filter)
933 Obsoletes:      php-filter < 4:5.3.28-7
934 Obsoletes:      php-pecl-filter < 0.12
935
936 %description filter
937 We all know that you should always check input variables, but PHP does
938 not offer really good functionality for doing this in a safe way. The
939 Input Filter extension is meant to address this issue by implementing
940 a set of filters and mechanisms that users can use to safely access
941 their input data.
942
943 %description filter -l pl.UTF-8
944 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
945 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
946 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
947 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
948 mogą bezpiecznie używać do dostępu do danych.
949
950 %package ftp
951 Summary:        FTP extension module for PHP
952 Summary(pl.UTF-8):      Moduł FTP dla PHP
953 Group:          Libraries
954 URL:            http://www.php.net/manual/en/book.ftp.php
955 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
956 Provides:       php(ftp)
957 Obsoletes:      php-ftp < 4:5.3.28-7
958
959 %description ftp
960 This is a dynamic shared object (DSO) for PHP that will add FTP
961 support.
962
963 %description ftp -l pl.UTF-8
964 Moduł PHP dodający obsługę protokołu FTP.
965
966 %package gd
967 Summary:        GD extension module for PHP
968 Summary(pl.UTF-8):      Moduł GD dla PHP
969 Group:          Libraries
970 URL:            http://www.php.net/manual/en/book.image.php
971 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
972 %if %{with system_gd}
973 Requires:       gd >= 2.0.28-4
974 Requires:       gd(gif)
975 Requires:       gd(imagerotate) = 5.2.0
976 %endif
977 Provides:       php(gd)
978 Obsoletes:      php-gd < 4:5.3.28-7
979
980 %description gd
981 This is a dynamic shared object (DSO) for PHP that will add GD
982 support, allowing you to create and manipulate images with PHP.
983
984 %description gd -l pl.UTF-8
985 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
986 tworzenie i obróbkę obrazków.
987
988 %package gettext
989 Summary:        gettext extension module for PHP
990 Summary(pl.UTF-8):      Moduł gettext dla PHP
991 Group:          Libraries
992 URL:            http://www.php.net/manual/en/book.gettext.php
993 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
994 Provides:       php(gettext)
995 Obsoletes:      php-gettext < 4:5.3.28-7
996
997 %description gettext
998 This is a dynamic shared object (DSO) for PHP that will add gettext
999 support.
1000
1001 %description gettext -l pl.UTF-8
1002 Moduł PHP dodający obsługę lokalizacji przez gettext.
1003
1004 %package gmp
1005 Summary:        gmp extension module for PHP
1006 Summary(pl.UTF-8):      Moduł gmp dla PHP
1007 Group:          Libraries
1008 URL:            http://www.php.net/manual/en/book.gmp.php
1009 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1010 Provides:       php(gmp)
1011 Obsoletes:      php-gmp < 4:5.3.28-7
1012
1013 %description gmp
1014 This is a dynamic shared object (DSO) for PHP that will add arbitrary
1015 length number support with GNU MP library.
1016
1017 %description gmp -l pl.UTF-8
1018 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
1019 liczbach o dowolnej długości.
1020
1021 %package hash
1022 Summary:        HASH Message Digest Framework
1023 Summary(pl.UTF-8):      Szkielet do obliczania skrótów wiadomości
1024 Group:          Libraries
1025 URL:            http://www.php.net/manual/en/book.gmp.php
1026 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1027 Provides:       php(hash) = %{hashver}
1028 %if %{with mhash}
1029 Provides:       php(mhash)
1030 Provides:       php-mhash = %{epoch}:%{version}-%{release}
1031 Obsoletes:      php-mhash < 4:5.3.0
1032 %endif
1033 Obsoletes:      php-hash < 4:5.3.28-7
1034 Obsoletes:      php-pecl-hash < %{hashver}
1035
1036 %description hash
1037 Native implementations of common message digest algorithms using a
1038 generic factory method.
1039
1040 %description hash -l pl.UTF-8
1041 Natywne implementacje popularnych algorytmów obliczania skrótów
1042 wiadomości przy użyciu wspólnego interfejsu.
1043
1044 %package iconv
1045 Summary:        iconv extension module for PHP
1046 Summary(pl.UTF-8):      Moduł iconv dla PHP
1047 Group:          Libraries
1048 URL:            http://www.php.net/manual/en/book.iconv.php
1049 Requires:       %{_libdir}/gconv
1050 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1051 Requires:       iconv
1052 Provides:       php(iconv)
1053 Obsoletes:      php-iconv < 4:5.3.28-7
1054
1055 %description iconv
1056 This is a dynamic shared object (DSO) for PHP that will add iconv
1057 support.
1058
1059 %description iconv -l pl.UTF-8
1060 Moduł PHP dodający obsługę iconv.
1061
1062 %package imap
1063 Summary:        IMAP extension module for PHP
1064 Summary(pl.UTF-8):      Moduł IMAP dla PHP
1065 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
1066 Group:          Libraries
1067 URL:            http://www.php.net/manual/en/book.imap.php
1068 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1069 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
1070 Requires:       imap-lib >= 1:2007e-2
1071 Provides:       php(imap)
1072 Obsoletes:      php-imap < 4:5.3.28-7
1073
1074 %description imap
1075 This is a dynamic shared object (DSO) for PHP that will add IMAP
1076 support.
1077
1078 %description imap -l pl.UTF-8
1079 Moduł PHP dodający obsługę skrzynek IMAP.
1080
1081 %description imap -l pt_BR.UTF-8
1082 Um módulo para aplicações PHP que usam IMAP.
1083
1084 %package interbase
1085 Summary:        InterBase/Firebird database module for PHP
1086 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
1087 Group:          Libraries
1088 URL:            http://www.php.net/manual/en/book.ibase.php
1089 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1090 Provides:       php(interbase)
1091 %{?with_interbase_inst:Autoreq: false}
1092 Obsoletes:      php-interbase < 4:5.3.28-7
1093
1094 %description interbase
1095 This is a dynamic shared object (DSO) for PHP that will add InterBase
1096 and Firebird database support.
1097
1098 %description interbase -l pl.UTF-8
1099 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
1100
1101 %package intl
1102 Summary:        Internationalization extension (ICU wrapper)
1103 Summary(pl.UTF-8):      Rozszerzenie do internacjonalizacji (interfejs do ICU)
1104 Group:          Libraries
1105 URL:            http://www.php.net/intl
1106 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1107 Provides:       php(intl) = %{intlver}
1108 Obsoletes:      php-intl < 4:5.3.28-7
1109 Obsoletes:      php-pecl-intl < %{intlver}
1110
1111 %description intl
1112 Internationalization extension (further is referred as Intl) is a
1113 wrapper for ICU library, enabling PHP programmers to perform
1114 UCA-conformant collation and date/time/number/currency formatting in
1115 their scripts.
1116
1117 %description intl -l pl.UTF-8
1118 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1119 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1120 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1121 daty/czasu/walut.
1122
1123 %package json
1124 Summary:        PHP C extension for JSON serialization
1125 Summary(pl.UTF-8):      Rozszerzenie C PHP dla serializacji JSON
1126 Group:          Libraries
1127 URL:            http://www.php.net/manual/en/book.json.php
1128 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1129 Provides:       php(json) = %{jsonver}
1130 Obsoletes:      php-json < 4:5.3.28-7
1131 Obsoletes:      php-pecl-json < %{jsonver}
1132
1133 %description json
1134 php-json is an extremely fast PHP C extension for JSON (JavaScript
1135 Object Notation) serialisation.
1136
1137 %description json -l pl.UTF-8
1138 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1139 (JavaScript Object Notation).
1140
1141 %package ldap
1142 Summary:        LDAP extension module for PHP
1143 Summary(pl.UTF-8):      Moduł LDAP dla PHP
1144 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
1145 Group:          Libraries
1146 URL:            http://www.php.net/manual/en/book.ldap.php
1147 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1148 Provides:       php(ldap)
1149 Obsoletes:      php-ldap < 4:5.3.28-7
1150
1151 %description ldap
1152 This is a dynamic shared object (DSO) for PHP that will add LDAP
1153 support.
1154
1155 %description ldap -l pl.UTF-8
1156 Moduł PHP dodający obsługę LDAP.
1157
1158 %description ldap -l pt_BR.UTF-8
1159 Um módulo para aplicações PHP que usam LDAP.
1160
1161 %package mbstring
1162 Summary:        mbstring extension module for PHP
1163 Summary(pl.UTF-8):      Moduł mbstring dla PHP
1164 Group:          Libraries
1165 URL:            http://www.php.net/manual/en/book.mbstring.php
1166 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1167 Provides:       php(mbstring)
1168 Obsoletes:      php-mbstring < 4:5.3.28-7
1169
1170 %description mbstring
1171 This is a dynamic shared object (DSO) for PHP that will add multibyte
1172 string support.
1173
1174 %description mbstring -l pl.UTF-8
1175 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1176
1177 %package mcrypt
1178 Summary:        mcrypt extension module for PHP
1179 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
1180 Group:          Libraries
1181 URL:            http://www.php.net/manual/en/book.mcrypt.php
1182 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1183 Provides:       php(mcrypt)
1184 Obsoletes:      php-mcrypt < 4:5.3.28-7
1185
1186 %description mcrypt
1187 This is a dynamic shared object (DSO) for PHP that will add mcrypt
1188 support.
1189
1190 %description mcrypt -l pl.UTF-8
1191 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
1192
1193 %package mssql
1194 Summary:        MS SQL extension module for PHP
1195 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1196 Group:          Libraries
1197 URL:            http://www.php.net/manual/en/book.mssql.php
1198 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1199 Provides:       php(mssql)
1200 Obsoletes:      php-mssql < 4:5.3.28-7
1201
1202 %description mssql
1203 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1204 databases support through FreeTDS library.
1205
1206 %description mssql -l pl.UTF-8
1207 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1208 FreeTDS.
1209
1210 %package mysql
1211 Summary:        MySQL database module for PHP
1212 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1213 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1214 Group:          Libraries
1215 URL:            http://www.php.net/manual/en/book.mysql.php
1216 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1217 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1218 Provides:       php(mysql)
1219 Obsoletes:      php-mysql < 4:5.3.28-7
1220
1221 %description mysql
1222 This is a dynamic shared object (DSO) for PHP that will add MySQL
1223 database support.
1224
1225 %description mysql -l pl.UTF-8
1226 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1227
1228 %description mysql -l pt_BR.UTF-8
1229 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1230
1231 %package mysqli
1232 Summary:        MySQLi module for PHP
1233 Summary(pl.UTF-8):      Moduł MySQLi dla PHP
1234 Group:          Libraries
1235 URL:            http://www.php.net/manual/en/book.mysqli.php
1236 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1237 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1238 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1239 Provides:       php(mysqli)
1240 Obsoletes:      php-mysqli < 4:5.3.28-7
1241
1242 %description mysqli
1243 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1244 (Improved MySQL) support. The difference between it and mysql module
1245 is that it provides access to functionality of MySQL 4.1 and above.
1246
1247 %description mysqli -l pl.UTF-8
1248 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1249 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1250 MySQL w wersji 4.1 i nowszych.
1251
1252 %package mysqlnd
1253 Summary:        MySQL Native Client Driver for PHP
1254 Summary(pl.UTF-8):      Sterownik natywnego klienta MySQL dla PHP
1255 Group:          Libraries
1256 URL:            http://www.php.net/manual/en/book.mysqlnd.php
1257 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1258 Provides:       php(mysqlnd)
1259 Obsoletes:      php-mysqlnd < 4:5.3.28-7
1260
1261 %description mysqlnd
1262 MySQL Native Driver is a replacement for the MySQL Client Library
1263 (libmysql).
1264
1265 Because MySQL Native Driver is written as a PHP extension, it is
1266 tightly coupled to the workings of PHP. This leads to gains in
1267 efficiency, especially when it comes to memory usage, as the driver
1268 uses the PHP memory management system. It also supports the PHP memory
1269 limit. Using MySQL Native Driver leads to comparable or better
1270 performance than using MySQL Client Library, it always ensures the
1271 most efficient use of memory. One example of the memory efficiency is
1272 the fact that when using the MySQL Client Library, each row is stored
1273 in memory twice, whereas with the MySQL Native Driver each row is only
1274 stored once in memory.
1275
1276 %description mysqlnd -l pl.UTF-8
1277 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1278 klienckiej MySQL (libmysql).
1279
1280 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1281 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1282 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1283 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1284 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1285 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1286 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1287 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1288 tym sterowniku - tylko raz.
1289
1290 %package oci8
1291 Summary:        Oracle 8+ database module for PHP
1292 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8+ dla PHP
1293 Group:          Libraries
1294 URL:            http://www.php.net/manual/en/book.oci8.php
1295 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1296 Provides:       php(oci8)
1297 Obsoletes:      php-oci8 < 4:5.3.28-7
1298 AutoReq:        false
1299
1300 %description oci8
1301 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1302 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1303
1304 %description oci8 -l pl.UTF-8
1305 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1306 poprzez interfejs Oracle8 Call-Interface (OCI8).
1307
1308 %package odbc
1309 Summary:        ODBC extension module for PHP
1310 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1311 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1312 Group:          Libraries
1313 URL:            http://www.php.net/manual/en/book.uodbc.php
1314 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1315 Requires:       unixODBC >= 2.1.1-3
1316 Provides:       php(odbc)
1317 Obsoletes:      php-odbc < 4:5.3.28-7
1318
1319 %description odbc
1320 This is a dynamic shared object (DSO) for PHP that will add ODBC
1321 support.
1322
1323 %description odbc -l pl.UTF-8
1324 Moduł PHP ze wsparciem dla ODBC.
1325
1326 %description odbc -l pt_BR.UTF-8
1327 Um módulo para aplicações PHP que usam ODBC.
1328
1329 %package openssl
1330 Summary:        OpenSSL extension module for PHP
1331 Summary(pl.UTF-8):      Moduł OpenSSL dla PHP
1332 Group:          Libraries
1333 URL:            http://www.php.net/manual/en/book.openssl.php
1334 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1335 Provides:       php(openssl)
1336 Obsoletes:      php-openssl < 4:5.3.28-7
1337
1338 %description openssl
1339 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1340 support.
1341
1342 %description openssl -l pl.UTF-8
1343 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1344
1345 %package pcntl
1346 Summary:        Process Control extension module for PHP
1347 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1348 Group:          Libraries
1349 URL:            http://www.php.net/manual/en/book.pcntl.php
1350 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1351 Provides:       php(pcntl)
1352 Obsoletes:      php-pcntl < 4:5.3.28-7
1353
1354 %description pcntl
1355 This is a dynamic shared object (DSO) for PHP that will add process
1356 spawning and control support. It supports functions like fork(),
1357 waitpid(), signal() etc.
1358
1359 %description pcntl -l pl.UTF-8
1360 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1361 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1362
1363 %package pcre
1364 Summary:        PCRE extension module for PHP
1365 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1366 Group:          Libraries
1367 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1368 Provides:       php(pcre)
1369 Obsoletes:      php-pcre < 4:5.3.28-7
1370
1371 %description pcre
1372 This is a dynamic shared object (DSO) for PHP that will add Perl
1373 Compatible Regular Expression support.
1374
1375 %description pcre -l pl.UTF-8
1376 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1377 (Perl Compatible Regular Expressions)
1378
1379 %package pdo
1380 Summary:        PHP Data Objects (PDO)
1381 Summary(pl.UTF-8):      Obsługa PHP Data Objects (PDO)
1382 Group:          Libraries
1383 URL:            http://www.php.net/manual/en/book.pdo.php
1384 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1385 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1386 Provides:       php(pdo)
1387 Obsoletes:      php-pdo < 4:5.3.28-7
1388 Obsoletes:      php-pecl-PDO < 1.1
1389
1390 %description pdo
1391 This is a dynamic shared object (DSO) for PHP that will add PDO
1392 support.
1393
1394 %description pdo -l pl.UTF-8
1395 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1396
1397 %package pdo-dblib
1398 Summary:        PHP Data Objects (PDO) FreeTDS support
1399 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1400 Group:          Libraries
1401 URL:            http://www.php.net/manual/en/ref.pdo-dblib.php
1402 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1403 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1404 Provides:       php(pdo_dblib)
1405 Obsoletes:      php-pdo-dblib < 4:5.3.28-7
1406
1407 %description pdo-dblib
1408 This is a dynamic shared object (DSO) for PHP that will add PDO
1409 FreeTDS support.
1410
1411 %description pdo-dblib -l pl.UTF-8
1412 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1413 interfejsu PDO.
1414
1415 %package pdo-firebird
1416 Summary:        PHP Data Objects (PDO) Firebird support
1417 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Firebirda
1418 Group:          Libraries
1419 URL:            http://www.php.net/manual/en/ref.pdo-firebird.php
1420 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1421 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1422 Provides:       php(pdo-firebird)
1423 Provides:       php(pdo_firebird)
1424 Obsoletes:      php-pdo-firebird < 4:5.3.28-7
1425 Obsoletes:      php-pecl-PDO_FIREBIRD < 0.3
1426
1427 %description pdo-firebird
1428 This is a dynamic shared object (DSO) for PHP that will add PDO
1429 Firebird support.
1430
1431 %description pdo-firebird -l pl.UTF-8
1432 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1433 interfejsu PDO.
1434
1435 %package pdo-mysql
1436 Summary:        PHP Data Objects (PDO) MySQL support
1437 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1438 Group:          Libraries
1439 URL:            http://www.php.net/manual/en/ref.pdo-mysql.php
1440 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1441 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1442 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1443 Provides:       php(pdo-mysql)
1444 Provides:       php(pdo_mysql)
1445 Obsoletes:      php-pdo-mysql < 4:5.3.28-7
1446 Obsoletes:      php-pecl-PDO_MYSQL < 1.1
1447
1448 %description pdo-mysql
1449 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1450 support.
1451
1452 %description pdo-mysql -l pl.UTF-8
1453 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1454 interfejsu PDO.
1455
1456 %package pdo-oci
1457 Summary:        PHP Data Objects (PDO) Oracle support
1458 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1459 Group:          Libraries
1460 URL:            http://www.php.net/manual/en/ref.pdo-oci.php
1461 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1462 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1463 Provides:       php(pdo-oci)
1464 Provides:       php(pdo_oci)
1465 Obsoletes:      php-pdo-oci < 4:5.3.28-7
1466 Obsoletes:      php-pecl-PDO_OCI < 1.1
1467
1468 %description pdo-oci
1469 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1470 support.
1471
1472 %description pdo-oci -l pl.UTF-8
1473 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1474 interfejsu PDO.
1475
1476 %package pdo-odbc
1477 Summary:        PHP Data Objects (PDO) ODBC support
1478 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą ODBC
1479 Group:          Libraries
1480 URL:            http://www.php.net/manual/en/ref.pdo-odbc.php
1481 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1482 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1483 Provides:       php(pdo-odbc)
1484 Provides:       php(pdo_odbc)
1485 Obsoletes:      php-pdo-odbc < 4:5.3.28-7
1486 Obsoletes:      php-pecl-PDO_ODBC < 1.1
1487
1488 %description pdo-odbc
1489 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1490 support.
1491
1492 %description pdo-odbc -l pl.UTF-8
1493 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1494 interfejsu PDO.
1495
1496 %package pdo-pgsql
1497 Summary:        PHP Data Objects (PDO) PostgreSQL support
1498 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1499 Group:          Libraries
1500 URL:            http://www.php.net/manual/en/ref.pdo-pgsql.php
1501 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1502 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1503 Provides:       php(pdo-pgsql)
1504 Provides:       php(pdo_pgsql)
1505 Obsoletes:      php-pdo-pgsql < 4:5.3.28-7
1506 Obsoletes:      php-pecl-PDO_PGSQL < 4:5.2.1-2
1507
1508 %description pdo-pgsql
1509 This is a dynamic shared object (DSO) for PHP that will add PDO
1510 PostgreSQL support.
1511
1512 %description pdo-pgsql -l pl.UTF-8
1513 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1514 interfejsu PDO.
1515
1516 %package pdo-sqlite
1517 Summary:        PHP Data Objects (PDO) SQLite support
1518 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą SQLite
1519 Group:          Libraries
1520 URL:            http://www.php.net/manual/en/ref.pdo-sqlite.php
1521 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1522 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1523 Provides:       php(pdo-sqlite)
1524 Provides:       php(pdo_sqlite)
1525 Obsoletes:      php-pdo-sqlite < 4:5.3.28-7
1526 Obsoletes:      php-pecl-PDO_SQLITE < 1.1
1527
1528 %description pdo-sqlite
1529 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1530 support.
1531
1532 %description pdo-sqlite -l pl.UTF-8
1533 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1534 interfejsu PDO.
1535
1536 %package pgsql
1537 Summary:        PostgreSQL database module for PHP
1538 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1539 Group:          Libraries
1540 URL:            http://www.php.net/manual/en/book.pgsql.php
1541 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1542 Provides:       php(pgsql)
1543 Obsoletes:      php-pgsql < 4:5.3.28-7
1544
1545 %description pgsql
1546 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1547 database support.
1548
1549 %description pgsql -l pl.UTF-8
1550 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1551
1552 %description pgsql -l pt_BR.UTF-8
1553 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1554
1555 %package phar
1556 Summary:        Phar archive module for PHP
1557 Summary(pl.UTF-8):      Moduł phar dla PHP
1558 Group:          Libraries
1559 URL:            http://www.php.net/manual/en/book.phar.php
1560 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1561 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1562 %{?with_alternatives:Requires:  alternatives}
1563 Suggests:       %{name}-cli
1564 # zlib is required by phar program, but as phar cli is optional should the dep be too
1565 Suggests:       %{name}-zlib
1566 Provides:       php(phar) = %{pharver}
1567 Obsoletes:      php-pecl-phar < %{pharver}
1568 Obsoletes:      php-phar < 4:5.3.28-7
1569 Conflicts:      php-ioncube < 4.0.9
1570
1571 %description phar
1572 This is a dynamic shared object (DSO) for PHP that will add phar
1573 archive a support.
1574
1575 %description phar -l pl.UTF-8
1576 Moduł PHP umożliwiający dostęp do achiwów .phar.
1577
1578 %package posix
1579 Summary:        POSIX extension module for PHP
1580 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1581 Group:          Libraries
1582 URL:            http://www.php.net/manual/en/book.posix.php
1583 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1584 Provides:       php(posix)
1585 Obsoletes:      php-posix < 4:5.3.28-7
1586
1587 %description posix
1588 This is a dynamic shared object (DSO) for PHP that will add POSIX
1589 functions support to PHP.
1590
1591 %description posix -l pl.UTF-8
1592 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1593
1594 %package pspell
1595 Summary:        pspell extension module for PHP
1596 Summary(pl.UTF-8):      Moduł pspell dla PHP
1597 Group:          Libraries
1598 URL:            http://www.php.net/manual/en/book.pspell.php
1599 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1600 Provides:       php(pspell)
1601 Obsoletes:      php-pspell < 4:5.3.28-7
1602
1603 %description pspell
1604 This is a dynamic shared object (DSO) for PHP that will add pspell
1605 support to PHP. It allows to check the spelling of a word and offer
1606 suggestions.
1607
1608 %description pspell -l pl.UTF-8
1609 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1610 sprawdzanie pisowni słowa i sugerowanie poprawek.
1611
1612 %package readline
1613 Summary:        readline extension module for PHP
1614 Summary(pl.UTF-8):      Moduł readline dla PHP
1615 Group:          Libraries
1616 URL:            http://www.php.net/manual/en/book.readline.php
1617 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1618 Provides:       php(readline)
1619 Obsoletes:      php-readline < 4:5.3.28-7
1620
1621 %description readline
1622 This PHP module adds support for readline functions (only for cli and
1623 cgi SAPIs).
1624
1625 %description readline -l pl.UTF-8
1626 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1627
1628 %package recode
1629 Summary:        recode extension module for PHP
1630 Summary(pl.UTF-8):      Moduł recode dla PHP
1631 Group:          Libraries
1632 URL:            http://www.php.net/manual/en/book.recode.php
1633 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1634 Requires:       recode >= 3.5d-3
1635 Provides:       php(recode)
1636 Obsoletes:      php-recode < 4:5.3.28-7
1637
1638 %description recode
1639 This is a dynamic shared object (DSO) for PHP that will add recode
1640 support.
1641
1642 %description recode -l pl.UTF-8
1643 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1644 bibliotekę recode).
1645
1646 %package session
1647 Summary:        session extension module for PHP
1648 Summary(pl.UTF-8):      Moduł session dla PHP
1649 Group:          Libraries
1650 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1651 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1652 Suggests:       %{name}-hash = %{epoch}:%{version}-%{release}
1653 Suggests:       tmpwatch
1654 Provides:       php(session)
1655 Obsoletes:      php-session < 4:5.3.28-7
1656
1657 %description session
1658 This is a dynamic shared object (DSO) for PHP that will add session
1659 support.
1660
1661 %description session -l pl.UTF-8
1662 Moduł PHP dodający obsługę sesji.
1663
1664 %package shmop
1665 Summary:        Shared Memory Operations extension module for PHP
1666 Summary(pl.UTF-8):      Moduł shmop dla PHP
1667 Group:          Libraries
1668 URL:            http://www.php.net/manual/en/book.shmop.php
1669 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1670 Provides:       php(shmop)
1671 Obsoletes:      php-shmop < 4:5.3.28-7
1672
1673 %description shmop
1674 This is a dynamic shared object (DSO) for PHP that will add Shared
1675 Memory Operations support.
1676
1677 %description shmop -l pl.UTF-8
1678 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1679
1680 %package simplexml
1681 Summary:        Simple XML extension module for PHP
1682 Summary(pl.UTF-8):      Moduł prostego rozszerzenia XML dla PHP
1683 Group:          Libraries
1684 URL:            http://www.php.net/manual/en/book.simplexml.php
1685 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1686 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1687 Provides:       php(simplexml)
1688 Obsoletes:      php-simplexml < 4:5.3.28-7
1689
1690 %description simplexml
1691 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1692 support.
1693
1694 %description simplexml -l pl.UTF-8
1695 Moduł PHP dodający obsługę prostego XML-a.
1696
1697 %package snmp
1698 Summary:        SNMP extension module for PHP
1699 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1700 Group:          Libraries
1701 URL:            http://www.php.net/manual/en/book.snmp.php
1702 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1703 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1704 Provides:       php(snmp)
1705 Obsoletes:      php-snmp < 4:5.3.28-7
1706
1707 %description snmp
1708 This is a dynamic shared object (DSO) for PHP that will add SNMP
1709 support.
1710
1711 %description snmp -l pl.UTF-8
1712 Moduł PHP dodający obsługę SNMP.
1713
1714 %package soap
1715 Summary:        soap extension module for PHP
1716 Summary(pl.UTF-8):      Moduł soap dla PHP
1717 Group:          Libraries
1718 URL:            http://www.php.net/manual/en/book.soap.php
1719 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1720 Provides:       php(soap)
1721 Obsoletes:      php-soap < 4:5.3.28-7
1722
1723 %description soap
1724 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1725 support.
1726
1727 %description soap -l pl.UTF-8
1728 Moduł PHP dodający obsługę SOAP/WSDL.
1729
1730 %package sockets
1731 Summary:        sockets extension module for PHP
1732 Summary(pl.UTF-8):      Moduł socket dla PHP
1733 Group:          Libraries
1734 URL:            http://www.php.net/manual/en/book.sockets.php
1735 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1736 Provides:       php(sockets)
1737 Obsoletes:      php-sockets < 4:5.3.28-7
1738
1739 %description sockets
1740 This is a dynamic shared object (DSO) for PHP that will add sockets
1741 support.
1742
1743 %description sockets -l pl.UTF-8
1744 Moduł PHP dodający obsługę gniazdek.
1745
1746 %package spl
1747 Summary:        Standard PHP Library module for PHP
1748 Summary(pl.UTF-8):      Moduł biblioteki standardowej (Standard PHP Library) dla PHP
1749 Group:          Libraries
1750 URL:            http://php.net/manual/en/book.spl.php
1751 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1752 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
1753 Requires:       %{name}-simplexml = %{epoch}:%{version}-%{release}
1754 Provides:       php(spl)
1755 Obsoletes:      php-spl < 4:5.3.28-7
1756
1757 %description spl
1758 This is a dynamic shared object (DSO) for PHP that will add Standard
1759 PHP Library support.
1760
1761 %description spl -l pl.UTF-8
1762 Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
1763
1764 %package sqlite
1765 Summary:        SQLite extension module for PHP
1766 Summary(pl.UTF-8):      Moduł SQLite dla PHP
1767 Group:          Libraries
1768 URL:            http://www.php.net/manual/en/book.sqlite.php
1769 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1770 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1771 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1772 Provides:       php(sqlite) = %{sqlitever}
1773 Obsoletes:      php-pecl-SQLite < %{sqlitever}
1774 Obsoletes:      php-sqlite < 4:5.3.28-7
1775
1776 %description sqlite
1777 SQLite is a C library that implements an embeddable SQL database
1778 engine. Programs that link with the SQLite library can have SQL
1779 database access without running a separate RDBMS process.
1780
1781 SQLite is not a client library used to connect to a big database
1782 server. SQLite is the server. The SQLite library reads and writes
1783 directly to and from the database files on disk.
1784
1785 %description sqlite -l pl.UTF-8
1786 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1787 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1788 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1789 RDBMS.
1790
1791 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1792 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1793 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1794 dysku.
1795
1796 %package sqlite3
1797 Summary:        SQLite3 extension module for PHP
1798 Summary(pl.UTF-8):      Moduł SQLite3 dla PHP
1799 Group:          Libraries
1800 URL:            http://php.net/manual/en/book.sqlite3.php
1801 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1802 Provides:       php(sqlite3) = %{sqlite3ver}
1803 Obsoletes:      php-sqlite3 < 4:5.3.28-7
1804
1805 %description sqlite3
1806 SQLite is a C library that implements an embeddable SQL database
1807 engine. Programs that link with the SQLite library can have SQL
1808 database access without running a separate RDBMS process.
1809
1810 SQLite is not a client library used to connect to a big database
1811 server. SQLite is the server. The SQLite library reads and writes
1812 directly to and from the database files on disk.
1813
1814 %description sqlite3 -l pl.UTF-8
1815 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1816 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1817 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1818 RDBMS.
1819
1820 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1821 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1822 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1823 dysku.
1824
1825 %package sybase-ct
1826 Summary:        Sybase-CT extension module for PHP
1827 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1828 Group:          Libraries
1829 URL:            http://www.php.net/manual/en/book.sybase.php
1830 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1831 Provides:       php(sybase-ct)
1832 Obsoletes:      php-sybase
1833 Obsoletes:      php-sybase-ct < 4:5.3.28-7
1834
1835 %description sybase-ct
1836 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1837 MS SQL databases support through CT-lib.
1838
1839 %description sybase-ct -l pl.UTF-8
1840 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1841 CT-lib.
1842
1843 %package sysvmsg
1844 Summary:        SysV msg extension module for PHP
1845 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1846 Group:          Libraries
1847 URL:            http://www.php.net/manual/en/book.sem.php
1848 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1849 Provides:       php(sysvmsg)
1850 Obsoletes:      php-sysvmsg < 4:5.3.28-7
1851
1852 %description sysvmsg
1853 This is a dynamic shared object (DSO) for PHP that will add SysV
1854 message queues support.
1855
1856 %description sysvmsg -l pl.UTF-8
1857 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1858
1859 %package sysvsem
1860 Summary:        SysV sem extension module for PHP
1861 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1862 Group:          Libraries
1863 URL:            http://www.php.net/manual/en/book.sem.php
1864 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1865 Provides:       php(sysvsem)
1866 Obsoletes:      php-sysvsem < 4:5.3.28-7
1867
1868 %description sysvsem
1869 This is a dynamic shared object (DSO) for PHP that will add SysV
1870 semaphores support.
1871
1872 %description sysvsem -l pl.UTF-8
1873 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1874
1875 %package sysvshm
1876 Summary:        SysV shm extension module for PHP
1877 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1878 Group:          Libraries
1879 URL:            http://www.php.net/manual/en/book.shmop.php
1880 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1881 Provides:       php(sysvshm)
1882 Obsoletes:      php-sysvshm < 4:5.3.28-7
1883
1884 %description sysvshm
1885 This is a dynamic shared object (DSO) for PHP that will add SysV
1886 Shared Memory support.
1887
1888 %description sysvshm -l pl.UTF-8
1889 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1890
1891 %package tests
1892 Summary:        Contains unit test files for PHP and extensions
1893 Summary(pl.UTF-8):      Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1894 Group:          Libraries
1895 URL:            http://qa.php.net/
1896 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1897
1898 %description tests
1899 This package contains unit tests for PHP and its extensions.
1900
1901 %description tests -l pl.UTF-8
1902 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1903
1904 %package tidy
1905 Summary:        Tidy extension module for PHP
1906 Summary(pl.UTF-8):      Moduł Tidy dla PHP
1907 Group:          Libraries
1908 URL:            http://www.php.net/manual/en/book.tidy.php
1909 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1910 Requires:       tidy
1911 Provides:       php(tidy)
1912 Obsoletes:      php-tidy < 4:5.3.28-7
1913
1914 %description tidy
1915 This is a dynamic shared object (DSO) for PHP that will add Tidy
1916 support.
1917
1918 %description tidy -l pl.UTF-8
1919 Moduł PHP umożliwiający korzystanie z tidy.
1920
1921 %package tokenizer
1922 Summary:        tokenizer extension module for PHP
1923 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1924 Group:          Libraries
1925 URL:            http://www.php.net/manual/en/book.tokenizer.php
1926 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1927 Provides:       php(tokenizer)
1928 Obsoletes:      php-tokenizer < 4:5.3.28-7
1929
1930 %description tokenizer
1931 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1932 support.
1933
1934 %description tokenizer -l pl.UTF-8
1935 Moduł PHP dodający obsługę tokenizera do PHP.
1936
1937 %package wddx
1938 Summary:        wddx extension module for PHP
1939 Summary(pl.UTF-8):      Moduł wddx dla PHP
1940 Group:          Libraries
1941 URL:            http://www.php.net/manual/en/book.wddx.php
1942 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1943 # - wddx doesn't require session as it's disabled at compile time:
1944 #   if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1945 #   see also php.spec#rev1.120.2.22
1946 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1947 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1948 Provides:       php(wddx)
1949 Obsoletes:      php-wddx < 4:5.3.28-7
1950
1951 %description wddx
1952 This is a dynamic shared object (DSO) for PHP that will add wddx
1953 support.
1954
1955 %description wddx -l pl.UTF-8
1956 Moduł PHP umożliwiający korzystanie z wddx.
1957
1958 %package xml
1959 Summary:        XML extension module for PHP
1960 Summary(pl.UTF-8):      Moduł XML dla PHP
1961 Group:          Libraries
1962 URL:            http://www.php.net/manual/en/book.xml.php
1963 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1964 Provides:       php(xml)
1965 Obsoletes:      php-xml < 4:5.3.28-7
1966
1967 %description xml
1968 This is a dynamic shared object (DSO) for PHP that will add XML
1969 support. This extension lets you create XML parsers and then define
1970 handlers for different XML events.
1971
1972 %description xml -l pl.UTF-8
1973 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1974 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1975 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1976
1977 %package xmlreader
1978 Summary:        XML Reader extension module for PHP
1979 Summary(pl.UTF-8):      Moduł XML Reader dla PHP
1980 Group:          Libraries
1981 URL:            http://www.php.net/manual/en/book.xmlreader.php
1982 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1983 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1984 Provides:       php(xmlreader)
1985 Obsoletes:      php-xmlreader < 4:5.3.28-7
1986
1987 %description xmlreader
1988 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1989 support. The XMLReader extension is an XML Pull parser. The reader
1990 acts as a cursor going forward on the document stream and stopping at
1991 each node on the way.
1992
1993 %description xmlreader -l pl.UTF-8
1994 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1995 działa jako kursor przechodzący przez strumień dokumentu i
1996 zatrzymujący się na każdym węźle po drodze.
1997
1998 %package xmlrpc
1999 Summary:        xmlrpc extension module for PHP
2000 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
2001 Group:          Libraries
2002 URL:            http://www.php.net/manual/en/book.xmlrpc.php
2003 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
2004 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
2005 Provides:       php(xmlrpc)
2006 Obsoletes:      php-xmlrpc < 4:5.3.28-7
2007
2008 %description xmlrpc
2009 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
2010 support.
2011
2012 %description xmlrpc -l pl.UTF-8
2013 Moduł PHP dodający obsługę XMLRPC.
2014
2015 %package xmlwriter
2016 Summary:        Fast, non-cached, forward-only means to write XML data
2017 Summary(pl.UTF-8):      Szybka, nie cachowana metoda zapisu danych w formacie XML
2018 Group:          Libraries
2019 URL:            http://www.php.net/manual/en/book.xmlwriter.php
2020 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
2021 Provides:       php(xmlwriter)
2022 Obsoletes:      php-pecl-xmlwriter < 2.1
2023 Obsoletes:      php-xmlwriter < 4:5.3.28-7
2024
2025 %description xmlwriter
2026 This extension wraps the libxml xmlWriter API. Represents a writer
2027 that provides a non-cached, forward-only means of generating streams
2028 or files containing XML data.
2029
2030 %description xmlwriter -l pl.UTF-8
2031 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
2032 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
2033 plików zawierających dane XML.
2034
2035 %package xsl
2036 Summary:        xsl extension module for PHP
2037 Summary(pl.UTF-8):      Moduł xsl dla PHP
2038 Group:          Libraries
2039 URL:            http://www.php.net/manual/en/book.xsl.php
2040 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
2041 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
2042 Requires:       libxslt >= 1.0.18
2043 # actually not true, functionality is similar, but API differs
2044 Provides:       php(xsl)
2045 Obsoletes:      php-xsl < 4:5.3.28-7
2046 Obsoletes:      php-xslt <= 3:4.3.8-1
2047
2048 %description xsl
2049 This is a dynamic shared object (DSO) for PHP that will add new XSL
2050 support (using libxslt).
2051
2052 %description xsl -l pl.UTF-8
2053 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
2054
2055 %package zip
2056 Summary:        Zip management extension
2057 Summary(pl.UTF-8):      Zarządzanie archiwami zip
2058 Group:          Libraries
2059 URL:            http://www.php.net/manual/en/book.zip.php
2060 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
2061 %{?with_system_libzip:Requires: libzip >= 0.10-3}
2062 Provides:       php(zip) = %{zipver}
2063 Obsoletes:      php-pecl-zip < %{zipver}
2064 Obsoletes:      php-zip < 4:5.3.28-7
2065
2066 %description zip
2067 Zip is an extension to create, modify and read zip files.
2068
2069 %description zip -l pl.UTF-8
2070 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
2071 odczyt archiwów zip.
2072
2073 %package zlib
2074 Summary:        Zlib extension module for PHP
2075 Summary(pl.UTF-8):      Moduł zlib dla PHP
2076 Group:          Libraries
2077 URL:            http://www.php.net/manual/en/book.zlib.php
2078 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
2079 Provides:       php(zlib)
2080 Obsoletes:      php-zlib < 4:5.3.28-7
2081
2082 %description zlib
2083 This is a dynamic shared object (DSO) for PHP that will add zlib
2084 compression support to PHP.
2085
2086 %description zlib -l pl.UTF-8
2087 Moduł PHP umożliwiający używanie kompresji zlib.
2088
2089 %prep
2090 %setup -q -n %{orgname}-%{version}
2091 %patch0 -p1
2092 %patch1 -p1
2093 %patch2 -p1
2094 %patch3 -p1
2095 %patch4 -p1
2096 %patch5 -p1
2097 %patch6 -p1
2098 %patch8 -p1
2099 %patch7 -p1
2100 %patch9 -p1
2101 cp -p php.ini-production php.ini
2102 %patch10 -p1
2103 %patch11 -p1
2104 %if %{with type_hints}
2105 %patch12 -p0
2106 %endif
2107 %patch13 -p1
2108 %patch14 -p1
2109 %patch15 -p1
2110 %patch16 -p1
2111 %patch17 -p1
2112 %patch18 -p1
2113 %if %{with system_gd}
2114 %patch19 -p1
2115 %endif
2116 %patch20 -p1
2117 %patch21 -p1
2118 %patch22 -p1
2119 %patch23 -p1
2120 %patch24 -p1
2121 %patch25 -p1
2122 %patch26 -p1
2123 %patch27 -p1
2124 %patch29 -p1
2125 %patch31 -p1
2126 %if "%{pld_release}" != "ac"
2127 %patch34 -p1
2128 %endif
2129 %patch35 -p1
2130 %patch36 -p1
2131 %patch37 -p1
2132 %patch38 -p1
2133 %patch39 -p1
2134 %if %{with fpm}
2135 %patch69 -p1
2136 %patch41 -p1
2137 %patch42 -p1
2138 %endif
2139 %patch43 -p1
2140 %patch44 -p1
2141 %patch45 -p1
2142 %patch46 -p1
2143 %if %{with suhosin}
2144 %patch47 -p1
2145 %patch72 -p1
2146 %endif
2147 %patch68 -p1
2148 %patch48 -p1
2149 %patch49 -p1
2150 %patch50 -p1
2151 %patch51 -p1
2152 %patch52 -p1
2153 %patch53 -p1
2154 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
2155 %patch59 -p1
2156 %patch60 -p1
2157 %patch62 -p1
2158 %patch63 -p1
2159 %patch64 -p1
2160 %{?with_system_libzip:%patch65 -p1}
2161 %patch66 -p1
2162 %{__rm} -r sapi/litespeed
2163 gzip -dc %{SOURCE15} | tar xf - -C sapi/
2164 %patch67 -p1
2165 %patch70 -p1
2166 %patch71 -p1
2167 %patch73 -p1
2168 %patch74 -p1
2169 %patch75 -p1
2170 %patch76 -p1
2171 %patch77 -p1
2172 %patch78 -p1
2173
2174 %patch220 -p1
2175 %patch221 -p1
2176
2177 %patch247 -p1
2178
2179 %patch249 -p1
2180 %patch250 -p1
2181 %patch251 -p1
2182 %patch252 -p1
2183 %patch253 -p1
2184 %patch254 -p1
2185
2186 %patch256 -p1
2187 %patch257 -p1
2188 %patch258 -p1
2189
2190 sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
2191       run-tests.php
2192
2193 %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
2194
2195 # cleanup backups after patching
2196 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
2197
2198 # conflict seems to be resolved by recode patches
2199 %{__rm} ext/recode/config9.m4
2200
2201 # remove all bundled libraries not to link with them accidentally
2202 #%{__rm} -r ext/sqlite/libsqlite
2203 %{__rm} -r ext/sqlite3/libsqlite
2204 #%{__rm} -r ext/bcmath/libbcmath
2205 #%{__rm} -r ext/date/lib
2206 #%{__rm} -r ext/fileinfo/libmagic
2207 #%{__rm} -r ext/dba/libcdb
2208 #%{__rm} -r ext/dba/libflatfile
2209 #%{__rm} -r ext/dba/libinifile
2210 #%{__rm} -r ext/gd/libgd
2211 #%{__rm} -r ext/mbstring/libmbfl
2212 #%{__rm} -r ext/mbstring/oniguruma
2213 %{__rm} -r ext/pcre/pcrelib
2214 #%{__rm} -r ext/soap/interop
2215 %{__rm} -r ext/xmlrpc/libxmlrpc
2216 #%{__rm} -r ext/zip/lib
2217
2218 cp -pf Zend/LICENSE{,.Zend}
2219 install -p %{SOURCE13} dep-tests.sh
2220
2221 # breaks build
2222 sed -i -e 's#-fvisibility=hidden##g' configure*
2223
2224 # disable broken tests
2225 # says just "Terminated" twice and fails
2226 %{__mv} sapi/cli/tests/022.phpt{,.broken}
2227
2228 # php-5.3.3/ext/standard/tests/file/statpage.phpt
2229 %{__rm} ext/standard/tests/file/statpage.phpt
2230
2231 # idiotic test, it will fail if somebody else makes space on disk or if disk
2232 # space is not yet allocated (xfs). report upstream to advice bogus test is
2233 # probably pointless.
2234 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2235
2236 sh -xe %{_sourcedir}/skip-tests.sh
2237
2238 %build
2239 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2240 if [ $API != %{php_api_version} ]; then
2241         echo "Set %%define php_api_version to $API and re-run."
2242         exit 1
2243 fi
2244
2245 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2246 if [ $API != %{zend_module_api} ]; then
2247         echo "Set %%define zend_module_api to $API and re-run."
2248         exit 1
2249 fi
2250
2251 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2252 if [ $API != %{zend_extension_api} ]; then
2253         echo "Set %%define zend_extension_api to $API and re-run."
2254         exit 1
2255 fi
2256
2257 # Check for some extension version
2258 ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2259 if test "$ver" != "%{fileinfover}"; then
2260         : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2261         : Update the fileinfover macro and rebuild.
2262         exit 1
2263 fi
2264 ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2265 if test "$ver" != "%{pharver}"; then
2266         : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2267         : Update the pharver macro and rebuild.
2268         exit 1
2269 fi
2270 ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2271 if test "$ver" != "%{sqlite3ver}"; then
2272         : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2273         : Update the sqlite3ver macro and rebuild.
2274         exit 1
2275 fi
2276 ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2277 if test "$ver" != "%{zipver}"; then
2278         : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2279         : Update the zipver macro and rebuild.
2280         exit 1
2281 fi
2282 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2283 if test "$ver" != "%{jsonver}"; then
2284         : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2285         : Update the jsonver macro and rebuild.
2286         exit 1
2287 fi
2288 ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2289 if test "$ver" != "%{bz2ver}"; then
2290         : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2291         : Update the bz2ver macro and rebuild.
2292         exit 1
2293 fi
2294 ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2295 if test "$ver" != "%{enchantver}"; then
2296         : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2297         : Update the enchantver macro and rebuild.
2298         exit 1
2299 fi
2300 ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2301 if test "$ver" != "%{hashver}"; then
2302         : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2303         : Update the hashver macro and rebuild.
2304         exit 1
2305 fi
2306 ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2307 if test "$ver" != "%{intlver}"; then
2308         : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2309         : Update the intlver macro and rebuild.
2310         exit 1
2311 fi
2312 ver=$(awk '/#define PHP_SQLITE_MODULE_VERSION/ {print $3}' ext/sqlite/sqlite.c | xargs)
2313 if test "$ver" != "%{sqlitever}"; then
2314         : Error: Upstream Sqlite version is now ${ver}, expecting %{sqlitever}.
2315         : Update the sqlitever macro and rebuild.
2316         exit 1
2317 fi
2318
2319 export EXTENSION_DIR="%{php_extensiondir}"
2320 # configure once (for faster debugging purposes)
2321 if [ ! -f _built-conf ]; then
2322         # now remove Makefile copies
2323         rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed}
2324         # force regeneration
2325         touch Zend/zend_language_parser.y
2326         %{__libtoolize}
2327         %{__aclocal}
2328         cp -f /usr/share/automake/config.* .
2329         ./buildconf --force
2330         touch _built-conf
2331 fi
2332 export PROG_SENDMAIL="/usr/lib/sendmail"
2333 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP -DOPENSSL_NO_SSL2=1 -DOPENSSL_NO_SSL3=1 %{rpmcppflags} -I%{_includedir}/xmlrpc-epi"
2334 %if %{with lfs}
2335 CPPFLAGS="$CPPFLAGS $(getconf LFS_CFLAGS)"
2336 %endif
2337
2338 sapis="
2339 cli
2340 %if %{with cgi}
2341 cgi-fcgi
2342 %endif
2343 %if %{with litespeed}
2344 litespeed
2345 %endif
2346 %if %{with fpm}
2347 fpm
2348 %endif
2349 %if %{with embed}
2350 embed
2351 %endif
2352 %if %{with apache1}
2353 apxs1
2354 %endif
2355 %if %{with apache2}
2356 apxs2
2357 %endif
2358 "
2359 for sapi in $sapis; do
2360         : SAPI $sapi
2361         # skip if already configured (for faster debugging purposes)
2362         [ -f Makefile.$sapi ] && continue
2363
2364         sapi_args=''
2365         case $sapi in
2366         cgi-fcgi)
2367                 sapi_args='--disable-cli'
2368         ;;
2369         cli)
2370                 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2371         ;;
2372         fpm)
2373                 sapi_args='--disable-cli --enable-fpm'
2374                 ;;
2375         embed)
2376                 sapi_args='--disable-cli --enable-embed'
2377                 ;;
2378         apxs1)
2379                 ver=$(rpm -q --qf '%{V}' apache1-devel)
2380                 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
2381         ;;
2382         apxs2)
2383                 ver=$(rpm -q --qf '%{V}' apache-devel)
2384                 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
2385         ;;
2386         litespeed)
2387                 sapi_args='--with-litespeed'
2388         ;;
2389         esac
2390
2391         %configure \
2392         EXTRA_LDFLAGS="%{rpmldflags}" \
2393         $sapi_args \
2394 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2395         --cache-file=config.cache \
2396 %endif
2397         --with-libdir=%{_lib} \
2398         --with-config-file-path=%{_sysconfdir} \
2399         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2400         --with-exec-dir=%{_bindir} \
2401         --with-system-tzdata \
2402         --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2403         %{?with_zts:--enable-maintainer-zts} \
2404         --enable-inline-optimization \
2405         --enable-bcmath=shared \
2406         --enable-calendar=shared \
2407         --enable-ctype=shared \
2408         --enable-dba=shared \
2409         --enable-dom=shared \
2410         --enable-exif=shared \
2411         --enable-fileinfo=shared \
2412         --enable-ftp=shared \
2413         --enable-gd-native-ttf \
2414         --enable-intl=shared \
2415         --enable-libxml \
2416         --enable-magic-quotes \
2417         --enable-mbstring=shared,all \
2418         --enable-mbregex \
2419         --enable-pcntl=shared \
2420         --enable-pdo=shared \
2421         --enable-json=shared \
2422         --enable-hash=shared \
2423         --enable-xmlwriter=shared \
2424 %if %{with fpm}
2425         --with-fpm-user=http \
2426         --with-fpm-group=http \
2427 %endif
2428 %if %{with mssql} || %{with sybase_ct}
2429         --with-pdo-dblib=shared \
2430 %endif
2431 %if %{with interbase} && %{without interbase_inst}
2432         --with-pdo-firebird=shared,/usr \
2433 %endif
2434         %{?with_mhash:--with-mhash=yes} \
2435         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2436         --with-pdo-mysql=shared%{?with_mysqlnd:,mysqlnd} \
2437         %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2438         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2439         %{?with_pgsql:--with-pdo-pgsql=shared} \
2440         %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2441         --without-libexpat-dir \
2442         --enable-posix=shared \
2443         --enable-shared \
2444         --enable-session=shared \
2445         --enable-shmop=shared \
2446         --enable-simplexml=shared \
2447         --enable-sysvmsg=shared \
2448         --enable-sysvsem=shared \
2449         --enable-sysvshm=shared \
2450         --enable-safe-mode \
2451         --enable-soap=shared \
2452         --enable-sockets=shared \
2453         --enable-tokenizer=shared \
2454         --enable-ucd-snmp-hack \
2455         %{?with_wddx:--enable-wddx=shared} \
2456         --enable-xml=shared \
2457         --enable-xmlreader=shared \
2458         --with-bz2=shared \
2459         %{__with_without curl curl shared} \
2460         --with-db4 \
2461         --with-iconv=shared \
2462         %{?with_enchant:--with-enchant=shared,/usr} \
2463         --with-freetype-dir=shared \
2464         --with-gettext=shared \
2465         --with-gd=shared%{?with_system_gd:,/usr} \
2466         --with-gdbm \
2467         --with-gmp=shared \
2468         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2469         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2470         --with-jpeg-dir=/usr \
2471         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2472         --with-mcrypt=shared \
2473         %{?with_mm:--with-mm} \
2474         %{?with_mssql:--with-mssql=shared} \
2475         %{?with_mysqlnd:--enable-mysqlnd=shared} \
2476         --with-mysql=shared%{?with_mysqlnd:,mysqlnd} \
2477         %{?with_mysqli:--with-mysqli=shared%{?with_mysqlnd:,mysqlnd}} \
2478         %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2479         %{?with_openssl:--with-openssl=shared} \
2480         %{?with_kerberos5:--with-kerberos} \
2481         %{__with_without pcre pcre-regex /usr} \
2482         %{__enable_disable filter filter shared} \
2483         --with-pear=%{php_pear_dir} \
2484         %{__with_without pgsql pgsql shared,/usr} \
2485         %{__enable_disable phar phar shared} \
2486         --with-png-dir=/usr \
2487         %{?with_pspell:--with-pspell=shared} \
2488         --with-readline=shared \
2489         %{?with_recode:--with-recode=shared} \
2490         --with-regex=system \
2491         %{?with_snmp:--with-snmp=shared} \
2492         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2493         %{!?with_sqlite2:--without-sqlite}%{?with_sqlite2:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2494         %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2495         %{__with_without sqlite3 sqlite3 shared,/usr} \
2496         --with-t1lib=shared \
2497         %{?with_tidy:--with-tidy=shared} \
2498         %{?with_odbc:--with-unixODBC=shared,/usr} \
2499         %{__with_without xmlrpc xmlrpc shared,/usr} \
2500         --with-xsl=shared \
2501         --with-zlib=shared \
2502         --with-zlib-dir=shared,/usr \
2503         %{?with_system_libzip:--with-libzip} \
2504         --enable-zip=shared,/usr \
2505
2506         # save for debug
2507         cp -f Makefile Makefile.$sapi
2508         cp -f main/php_config.h php_config.h.$sapi
2509         cp -f config.log config.log.$sapi
2510 done
2511
2512 # as we build each SAPI in own make, adjust php-config.in forehead
2513 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2514 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2515
2516 # must make libphp_common first, so modules can link against it.
2517 cp -af php_config.h.cli main/php_config.h
2518 cp -af Makefile.cli Makefile
2519 %{__make} libphp_common.la
2520 %{__make} build-modules
2521
2522 %if %{with apache1}
2523 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2524 %endif
2525
2526 %if %{with apache2}
2527 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2528 %endif
2529
2530 %if %{with litespeed}
2531 %{__make} -f Makefile.litespeed
2532 %endif
2533
2534 # CGI/FCGI
2535 %if %{with cgi}
2536 cp -pf php_config.h.cgi-fcgi main/php_config.h
2537 %{__make} -f Makefile.cgi-fcgi
2538 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2539 %endif
2540
2541 # PHP FPM
2542 %if %{with fpm}
2543 cp -pf php_config.h.fpm main/php_config.h
2544 %{__make} -f Makefile.fpm
2545 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2546 %endif
2547
2548 # CLI
2549 cp -pf php_config.h.cli main/php_config.h
2550 %{__make} -f Makefile.cli
2551 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2552
2553 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2554 ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x>&lt;</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2555
2556 # Generate stub .ini files for each extension
2557 rm -rf conf.d
2558 install -d conf.d
2559 generate_inifiles() {
2560         for so in modules/*.so; do
2561                 mod=$(basename $so .so)
2562                 conf="$mod.ini"
2563                 # xml needs to be loaded before wddx
2564                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2565                 # pre needs to be loaded before SPL
2566                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2567                 # spl needs to be loaded before mysqli
2568                 [ "$mod" = "spl" ] && conf="SPL.ini"
2569                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2570                 [ "$mod" = "session" ] && conf="Session.ini"
2571                 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2572                 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2573                 echo "+ $conf"
2574                 cat > conf.d/$conf <<-EOF
2575                         ; Enable $mod extension module
2576                         extension=$mod.so
2577                 EOF
2578         done
2579 }
2580 generate_inifiles
2581
2582 # Check that the module inner-dependencies are intact
2583 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2584 if grep -v OK dep-tests.log; then
2585         echo >&2 "The results above were not expected"
2586         exit 1
2587 fi
2588
2589 %if %{with gcov}
2590 # Use CLI SAPI
2591 cp -pf php_config.h.cli main/php_config.h
2592 cp -pf Makefile.cli Makefile
2593 %{__make} lcov
2594 # you really don't want to package result of gcov build
2595 exit 1
2596 %endif
2597
2598 cat <<'EOF' > run-tests.sh
2599 #!/bin/sh
2600 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2601 unset TZ LANG LC_ALL || :
2602 %{__make} test \
2603         EXTENSION_DIR=modules \
2604         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2605         RUN_TESTS_SETTINGS="-q $*"
2606 EOF
2607 chmod +x run-tests.sh
2608
2609 %if %{with tests}
2610 # Run tests, using the CLI SAPI
2611 cp -pf php_config.h.cli main/php_config.h
2612 cp -pf Makefile.cli Makefile
2613
2614 ./run-tests.sh -w failed.log -s test.log
2615
2616 # collect failed tests into cleanup script used in prep.
2617 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2618 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2619         >> %{_sourcedir}/skip-tests.sh
2620
2621 failed=$(wc -l < tests-failed.log)
2622 if [ "$failed" != 0 ]; then
2623         exit 1
2624 fi
2625 %endif
2626
2627 %install
2628 rm -rf $RPM_BUILD_ROOT
2629 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2630         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2631         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2632         $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2633
2634 cp -pf php_config.h.cli main/php_config.h
2635 cp -pf Makefile.cli Makefile
2636 %{__make} install \
2637         phpbuilddir=%{_libdir}/%{name}/build \
2638         INSTALL_ROOT=$RPM_BUILD_ROOT
2639
2640 %if %{without default_php}
2641 # version the .phar files
2642 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2643 %endif
2644 %if %{with alternatives}
2645 # touch for ghost
2646 %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2647 touch $RPM_BUILD_ROOT%{_bindir}/phar
2648 %else
2649 # make link relative
2650 ln -sfn phar%{php_suffix}.phar $RPM_BUILD_ROOT%{_bindir}/phar
2651 %endif
2652
2653 # version suffix
2654 v=$(echo %{version} | cut -d. -f1-2)
2655
2656 # install Apache1 DSO module
2657 %if %{with apache1}
2658 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2659 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2660 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so
2661 %endif
2662
2663 # install Apache2 DSO module
2664 %if %{with apache2}
2665 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2666 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2667 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2668 %endif
2669
2670 # install litespeed sapi
2671 %if %{with litespeed}
2672 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2673 %endif
2674
2675 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2676
2677 # install CGI/FCGI
2678 %if %{with cgi}
2679 # install-cgi
2680 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2681 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2682 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2683 %endif
2684
2685 # install FCGI PM
2686 %if %{with fpm}
2687 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir},%{_datadir}/fpm}
2688 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2689 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2690 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2691 cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
2692 cp -p sapi/fpm/status.html $RPM_BUILD_ROOT%{_datadir}/fpm
2693 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2694 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2695 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2696 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2697 %if "%{pld_release}" == "ac"
2698 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2699 %endif
2700
2701 %if %{with alternatives}
2702 # touch for ghost for alternatives
2703 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2704 %endif
2705
2706 %{__sed} -i -e '
2707         s#/usr/lib/php#%{php_extensiondir}#
2708         s#/etc/php#%{_sysconfdir}#
2709         s#@processname@#%{name}-fpm#g
2710 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf}
2711 %endif
2712
2713 # install Embedded API
2714 %if %{with embed}
2715 %{__make} -f Makefile.embed install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
2716 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2717 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2718 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2719 %endif
2720
2721 # install CLI
2722 # versioned suffix is always installed
2723 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2724 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2725 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2726 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2727
2728 # .cli extension is installed only if default php.spec in distro for legacy purposes
2729 %if "%{?php_suffix}" == "" && "%{pld_release}" != "ac"
2730 ln -s php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php.cli
2731 %endif
2732
2733 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2734 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2735
2736 %if %{with apache1}
2737 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2738 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2739 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2740 %endif
2741
2742 %if %{with apache2}
2743 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2744 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2745 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2746 %endif
2747
2748 # ensure that paths are correct for current php version and arch
2749 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2750 %{__sed} -i -e '
2751         s#/usr/lib/php#%{php_extensiondir}#
2752         s#/etc/php#%{_sysconfdir}#
2753 '
2754
2755 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2756 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2757
2758 # per SAPI ini directories
2759 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2760
2761 # for CLI SAPI only
2762 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2763
2764 # use system automake and {lib,sh}tool
2765 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2766 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2767 for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2768         f=%{_aclocaldir}/$fn
2769         test -f $f || continue
2770         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2771 done
2772 for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2773         f=/usr/share/libtool/$fn
2774         test -f $f || continue
2775         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2776         break
2777 done
2778 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2779
2780 # for php-pecl-mailparse
2781 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2782 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2783
2784 # tests
2785 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2786 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2787 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2788
2789 # fix install paths, avoid evil rpaths
2790 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2791 %if %{with embed}
2792 # libphp5.la contains our buildroot in dependency_libs
2793 sed -i -e "/dependency_libs/ s,/[^ ]*/libs/libphp_common.la,%{_libdir}/libphp_common.la," $RPM_BUILD_ROOT%{_libdir}/libphp5.la
2794 %endif
2795 # better solution?
2796 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2797
2798 %clean
2799 rm -rf $RPM_BUILD_ROOT
2800
2801 %post -n apache1-mod_%{name}
2802 if [ "$1" = "1" ]; then
2803         %service -q apache restart
2804 fi
2805
2806 %postun -n apache1-mod_%{name}
2807 if [ "$1" = "0" ]; then
2808         %service -q apache restart
2809 fi
2810
2811 %post -n apache-mod_%{name}
2812 if [ "$1" = "1" ]; then
2813         %service -q httpd restart
2814 fi
2815
2816 %postun -n apache-mod_%{name}
2817 if [ "$1" = "0" ]; then
2818         %service -q httpd restart
2819 fi
2820
2821 %pre fpm
2822 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2823
2824 %post fpm
2825 /sbin/chkconfig --add %{name}-fpm
2826 %service %{name}-fpm restart
2827 %if %{with alternatives}
2828 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
2829 %endif
2830
2831 %preun fpm
2832 if [ "$1" = "0" ]; then
2833         %service %{name}-fpm stop
2834         /sbin/chkconfig --del %{name}-fpm
2835 %if %{with alternatives}
2836         update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
2837 %endif
2838 fi
2839
2840 %postun fpm
2841 if [ "$1" = "0" ]; then
2842         %userremove http
2843 fi
2844
2845 %post   embedded -p /sbin/ldconfig
2846 %postun embedded -p /sbin/ldconfig
2847
2848 %posttrans common
2849 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2850 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2851         TIMEZONE=
2852         . /etc/sysconfig/timezone
2853         if [ "$TIMEZONE" ]; then
2854                 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2855         fi
2856 fi
2857
2858 # minimizing apache restarts logics. we restart webserver:
2859 #
2860 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2861 # 2. first install of extension (post: $1 = 1)
2862 # 2. uninstall of extension (postun: $1 == 0)
2863 #
2864 # the strict internal deps between extensions (and apache modules) and
2865 # common package are very important for all this to work.
2866
2867 # restart webserver at the end of transaction
2868 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2869 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2870
2871 %triggerpostun common -- php-common < 4:5.3.29-7, %{name}-common < 4:5.3.29-7
2872 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2873 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2874 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2875 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2876         test -f "$f" || continue
2877         bn=${f#/etc/php/}
2878         dn=${bn%/*}
2879         fn=${bn#*/}
2880         test "$dn" = "$fn" && dn=
2881         fn=${fn%.rpmsave}
2882         nf=%{_sysconfdir}/$dn/$fn
2883         test -f "$nf" || continue
2884         cp -vfb $nf{,.rpmnew}
2885         cp -vfb $f $nf
2886         %{__sed} -i -e '
2887                 s#%{_libdir}/php#%{_libdir}/%{name}#
2888                 s#/etc/php#%{_sysconfdir}#
2889         ' $nf
2890 done
2891 # switch to browscap package if the ini file has original value
2892 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2893 # disable browscap, if optional package not present
2894 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2895         %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2896 fi
2897
2898 %triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 4:5.3.29-23
2899 sed -i -e 's#modules/libphp5.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php.conf
2900
2901 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:5.3.29-23
2902 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2903
2904 # common macros called at extension post/postun scriptlet
2905 %define ext_post \
2906 if [ "$1" = "1" ]; then \
2907         %php_webserver_restart \
2908 fi \
2909 %{nil}
2910
2911 %define ext_postun \
2912 if [ "$1" = "0" ]; then \
2913         %php_webserver_restart \
2914 fi \
2915 %{nil}
2916
2917 %define extension_scripts() \
2918 %post %1 \
2919 %ext_post \
2920 \
2921 %postun %1 \
2922 %ext_postun \
2923 %{nil}
2924
2925 # extension scripts defines
2926 %extension_scripts bcmath
2927 %extension_scripts bz2
2928 %extension_scripts calendar
2929 %extension_scripts ctype
2930 %extension_scripts curl
2931 %extension_scripts dba
2932 %extension_scripts dom
2933 %extension_scripts enchant
2934 %extension_scripts exif
2935 %extension_scripts fileinfo
2936 %extension_scripts filter
2937 %extension_scripts ftp
2938 %extension_scripts gd
2939 %extension_scripts gettext
2940 %extension_scripts gmp
2941 %extension_scripts hash
2942 %extension_scripts iconv
2943 %extension_scripts imap
2944 %extension_scripts interbase
2945 %extension_scripts intl
2946 %extension_scripts json
2947 %extension_scripts ldap
2948 %extension_scripts mbstring
2949 %extension_scripts mcrypt
2950 %extension_scripts mssql
2951 %extension_scripts mysql
2952 %extension_scripts mysqli
2953 %extension_scripts mysqlnd
2954 %extension_scripts oci8
2955 %extension_scripts odbc
2956 %extension_scripts openssl
2957 %extension_scripts pcre
2958 %extension_scripts pdo
2959 %extension_scripts pdo-dblib
2960 %extension_scripts pdo-firebird
2961 %extension_scripts pdo-oci
2962 %extension_scripts pdo-mysql
2963 %extension_scripts pdo-odbc
2964 %extension_scripts pdo-pgsql
2965 %extension_scripts pdo-sqlite
2966 %extension_scripts pgsql
2967 %extension_scripts pcntl
2968 %extension_scripts posix
2969 %extension_scripts pspell
2970 %extension_scripts recode
2971 %extension_scripts session
2972 %extension_scripts shmop
2973 %extension_scripts simplexml
2974 %extension_scripts snmp
2975 %extension_scripts soap
2976 %extension_scripts sockets
2977 %extension_scripts spl
2978 %extension_scripts sqlite
2979 %extension_scripts sqlite3
2980 %extension_scripts sybase-ct
2981 %extension_scripts sysvmsg
2982 %extension_scripts sysvsem
2983 %extension_scripts sysvshm
2984 %extension_scripts tidy
2985 %extension_scripts tokenizer
2986 %extension_scripts wddx
2987 %extension_scripts xml
2988 %extension_scripts xmlreader
2989 %extension_scripts xmlrpc
2990 %extension_scripts xmlwriter
2991 %extension_scripts xsl
2992 %extension_scripts zip
2993 %extension_scripts zlib
2994
2995 %post phar
2996 %ext_post
2997 %if %{with alternatives}
2998 update-alternatives --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} || :
2999 %endif
3000
3001 %postun phar
3002 %ext_postun
3003 %if %{with alternatives}
3004 if [ $1 -eq 0 ]; then
3005         update-alternatives --remove phar %{_bindir}/phar || :
3006 fi
3007 %endif
3008
3009 %if %{with apache1}
3010 %files -n apache1-mod_%{name}
3011 %defattr(644,root,root,755)
3012 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
3013 %dir %{_sysconfdir}/apache.d
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
3015 %attr(755,root,root) %{_libdir}/apache1/mod_php.so
3016 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
3017 %endif
3018
3019 %if %{with apache2}
3020 %files -n apache-mod_%{name}
3021 %defattr(644,root,root,755)
3022 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
3023 %attr(755,root,root) %{_libdir}/apache/mod_php.so
3024
3025 %files -n apache-mod_%{name}-core
3026 %defattr(644,root,root,755)
3027 %dir %{_sysconfdir}/apache2handler.d
3028 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
3029 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
3030 %endif
3031
3032 %if %{with litespeed}
3033 %files litespeed
3034 %defattr(644,root,root,755)
3035 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
3036 %endif
3037
3038 %if %{with cgi}
3039 %files cgi
3040 %defattr(644,root,root,755)
3041 %dir %{_sysconfdir}/cgi-fcgi.d
3042 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
3043 %attr(755,root,root) %{_bindir}/%{name}.cgi
3044 %attr(755,root,root) %{_bindir}/%{name}.fcgi
3045 %endif
3046
3047 %if %{with embed}
3048 %files embedded
3049 %defattr(644,root,root,755)
3050 %attr(755,root,root) %{_libdir}/libphp5-%{version}.so
3051 %endif
3052
3053 %files cli
3054 %defattr(644,root,root,755)
3055 %dir %{_sysconfdir}/cli.d
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
3057 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
3058 %{_mandir}/man1/php%{ver_suffix}.1*
3059
3060 # legacy. do we really need it?
3061 %if "%{?php_suffix}" == "" && "%{pld_release}" != "ac"
3062 %attr(755,root,root) %{_bindir}/php.cli
3063 %endif
3064
3065 %files program
3066 %defattr(644,root,root,755)
3067 %attr(755,root,root) %{_bindir}/php
3068 %{_mandir}/man1/php.1*
3069
3070 %if %{with fpm}
3071 %files fpm
3072 %defattr(644,root,root,755)
3073 %doc sapi/fpm/{CREDITS,LICENSE}
3074 %dir %{_sysconfdir}/fpm.d
3075 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
3076 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
3077 %attr(755,root,root) %{_sbindir}/%{name}-fpm
3078 %if %{with alternatives}
3079 %ghost %{_sbindir}/php-fpm
3080 %endif
3081 %{_mandir}/man8/%{name}-fpm.8*
3082 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
3083 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
3084 %dir %{_datadir}/fpm
3085 %{_datadir}/fpm/status.html
3086 %endif
3087
3088 %files common
3089 %defattr(644,root,root,755)
3090 %doc CREDITS EXTENSIONS LICENSE NEWS README.{PHP4-TO-PHP5-THIN-CHANGES,namespaces} TODO* UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-*
3091 %dir %{_sysconfdir}
3092 %dir %{_sysconfdir}/conf.d
3093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
3094 %attr(755,root,root) %{_libdir}/libphp_common-*.so
3095 %dir %{php_extensiondir}
3096
3097 %doc ext/session/mod_files.sh
3098
3099 %files devel
3100 %defattr(644,root,root,755)
3101 %doc CODING_STANDARDS README.{EXTENSIONS,EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
3102 %attr(755,root,root) %{_bindir}/phpize
3103 %attr(755,root,root) %{_bindir}/php-config
3104 %attr(755,root,root) %{_libdir}/libphp_common.so
3105 %{_libdir}/libphp_common.la
3106 %{_includedir}/php
3107 %{_libdir}/%{name}/build
3108 %{_mandir}/man1/php-config.1*
3109 %{_mandir}/man1/phpize.1*
3110 %if %{with embed}
3111 # embedded
3112 %{_libdir}/libphp5.so
3113 %{_libdir}/libphp5.la
3114 %endif
3115
3116 %files bcmath
3117 %defattr(644,root,root,755)
3118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
3119 %attr(755,root,root) %{php_extensiondir}/bcmath.so
3120
3121 %files bz2
3122 %defattr(644,root,root,755)
3123 %doc ext/bz2/CREDITS
3124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
3125 %attr(755,root,root) %{php_extensiondir}/bz2.so
3126
3127 %files calendar
3128 %defattr(644,root,root,755)
3129 %doc ext/calendar/CREDITS
3130 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
3131 %attr(755,root,root) %{php_extensiondir}/calendar.so
3132
3133 %files ctype
3134 %defattr(644,root,root,755)
3135 %doc ext/calendar/CREDITS
3136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
3137 %attr(755,root,root) %{php_extensiondir}/ctype.so
3138
3139 %if %{with curl}
3140 %files curl
3141 %defattr(644,root,root,755)
3142 %doc ext/curl/CREDITS
3143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
3144 %attr(755,root,root) %{php_extensiondir}/curl.so
3145 %endif
3146
3147 %files dba
3148 %defattr(644,root,root,755)
3149 %doc ext/dba/{CREDITS,README}
3150 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
3151 %attr(755,root,root) %{php_extensiondir}/dba.so
3152
3153 %files dom
3154 %defattr(644,root,root,755)
3155 %doc ext/dom/{CREDITS,TODO}
3156 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
3157 %attr(755,root,root) %{php_extensiondir}/dom.so
3158
3159 %if %{with enchant}
3160 %files enchant
3161 %defattr(644,root,root,755)
3162 %doc ext/enchant/{CREDITS,docs/examples}
3163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
3164 %attr(755,root,root) %{php_extensiondir}/enchant.so
3165 %endif
3166
3167 %files exif
3168 %defattr(644,root,root,755)
3169 %doc ext/exif/CREDITS
3170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
3171 %attr(755,root,root) %{php_extensiondir}/exif.so
3172
3173 %files fileinfo
3174 %defattr(644,root,root,755)
3175 %doc ext/fileinfo/CREDITS
3176 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3177 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
3178
3179 %if %{with filter}
3180 %files filter
3181 %defattr(644,root,root,755)
3182 %doc ext/filter/{CREDITS,docs/*}
3183 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3184 %attr(755,root,root) %{php_extensiondir}/filter.so
3185 %endif
3186
3187 %files ftp
3188 %defattr(644,root,root,755)
3189 %doc ext/ftp/CREDITS
3190 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3191 %attr(755,root,root) %{php_extensiondir}/ftp.so
3192
3193 %files gd
3194 %defattr(644,root,root,755)
3195 %doc ext/gd/CREDITS
3196 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3197 %attr(755,root,root) %{php_extensiondir}/gd.so
3198
3199 %files gettext
3200 %defattr(644,root,root,755)
3201 %doc ext/gettext/CREDITS
3202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3203 %attr(755,root,root) %{php_extensiondir}/gettext.so
3204
3205 %files gmp
3206 %defattr(644,root,root,755)
3207 %doc ext/gmp/{CREDITS,README,TODO}
3208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3209 %attr(755,root,root) %{php_extensiondir}/gmp.so
3210
3211 %files hash
3212 %defattr(644,root,root,755)
3213 %doc ext/hash/{CREDITS,README}
3214 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
3215 %attr(755,root,root) %{php_extensiondir}/hash.so
3216
3217 %files iconv
3218 %defattr(644,root,root,755)
3219 %doc ext/iconv/CREDITS
3220 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3221 %attr(755,root,root) %{php_extensiondir}/iconv.so
3222
3223 %if %{with imap}
3224 %files imap
3225 %defattr(644,root,root,755)
3226 %doc ext/imap/CREDITS
3227 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3228 %attr(755,root,root) %{php_extensiondir}/imap.so
3229 %endif
3230
3231 %if %{with interbase}
3232 %files interbase
3233 %defattr(644,root,root,755)
3234 %doc ext/interbase/CREDITS
3235 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3236 %attr(755,root,root) %{php_extensiondir}/interbase.so
3237 %endif
3238
3239 %files intl
3240 %defattr(644,root,root,755)
3241 %doc ext/intl/{CREDITS,TODO}
3242 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3243 %attr(755,root,root) %{php_extensiondir}/intl.so
3244
3245 %files json
3246 %defattr(644,root,root,755)
3247 %doc ext/json/CREDITS
3248 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3249 %attr(755,root,root) %{php_extensiondir}/json.so
3250
3251 %if %{with ldap}
3252 %files ldap
3253 %defattr(644,root,root,755)
3254 %doc ext/ldap/CREDITS
3255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3256 %attr(755,root,root) %{php_extensiondir}/ldap.so
3257 %endif
3258
3259 %files mbstring
3260 %defattr(644,root,root,755)
3261 %doc ext/mbstring/{CREDITS,README*}
3262 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3263 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3264
3265 %files mcrypt
3266 %defattr(644,root,root,755)
3267 %doc ext/mcrypt/{CREDITS,TODO}
3268 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3269 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
3270
3271 %if %{with mssql}
3272 %files mssql
3273 %defattr(644,root,root,755)
3274 %doc ext/mssql/CREDITS
3275 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3276 %attr(755,root,root) %{php_extensiondir}/mssql.so
3277 %endif
3278
3279 %files mysql
3280 %defattr(644,root,root,755)
3281 %doc ext/mysql/CREDITS
3282 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3283 %attr(755,root,root) %{php_extensiondir}/mysql.so
3284
3285 %if %{with mysqli}
3286 %files mysqli
3287 %defattr(644,root,root,755)
3288 %doc ext/mysqli/{CREDITS,TODO}
3289 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3290 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3291 %endif
3292
3293 %if %{with mysqlnd}
3294 %files mysqlnd
3295 %defattr(644,root,root,755)
3296 %doc ext/mysqlnd/CREDITS
3297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3298 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3299 %endif
3300
3301 %if %{with oci}
3302 %files oci8
3303 %defattr(644,root,root,755)
3304 %doc ext/oci8/{CREDITS,README}
3305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3306 %attr(755,root,root) %{php_extensiondir}/oci8.so
3307 %endif
3308
3309 %if %{with odbc}
3310 %files odbc
3311 %defattr(644,root,root,755)
3312 %doc ext/odbc/CREDITS
3313 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3314 %attr(755,root,root) %{php_extensiondir}/odbc.so
3315 %endif
3316
3317 %if %{with openssl}
3318 %files openssl
3319 %defattr(644,root,root,755)
3320 %doc ext/openssl/{CREDITS,README}
3321 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3322 %attr(755,root,root) %{php_extensiondir}/openssl.so
3323 %endif
3324
3325 %files pcntl
3326 %defattr(644,root,root,755)
3327 %doc ext/pcntl/{CREDITS,README}
3328 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3329 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3330
3331 %if %{with pcre}
3332 %files pcre
3333 %defattr(644,root,root,755)
3334 %doc ext/pcre/CREDITS
3335 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3336 %attr(755,root,root) %{php_extensiondir}/pcre.so
3337 %endif
3338
3339 %files pdo
3340 %defattr(644,root,root,755)
3341 %doc ext/pdo/{CREDITS,README,TODO}
3342 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3343 %attr(755,root,root) %{php_extensiondir}/pdo.so
3344
3345 %if %{with mssql} || %{with sybase_ct}
3346 %files pdo-dblib
3347 %defattr(644,root,root,755)
3348 %doc ext/pdo_dblib/{CREDITS,README}
3349 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3350 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3351 %endif
3352
3353 %if %{with interbase} && !%{with interbase_inst}
3354 %files pdo-firebird
3355 %defattr(644,root,root,755)
3356 %doc ext/pdo_firebird/CREDITS
3357 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3358 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3359 %endif
3360
3361 %files pdo-mysql
3362 %defattr(644,root,root,755)
3363 %doc ext/pdo_mysql/CREDITS
3364 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3365 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3366
3367 %if %{with oci}
3368 %files pdo-oci
3369 %defattr(644,root,root,755)
3370 %doc ext/pdo_oci/CREDITS
3371 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3372 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3373 %endif
3374
3375 %if %{with odbc}
3376 %files pdo-odbc
3377 %defattr(644,root,root,755)
3378 %doc ext/pdo_odbc/CREDITS
3379 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3380 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3381 %endif
3382
3383 %if %{with pgsql}
3384 %files pdo-pgsql
3385 %defattr(644,root,root,755)
3386 %doc ext/pdo_pgsql/CREDITS
3387 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3388 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3389 %endif
3390
3391 %if %{with pdo_sqlite}
3392 %files pdo-sqlite
3393 %defattr(644,root,root,755)
3394 %doc ext/pdo_sqlite/CREDITS
3395 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3396 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3397 %endif
3398
3399 %if %{with pgsql}
3400 %files pgsql
3401 %defattr(644,root,root,755)
3402 %doc ext/pgsql/{CREDITS,README}
3403 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3404 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3405 %endif
3406
3407 %if %{with phar}
3408 %files phar
3409 %defattr(644,root,root,755)
3410 %doc ext/phar/{CREDITS,TODO}
3411 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3412 %attr(755,root,root) %{php_extensiondir}/phar.so
3413 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3414 %if %{with alternatives}
3415 %ghost %{_bindir}/phar
3416 %else
3417 %attr(755,root,root) %{_bindir}/phar
3418 %endif
3419 %endif
3420
3421 %files posix
3422 %defattr(644,root,root,755)
3423 %doc ext/posix/CREDITS
3424 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3425 %attr(755,root,root) %{php_extensiondir}/posix.so
3426
3427 %if %{with pspell}
3428 %files pspell
3429 %defattr(644,root,root,755)
3430 %doc ext/pspell/{CREDITS,README}
3431 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3432 %attr(755,root,root) %{php_extensiondir}/pspell.so
3433 %endif
3434
3435 %files readline
3436 %defattr(644,root,root,755)
3437 %doc ext/readline/{CREDITS,README*}
3438 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3439 %attr(755,root,root) %{php_extensiondir}/readline.so
3440
3441 %if %{with recode}
3442 %files recode
3443 %defattr(644,root,root,755)
3444 %doc ext/recode/CREDITS
3445 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3446 %attr(755,root,root) %{php_extensiondir}/recode.so
3447 %endif
3448
3449 %files session
3450 %defattr(644,root,root,755)
3451 %doc ext/session/CREDITS
3452 %doc ext/session/mod_files.sh
3453 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3454 %attr(755,root,root) %{php_extensiondir}/session.so
3455
3456 %files shmop
3457 %defattr(644,root,root,755)
3458 %doc ext/shmop/{CREDITS,README}
3459 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3460 %attr(755,root,root) %{php_extensiondir}/shmop.so
3461
3462 %files simplexml
3463 %defattr(644,root,root,755)
3464 %doc ext/simplexml/{CREDITS,README}
3465 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3466 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3467
3468 %if %{with snmp}
3469 %files snmp
3470 %defattr(644,root,root,755)
3471 %doc ext/snmp/CREDITS
3472 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3473 %attr(755,root,root) %{php_extensiondir}/snmp.so
3474 %endif
3475
3476 %files soap
3477 %defattr(644,root,root,755)
3478 %doc ext/soap/{CREDITS,TODO*}
3479 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3480 %attr(755,root,root) %{php_extensiondir}/soap.so
3481
3482 %files sockets
3483 %defattr(644,root,root,755)
3484 %doc ext/sockets/CREDITS
3485 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3486 %attr(755,root,root) %{php_extensiondir}/sockets.so
3487
3488 %files spl
3489 %defattr(644,root,root,755)
3490 %doc ext/spl/{CREDITS,README,TODO,examples}
3491 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3492 %attr(755,root,root) %{php_extensiondir}/spl.so
3493
3494 %if %{with sqlite2}
3495 %files sqlite
3496 %defattr(644,root,root,755)
3497 %doc ext/sqlite/{README,TODO,CREDITS}
3498 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
3499 %attr(755,root,root) %{php_extensiondir}/sqlite.so
3500 %endif
3501
3502 %if %{with sqlite3}
3503 %files sqlite3
3504 %defattr(644,root,root,755)
3505 %doc ext/sqlite3/CREDITS
3506 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3507 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3508 %endif
3509
3510 %if %{with sybase_ct}
3511 %files sybase-ct
3512 %defattr(644,root,root,755)
3513 %doc ext/sybase_ct/CREDITS
3514 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3515 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3516 %endif
3517
3518 %files sysvmsg
3519 %defattr(644,root,root,755)
3520 %doc ext/sysvmsg/CREDITS
3521 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3522 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3523
3524 %files sysvsem
3525 %defattr(644,root,root,755)
3526 %doc ext/sysvsem/CREDITS
3527 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3528 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3529
3530 %files sysvshm
3531 %defattr(644,root,root,755)
3532 %doc ext/sysvshm/CREDITS
3533 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3534 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3535
3536 %files tests
3537 %defattr(644,root,root,755)
3538 %dir %{php_data_dir}/tests/php
3539 %{php_data_dir}/tests/php/basic
3540 %{php_data_dir}/tests/php/classes
3541 %{php_data_dir}/tests/php/func
3542 %{php_data_dir}/tests/php/lang
3543 %{php_data_dir}/tests/php/output
3544 %{php_data_dir}/tests/php/run-test
3545 %{php_data_dir}/tests/php/security
3546 %{php_data_dir}/tests/php/strings
3547 %{php_data_dir}/tests/php/quicktester.inc
3548 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3549
3550 %if %{with tidy}
3551 %files tidy
3552 %defattr(644,root,root,755)
3553 %doc ext/tidy/{CREDITS,README}
3554 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3555 %attr(755,root,root) %{php_extensiondir}/tidy.so
3556 %endif
3557
3558 %files tokenizer
3559 %defattr(644,root,root,755)
3560 %doc ext/tokenizer/CREDITS
3561 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3562 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3563
3564 %if %{with wddx}
3565 %files wddx
3566 %defattr(644,root,root,755)
3567 %doc ext/wddx/CREDITS
3568 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3569 %attr(755,root,root) %{php_extensiondir}/wddx.so
3570 %endif
3571
3572 %files xml
3573 %defattr(644,root,root,755)
3574 %doc ext/xml/CREDITS
3575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3576 %attr(755,root,root) %{php_extensiondir}/xml.so
3577
3578 %files xmlreader
3579 %defattr(644,root,root,755)
3580 %doc ext/xmlreader/{CREDITS,README,TODO,examples}
3581 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3582 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3583
3584 %if %{with xmlrpc}
3585 %files xmlrpc
3586 %defattr(644,root,root,755)
3587 %doc ext/xmlrpc/CREDITS
3588 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3589 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3590 %endif
3591
3592 %files xmlwriter
3593 %defattr(644,root,root,755)
3594 %doc ext/xmlwriter/{CREDITS,TODO}
3595 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3596 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3597
3598 %files xsl
3599 %defattr(644,root,root,755)
3600 %doc ext/xsl/CREDITS
3601 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3602 %attr(755,root,root) %{php_extensiondir}/xsl.so
3603
3604 %files zip
3605 %defattr(644,root,root,755)
3606 %doc ext/zip/{CREDITS,TODO}
3607 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3608 %attr(755,root,root) %{php_extensiondir}/zip.so
3609
3610 %files zlib
3611 %defattr(644,root,root,755)
3612 %doc ext/zlib/CREDITS
3613 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3614 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.368864 seconds and 2 git commands to generate.