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