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