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