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