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