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