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