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