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