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