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