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