]> git.pld-linux.org Git - packages/php.git/blob - php.spec
rm timezonedb.h, using system tzdata
[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 %{__rm} ext/date/lib/timezonedb.h
2012
2013 cp -pf Zend/LICENSE{,.Zend}
2014 install -p %{SOURCE13} dep-tests.sh
2015
2016 # breaks build
2017 sed -i -e 's#-fvisibility=hidden##g' configure*
2018
2019 # disable broken tests
2020 # says just "Terminated" twice and fails
2021 mv sapi/cli/tests/022.phpt{,.broken}
2022
2023 # really dumb test, executable binary name is .libs/ something when building
2024 # https://bugs.php.net/bug.php?id=54514
2025 mv tests/basic/bug54514.phpt{,.disable}
2026
2027 # breaks whole testsuite unexpectedly:
2028 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2029 # probably broken as zlib is built as shared
2030 mv ext/soap/tests/server019.phpt{,disable}
2031 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
2032 mv ext/soap/tests/server020.phpt{,disable}
2033
2034 # runs out of memory and kills carme vserver
2035 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
2036 mv Zend/tests/bug39438.phpt{,.disable}
2037
2038 # php-5.3.3/ext/standard/tests/file/statpage.phpt
2039 %{__rm} ext/standard/tests/file/statpage.phpt
2040
2041 # idiotic test, it will fail if somebody else makes space on disk or if disk
2042 # space is not yet allocated (xfs). report upstream to advice bogus test is
2043 # probably pointless.
2044 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2045
2046 %ifarch %{x8664}
2047 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
2048 %{__rm} -r ext/pdo_sqlite/tests
2049 %{__rm} -r ext/sqlite3/tests
2050 %endif
2051
2052 # skip XFAILs
2053 # no point testing stuff that is knowingly broken
2054 find -name '*.phpt' | xargs grep XFAIL -l | xargs rm -v
2055
2056 env \
2057 %ifarch %{ix86}
2058 ix86= x8664=:
2059 %endif
2060 %ifarch %{x8664}
2061 ix86=: x8664= \
2062 %endif
2063         sh -xe %{_sourcedir}/skip-tests.sh
2064
2065 %build
2066 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2067 if [ $API != %{php_api_version} ]; then
2068         echo "Set %%define php_api_version to $API and re-run."
2069         exit 1
2070 fi
2071
2072 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2073 if [ $API != %{zend_module_api} ]; then
2074         echo "Set %%define zend_module_api to $API and re-run."
2075         exit 1
2076 fi
2077
2078 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2079 if [ $API != %{zend_extension_api} ]; then
2080         echo "Set %%define zend_extension_api to $API and re-run."
2081         exit 1
2082 fi
2083
2084 # Check for some extension version
2085 ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2086 if test "$ver" != "%{fileinfover}"; then
2087         : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2088         : Update the fileinfover macro and rebuild.
2089         exit 1
2090 fi
2091 ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2092 if test "$ver" != "%{pharver}"; then
2093         : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2094         : Update the pharver macro and rebuild.
2095         exit 1
2096 fi
2097 ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2098 if test "$ver" != "%{sqlite3ver}"; then
2099         : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2100         : Update the sqlite3ver macro and rebuild.
2101         exit 1
2102 fi
2103 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2104 if test "$ver" != "%{zipver}"; then
2105         : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2106         : Update the zipver macro and rebuild.
2107         exit 1
2108 fi
2109 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2110 if test "$ver" != "%{jsonver}"; then
2111         : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2112         : Update the jsonver macro and rebuild.
2113         exit 1
2114 fi
2115 ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h)
2116 if test "$ver" != "%{opcachever}"; then
2117         : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
2118         : Update the opcachever macro and rebuild.
2119         exit 1
2120 fi
2121 ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
2122 if test "$ver" != "%{phpdbgver}"; then
2123         : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2124         : Update the opcachever macro and rebuild.
2125         exit 1
2126 fi
2127 ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2128 if test "$ver" != "%{bz2ver}"; then
2129         : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2130         : Update the bz2ver macro and rebuild.
2131         exit 1
2132 fi
2133 ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2134 if test "$ver" != "%{enchantver}"; then
2135         : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2136         : Update the enchantver macro and rebuild.
2137         exit 1
2138 fi
2139 ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2140 if test "$ver" != "%{hashver}"; then
2141         : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2142         : Update the hashver macro and rebuild.
2143         exit 1
2144 fi
2145 ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2146 if test "$ver" != "%{intlver}"; then
2147         : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2148         : Update the intlver macro and rebuild.
2149         exit 1
2150 fi
2151
2152 export EXTENSION_DIR="%{php_extensiondir}"
2153 # configure once (for faster debugging purposes)
2154 if [ ! -f _built-conf ]; then
2155         # now remove Makefile copies
2156         rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed}
2157         %{__libtoolize}
2158         %{__aclocal}
2159         cp -f /usr/share/automake/config.* .
2160         ./buildconf --force
2161         touch _built-conf
2162 fi
2163 export PROG_SENDMAIL="/usr/lib/sendmail"
2164 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2165         -I%{_includedir}/xmlrpc-epi"
2166
2167 sapis="
2168 cli
2169 %if %{with cgi}
2170 cgi-fcgi
2171 %endif
2172 %if %{with litespeed}
2173 litespeed
2174 %endif
2175 %if %{with fpm}
2176 fpm
2177 %endif
2178 %if %{with embed}
2179 embed
2180 %endif
2181 %if %{with apache1}
2182 apxs1
2183 %endif
2184 %if %{with apache2}
2185 apxs2
2186 %endif
2187 "
2188 for sapi in $sapis; do
2189         : SAPI $sapi
2190         # skip if already configured (for faster debugging purposes)
2191         [ -f Makefile.$sapi ] && continue
2192
2193         sapi_args=''
2194         case $sapi in
2195         cgi-fcgi)
2196                 sapi_args='--disable-cli'
2197         ;;
2198         cli)
2199                 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2200         ;;
2201         fpm)
2202                 sapi_args='--disable-cli --enable-fpm'
2203                 ;;
2204         embed)
2205                 sapi_args='--disable-cli --enable-embed'
2206                 ;;
2207         apxs1)
2208                 ver=$(rpm -q --qf '%{V}' apache1-devel)
2209                 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
2210         ;;
2211         apxs2)
2212                 ver=$(rpm -q --qf '%{V}' apache-devel)
2213                 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
2214         ;;
2215         litespeed)
2216                 sapi_args='--with-litespeed'
2217         ;;
2218         esac
2219
2220         %configure \
2221         $sapi_args \
2222 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2223         --cache-file=config.cache \
2224 %endif
2225         --with-libdir=%{_lib} \
2226         --with-config-file-path=%{_sysconfdir} \
2227         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2228         --with-system-tzdata \
2229         --%{!?debug:dis}%{?debug:en}able-debug \
2230         %{?with_zts:--enable-maintainer-zts} \
2231         --enable-inline-optimization \
2232         --enable-bcmath=shared \
2233         --enable-calendar=shared \
2234         --enable-ctype=shared \
2235         --enable-dba=shared \
2236         --enable-dom=shared \
2237         --enable-exif=shared \
2238         --enable-fileinfo=shared \
2239         --enable-ftp=shared \
2240         --enable-gd-native-ttf \
2241         %{?with_intl:--enable-intl=shared} \
2242         --enable-libxml \
2243         --enable-mbstring=shared,all \
2244         --enable-mbregex \
2245         --enable-pcntl=shared \
2246         --enable-pdo=shared \
2247         --enable-json=shared \
2248         --enable-hash=shared \
2249         --enable-xmlwriter=shared \
2250 %if %{with fpm}
2251         --with-fpm-user=http \
2252         --with-fpm-group=http \
2253 %endif
2254 %if %{with mssql} || %{with sybase_ct}
2255         --with-pdo-dblib=shared \
2256 %endif
2257 %if %{with interbase} && %{without interbase_inst}
2258         --with-pdo-firebird=shared,/usr \
2259 %endif
2260         %{?with_mhash:--with-mhash=yes} \
2261         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2262         --with-pdo-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
2263         %{?with_oci8:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2264         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2265         %{?with_pgsql:--with-pdo-pgsql=shared} \
2266         %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2267         %{?with_webp:--with-vpx-dir=/usr} \
2268         --without-libexpat-dir \
2269         --enable-posix=shared \
2270         --enable-shared \
2271         --enable-session=shared \
2272         --enable-shmop=shared \
2273         --enable-simplexml=shared \
2274         --enable-sysvmsg=shared \
2275         --enable-sysvsem=shared \
2276         --enable-sysvshm=shared \
2277         --enable-soap=shared \
2278         --enable-sockets=shared \
2279         --enable-tokenizer=shared \
2280         %{?with_wddx:--enable-wddx=shared} \
2281         --enable-xml=shared \
2282         --enable-xmlreader=shared \
2283         --with-bz2=shared \
2284         %{__with_without curl curl shared} \
2285         --with-db4 \
2286         --with-iconv=shared \
2287         %{?with_enchant:--with-enchant=shared,/usr} \
2288         --with-freetype-dir=shared \
2289         --with-gettext=shared \
2290         --with-gd=shared%{?with_system_gd:,/usr} \
2291         --with-gdbm \
2292         --with-gmp=shared \
2293         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2294         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2295         --with-jpeg-dir=/usr \
2296         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2297         --with-mcrypt=shared \
2298         %{?with_mm:--with-mm} \
2299         %{?with_mssql:--with-mssql=shared} \
2300         %{?with_mysqlnd:--enable-mysqlnd=shared} \
2301         --with-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
2302         %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2303         %{?with_oci8:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2304         %{?with_opcache:--enable-opcache=shared} \
2305         %{?with_openssl:--with-openssl=shared} \
2306         %{?with_kerberos5:--with-kerberos} \
2307         --with-tcadb=/usr \
2308         %{__with_without pcre pcre-regex /usr} \
2309         %{__enable_disable filter filter shared} \
2310         --with-pear=%{php_pear_dir} \
2311         %{__with_without pgsql pgsql shared,/usr} \
2312         %{__enable_disable phar phar shared} \
2313         --with-png-dir=/usr \
2314         %{?with_pspell:--with-pspell=shared} \
2315         --with-readline=shared \
2316         %{?with_recode:--with-recode=shared} \
2317         --with-regex=system \
2318         %{?with_snmp:--with-snmp=shared} \
2319         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2320         %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2321         %{__with_without sqlite3 sqlite3 shared,/usr} \
2322         --with-t1lib=shared \
2323         %{?with_tidy:--with-tidy=shared} \
2324         %{?with_odbc:--with-unixODBC=shared,/usr} \
2325         %{__with_without xmlrpc xmlrpc shared,/usr} \
2326         --with-xsl=shared \
2327         --with-zlib=shared \
2328         --with-zlib-dir=shared,/usr \
2329         %{?with_system_libzip:--with-libzip} \
2330         --enable-zip=shared,/usr \
2331
2332         # save for debug
2333         cp -f Makefile Makefile.$sapi
2334         cp -f main/php_config.h php_config.h.$sapi
2335         cp -f config.log config.log.$sapi
2336 done
2337
2338 # as we build each SAPI in own make, adjust php-config.in forehead
2339 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2340 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2341
2342 # must make libphp_common first, so modules can link against it.
2343 cp -af php_config.h.cli main/php_config.h
2344 cp -af Makefile.cli Makefile
2345 %{__make} libphp_common.la
2346 %{__make} build-modules
2347
2348 %if %{with apache1}
2349 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2350 %endif
2351
2352 %if %{with apache2}
2353 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2354 %endif
2355
2356 %if %{with litespeed}
2357 %{__make} -f Makefile.litespeed
2358 %endif
2359
2360 # CGI/FCGI
2361 %if %{with cgi}
2362 cp -pf php_config.h.cgi-fcgi main/php_config.h
2363 %{__make} -f Makefile.cgi-fcgi
2364 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2365 %endif
2366
2367 # PHP FPM
2368 %if %{with fpm}
2369 cp -pf php_config.h.fpm main/php_config.h
2370 %{__make} -f Makefile.fpm
2371 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2372 %endif
2373
2374 # CLI
2375 cp -pf php_config.h.cli main/php_config.h
2376 %{__make} -f Makefile.cli
2377 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2378
2379 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2380 ./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"]));'
2381
2382 # Generate stub .ini files for each extension
2383 rm -rf conf.d
2384 install -d conf.d
2385 generate_inifiles() {
2386         for so in modules/*.so; do
2387                 mod=$(basename $so .so)
2388                 ext=extension
2389                 # opcache.so is zend extension
2390                 nm $so | grep -q zend_extension_entry && ext=zend_extension
2391                 conf="$mod.ini"
2392                 # xml needs to be loaded before wddx
2393                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2394                 # pre needs to be loaded before SPL
2395                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2396                 # spl needs to be loaded before mysqli
2397                 [ "$mod" = "spl" ] && conf="SPL.ini"
2398                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2399                 [ "$mod" = "session" ] && conf="Session.ini"
2400                 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2401                 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2402                 echo "+ $conf"
2403                 cat > conf.d/$conf <<-EOF
2404                         ; Enable $mod $ext module
2405                         $ext=$mod.so
2406                 EOF
2407         done
2408 }
2409 generate_inifiles
2410
2411 # Check that the module inner-dependencies are intact
2412 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2413 if grep -v OK dep-tests.log; then
2414         echo >&2 "The results above were not expected"
2415         exit 1
2416 fi
2417
2418 %if %{with gcov}
2419 # Use CLI SAPI
2420 cp -pf php_config.h.cli main/php_config.h
2421 cp -pf Makefile.cli Makefile
2422 %{__make} lcov
2423 # you really don't want to package result of gcov build
2424 exit 1
2425 %endif
2426
2427 cat <<'EOF' > run-tests.sh
2428 #!/bin/sh
2429 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2430 unset TZ LANG LC_ALL || :
2431 %{__make} test \
2432         EXTENSION_DIR=modules \
2433         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2434         RUN_TESTS_SETTINGS="-q $*"
2435 EOF
2436 chmod +x run-tests.sh
2437
2438 %if %{with tests}
2439 # Run tests, using the CLI SAPI
2440 cp -pf php_config.h.cli main/php_config.h
2441 cp -pf Makefile.cli Makefile
2442
2443 ./run-tests.sh -w failed.log -s tests.log
2444
2445 # collect failed tests into cleanup script used in prep.
2446 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2447 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2448         >> %{_sourcedir}/skip-tests.sh
2449
2450 # if on builders, dump test log
2451 tty -q || cat tests.log
2452
2453 test ! -s failed.log
2454 %endif
2455
2456 %install
2457 rm -rf $RPM_BUILD_ROOT
2458 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2459         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2460         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2461         $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2462
2463 cp -pf php_config.h.cli main/php_config.h
2464 cp -pf Makefile.cli Makefile
2465 %{__make} install \
2466         phpbuilddir=%{_libdir}/%{name}/build \
2467         INSTALL_ROOT=$RPM_BUILD_ROOT
2468
2469 # make link relative
2470 ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar
2471
2472 # version suffix
2473 v=$(echo %{version} | cut -d. -f1-2)
2474
2475 # install Apache1 DSO module
2476 %if %{with apache1}
2477 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2478 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2479 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2480 %endif
2481
2482 # install Apache2 DSO module
2483 %if %{with apache2}
2484 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2485 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2486 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2487 %endif
2488
2489 # install litespeed sapi
2490 %if %{with litespeed}
2491 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2492 %endif
2493
2494 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2495
2496 # install CGI/FCGI
2497 %if %{with cgi}
2498 # install-cgi
2499 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2500 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2501 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2502 %endif
2503
2504 # install FCGI PM
2505 %if %{with fpm}
2506 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2507 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2508 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2509 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2510 cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
2511 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2512 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2513 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2514 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2515 %if "%{pld_release}" == "ac"
2516 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2517 %endif
2518
2519 %{__sed} -i -e '
2520         s#/usr/lib/php#%{php_extensiondir}#
2521         s#/etc/php#%{_sysconfdir}#
2522         s#@processname@#%{name}-fpm#g
2523 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf}
2524 %endif
2525
2526 # install Embedded API
2527 %if %{with embed}
2528 %{__make} -f Makefile.embed install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
2529 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2530 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2531 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2532 %endif
2533
2534 # install CLI
2535 # versioned suffix is always installed
2536 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2537 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2538 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2539 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2540
2541 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2542
2543 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2544 cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2545
2546 %if %{with apache1}
2547 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2548 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2549 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2550 %endif
2551
2552 %if %{with apache2}
2553 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2554 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2555 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2556 %endif
2557
2558 # ensure that paths are correct for current php version and arch
2559 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2560 %{__sed} -i -e '
2561         s#/usr/lib/php#%{php_extensiondir}#
2562         s#/etc/php#%{_sysconfdir}#
2563 '
2564
2565 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2566 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2567
2568 # per SAPI ini directories
2569 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2570
2571 # for CLI SAPI only
2572 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2573
2574 # use system automake and {lib,sh}tool
2575 %if "%{pld_release}" != "ac"
2576         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2577         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2578                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2579         done
2580         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2581 %else
2582         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2583         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2584 %endif
2585 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2586 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2587
2588 # for php-pecl-mailparse
2589 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2590 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2591
2592 # tests
2593 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2594 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2595 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2596
2597 # fix install paths, avoid evil rpaths
2598 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2599 %if %{with embed}
2600 # libphp5.la contains our buildroot in dependency_libs
2601 sed -i -e "/dependency_libs/ s,/[^ ]*/libs/libphp_common.la,%{_libdir}/libphp_common.la," $RPM_BUILD_ROOT%{_libdir}/libphp5.la
2602 %endif
2603 # better solution?
2604 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2605
2606 %clean
2607 rm -rf $RPM_BUILD_ROOT
2608
2609 %post -n apache1-mod_%{name}
2610 if [ "$1" = "1" ]; then
2611         %service -q apache restart
2612 fi
2613
2614 %postun -n apache1-mod_%{name}
2615 if [ "$1" = "0" ]; then
2616         %service -q apache restart
2617 fi
2618
2619 %post -n apache-mod_%{name}
2620 if [ "$1" = "1" ]; then
2621         %service -q httpd restart
2622 fi
2623
2624 %postun -n apache-mod_%{name}
2625 if [ "$1" = "0" ]; then
2626         %service -q httpd restart
2627 fi
2628
2629 %pre fpm
2630 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2631
2632 %post fpm
2633 /sbin/chkconfig --add %{name}-fpm
2634 %service %{name}-fpm restart
2635
2636 %preun fpm
2637 if [ "$1" = 0 ]; then
2638         %service %{name}-fpm stop
2639         /sbin/chkconfig --del %{name}-fpm
2640 fi
2641
2642 %postun fpm
2643 if [ "$1" = "0" ]; then
2644         %userremove http
2645 fi
2646
2647 %post   embedded -p /sbin/ldconfig
2648 %postun embedded -p /sbin/ldconfig
2649
2650 %post common
2651 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2652 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2653         TIMEZONE=
2654         . /etc/sysconfig/timezone
2655         if [ "$TIMEZONE" ]; then
2656                 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2657         fi
2658 fi
2659
2660 %posttrans common
2661 # minimizing apache restarts logics. we restart webserver:
2662 #
2663 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2664 # 2. first install of extension (post: $1 = 1)
2665 # 2. uninstall of extension (postun: $1 == 0)
2666 #
2667 # the strict internal deps between extensions (and apache modules) and
2668 # common package are very important for all this to work.
2669
2670 # restart webserver at the end of transaction
2671 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2672 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2673
2674 # common macros called at extension post/postun scriptlet
2675 %define extension_scripts() \
2676 %post %1 \
2677 if [ "$1" = "1" ]; then \
2678         %php_webserver_restart \
2679 fi \
2680 \
2681 %postun %1 \
2682 if [ "$1" = "0" ]; then \
2683         %php_webserver_restart \
2684 fi
2685 %{nil}
2686
2687 # extension scripts defines
2688 %extension_scripts bcmath
2689 %extension_scripts bz2
2690 %extension_scripts calendar
2691 %extension_scripts ctype
2692 %extension_scripts curl
2693 %extension_scripts dba
2694 %extension_scripts dom
2695 %extension_scripts enchant
2696 %extension_scripts exif
2697 %extension_scripts fileinfo
2698 %extension_scripts filter
2699 %extension_scripts ftp
2700 %extension_scripts gd
2701 %extension_scripts gettext
2702 %extension_scripts gmp
2703 %extension_scripts hash
2704 %extension_scripts iconv
2705 %extension_scripts imap
2706 %extension_scripts interbase
2707 %extension_scripts intl
2708 %extension_scripts json
2709 %extension_scripts ldap
2710 %extension_scripts mbstring
2711 %extension_scripts mcrypt
2712 %extension_scripts mssql
2713 %extension_scripts mysql
2714 %extension_scripts mysqli
2715 %extension_scripts mysqlnd
2716 %extension_scripts oci8
2717 %extension_scripts odbc
2718 %extension_scripts opcache
2719 %extension_scripts openssl
2720 %extension_scripts pcre
2721 %extension_scripts pdo
2722 %extension_scripts pdo-dblib
2723 %extension_scripts pdo-firebird
2724 %extension_scripts pdo-oci
2725 %extension_scripts pdo-mysql
2726 %extension_scripts pdo-odbc
2727 %extension_scripts pdo-pgsql
2728 %extension_scripts pdo-sqlite
2729 %extension_scripts pgsql
2730 %extension_scripts phar
2731 %extension_scripts pcntl
2732 %extension_scripts posix
2733 %extension_scripts pspell
2734 %extension_scripts recode
2735 %extension_scripts session
2736 %extension_scripts shmop
2737 %extension_scripts simplexml
2738 %extension_scripts snmp
2739 %extension_scripts soap
2740 %extension_scripts sockets
2741 %extension_scripts spl
2742 %extension_scripts sqlite3
2743 %extension_scripts sybase-ct
2744 %extension_scripts sysvmsg
2745 %extension_scripts sysvsem
2746 %extension_scripts sysvshm
2747 %extension_scripts tidy
2748 %extension_scripts tokenizer
2749 %extension_scripts wddx
2750 %extension_scripts xml
2751 %extension_scripts xmlreader
2752 %extension_scripts xmlrpc
2753 %extension_scripts xmlwriter
2754 %extension_scripts xsl
2755 %extension_scripts zip
2756 %extension_scripts zlib
2757
2758 %if %{with apache1}
2759 %files -n apache1-mod_%{name}
2760 %defattr(644,root,root,755)
2761 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2762 %dir %{_sysconfdir}/apache.d
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2764 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2765 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2766 %endif
2767
2768 %if %{with apache2}
2769 %files -n apache-mod_%{name}
2770 %defattr(644,root,root,755)
2771 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2772 %dir %{_sysconfdir}/apache2handler.d
2773 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2774 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2775 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2776 %endif
2777
2778 %if %{with litespeed}
2779 %files litespeed
2780 %defattr(644,root,root,755)
2781 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2782 %endif
2783
2784 %if %{with cgi}
2785 %files cgi
2786 %defattr(644,root,root,755)
2787 %dir %{_sysconfdir}/cgi-fcgi.d
2788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2789 %attr(755,root,root) %{_bindir}/%{name}.cgi
2790 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2791 %endif
2792
2793 %if %{with embed}
2794 %files embedded
2795 %defattr(644,root,root,755)
2796 %attr(755,root,root) %{_libdir}/libphp5-%{version}.so
2797 %endif
2798
2799 %files cli
2800 %defattr(644,root,root,755)
2801 %dir %{_sysconfdir}/cli.d
2802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2803 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
2804 %{_mandir}/man1/php%{ver_suffix}.1*
2805
2806 %files program
2807 %defattr(644,root,root,755)
2808 %attr(755,root,root) %{_bindir}/php
2809 %{_mandir}/man1/php.1*
2810
2811 %if %{with fpm}
2812 %files fpm
2813 %defattr(644,root,root,755)
2814 %doc sapi/fpm/{CREDITS,LICENSE}
2815 %dir %{_sysconfdir}/fpm.d
2816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
2818 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2819 %{_mandir}/man8/%{name}-fpm.8*
2820 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2821 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2822 %endif
2823
2824 %files phpdbg
2825 %defattr(644,root,root,755)
2826 %attr(755,root,root) %{_bindir}/phpdbg
2827
2828 %files common
2829 %defattr(644,root,root,755)
2830 %doc CREDITS EXTENSIONS LICENSE NEWS README.namespaces UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-*
2831 %dir %{_sysconfdir}
2832 %dir %{_sysconfdir}/conf.d
2833 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2835 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2836 %dir %{php_extensiondir}
2837
2838 %doc ext/session/mod_files.sh
2839
2840 %files devel
2841 %defattr(644,root,root,755)
2842 %doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
2843 %attr(755,root,root) %{_bindir}/phpize
2844 %attr(755,root,root) %{_bindir}/php-config
2845 %attr(755,root,root) %{_libdir}/libphp_common.so
2846 %{_libdir}/libphp_common.la
2847 %{_includedir}/php
2848 %{_libdir}/%{name}/build
2849 %{_mandir}/man1/php-config.1*
2850 %{_mandir}/man1/phpize.1*
2851 %if %{with embed}
2852 # embedded
2853 %{_libdir}/libphp5.so
2854 %{_libdir}/libphp5.la
2855 %endif
2856
2857 %files bcmath
2858 %defattr(644,root,root,755)
2859 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2860 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2861
2862 %files bz2
2863 %defattr(644,root,root,755)
2864 %doc ext/bz2/CREDITS
2865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2866 %attr(755,root,root) %{php_extensiondir}/bz2.so
2867
2868 %files calendar
2869 %defattr(644,root,root,755)
2870 %doc ext/calendar/CREDITS
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2872 %attr(755,root,root) %{php_extensiondir}/calendar.so
2873
2874 %files ctype
2875 %defattr(644,root,root,755)
2876 %doc ext/calendar/CREDITS
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2878 %attr(755,root,root) %{php_extensiondir}/ctype.so
2879
2880 %if %{with curl}
2881 %files curl
2882 %defattr(644,root,root,755)
2883 %doc ext/curl/CREDITS
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2885 %attr(755,root,root) %{php_extensiondir}/curl.so
2886 %endif
2887
2888 %files dba
2889 %defattr(644,root,root,755)
2890 %doc ext/dba/{CREDITS,README}
2891 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2892 %attr(755,root,root) %{php_extensiondir}/dba.so
2893
2894 %files dom
2895 %defattr(644,root,root,755)
2896 %doc ext/dom/{CREDITS,TODO}
2897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2898 %attr(755,root,root) %{php_extensiondir}/dom.so
2899
2900 %if %{with enchant}
2901 %files enchant
2902 %defattr(644,root,root,755)
2903 %doc ext/enchant/{CREDITS,docs/examples}
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
2905 %attr(755,root,root) %{php_extensiondir}/enchant.so
2906 %endif
2907
2908 %files exif
2909 %defattr(644,root,root,755)
2910 %doc ext/exif/CREDITS
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2912 %attr(755,root,root) %{php_extensiondir}/exif.so
2913
2914 %files fileinfo
2915 %defattr(644,root,root,755)
2916 %doc ext/fileinfo/CREDITS
2917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2918 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2919
2920 %if %{with filter}
2921 %files filter
2922 %defattr(644,root,root,755)
2923 %doc ext/filter/{CREDITS,docs/*}
2924 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2925 %attr(755,root,root) %{php_extensiondir}/filter.so
2926 %endif
2927
2928 %files ftp
2929 %defattr(644,root,root,755)
2930 %doc ext/ftp/CREDITS
2931 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2932 %attr(755,root,root) %{php_extensiondir}/ftp.so
2933
2934 %files gd
2935 %defattr(644,root,root,755)
2936 %doc ext/gd/CREDITS
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2938 %attr(755,root,root) %{php_extensiondir}/gd.so
2939
2940 %files gettext
2941 %defattr(644,root,root,755)
2942 %doc ext/gettext/CREDITS
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2944 %attr(755,root,root) %{php_extensiondir}/gettext.so
2945
2946 %files gmp
2947 %defattr(644,root,root,755)
2948 %doc ext/gmp/{CREDITS,README,TODO}
2949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2950 %attr(755,root,root) %{php_extensiondir}/gmp.so
2951
2952 %files hash
2953 %defattr(644,root,root,755)
2954 %doc ext/hash/{CREDITS,README}
2955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2956 %attr(755,root,root) %{php_extensiondir}/hash.so
2957
2958 %files iconv
2959 %defattr(644,root,root,755)
2960 %doc ext/iconv/CREDITS
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2962 %attr(755,root,root) %{php_extensiondir}/iconv.so
2963
2964 %if %{with imap}
2965 %files imap
2966 %defattr(644,root,root,755)
2967 %doc ext/imap/CREDITS
2968 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2969 %attr(755,root,root) %{php_extensiondir}/imap.so
2970 %endif
2971
2972 %if %{with interbase}
2973 %files interbase
2974 %defattr(644,root,root,755)
2975 %doc ext/interbase/CREDITS
2976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2977 %attr(755,root,root) %{php_extensiondir}/interbase.so
2978 %endif
2979
2980 %if %{with intl}
2981 %files intl
2982 %defattr(644,root,root,755)
2983 %doc ext/intl/{CREDITS,TODO}
2984 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
2985 %attr(755,root,root) %{php_extensiondir}/intl.so
2986 %endif
2987
2988 %files json
2989 %defattr(644,root,root,755)
2990 %doc ext/json/CREDITS
2991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2992 %attr(755,root,root) %{php_extensiondir}/json.so
2993
2994 %if %{with ldap}
2995 %files ldap
2996 %defattr(644,root,root,755)
2997 %doc ext/ldap/CREDITS
2998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2999 %attr(755,root,root) %{php_extensiondir}/ldap.so
3000 %endif
3001
3002 %files mbstring
3003 %defattr(644,root,root,755)
3004 %doc ext/mbstring/{CREDITS,README*}
3005 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3006 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3007
3008 %files mcrypt
3009 %defattr(644,root,root,755)
3010 %doc ext/mcrypt/{CREDITS,TODO}
3011 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3012 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
3013
3014 %if %{with mssql}
3015 %files mssql
3016 %defattr(644,root,root,755)
3017 %doc ext/mssql/CREDITS
3018 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3019 %attr(755,root,root) %{php_extensiondir}/mssql.so
3020 %endif
3021
3022 %files mysql
3023 %defattr(644,root,root,755)
3024 %doc ext/mysql/CREDITS
3025 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3026 %attr(755,root,root) %{php_extensiondir}/mysql.so
3027
3028 %if %{with mysqli}
3029 %files mysqli
3030 %defattr(644,root,root,755)
3031 %doc ext/mysqli/{CREDITS,TODO}
3032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3033 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3034 %endif
3035
3036 %if %{with mysqlnd}
3037 %files mysqlnd
3038 %defattr(644,root,root,755)
3039 %doc ext/mysqlnd/CREDITS
3040 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3041 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3042 %endif
3043
3044 %if %{with oci8}
3045 %files oci8
3046 %defattr(644,root,root,755)
3047 %doc ext/oci8/{CREDITS,README}
3048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3049 %attr(755,root,root) %{php_extensiondir}/oci8.so
3050 %endif
3051
3052 %if %{with odbc}
3053 %files odbc
3054 %defattr(644,root,root,755)
3055 %doc ext/odbc/CREDITS
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3057 %attr(755,root,root) %{php_extensiondir}/odbc.so
3058 %endif
3059
3060 %if %{with opcache}
3061 %files opcache
3062 %defattr(644,root,root,755)
3063 %doc ext/opcache/README
3064 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3065 %attr(755,root,root) %{php_extensiondir}/opcache.so
3066 %endif
3067
3068 %if %{with openssl}
3069 %files openssl
3070 %defattr(644,root,root,755)
3071 %doc ext/openssl/{CREDITS,README}
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3073 %attr(755,root,root) %{php_extensiondir}/openssl.so
3074 %endif
3075
3076 %files pcntl
3077 %defattr(644,root,root,755)
3078 %doc ext/pcntl/{CREDITS,README}
3079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3080 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3081
3082 %if %{with pcre}
3083 %files pcre
3084 %defattr(644,root,root,755)
3085 %doc ext/pcre/CREDITS
3086 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3087 %attr(755,root,root) %{php_extensiondir}/pcre.so
3088 %endif
3089
3090 %files pdo
3091 %defattr(644,root,root,755)
3092 %doc ext/pdo/{CREDITS,README,TODO}
3093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3094 %attr(755,root,root) %{php_extensiondir}/pdo.so
3095
3096 %if %{with mssql} || %{with sybase_ct}
3097 %files pdo-dblib
3098 %defattr(644,root,root,755)
3099 %doc ext/pdo_dblib/{CREDITS,README}
3100 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3101 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3102 %endif
3103
3104 %if %{with interbase} && !%{with interbase_inst}
3105 %files pdo-firebird
3106 %defattr(644,root,root,755)
3107 %doc ext/pdo_firebird/CREDITS
3108 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3109 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3110 %endif
3111
3112 %files pdo-mysql
3113 %defattr(644,root,root,755)
3114 %doc ext/pdo_mysql/CREDITS
3115 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3116 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3117
3118 %if %{with oci8}
3119 %files pdo-oci
3120 %defattr(644,root,root,755)
3121 %doc ext/pdo_oci/CREDITS
3122 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3123 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3124 %endif
3125
3126 %if %{with odbc}
3127 %files pdo-odbc
3128 %defattr(644,root,root,755)
3129 %doc ext/pdo_odbc/CREDITS
3130 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3131 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3132 %endif
3133
3134 %if %{with pgsql}
3135 %files pdo-pgsql
3136 %defattr(644,root,root,755)
3137 %doc ext/pdo_pgsql/CREDITS
3138 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3139 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3140 %endif
3141
3142 %if %{with pdo_sqlite}
3143 %files pdo-sqlite
3144 %defattr(644,root,root,755)
3145 %doc ext/pdo_sqlite/CREDITS
3146 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3147 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3148 %endif
3149
3150 %if %{with pgsql}
3151 %files pgsql
3152 %defattr(644,root,root,755)
3153 %doc ext/pgsql/{CREDITS,README}
3154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3155 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3156 %endif
3157
3158 %if %{with phar}
3159 %files phar
3160 %defattr(644,root,root,755)
3161 %doc ext/phar/{CREDITS,TODO}
3162 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3163 %attr(755,root,root) %{php_extensiondir}/phar.so
3164 %attr(755,root,root) %{_bindir}/phar
3165 %attr(755,root,root) %{_bindir}/phar.phar
3166 %{_mandir}/man1/phar.1*
3167 %{_mandir}/man1/phar.phar.1
3168 %endif
3169
3170 %files posix
3171 %defattr(644,root,root,755)
3172 %doc ext/posix/CREDITS
3173 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3174 %attr(755,root,root) %{php_extensiondir}/posix.so
3175
3176 %if %{with pspell}
3177 %files pspell
3178 %defattr(644,root,root,755)
3179 %doc ext/pspell/{CREDITS,README}
3180 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3181 %attr(755,root,root) %{php_extensiondir}/pspell.so
3182 %endif
3183
3184 %files readline
3185 %defattr(644,root,root,755)
3186 %doc ext/readline/{CREDITS,README*}
3187 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3188 %attr(755,root,root) %{php_extensiondir}/readline.so
3189
3190 %if %{with recode}
3191 %files recode
3192 %defattr(644,root,root,755)
3193 %doc ext/recode/CREDITS
3194 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3195 %attr(755,root,root) %{php_extensiondir}/recode.so
3196 %endif
3197
3198 %files session
3199 %defattr(644,root,root,755)
3200 %doc ext/session/CREDITS
3201 %doc ext/session/mod_files.sh
3202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3203 %attr(755,root,root) %{php_extensiondir}/session.so
3204
3205 %files shmop
3206 %defattr(644,root,root,755)
3207 %doc ext/shmop/{CREDITS,README}
3208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3209 %attr(755,root,root) %{php_extensiondir}/shmop.so
3210
3211 %files simplexml
3212 %defattr(644,root,root,755)
3213 %doc ext/simplexml/{CREDITS,README}
3214 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3215 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3216
3217 %if %{with snmp}
3218 %files snmp
3219 %defattr(644,root,root,755)
3220 %doc ext/snmp/CREDITS
3221 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3222 %attr(755,root,root) %{php_extensiondir}/snmp.so
3223 %endif
3224
3225 %files soap
3226 %defattr(644,root,root,755)
3227 %doc ext/soap/{CREDITS,TODO*}
3228 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3229 %attr(755,root,root) %{php_extensiondir}/soap.so
3230
3231 %files sockets
3232 %defattr(644,root,root,755)
3233 %doc ext/sockets/CREDITS
3234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3235 %attr(755,root,root) %{php_extensiondir}/sockets.so
3236
3237 %files spl
3238 %defattr(644,root,root,755)
3239 %doc ext/spl/{CREDITS,README,TODO,examples}
3240 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3241 %attr(755,root,root) %{php_extensiondir}/spl.so
3242
3243 %if %{with sqlite3}
3244 %files sqlite3
3245 %defattr(644,root,root,755)
3246 %doc ext/sqlite3/CREDITS
3247 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3248 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3249 %endif
3250
3251 %if %{with sybase_ct}
3252 %files sybase-ct
3253 %defattr(644,root,root,755)
3254 %doc ext/sybase_ct/CREDITS
3255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3256 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3257 %endif
3258
3259 %files sysvmsg
3260 %defattr(644,root,root,755)
3261 %doc ext/sysvmsg/CREDITS
3262 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3263 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3264
3265 %files sysvsem
3266 %defattr(644,root,root,755)
3267 %doc ext/sysvsem/CREDITS
3268 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3269 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3270
3271 %files sysvshm
3272 %defattr(644,root,root,755)
3273 %doc ext/sysvshm/CREDITS
3274 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3275 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3276
3277 %files tests
3278 %defattr(644,root,root,755)
3279 %dir %{php_data_dir}/tests
3280 %dir %{php_data_dir}/tests/php
3281 %{php_data_dir}/tests/php/basic
3282 %{php_data_dir}/tests/php/classes
3283 %{php_data_dir}/tests/php/func
3284 %{php_data_dir}/tests/php/lang
3285 %{php_data_dir}/tests/php/output
3286 %{php_data_dir}/tests/php/run-test
3287 %{php_data_dir}/tests/php/security
3288 %{php_data_dir}/tests/php/strings
3289 %{php_data_dir}/tests/php/quicktester.inc
3290 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3291
3292 %if %{with tidy}
3293 %files tidy
3294 %defattr(644,root,root,755)
3295 %doc ext/tidy/{CREDITS,README}
3296 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3297 %attr(755,root,root) %{php_extensiondir}/tidy.so
3298 %endif
3299
3300 %files tokenizer
3301 %defattr(644,root,root,755)
3302 %doc ext/tokenizer/CREDITS
3303 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3304 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3305
3306 %if %{with wddx}
3307 %files wddx
3308 %defattr(644,root,root,755)
3309 %doc ext/wddx/CREDITS
3310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3311 %attr(755,root,root) %{php_extensiondir}/wddx.so
3312 %endif
3313
3314 %files xml
3315 %defattr(644,root,root,755)
3316 %doc ext/xml/CREDITS
3317 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3318 %attr(755,root,root) %{php_extensiondir}/xml.so
3319
3320 %files xmlreader
3321 %defattr(644,root,root,755)
3322 %doc ext/xmlreader/{CREDITS,README,TODO,examples}
3323 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3324 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3325
3326 %if %{with xmlrpc}
3327 %files xmlrpc
3328 %defattr(644,root,root,755)
3329 %doc ext/xmlrpc/CREDITS
3330 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3331 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3332 %endif
3333
3334 %files xmlwriter
3335 %defattr(644,root,root,755)
3336 %doc ext/xmlwriter/{CREDITS,TODO}
3337 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3338 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3339
3340 %files xsl
3341 %defattr(644,root,root,755)
3342 %doc ext/xsl/CREDITS
3343 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3344 %attr(755,root,root) %{php_extensiondir}/xsl.so
3345
3346 %files zip
3347 %defattr(644,root,root,755)
3348 %doc ext/zip/{CREDITS,TODO}
3349 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3350 %attr(755,root,root) %{php_extensiondir}/zip.so
3351
3352 %files zlib
3353 %defattr(644,root,root,755)
3354 %doc ext/zlib/CREDITS
3355 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3356 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.403704 seconds and 4 git commands to generate.