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