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