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