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