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