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