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