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