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