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