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