]> git.pld-linux.org Git - packages/php.git/blob - php.spec
unstream unbundled libsqlite3
[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/bcmath/libbcmath
2052 #%{__rm} -r ext/date/lib
2053 #%{__rm} -r ext/fileinfo/libmagic
2054 #%{__rm} -r ext/dba/libcdb
2055 #%{__rm} -r ext/dba/libflatfile
2056 #%{__rm} -r ext/dba/libinifile
2057 #%{__rm} -r ext/gd/libgd
2058 #%{__rm} -r ext/mbstring/libmbfl
2059 %{__rm} -r ext/mbstring/oniguruma
2060 %{__rm} -r ext/pcre/pcre2lib
2061 #%{__rm} -r ext/soap/interop
2062 %{__rm} -r ext/xmlrpc/libxmlrpc
2063 #%{__rm} -r ext/zip/lib
2064 %{__rm} ext/date/lib/timezonedb.h
2065
2066 cp -pf Zend/LICENSE{,.Zend}
2067 install -p %{SOURCE13} dep-tests.sh
2068
2069 # breaks build
2070 sed -i -e 's#-fvisibility=hidden##g' configure*
2071
2072 # disable broken tests
2073 # says just "Terminated" twice and fails
2074 %{__mv} sapi/cli/tests/022.phpt{,.broken}
2075
2076 # really dumb test, executable binary name is .libs/ something when building
2077 # https://bugs.php.net/bug.php?id=54514
2078 %{__mv} tests/basic/bug54514.phpt{,.disable}
2079
2080 # breaks whole testsuite unexpectedly:
2081 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2082 # probably broken as zlib is built as shared
2083 %{__mv} ext/soap/tests/server019.phpt{,disable}
2084 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
2085 %{__mv} ext/soap/tests/server020.phpt{,disable}
2086
2087 # runs out of memory and kills carme vserver
2088 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
2089 %{__mv} Zend/tests/bug39438.phpt{,.disable}
2090
2091 # php-5.3.3/ext/standard/tests/file/statpage.phpt
2092 %{__rm} ext/standard/tests/file/statpage.phpt
2093
2094 # idiotic test, it will fail if somebody else makes space on disk or if disk
2095 # space is not yet allocated (xfs). report upstream to advice bogus test is
2096 # probably pointless.
2097 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2098
2099 %ifarch %{x8664}
2100 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
2101 %{__rm} -r ext/pdo_sqlite/tests
2102 %{__rm} -r ext/sqlite3/tests
2103 %endif
2104
2105 # ----- Manage known as failed test -------
2106 # affected by systzdata patch
2107 %{__rm} ext/date/tests/timezone_location_get.phpt
2108 %{__rm} ext/date/tests/timezone_version_get.phpt
2109 %{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2110 # Should be skipped but fails sometime
2111 %{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2112 # fails sometimes
2113 %{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2114 # causes stack exhausion
2115 %{__rm} Zend/tests/bug54268.phpt
2116 %{__rm} Zend/tests/bug68412.phpt
2117
2118 # avoid issues when two builds run simultaneously
2119 %ifarch %{x8664}
2120 sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2121 %endif
2122
2123 # skip XFAILs
2124 # no point testing stuff that is knowingly broken
2125 find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
2126
2127 env \
2128 %ifarch %{ix86}
2129 ix86= x8664=: \
2130 %endif
2131 %ifarch %{x8664}
2132 ix86=: x8664= \
2133 %endif
2134 %ifarch x32
2135 ix86=: x8664=: \
2136 %endif
2137         sh -xe %{_sourcedir}/skip-tests.sh
2138
2139 %build
2140 get_version() {
2141         local define="$1" filename="$2"
2142         awk -vdefine="$define" '/#define/ && $2 == define {print $3}' "$filename" | xargs
2143 }
2144
2145 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2146 if [ $API != %{php_api_version} ]; then
2147         echo "Set %%define php_api_version to $API and re-run."
2148         exit 1
2149 fi
2150
2151 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2152 if [ $API != %{zend_module_api} ]; then
2153         echo "Set %%define zend_module_api to $API and re-run."
2154         exit 1
2155 fi
2156
2157 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2158 if [ $API != %{zend_extension_api} ]; then
2159         echo "Set %%define zend_extension_api to $API and re-run."
2160         exit 1
2161 fi
2162
2163 API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2164 if [ $API != %{php_pdo_api_version} ]; then
2165         echo "Set %%define php_pdo_api_version to $API and re-run."
2166         exit 1
2167 fi
2168
2169 # Check for some extension version
2170 ver=$(awk '/#define PHP_FILEINFO_VERSION/ {print $3}' ext/fileinfo/php_fileinfo.h | xargs)
2171 if test "$ver" != "PHP_VERSION"; then
2172         : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2173         : Update the fileinfover macro and rebuild.
2174         exit 1
2175 fi
2176 ver=$(get_version PHP_PHAR_VERSION ext/phar/php_phar.h)
2177 if test "$ver" != "PHP_VERSION"; then
2178         : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2179         : Update the pharver macro and rebuild.
2180         exit 1
2181 fi
2182 ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h | xargs)
2183 if test "$ver" != "PHP_VERSION"; then
2184         : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2185         : Update the sqlite3ver macro and rebuild.
2186         exit 1
2187 fi
2188 ver=$(awk '/#define PHP_SODIUM_VERSION/ {print $3}' ext/sodium/php_libsodium.h | xargs)
2189 if test "$ver" != "PHP_VERSION"; then
2190         exit 1
2191 fi
2192 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2193 if test "$ver" != "%{zipver}"; then
2194         : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2195         : Update the zipver macro and rebuild.
2196         exit 1
2197 fi
2198 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2199 if test "$ver" != "%{jsonver}"; then
2200         : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2201         : Update the jsonver macro and rebuild.
2202         exit 1
2203 fi
2204 ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
2205 if test "$ver" != "PHP_VERSION"; then
2206         : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2207         : Update the phpdbgver macro and rebuild.
2208         exit 1
2209 fi
2210 ver=$(get_version PHP_BZ2_VERSION ext/bz2/php_bz2.h)
2211 if test "$ver" != "PHP_VERSION"; then
2212         : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2213         : Update the bz2ver macro and rebuild.
2214         exit 1
2215 fi
2216 ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
2217 if test "$ver" != "PHP_VERSION"; then
2218         exit 1
2219 fi
2220 ver=$(get_version PHP_HASH_VERSION ext/hash/php_hash.h)
2221 if test "$ver" != "PHP_VERSION"; then
2222         : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2223         : Update the hashver macro and rebuild.
2224         exit 1
2225 fi
2226 ver=$(get_version PHP_INTL_VERSION ext/intl/php_intl.h)
2227 if test "$ver" != "PHP_VERSION"; then
2228         : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2229         : Update the intlver macro and rebuild.
2230         exit 1
2231 fi
2232
2233 export EXTENSION_DIR="%{php_extensiondir}"
2234 # configure once (for faster debugging purposes)
2235 if [ ! -f _built-conf ]; then
2236         # now remove Makefile copies
2237         rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
2238         %{__libtoolize}
2239         %{__aclocal}
2240         cp -f /usr/share/automake/config.* .
2241         ./buildconf --force
2242         touch _built-conf
2243 fi
2244 export PROG_SENDMAIL="/usr/lib/sendmail"
2245 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2246         -I%{_includedir}/xmlrpc-epi"
2247
2248 # This should be detected by configure and set there,
2249 # but looks like the build system is hosed on 7.3
2250 export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
2251 export CFLAGS="%{rpmcflags} -fPIC -DPIC"
2252
2253 %if %{with intl}
2254 # icu 59+ C++ API requires C++ >= 11
2255 CXXFLAGS="$CXXFLAGS -std=c++11"
2256 %endif
2257
2258 sapis="
2259 cli
2260 %if %{with cgi}
2261 cgi-fcgi
2262 %endif
2263 %if %{with litespeed}
2264 litespeed
2265 %endif
2266 %if %{with fpm}
2267 fpm
2268 %endif
2269 %if %{with embed}
2270 embed
2271 %endif
2272 %if %{with apache2}
2273 apxs2
2274 %endif
2275 %if %{with phpdbg}
2276 phpdbg
2277 %endif
2278 %if %{with milter}
2279 milter
2280 %endif
2281 "
2282 for sapi in $sapis; do
2283         : SAPI $sapi
2284         # skip if already configured (for faster debugging purposes)
2285         [ -f Makefile.$sapi ] && continue
2286
2287         sapi_args=''
2288         case $sapi in
2289         cgi-fcgi)
2290                 sapi_args='--enable-cgi'
2291         ;;
2292         cli)
2293                 sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
2294         ;;
2295         fpm)
2296                 sapi_args='--enable-fpm'
2297                 ;;
2298         embed)
2299                 sapi_args='--enable-embed'
2300                 ;;
2301         apxs2)
2302                 ver=$(rpm -q --qf '%{V}' apache-devel)
2303                 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
2304         ;;
2305         litespeed)
2306                 sapi_args='--with-litespeed'
2307         ;;
2308         phpdbg)
2309                 sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2310         ;;
2311         milter)
2312                 sapi_args='--with-milter'
2313         ;;
2314         esac
2315
2316         %configure \
2317         EXTRA_LDFLAGS="%{rpmldflags}" \
2318         --disable-cgi \
2319         --disable-cli \
2320         --disable-phpdbg \
2321         $sapi_args \
2322 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2323         --cache-file=config.cache \
2324 %endif
2325         --with-libdir=%{_lib} \
2326         --with-config-file-path=%{_sysconfdir} \
2327         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2328         --with-system-tzdata \
2329         %{?with_argon2:--with-password-argon2} \
2330         --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2331         %{?with_zts:--enable-maintainer-zts} \
2332         --enable-inline-optimization \
2333         %{__enable_disable bcmath bcmath shared} \
2334         %{__enable_disable calendar calendar shared} \
2335         %{__enable_disable ctype ctype shared} \
2336         %{__enable_disable dba dba shared} \
2337         %{__enable_disable dom dom shared} \
2338         %{?with_systemtap:--enable-dtrace} \
2339         %{__enable_disable exif exif shared} \
2340         %{__enable_disable fileinfo fileinfo shared} \
2341         %{__enable_disable ftp ftp shared} \
2342         %{?with_intl:--enable-intl=shared} \
2343         --enable-libxml \
2344         %{__enable_disable mbstring mbstring shared,all} \
2345         --with-onig=/usr \
2346         --enable-mbregex \
2347         %{__enable_disable pcntl pcntl shared} \
2348         %{__enable_disable pdo pdo shared} \
2349         %{__enable_disable json json shared} \
2350         %{__enable_disable hash hash shared} \
2351         --enable-xmlwriter=shared \
2352 %if %{with fpm}
2353         --with-fpm-user=http \
2354         --with-fpm-group=http \
2355 %endif
2356 %if %{with pdo_dblib}
2357         --with-pdo-dblib=shared \
2358 %endif
2359 %if %{with interbase} && %{without interbase_inst}
2360         --with-pdo-firebird=shared,/usr \
2361 %endif
2362         %{?with_mhash:--with-mhash=yes} \
2363         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2364         %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2365         %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2366         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2367         %{?with_pgsql:--with-pdo-pgsql=shared} \
2368         %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2369         %{?with_webp:--with-webp-dir=/usr} \
2370         --without-libexpat-dir \
2371         %{__enable_disable posix posix shared} \
2372         --enable-shared \
2373         %{__enable_disable session session shared} \
2374         --enable-shmop=shared \
2375         --enable-simplexml=shared \
2376         --enable-sysvmsg=shared \
2377         --enable-sysvsem=shared \
2378         --enable-sysvshm=shared \
2379         --enable-soap=shared \
2380         --enable-sockets=shared \
2381         %{__with_without sodium sodium shared} \
2382         --enable-tokenizer=shared \
2383         %{?with_wddx:--enable-wddx=shared} \
2384         --enable-xml=shared \
2385         --enable-xmlreader=shared \
2386         %{__with_without bz2 bz2 shared} \
2387         %{__with_without curl curl shared} \
2388         --with-db4 \
2389         %{__with_without iconv iconv shared} \
2390         %{?with_enchant:--with-enchant=shared,/usr} \
2391         --with-freetype-dir=shared \
2392         %{__with_without gettext gettext shared} \
2393         %{__with_without gd gd shared%{?with_system_gd:,/usr}} \
2394         --with-gdbm \
2395         %{__with_without gmp gmp shared} \
2396         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2397         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2398         --with-jpeg-dir=/usr \
2399         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2400         %{?with_mm:--with-mm} \
2401         %{?with_mysqlnd:--enable-mysqlnd=shared} \
2402         %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2403         %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2404         %{__enable_disable opcache opcache shared} \
2405         %{?with_openssl:--with-openssl=shared} \
2406         %{?with_kerberos5:--with-kerberos} \
2407         --with-tcadb=/usr \
2408         %{__with_without pcre pcre-regex /usr} \
2409         %{__enable_disable filter filter shared} \
2410         --with-pear=%{php_pear_dir} \
2411         %{__with_without pgsql pgsql shared,/usr} \
2412         %{__enable_disable phar phar shared} \
2413         --with-png-dir=/usr \
2414         %{?with_pspell:--with-pspell=shared} \
2415         %{__with_without readline readline shared} \
2416         %{?with_recode:--with-recode=shared} \
2417         %{?with_snmp:--with-snmp=shared} \
2418         %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2419         %{__with_without sqlite3 sqlite3 shared,/usr} \
2420         %{?with_tidy:--with-tidy=shared} \
2421         %{?with_odbc:--with-unixODBC=shared,/usr} \
2422         %{__with_without xmlrpc xmlrpc shared,/usr} \
2423         %{?with_xsl:--with-xsl=shared} \
2424         --with-zlib=shared \
2425         --with-zlib-dir=shared,/usr \
2426         %{?with_zip:--enable-zip=shared,/usr --with-libzip} \
2427
2428         # save for debug
2429         cp -f Makefile Makefile.$sapi
2430         cp -f main/php_config.h php_config.h.$sapi
2431         cp -f config.log config.log.$sapi
2432 done
2433
2434 # as we build each SAPI in own make, adjust php-config.in forehead
2435 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2436 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2437
2438 # must make libphp_common first, so modules can link against it.
2439 cp -af php_config.h.cli main/php_config.h
2440 cp -af Makefile.cli Makefile
2441 %{__make} libphp_common.la
2442 # hack: MYSQLND_SHARED_LIBADD not initialized
2443 %{__make} build-modules \
2444         MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2445
2446 %if %{with apache2}
2447 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2
2448 %endif
2449
2450 %if %{with litespeed}
2451 %{__make} -f Makefile.litespeed litespeed
2452 %endif
2453
2454 %if %{with embed}
2455 %{__make} -f Makefile.embed libphp7.la
2456 %endif
2457
2458 %if %{with phpdbg}
2459 # PHP_READLINE_LIBS is empty, so force readline here
2460 %{__make} -f Makefile.phpdbg phpdbg \
2461         PHPDBG_EXTRA_LIBS=-lreadline
2462 %endif
2463
2464 %if %{with milter}
2465 %{__make} -f Makefile.milter milter
2466 %endif
2467
2468 # CGI/FCGI
2469 %if %{with cgi}
2470 cp -pf php_config.h.cgi-fcgi main/php_config.h
2471 %{__make} -f Makefile.cgi-fcgi
2472 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2473 %endif
2474
2475 # PHP FPM
2476 %if %{with fpm}
2477 cp -pf php_config.h.fpm main/php_config.h
2478 %{__make} -f Makefile.fpm
2479 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2480 %endif
2481
2482 # CLI
2483 cp -pf php_config.h.cli main/php_config.h
2484 %{__make} -f Makefile.cli
2485 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2486
2487 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2488 ./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"]));'
2489
2490 # Generate stub .ini files for each extension
2491 rm -rf conf.d
2492 install -d conf.d
2493 generate_inifiles() {
2494         for so in modules/*.so; do
2495                 mod=$(basename $so .so)
2496                 ext=extension
2497                 # opcache.so is zend extension
2498                 nm $so | grep -q zend_extension_entry && ext=zend_extension
2499                 conf="$mod.ini"
2500                 # xml needs to be loaded before wddx
2501                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2502                 # pre needs to be loaded before SPL
2503                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2504                 # spl needs to be loaded before mysqli
2505                 [ "$mod" = "spl" ] && conf="SPL.ini"
2506                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2507                 [ "$mod" = "session" ] && conf="Session.ini"
2508                 # hash needs to be loaded before mysqlnd
2509                 [ "$mod" = "hash" ] && conf="Hash.ini"
2510                 # mysqlnd needs to be loaded before mysqli,pdo_mysqli
2511                 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2512                 echo "+ $conf"
2513                 cat > conf.d/$conf <<-EOF
2514                         ; Enable $mod $ext module
2515                         $ext=$mod.so
2516                 EOF
2517         done
2518 }
2519 generate_inifiles
2520 cp -p %{_sourcedir}/opcache.ini conf.d
2521
2522 # Check that the module inner-dependencies are intact
2523 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2524 if grep -v OK dep-tests.log; then
2525         echo >&2 "The results above were not expected"
2526         exit 1
2527 fi
2528
2529 %if %{with gcov}
2530 # Use CLI SAPI
2531 cp -pf php_config.h.cli main/php_config.h
2532 cp -pf Makefile.cli Makefile
2533 %{__make} lcov
2534 # you really don't want to package result of gcov build
2535 exit 1
2536 %endif
2537
2538 cat <<'EOF' > run-tests.sh
2539 #!/bin/sh
2540 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2541 export SKIP_ONLINE_TESTS=1
2542 unset TZ LANG LC_ALL || :
2543 %{__make} test \
2544         EXTENSION_DIR=modules \
2545         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2546         RUN_TESTS_SETTINGS="-q $*"
2547 EOF
2548 chmod +x run-tests.sh
2549
2550 %if %{with tests}
2551 # Run tests, using the CLI SAPI
2552 cp -pf php_config.h.cli main/php_config.h
2553 cp -pf Makefile.cli Makefile
2554
2555 ./run-tests.sh -w failed.log -s tests.log || {
2556 rc=$?
2557
2558 # collect failed tests into cleanup script used in prep.
2559 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2560 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2561         >> %{_sourcedir}/skip-tests.sh
2562
2563 # if on builders, dump test log
2564 tty -q || cat tests.log
2565
2566 test ! -s failed.log
2567 exit $rc
2568 }
2569 %endif
2570
2571 %install
2572 rm -rf $RPM_BUILD_ROOT
2573 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2574         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2575         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2576         $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2577
2578 cp -pf php_config.h.cli main/php_config.h
2579 cp -pf Makefile.cli Makefile
2580 %{__make} install \
2581         phpbuilddir=%{_libdir}/%{name}/build \
2582         INSTALL_ROOT=$RPM_BUILD_ROOT
2583
2584 %if %{without default_php}
2585 # version the .phar files
2586 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2587 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2588 %endif
2589 %if %{with alternatives}
2590 # touch for ghost
2591 %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2592 touch $RPM_BUILD_ROOT%{_bindir}/phar
2593 touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2594 %endif
2595
2596 # version suffix
2597 v=$(echo %{version} | cut -d. -f1-2)
2598
2599 # install Apache2 DSO module
2600 %if %{with apache2}
2601 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
2602 %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so
2603 ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2604 %endif
2605
2606 # install litespeed sapi
2607 %if %{with litespeed}
2608 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2609 %endif
2610
2611 %if %{with phpdbg}
2612 %{__make} -f Makefile.phpdbg install-phpdbg \
2613         INSTALL="libtool --mode=install install -p" \
2614         INSTALL_ROOT=$RPM_BUILD_ROOT
2615
2616 %if %{without default_php}
2617 # version the phpdbg files
2618 %{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2619 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2620 %endif
2621 %endif
2622
2623 %if %{with milter}
2624 %{__make} -f Makefile.milter install-milter \
2625         INSTALL_ROOT=$RPM_BUILD_ROOT
2626 %endif
2627
2628 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2629
2630 # install CGI/FCGI
2631 %if %{with cgi}
2632 # install-cgi
2633 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2634 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2635 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2636 %endif
2637
2638 # install FCGI PM
2639 %if %{with fpm}
2640 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php-fpm.d,%{_sbindir}}
2641 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2642 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2643 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2644 cp -p sapi/fpm/www.conf $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
2645 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2646 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2647 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2648 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2649 %if "%{pld_release}" == "ac"
2650 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2651 %endif
2652
2653 %if %{with alternatives}
2654 # touch for ghost for alternatives
2655 touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2656 %endif
2657
2658 %{__sed} -i -e '
2659         s#/usr/lib/php#%{php_extensiondir}#
2660         s#/etc/php/#%{_sysconfdir}/#
2661         s#@processname@#%{name}-fpm#g
2662 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/php-fpm.d/www.conf}
2663 %endif
2664
2665 # install Embedded API
2666 %if %{with embed}
2667 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2668 # install-sapi installs to wrong dir, so just do it all manually
2669 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2670 install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir}
2671 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2672 %endif
2673
2674 # install CLI
2675 # versioned suffix is always installed
2676 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2677 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2678 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2679 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2680
2681 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2682 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2683
2684 %if %{with apache2}
2685 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2686 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2687 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la
2688 %endif
2689
2690 # ensure that paths are correct for current php version and arch
2691 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2692 %{__sed} -i -e '
2693         s#/usr/lib/php#%{php_extensiondir}#
2694         s#/etc/php#%{_sysconfdir}#
2695 '
2696
2697 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2698 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2699
2700 # per SAPI ini directories
2701 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2702
2703 # for CLI SAPI only
2704 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2705
2706 # use system automake and {lib,sh}tool
2707 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2708 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2709 for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2710         f=%{_aclocaldir}/$fn
2711         test -f $f || continue
2712         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2713 done
2714 for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2715         f=/usr/share/libtool/$fn
2716         test -f $f || continue
2717         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2718         break
2719 done
2720 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2721
2722 # for php-pecl-mailparse
2723 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2724 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2725
2726 # tests
2727 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2728 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2729 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2730
2731 # fix install paths, avoid evil rpaths
2732 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2733 # better solution?
2734 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2735
2736 install -p ext/ext_skel.php $RPM_BUILD_ROOT%{_bindir}
2737
2738 %clean
2739 rm -rf $RPM_BUILD_ROOT
2740
2741 %post -n apache-mod_%{name}
2742 if [ "$1" = "1" ]; then
2743         %service -q httpd restart
2744 fi
2745
2746 %postun -n apache-mod_%{name}
2747 if [ "$1" = "0" ]; then
2748         %service -q httpd restart
2749 fi
2750
2751 %pre fpm
2752 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2753
2754 %post fpm
2755 /sbin/chkconfig --add %{name}-fpm
2756 %service %{name}-fpm restart
2757 %if %{with alternatives}
2758 update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
2759 %endif
2760
2761 %preun fpm
2762 if [ "$1" = "0" ]; then
2763         %service %{name}-fpm stop
2764         /sbin/chkconfig --del %{name}-fpm
2765 %if %{with alternatives}
2766         update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
2767 %endif
2768 fi
2769
2770 %postun fpm
2771 if [ "$1" = "0" ]; then
2772         %userremove http
2773 fi
2774
2775 %post   embedded -p /sbin/ldconfig
2776 %postun embedded -p /sbin/ldconfig
2777
2778 %posttrans common
2779 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2780 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2781         TIMEZONE=
2782         . /etc/sysconfig/timezone
2783         if [ "$TIMEZONE" ]; then
2784                 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2785         fi
2786 fi
2787
2788 # minimizing apache restarts logics. we restart webserver:
2789 #
2790 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2791 # 2. first install of extension (post: $1 = 1)
2792 # 2. uninstall of extension (postun: $1 == 0)
2793 #
2794 # the strict internal deps between extensions (and apache modules) and
2795 # common package are very important for all this to work.
2796
2797 # restart webserver at the end of transaction
2798 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2799 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2800
2801 %triggerpostun common -- php-common < 4:5.3.28-7
2802 # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2803 # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2804 # this way we can stick to one trigger, instead of attaching one for each (sub)package!
2805 for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2806         test -f "$f" || continue
2807         bn=${f#/etc/php/}
2808         dn=${bn%/*}
2809         fn=${bn#*/}
2810         test "$dn" = "$fn" && dn=
2811         fn=${fn%.rpmsave}
2812         nf=%{_sysconfdir}/$dn/$fn
2813         test -f "$nf" || continue
2814         cp -vfb $nf{,.rpmnew}
2815         cp -vfb $f $nf
2816         %{__sed} -i -e '
2817                 s#%{_libdir}/php#%{_libdir}/%{name}#
2818                 s#/etc/php#%{_sysconfdir}#
2819         ' $nf
2820 done
2821
2822 %triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2823 # switch to browscap package if the ini file has original value
2824 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2825 # disable browscap, if optional package not present
2826 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2827         %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2828 fi
2829
2830 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
2831 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2832
2833 # common macros called at extension post/postun scriptlet
2834 %define ext_post \
2835 if [ "$1" = "1" ]; then \
2836         %php_webserver_restart \
2837 fi \
2838 %{nil}
2839
2840 %define ext_postun \
2841 if [ "$1" = "0" ]; then \
2842         %php_webserver_restart \
2843 fi \
2844 %{nil}
2845
2846 %define extension_scripts() \
2847 %post %1 \
2848 %ext_post \
2849 \
2850 %postun %1 \
2851 %ext_postun \
2852 %{nil}
2853
2854 # extension scripts defines
2855 %extension_scripts bcmath
2856 %extension_scripts bz2
2857 %extension_scripts calendar
2858 %extension_scripts ctype
2859 %extension_scripts curl
2860 %extension_scripts dba
2861 %extension_scripts dom
2862 %extension_scripts enchant
2863 %extension_scripts exif
2864 %extension_scripts fileinfo
2865 %extension_scripts filter
2866 %extension_scripts ftp
2867 %extension_scripts gd
2868 %extension_scripts gettext
2869 %extension_scripts gmp
2870 %extension_scripts hash
2871 %extension_scripts iconv
2872 %extension_scripts imap
2873 %extension_scripts interbase
2874 %extension_scripts intl
2875 %extension_scripts json
2876 %extension_scripts ldap
2877 %extension_scripts mbstring
2878 %extension_scripts mysqli
2879 %extension_scripts mysqlnd
2880 %extension_scripts oci8
2881 %extension_scripts odbc
2882 %extension_scripts opcache
2883 %extension_scripts openssl
2884 %extension_scripts pcre
2885 %extension_scripts pdo
2886 %extension_scripts pdo-dblib
2887 %extension_scripts pdo-firebird
2888 %extension_scripts pdo-oci
2889 %extension_scripts pdo-mysql
2890 %extension_scripts pdo-odbc
2891 %extension_scripts pdo-pgsql
2892 %extension_scripts pdo-sqlite
2893 %extension_scripts pgsql
2894 %extension_scripts pcntl
2895 %extension_scripts posix
2896 %extension_scripts pspell
2897 %extension_scripts recode
2898 %extension_scripts session
2899 %extension_scripts shmop
2900 %extension_scripts simplexml
2901 %extension_scripts snmp
2902 %extension_scripts soap
2903 %extension_scripts sockets
2904 %extension_scripts sodium
2905 %extension_scripts spl
2906 %extension_scripts sqlite3
2907 %extension_scripts sysvmsg
2908 %extension_scripts sysvsem
2909 %extension_scripts sysvshm
2910 %extension_scripts tidy
2911 %extension_scripts tokenizer
2912 %extension_scripts wddx
2913 %extension_scripts xml
2914 %extension_scripts xmlreader
2915 %extension_scripts xmlrpc
2916 %extension_scripts xmlwriter
2917 %extension_scripts xsl
2918 %extension_scripts zip
2919 %extension_scripts zlib
2920
2921 %post phar
2922 %ext_post
2923 %if %{with alternatives}
2924 update-alternatives \
2925         --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
2926         --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
2927 %endif
2928
2929 %postun phar
2930 %ext_postun
2931 %if %{with alternatives}
2932 if [ $1 -eq 0 ]; then
2933         update-alternatives --remove phar %{_bindir}/phar || :
2934 fi
2935 %endif
2936
2937 %if %{with apache2}
2938 %files -n apache-mod_%{name}
2939 %defattr(644,root,root,755)
2940 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2941 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2942
2943 %files -n apache-mod_%{name}-core
2944 %defattr(644,root,root,755)
2945 %dir %{_sysconfdir}/apache2handler.d
2946 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2947 %attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so
2948 %endif
2949
2950 %if %{with litespeed}
2951 %files litespeed
2952 %defattr(644,root,root,755)
2953 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2954 %endif
2955
2956 %if %{with cgi}
2957 %files cgi
2958 %defattr(644,root,root,755)
2959 %dir %{_sysconfdir}/cgi-fcgi.d
2960 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2961 %attr(755,root,root) %{_bindir}/%{name}.cgi
2962 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2963 %endif
2964
2965 %if %{with embed}
2966 %files embedded
2967 %defattr(644,root,root,755)
2968 %attr(755,root,root) %{_libdir}/libphp7.so
2969 %endif
2970
2971 %files cli
2972 %defattr(644,root,root,755)
2973 %dir %{_sysconfdir}/cli.d
2974 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2975 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
2976 %{_mandir}/man1/php%{ver_suffix}.1*
2977
2978 %files program
2979 %defattr(644,root,root,755)
2980 %attr(755,root,root) %{_bindir}/php
2981 %{_mandir}/man1/php.1*
2982
2983 %if %{with fpm}
2984 %files fpm
2985 %defattr(644,root,root,755)
2986 %doc sapi/fpm/{CREDITS,LICENSE}
2987 %dir %{_sysconfdir}/php-fpm.d
2988 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.d/www.conf
2990 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2991 %if %{with alternatives}
2992 %ghost %{_sbindir}/php-fpm
2993 %endif
2994 %{_mandir}/man8/%{name}-fpm.8*
2995 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2996 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2997 %endif
2998
2999 %if %{with phpdbg}
3000 %files phpdbg
3001 %defattr(644,root,root,755)
3002 %attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
3003 %{_mandir}/man1/phpdbg%{php_suffix}.1*
3004 %endif
3005
3006 %if %{with milter}
3007 %files milter
3008 %defattr(644,root,root,755)
3009 %attr(755,root,root) %{_bindir}/php-milter
3010 %endif
3011
3012 %files common
3013 %defattr(644,root,root,755)
3014 %doc CREDITS EXTENSIONS LICENSE NEWS UPGRADING* Zend/{LICENSE.Zend,README*} php.ini-* .gdbinit
3015 %dir %{_sysconfdir}
3016 %dir %{_sysconfdir}/conf.d
3017 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
3018 %attr(755,root,root) %{_libdir}/libphp_common-*.so
3019 %dir %{php_extensiondir}
3020
3021 %doc ext/session/mod_files.sh
3022
3023 %files devel
3024 %defattr(644,root,root,755)
3025 %doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,UNIX-BUILD-SYSTEM,input_filter}
3026 %attr(755,root,root) %{_bindir}/ext_skel.php
3027 %attr(755,root,root) %{_bindir}/php-config
3028 %attr(755,root,root) %{_bindir}/phpize
3029 %attr(755,root,root) %{_libdir}/libphp_common.so
3030 %{_libdir}/libphp_common.la
3031 %{_includedir}/php
3032 %{_libdir}/%{name}/build
3033 %{_mandir}/man1/php-config.1*
3034 %{_mandir}/man1/phpize.1*
3035
3036 %if %{with bcmath}
3037 %files bcmath
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
3040 %attr(755,root,root) %{php_extensiondir}/bcmath.so
3041 %endif
3042
3043 %if %{with bz2}
3044 %files bz2
3045 %defattr(644,root,root,755)
3046 %doc ext/bz2/CREDITS
3047 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
3048 %attr(755,root,root) %{php_extensiondir}/bz2.so
3049 %endif
3050
3051 %if %{with calendar}
3052 %files calendar
3053 %defattr(644,root,root,755)
3054 %doc ext/calendar/CREDITS
3055 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
3056 %attr(755,root,root) %{php_extensiondir}/calendar.so
3057 %endif
3058
3059 %if %{with ctype}
3060 %files ctype
3061 %defattr(644,root,root,755)
3062 %doc ext/calendar/CREDITS
3063 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
3064 %attr(755,root,root) %{php_extensiondir}/ctype.so
3065 %endif
3066
3067 %if %{with curl}
3068 %files curl
3069 %defattr(644,root,root,755)
3070 %doc ext/curl/CREDITS
3071 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
3072 %attr(755,root,root) %{php_extensiondir}/curl.so
3073 %endif
3074
3075 %if %{with dba}
3076 %files dba
3077 %defattr(644,root,root,755)
3078 %doc ext/dba/{CREDITS,README}
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
3080 %attr(755,root,root) %{php_extensiondir}/dba.so
3081 %endif
3082
3083 %if %{with dom}
3084 %files dom
3085 %defattr(644,root,root,755)
3086 %doc ext/dom/CREDITS
3087 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
3088 %attr(755,root,root) %{php_extensiondir}/dom.so
3089 %endif
3090
3091 %if %{with enchant}
3092 %files enchant
3093 %defattr(644,root,root,755)
3094 %doc ext/enchant/CREDITS
3095 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
3096 %attr(755,root,root) %{php_extensiondir}/enchant.so
3097 %endif
3098
3099 %if %{with exif}
3100 %files exif
3101 %defattr(644,root,root,755)
3102 %doc ext/exif/CREDITS
3103 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
3104 %attr(755,root,root) %{php_extensiondir}/exif.so
3105 %endif
3106
3107 %if %{with fileinfo}
3108 %files fileinfo
3109 %defattr(644,root,root,755)
3110 %doc ext/fileinfo/CREDITS
3111 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3112 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
3113 %endif
3114
3115 %if %{with filter}
3116 %files filter
3117 %defattr(644,root,root,755)
3118 %doc ext/filter/CREDITS
3119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3120 %attr(755,root,root) %{php_extensiondir}/filter.so
3121 %endif
3122
3123 %if %{with ftp}
3124 %files ftp
3125 %defattr(644,root,root,755)
3126 %doc ext/ftp/CREDITS
3127 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3128 %attr(755,root,root) %{php_extensiondir}/ftp.so
3129 %endif
3130
3131 %if %{with gd}
3132 %files gd
3133 %defattr(644,root,root,755)
3134 %doc ext/gd/CREDITS
3135 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3136 %attr(755,root,root) %{php_extensiondir}/gd.so
3137 %endif
3138
3139 %if %{with gettext}
3140 %files gettext
3141 %defattr(644,root,root,755)
3142 %doc ext/gettext/CREDITS
3143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3144 %attr(755,root,root) %{php_extensiondir}/gettext.so
3145 %endif
3146
3147 %if %{with gmp}
3148 %files gmp
3149 %defattr(644,root,root,755)
3150 %doc ext/gmp/CREDITS
3151 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3152 %attr(755,root,root) %{php_extensiondir}/gmp.so
3153 %endif
3154
3155 %if %{with hash}
3156 %files hash
3157 %defattr(644,root,root,755)
3158 %doc ext/hash/{CREDITS,README}
3159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Hash.ini
3160 %attr(755,root,root) %{php_extensiondir}/hash.so
3161 %endif
3162
3163 %if %{with iconv}
3164 %files iconv
3165 %defattr(644,root,root,755)
3166 %doc ext/iconv/CREDITS
3167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3168 %attr(755,root,root) %{php_extensiondir}/iconv.so
3169 %endif
3170
3171 %if %{with imap}
3172 %files imap
3173 %defattr(644,root,root,755)
3174 %doc ext/imap/CREDITS
3175 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3176 %attr(755,root,root) %{php_extensiondir}/imap.so
3177 %endif
3178
3179 %if %{with interbase}
3180 %files interbase
3181 %defattr(644,root,root,755)
3182 %doc ext/interbase/CREDITS
3183 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3184 %attr(755,root,root) %{php_extensiondir}/interbase.so
3185 %endif
3186
3187 %if %{with intl}
3188 %files intl
3189 %defattr(644,root,root,755)
3190 %doc ext/intl/CREDITS
3191 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3192 %attr(755,root,root) %{php_extensiondir}/intl.so
3193 %endif
3194
3195 %if %{with json}
3196 %files json
3197 %defattr(644,root,root,755)
3198 %doc ext/json/CREDITS
3199 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3200 %attr(755,root,root) %{php_extensiondir}/json.so
3201 %endif
3202
3203 %if %{with ldap}
3204 %files ldap
3205 %defattr(644,root,root,755)
3206 %doc ext/ldap/CREDITS
3207 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3208 %attr(755,root,root) %{php_extensiondir}/ldap.so
3209 %endif
3210
3211 %if %{with mbstring}
3212 %files mbstring
3213 %defattr(644,root,root,755)
3214 %doc ext/mbstring/CREDITS
3215 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3216 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3217 %endif
3218
3219 %if %{with mysqli}
3220 %files mysqli
3221 %defattr(644,root,root,755)
3222 %doc ext/mysqli/CREDITS
3223 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3224 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3225 %endif
3226
3227 %if %{with mysqlnd}
3228 %files mysqlnd
3229 %defattr(644,root,root,755)
3230 %doc ext/mysqlnd/CREDITS
3231 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3232 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3233 %endif
3234
3235 %if %{with oci}
3236 %files oci8
3237 %defattr(644,root,root,755)
3238 %doc ext/oci8/{CREDITS,README}
3239 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3240 %attr(755,root,root) %{php_extensiondir}/oci8.so
3241 %endif
3242
3243 %if %{with odbc}
3244 %files odbc
3245 %defattr(644,root,root,755)
3246 %doc ext/odbc/CREDITS
3247 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3248 %attr(755,root,root) %{php_extensiondir}/odbc.so
3249 %endif
3250
3251 %if %{with opcache}
3252 %files opcache
3253 %defattr(644,root,root,755)
3254 %doc ext/opcache/README
3255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3256 %attr(755,root,root) %{php_extensiondir}/opcache.so
3257 %endif
3258
3259 %if %{with openssl}
3260 %files openssl
3261 %defattr(644,root,root,755)
3262 %doc ext/openssl/{CREDITS,README}
3263 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3264 %attr(755,root,root) %{php_extensiondir}/openssl.so
3265 %endif
3266
3267 %if %{with pcntl}
3268 %files pcntl
3269 %defattr(644,root,root,755)
3270 %doc ext/pcntl/{CREDITS,README}
3271 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3272 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3273 %endif
3274
3275 %if %{with pcre}
3276 %files pcre
3277 %defattr(644,root,root,755)
3278 %doc ext/pcre/CREDITS
3279 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3280 %attr(755,root,root) %{php_extensiondir}/pcre.so
3281 %endif
3282
3283 %if %{with pdo}
3284 %files pdo
3285 %defattr(644,root,root,755)
3286 %doc ext/pdo/{CREDITS,README}
3287 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3288 %attr(755,root,root) %{php_extensiondir}/pdo.so
3289 %endif
3290
3291 %if %{with pdo_dblib}
3292 %files pdo-dblib
3293 %defattr(644,root,root,755)
3294 %doc ext/pdo_dblib/{CREDITS,README}
3295 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3296 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3297 %endif
3298
3299 %if %{with interbase} && !%{with interbase_inst}
3300 %files pdo-firebird
3301 %defattr(644,root,root,755)
3302 %doc ext/pdo_firebird/CREDITS
3303 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3304 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3305 %endif
3306
3307 %if %{with pdo_mysql}
3308 %files pdo-mysql
3309 %defattr(644,root,root,755)
3310 %doc ext/pdo_mysql/CREDITS
3311 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3312 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3313 %endif
3314
3315 %if %{with oci}
3316 %files pdo-oci
3317 %defattr(644,root,root,755)
3318 %doc ext/pdo_oci/CREDITS
3319 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3320 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3321 %endif
3322
3323 %if %{with odbc}
3324 %files pdo-odbc
3325 %defattr(644,root,root,755)
3326 %doc ext/pdo_odbc/CREDITS
3327 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3328 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3329 %endif
3330
3331 %if %{with pgsql}
3332 %files pdo-pgsql
3333 %defattr(644,root,root,755)
3334 %doc ext/pdo_pgsql/CREDITS
3335 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3336 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3337 %endif
3338
3339 %if %{with pdo_sqlite}
3340 %files pdo-sqlite
3341 %defattr(644,root,root,755)
3342 %doc ext/pdo_sqlite/CREDITS
3343 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3344 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3345 %endif
3346
3347 %if %{with pgsql}
3348 %files pgsql
3349 %defattr(644,root,root,755)
3350 %doc ext/pgsql/{CREDITS,README}
3351 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3352 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3353 %endif
3354
3355 %if %{with phar}
3356 %files phar
3357 %defattr(644,root,root,755)
3358 %doc ext/phar/CREDITS
3359 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3360 %attr(755,root,root) %{php_extensiondir}/phar.so
3361 %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3362 %{_mandir}/man1/phar%{php_suffix}.1*
3363 %{_mandir}/man1/phar.phar.1*
3364 %if %{with alternatives}
3365 %ghost %{_bindir}/phar
3366 %ghost %{_mandir}/man1/phar.1
3367 %else
3368 %attr(755,root,root) %{_bindir}/phar
3369 %endif
3370 %endif
3371
3372 %if %{with posix}
3373 %files posix
3374 %defattr(644,root,root,755)
3375 %doc ext/posix/CREDITS
3376 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3377 %attr(755,root,root) %{php_extensiondir}/posix.so
3378 %endif
3379
3380 %if %{with pspell}
3381 %files pspell
3382 %defattr(644,root,root,755)
3383 %doc ext/pspell/{CREDITS,README}
3384 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3385 %attr(755,root,root) %{php_extensiondir}/pspell.so
3386 %endif
3387
3388 %if %{with readline}
3389 %files readline
3390 %defattr(644,root,root,755)
3391 %doc ext/readline/{CREDITS,README*}
3392 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3393 %attr(755,root,root) %{php_extensiondir}/readline.so
3394 %endif
3395
3396 %if %{with recode}
3397 %files recode
3398 %defattr(644,root,root,755)
3399 %doc ext/recode/CREDITS
3400 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3401 %attr(755,root,root) %{php_extensiondir}/recode.so
3402 %endif
3403
3404 %if %{with session}
3405 %files session
3406 %defattr(644,root,root,755)
3407 %doc ext/session/CREDITS
3408 %doc ext/session/mod_files.sh
3409 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3410 %attr(755,root,root) %{php_extensiondir}/session.so
3411 %endif
3412
3413 %files shmop
3414 %defattr(644,root,root,755)
3415 %doc ext/shmop/{CREDITS,README}
3416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3417 %attr(755,root,root) %{php_extensiondir}/shmop.so
3418
3419 %files simplexml
3420 %defattr(644,root,root,755)
3421 %doc ext/simplexml/{CREDITS,README}
3422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3423 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3424
3425 %if %{with snmp}
3426 %files snmp
3427 %defattr(644,root,root,755)
3428 %doc ext/snmp/CREDITS
3429 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3430 %attr(755,root,root) %{php_extensiondir}/snmp.so
3431 %endif
3432
3433 %files soap
3434 %defattr(644,root,root,755)
3435 %doc ext/soap/CREDITS
3436 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3437 %attr(755,root,root) %{php_extensiondir}/soap.so
3438
3439 %files sockets
3440 %defattr(644,root,root,755)
3441 %doc ext/sockets/CREDITS
3442 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3443 %attr(755,root,root) %{php_extensiondir}/sockets.so
3444
3445 %if %{with sodium}
3446 %files sodium
3447 %defattr(644,root,root,755)
3448 %doc ext/sodium/{README.md,CREDITS}
3449 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sodium.ini
3450 %attr(755,root,root) %{php_extensiondir}/sodium.so
3451 %endif
3452
3453 %files spl
3454 %defattr(644,root,root,755)
3455 %doc ext/spl/{CREDITS,README}
3456 %doc ext/spl/examples
3457 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3458 %attr(755,root,root) %{php_extensiondir}/spl.so
3459
3460 %if %{with sqlite3}
3461 %files sqlite3
3462 %defattr(644,root,root,755)
3463 %doc ext/sqlite3/CREDITS
3464 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3465 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3466 %endif
3467
3468 %files sysvmsg
3469 %defattr(644,root,root,755)
3470 %doc ext/sysvmsg/CREDITS
3471 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3472 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3473
3474 %files sysvsem
3475 %defattr(644,root,root,755)
3476 %doc ext/sysvsem/CREDITS
3477 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3478 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3479
3480 %files sysvshm
3481 %defattr(644,root,root,755)
3482 %doc ext/sysvshm/CREDITS
3483 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3484 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3485
3486 %files tests
3487 %defattr(644,root,root,755)
3488 %dir %{php_data_dir}/tests
3489 %dir %{php_data_dir}/tests/php
3490 %{php_data_dir}/tests/php/basic
3491 %{php_data_dir}/tests/php/classes
3492 %{php_data_dir}/tests/php/func
3493 %{php_data_dir}/tests/php/lang
3494 %{php_data_dir}/tests/php/output
3495 %{php_data_dir}/tests/php/run-test
3496 %{php_data_dir}/tests/php/security
3497 %{php_data_dir}/tests/php/strings
3498 %{php_data_dir}/tests/php/quicktester.inc
3499 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3500
3501 %if %{with tidy}
3502 %files tidy
3503 %defattr(644,root,root,755)
3504 %doc ext/tidy/CREDITS
3505 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3506 %attr(755,root,root) %{php_extensiondir}/tidy.so
3507 %endif
3508
3509 %files tokenizer
3510 %defattr(644,root,root,755)
3511 %doc ext/tokenizer/CREDITS
3512 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3513 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3514
3515 %if %{with wddx}
3516 %files wddx
3517 %defattr(644,root,root,755)
3518 %doc ext/wddx/CREDITS
3519 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3520 %attr(755,root,root) %{php_extensiondir}/wddx.so
3521 %endif
3522
3523 %files xml
3524 %defattr(644,root,root,755)
3525 %doc ext/xml/CREDITS
3526 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3527 %attr(755,root,root) %{php_extensiondir}/xml.so
3528
3529 %files xmlreader
3530 %defattr(644,root,root,755)
3531 %doc ext/xmlreader/{CREDITS,README}
3532 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3533 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3534
3535 %if %{with xmlrpc}
3536 %files xmlrpc
3537 %defattr(644,root,root,755)
3538 %doc ext/xmlrpc/CREDITS
3539 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3540 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3541 %endif
3542
3543 %files xmlwriter
3544 %defattr(644,root,root,755)
3545 %doc ext/xmlwriter/CREDITS
3546 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3547 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3548
3549 %if %{with xsl}
3550 %files xsl
3551 %defattr(644,root,root,755)
3552 %doc ext/xsl/CREDITS
3553 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3554 %attr(755,root,root) %{php_extensiondir}/xsl.so
3555 %endif
3556
3557 %if %{with zip}
3558 %files zip
3559 %defattr(644,root,root,755)
3560 %doc ext/zip/CREDITS
3561 %doc ext/zip/examples
3562 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3563 %attr(755,root,root) %{php_extensiondir}/zip.so
3564 %endif
3565
3566 %files zlib
3567 %defattr(644,root,root,755)
3568 %doc ext/zlib/CREDITS
3569 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3570 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.570324 seconds and 4 git commands to generate.