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