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