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