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