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