]> git.pld-linux.org Git - packages/php.git/blob - php.spec
7929418eecf9e94b595c5b8a2eeb0b5799094999
[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             10
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 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
140 #Source9:       ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
141 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
142 Source10:       %{orgname}-fpm.init
143 Source11:       %{orgname}-fpm.logrotate
144 Source12:       %{orgname}-branch.sh
145 Source13:       dep-tests.sh
146 Source14:       skip-tests.sh
147 Patch100:       https://php52-backports.googlecode.com/files/php52-backports-%{backport_date}.patch
148 # Patch100-md5: 80014a8f7894d4e893a8b1292b8b3032
149 Patch0:         %{orgname}-shared.patch
150 Patch1:         %{orgname}-pldlogo.patch
151 Patch2:         %{orgname}-mail.patch
152 Patch3:         %{orgname}-link-libs.patch
153 Patch4:         %{orgname}-libpq_fs_h_path.patch
154 Patch5:         %{orgname}-filter-shared.patch
155 Patch6:         %{orgname}-build_modules.patch
156 Patch7:         %{orgname}-sapi-ini-file.patch
157 Patch8:         %{orgname}-no-metaccld.patch
158 Patch9:         %{orgname}-sh.patch
159 Patch10:        %{orgname}-ini.patch
160 Patch11:        %{orgname}-acam.patch
161 Patch12:        %{orgname}-threads-acfix.patch
162 Patch13:        %{orgname}-tsrmlsfetchgcc2.patch
163 Patch14:        %{orgname}-no_pear_install.patch
164 Patch15:        %{orgname}-zlib.patch
165 Patch16:        %{orgname}-sybase-fix.patch
166 Patch17:        %{orgname}-readline.patch
167 Patch18:        %{orgname}-nohttpd.patch
168 Patch19:        %{orgname}-gd_imagerotate_enable.patch
169 Patch20:        %{orgname}-uint32_t.patch
170 Patch21:        %{orgname}-dba-link.patch
171 Patch22:        %{orgname}-both-apxs.patch
172 Patch23:        %{orgname}-builddir.patch
173 Patch24:        %{orgname}-zlib-for-getimagesize.patch
174 Patch25:        %{orgname}-versioning.patch
175 Patch26:        %{orgname}-pear.patch
176 Patch27:        %{orgname}-config-dir.patch
177 Patch28:        %{orgname}-bug-42952.patch
178 Patch29:        %{orgname}-fcgi-graceful.patch
179 Patch30:        %{orgname}-apr-apu.patch
180 Patch31:        %{orgname}-fcgi-error_log-no-newlines.patch
181 Patch32:        %{orgname}-curl-limit-speed.patch
182 Patch33:        %{orgname}-mime_magic.patch
183 Patch34:        %{orgname}-libtool.patch
184 Patch35:        %{orgname}-tds.patch
185 Patch36:        %{orgname}-mysql-charsetphpini.patch
186 Patch37:        %{orgname}-mysqli-charsetphpini.patch
187 Patch38:        %{orgname}-pdo_mysql-charsetphpini.patch
188 Patch39:        %{orgname}-use-prog_sendmail.patch
189 Patch40:        %{orgname}-fpm.patch
190 Patch41:        %{orgname}-fpm-config.patch
191 Patch42:        %{orgname}-fpm-initdir.patch
192 Patch43:        %{orgname}-silent-session-cleanup.patch
193 Patch44:        %{orgname}-include_path.patch
194 Patch45:        %{orgname}-imap-annotations.patch
195 Patch46:        %{orgname}-imap-myrights.patch
196 Patch47:        suhosin.patch
197 Patch49:        %{orgname}-m4-divert.patch
198 Patch50:        extension-shared-optional-dep.patch
199 Patch51:        spl-shared.patch
200 Patch52:        %{orgname}-libpng.patch
201 Patch53:        %{orgname}-gmp.patch
202 Patch54:        fix-test-run.patch
203 Patch55:        bug-52078-fileinode.patch
204 Patch56:        %{orgname}-krb5.patch
205 Patch57:        php-php_dl.patch
206 Patch58:        php-svn-281516.patch
207 Patch59:        %{orgname}-systzdata.patch
208 Patch60:        bug-60986.patch
209 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
210 Patch65:        system-libzip.patch
211 Patch66:        bug-47930.patch
212 Patch67:        php-db.patch
213 Patch69:        bug-50563.patch
214 Patch70:        php-crypt-null.patch
215 Patch71:        php-apache24.patch
216 Patch72:        exif-crash-bug-36.patch
217 Patch73:        CVE-2013-6420.patch
218 Patch74:        CVE-2013-4073.patch
219 Patch75:        php-secbug-67498.patch
220 Patch76:        CVE-2015-0232.patch
221 # CENTALT patches
222 # Backport from 5.3.6
223 Patch311:       php-5.3.6-bug-47435.patch
224 Patch314:       php-5.3.6-39199.patch
225 # 5.3.7
226 #Patch333: php-5.3.7-bug-54924.patch
227 Patch355:       php-5.3.7-bug-55323.patch
228 # Bug-323016 CVE-2012-0831
229 Patch402:       php-5.2.17-bug-323016.patch
230 URL:            https://code.google.com/p/php52-backports/
231 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
232 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
233 BuildRequires:  autoconf >= 2.53
234 BuildRequires:  automake >= 1.4d
235 BuildRequires:  bison
236 BuildRequires:  bzip2-devel
237 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
238 BuildRequires:  cyrus-sasl-devel
239 BuildRequires:  db-devel >= 4.0
240 BuildRequires:  elfutils-devel
241 %if %{with xmlrpc}
242 %{?with_system_xmlrpc_epi:BuildRequires:    xmlrpc-epi-devel}
243 %endif
244 %{?with_fcgi:BuildRequires:     fcgi-devel}
245 %{?with_fdf:BuildRequires:      fdftk-devel}
246 BuildRequires:  flex
247 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
248 BuildRequires:  freetds-devel
249 %{?with_system_libzip:BuildRequires:    libzip-devel >= 0.10-3}
250 %endif
251 BuildRequires:  freetype-devel >= 2.0
252 %if %{with system_gd}
253 BuildRequires:  gd-devel >= 2.0.28-4
254 BuildRequires:  gd-devel(imagerotate) = 5.2.0
255 %endif
256 BuildRequires:  gdbm-devel
257 BuildRequires:  gmp-devel
258 %{?with_imap:BuildRequires:     imap-devel >= 1:2007e-2}
259 BuildRequires:  libjpeg-devel
260 BuildRequires:  libltdl-devel >= 1.4
261 BuildRequires:  libmcrypt-devel >= 2.4.4
262 BuildRequires:  libpng-devel >= 1.0.8
263 BuildRequires:  libtiff-devel
264 %if "%{pld_release}" != "ac"
265 BuildRequires:  libtool >= 2:2.2
266 %else
267 BuildRequires:  libtool
268 %endif
269 BuildRequires:  libwrap-devel
270 BuildRequires:  libxml2-devel >= 1:2.7.6-4
271 BuildRequires:  libxslt-devel >= 1.1.0
272 %{?with_mhash:BuildRequires:    mhash-devel}
273 %{?with_snmp:%{?with_tests:BuildRequires:       mibs-net-snmp}}
274 %{?with_ming:BuildRequires:     ming-devel >= 0.3}
275 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
276 BuildRequires:  mysql-devel >= 4.0.0
277 %{?with_mysqli:BuildRequires:   mysql-devel >= 4.1}
278 BuildRequires:  ncurses-ext-devel
279 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
280 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
281 %if %{with openssl} || %{with ldap}
282 BuildRequires:  openssl-devel >= 0.9.7d
283 %endif
284 %{?with_oci:%{?with_instantclient:BuildRequires:        oracle-instantclient-devel}}
285 BuildRequires:  pam-devel
286 %{?with_pcre:BuildRequires:     pcre-devel >= 6.6}
287 BuildRequires:  pkgconfig
288 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
289 %{?with_pgsql:BuildRequires:    postgresql-devel}
290 BuildRequires:  readline-devel
291 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
292 BuildRequires:  rpm >= 4.4.9-56
293 BuildRequires:  rpm-build >= 4.4.0
294 BuildRequires:  rpmbuild(macros) >= 1.519
295 %{?with_sqlite:BuildRequires:   sqlite-devel}
296 %{?with_sqlite:BuildRequires:   sqlite3-devel}
297 BuildRequires:  t1lib-devel
298 %{?with_tidy:BuildRequires:     tidy-devel}
299 %{?with_odbc:BuildRequires:     unixODBC-devel}
300 BuildRequires:  zlib-devel >= 1.0.9
301 %if %{with apache1}
302 BuildRequires:  apache1-devel
303 %endif
304 %if %{with apache2}
305 BuildRequires:  apache-devel >= 2.0.52-2
306 BuildRequires:  apr-devel >= 1:1.0.0
307 BuildRequires:  apr-util-devel >= 1:1.0.0
308 %endif
309 %if %{with fpm}
310 BuildRequires:  judy-devel
311 BuildRequires:  libevent-devel >= 1.4.7-3
312 %endif
313 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
314
315 %define         php_sysconfdir          /etc/%{name}
316 %define         php_extensiondir        %{_libdir}/%{name}
317 %define         _sysconfdir                     %{php_sysconfdir}
318
319 # must be in sync with source. extra check ensuring that it is so is done in %%build
320 %define         php_api_version         20041225
321 %define         zend_module_api         20060613
322 %define         zend_extension_api      220060519
323 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
324 %define         php_debug               %{!?debug:0}%{?debug:1}
325
326 %if %{with oci}
327 # ORACLE_HOME is required for oci8 ext to build
328 %define _preserve_env %_preserve_env_base ORACLE_HOME
329 %endif
330
331 %description
332 PHP is an HTML-embedded scripting language. PHP attempts to make it
333 easy for developers to write dynamically generated web pages. PHP also
334 offers built-in database integration for several commercial and
335 non-commercial database management systems, so writing a
336 database-enabled web page with PHP is fairly simple. The most common
337 use of PHP coding is probably as a replacement for CGI scripts. The
338 mod_php module enables the Apache web server to understand and process
339 the embedded PHP language in web pages. This package contains PHP
340 version %{version}.
341
342 %description -l fr.UTF-8
343 PHP est un langage de script embarque dans le HTM. PHP essaye de
344 rendre simple aux developpeurs d'ecrire des pages web generees
345 dynamiquement. PHP incorpore egalement une integration avec plusieurs
346 systemes de gestion de bases de donnees commerciaux et
347 non-connerciaux, qui rent facile la creation de pages web liees avec
348 des bases de donnees. L'utilisation la plus commune de PHP est
349 probablement en remplacement de scripts CGI. Le module mod_php permet
350 au serveur web Apache de comprendre et de traiter le langage PHP
351 integre dans des pages web. Ce package contient PHP version
352 %{version}.
353
354 %description -l pl.UTF-8
355 PHP jest językiem skryptowym, którego polecenia umieszcza się w
356 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
357 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
358 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
359 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
360 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
361 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
362 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
363 %{version}.
364
365 %description -l pt_BR.UTF-8
366 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
367 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
368 com algumas características únicas, específicas ao PHP. O objetivo da
369 linguagem é permitir que desenvolvedores web escrevam páginas
370 dinamicamente geradas de forma rápida.
371
372 %description -l ru.UTF-8
373 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
374 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
375 для работы с базами данных относительно просто. Наиболее популярное
376 использование PHP - замена для CGI скриптов.
377
378 %description -l uk.UTF-8
379 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
380 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
381 роботи з базами даних є доволі простим. Найбільш популярне
382 використання PHP - заміна для CGI скриптів.
383
384 %package -n apache1-mod_%{name}
385 Summary:        PHP DSO module for Apache 1.3.x
386 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
387 Group:          Development/Languages/PHP
388 Requires(triggerpostun):        sed >= 4.0
389 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
390 Requires:       apache1(EAPI) >= 1.3.33-2
391 Requires:       apache1-mod_mime
392 Provides:       webserver(php) = %{version}
393 Obsoletes:      apache-mod_php < 1:4.1.1
394 Obsoletes:      phpfi
395
396 %description -n apache1-mod_%{name}
397 PHP as DSO module for Apache 1.3.x.
398
399 %description -n apache1-mod_%{name} -l pl.UTF-8
400 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
401
402 %package -n apache-mod_%{name}
403 Summary:        PHP DSO module for Apache 2.x
404 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
405 Group:          Development/Languages/PHP
406 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
407 Requires:       apache(modules-api) = %{apache_modules_api}
408 Requires:       apache-mod_mime
409 Provides:       webserver(php) = %{version}
410 Obsoletes:      phpfi
411
412 %description -n apache-mod_%{name}
413 PHP as DSO module for Apache 2.x.
414
415 %description -n apache-mod_%{name} -l pl.UTF-8
416 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
417
418 %package fcgi
419 Summary:        php as FastCGI program
420 Summary(pl.UTF-8):      php jako program FastCGI
421 Group:          Development/Languages/PHP
422 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
423 Provides:       php(fcgi)
424 Provides:       webserver(php) = %{version}
425
426 %description fcgi
427 php as FastCGI program.
428
429 %description fcgi -l pl.UTF-8
430 php jako program FastCGI.
431
432 %package cgi
433 Summary:        PHP as CGI/FastCGI program
434 Summary(pl.UTF-8):      PHP jako program CGI/FastCGI
435 Group:          Development/Languages/PHP
436 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
437 Provides:       php(cgi)
438 Provides:       webserver(php) = %{version}
439 %if "%{pld_release}" != "ac"
440 Conflicts:      logrotate < 3.8.0
441 %endif
442
443 %description cgi
444 php as CGI program.
445
446 %description cgi -l pl.UTF-8
447 php jako program CGI.
448
449 %package cli
450 Summary:        PHP as CLI interpreter
451 Summary(pl.UTF-8):      PHP jako interpreter działający z linii poleceń
452 Group:          Development/Languages/PHP
453 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
454
455 %description cli
456 PHP as CLI interpreter.
457
458 %description cli -l pl.UTF-8
459 PHP jako interpreter działający z linii poleceń.
460
461 %package program
462 Summary:        /usr/bin/php symlink
463 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
464 Group:          Development/Languages/PHP
465 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
466 Obsoletes:      /usr/bin/php
467
468 %description program
469 Package providing /usr/bin/php symlink to PHP CLI.
470
471 %description program -l pl.UTF-8
472 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
473
474 %package fpm
475 Summary:        PHP FastCGI Process Manager
476 Summary(pl.UTF-8):      PHP FastCGI Process Manager - zarządca procesów FastCGI
477 Group:          Development/Languages/PHP
478 URL:            http://www.php-fpm.org/
479 Requires(post,preun):   /sbin/chkconfig
480 Requires(postun):       /usr/sbin/userdel
481 Requires(pre):  /bin/id
482 Requires(pre):  /usr/sbin/useradd
483 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
484 Requires:       libevent >= 1.4.7-3
485 Requires:       rc-scripts
486 Provides:       user(http)
487 Provides:       webserver(php) = %{version}
488
489 %description fpm
490 PHP FastCGI Process Manager.
491
492 %description fpm -l pl.UTF-8
493 PHP FastCGI Process Manager - zarządca procesów FastCGI.
494
495 %package common
496 Summary:        Common files needed by both Apache modules and CGI/CLI SAPI-s
497 Summary(pl.UTF-8):      Wspólne pliki dla modułu Apache'a i programu CGI
498 Summary(ru.UTF-8):      Разделяемые библиотеки для PHP
499 Summary(uk.UTF-8):      Бібліотеки спільного використання для PHP
500 Group:          Libraries
501 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
502 Requires:       glibc >= 6:2.3.5
503 Requires:       php-dirs >= 1.4
504 Requires:       rpm-whiteout >= 1.28
505 Requires:       tzdata
506 Provides:       %{name}(debug) = %{php_debug}
507 Provides:       %{name}(modules_api) = %{php_api_version}
508 Provides:       %{name}(thread-safety) = %{zend_zts}
509 Provides:       %{name}(zend_extension_api) = %{zend_extension_api}
510 Provides:       %{name}(zend_module_api) = %{zend_module_api}
511 Provides:       %{name}-core
512 Provides:       %{name}-date
513 Provides:       %{name}-ereg
514 %{?with_zend_multibyte:Provides:        %{name}-mbstring = %{epoch}:%{version}-%{release}}
515 Provides:       %{name}-overload
516 Provides:       %{name}-reflection
517 Provides:       %{name}-standard
518 Provides:       php(core) = %{version}
519 Provides:       php(date)
520 Provides:       php(ereg)
521 Provides:       php(libxml)
522 %{?with_zend_multibyte:Provides:        php(mbstring)}
523 Provides:       php(modules_api) = %{php_api_version}
524 Provides:       php(overload)
525 Provides:       php(reflection)
526 Provides:       php(standard)
527 # ensure backward compatibility for Titanium
528 # to be dropped in future but ask Titanium RM before doing so
529 %if "%{pld_release}" == "ti"
530 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
531 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
532 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
533 %endif
534 %if "%{pld_release}" == "ac"
535 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
536 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
537 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
538 %endif
539 %{!?with_mysqlnd:Obsoletes:     php-mysqlnd}
540 %{?with_pcre:%requires_ge_to    pcre pcre-devel}
541 Suggests:       browscap
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 %patch76 -p1
1942
1943 # Bugfix backport from 5.3.6
1944 %patch311 -p1 -b .bug-47435
1945 %patch314 -p1 -b .bug-39199
1946 # Bugfix backport from 5.3.7
1947 #accert %patch333 -p1 -b .bug-54924
1948 #soap %patch355 -p1 -b .bug-55323
1949 # causes regression -> magic_quotes_gpc setting cannot be changed
1950 #%%patch402 -p1 -b .bug-323016
1951
1952 # conflict seems to be resolved by recode patches
1953 rm -f ext/recode/config9.m4
1954
1955 # remove all bundled libraries not to link with them accidentally
1956 #rm -rf ext/sqlite/libsqlite
1957 #rm -rf ext/bcmath/libbcmath
1958 #rm -rf ext/date/lib
1959 #rm -rf ext/dba/libcdb
1960 #rm -rf ext/dba/libflatfile
1961 #rm -rf ext/dba/libinifile
1962 #rm -rf ext/gd/libgd
1963 #rm -rf ext/mbstring/libmbfl
1964 #rm -rf ext/mbstring/oniguruma
1965 rm -rf ext/pcre/pcrelib
1966 rm -rf ext/pdo_sqlite/sqlite
1967 #rm -rf ext/soap/interop
1968 %if %{with system_xmlrpc_epi}
1969 rm -rf ext/xmlrpc/libxmlrpc
1970 %endif
1971
1972 %ifarch ppc ppc64
1973 # this test hungs on ac-ppc
1974 #mv ext/reflection/tests/007.php{,ignore}
1975 # this test gets killed by itself
1976 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1977 %endif
1978
1979 cp -af Zend/LICENSE{,.Zend}
1980 install -p %{SOURCE13} dep-tests.sh
1981
1982 # disable broken tests
1983 # says just "Terminated" twice and fails
1984 mv sapi/cli/tests/022.phpt{,.broken}
1985
1986 sh -xe %{_sourcedir}/skip-tests.sh
1987
1988 %build
1989 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1990 if [ $API != %{php_api_version} ]; then
1991         echo "Set %%define php_api_version to $API and re-run."
1992         exit 1
1993 fi
1994
1995 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1996 if [ $API != %{zend_module_api} ]; then
1997         echo "Set %%define zend_module_api to $API and re-run."
1998         exit 1
1999 fi
2000
2001 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2002 if [ $API != %{zend_extension_api} ]; then
2003         echo "Set %%define zend_extension_api to $API and re-run."
2004         exit 1
2005 fi
2006
2007 export EXTENSION_DIR="%{php_extensiondir}"
2008 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
2009         rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
2010         %{__libtoolize}
2011         %{__aclocal}
2012         cp -f /usr/share/automake/config.* .
2013         ./buildconf --force
2014         touch _built-conf
2015 fi
2016 export PROG_SENDMAIL="/usr/lib/sendmail"
2017
2018 sapis="
2019 %if %{with fcgi}
2020 fcgi
2021 %endif
2022 %if %{with fpm}
2023 fpm
2024 %endif
2025 cgi cli
2026 %if %{with apache1}
2027 apxs1
2028 %endif
2029 %if %{with apache2}
2030 apxs2
2031 %endif
2032 "
2033 for sapi in $sapis; do
2034         : SAPI $sapi
2035         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2036
2037         sapi_args=''
2038         case $sapi in
2039         cgi)
2040                 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2041                 ;;
2042         cli)
2043                 sapi_args='--disable-cgi'
2044                 ;;
2045         fcgi)
2046                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2047                 ;;
2048         fpm)
2049                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2050                 ;;
2051         apxs1)
2052                 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2053                 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2054                 ;;
2055         apxs2)
2056                 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2057                 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2058                 ;;
2059         esac
2060
2061         %configure \
2062         FORCE_APACHE_VERSION="${apache_ver}" \
2063         $sapi_args \
2064 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2065         --cache-file=config.cache \
2066 %endif
2067         --with-libdir=%{_lib} \
2068         --with-config-file-path=%{_sysconfdir} \
2069         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2070         --with-exec-dir=%{_bindir} \
2071         --with-system-tzdata \
2072         --%{!?debug:dis}%{?debug:en}able-debug \
2073         %{?with_zts:--enable-maintainer-zts} \
2074         %{?with_suhosin:--enable-suhosin} \
2075         %{?with_zend_multibyte:--enable-zend-multibyte} \
2076         --enable-inline-optimization \
2077         --enable-bcmath=shared \
2078         --enable-calendar=shared \
2079         --enable-ctype=shared \
2080         --enable-dba=shared \
2081         --enable-dom=shared \
2082         --enable-exif=shared \
2083         --enable-ftp=shared \
2084         --enable-gd-native-ttf \
2085         %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2086         --enable-libxml \
2087         --enable-magic-quotes \
2088         --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2089         --enable-mbregex \
2090         --enable-pcntl=shared \
2091         --enable-pdo=shared \
2092         --enable-json=shared \
2093         --enable-hash=shared \
2094         --enable-xmlwriter=shared \
2095 %if %{with fpm}
2096         --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2097         --with-fpm-log=/var/log/php/%{name}-fpm.log \
2098         --with-fpm-pid=/var/run/%{name}-fpm.pid \
2099 %endif
2100 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2101         --with-pdo-dblib=shared \
2102 %endif
2103 %if %{with interbase} && !%{with interbase_inst}
2104         --with-pdo-firebird=shared,/usr \
2105 %endif
2106         --with-pdo-mysql=shared \
2107         %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2108         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2109         %{?with_pgsql:--with-pdo-pgsql=shared} \
2110         %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2111         --enable-posix=shared \
2112         --enable-reflection \
2113         --enable-shared \
2114         --enable-session=shared \
2115         --enable-shmop=shared \
2116         --enable-simplexml=shared \
2117         --enable-spl=shared \
2118         --enable-sysvmsg=shared \
2119         --enable-sysvsem=shared \
2120         --enable-sysvshm=shared \
2121         --enable-safe-mode \
2122         --enable-soap=shared \
2123         --enable-sockets=shared \
2124         --enable-tokenizer=shared \
2125         --enable-ucd-snmp-hack \
2126         %{?with_wddx:--enable-wddx=shared} \
2127         --enable-xml=shared \
2128         --enable-xmlreader=shared \
2129         --with-bz2=shared \
2130         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2131         --with-db4 \
2132         --enable-dbase=shared \
2133         --without-libexpat-dir \
2134         %{?with_fdf:--with-fdftk=shared} \
2135         --with-iconv=shared \
2136         --with-freetype-dir=shared \
2137         --with-gettext=shared \
2138         --with-gd=shared%{?with_system_gd:,/usr} \
2139         --with-gdbm \
2140         --with-gmp=shared \
2141         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2142         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2143         --with-jpeg-dir=/usr \
2144         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2145         --with-mcrypt=shared \
2146         %{?with_mhash:--with-mhash=shared} \
2147         %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2148         %{?with_ming:--with-ming=shared} \
2149         %{?with_mm:--with-mm} \
2150         %{?with_mssql:--with-mssql=shared} \
2151         --with-mysql=shared,/usr \
2152         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2153         %{?with_mysqli:--with-mysqli=shared} \
2154         --with-ncurses=shared \
2155         %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2156         %{?with_openssl:--with-openssl=shared} \
2157         --with-kerberos \
2158         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2159         %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2160         --with-pear=%{php_pear_dir} \
2161         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2162         --with-png-dir=/usr \
2163         %{?with_pspell:--with-pspell=shared} \
2164         --with-readline=shared \
2165         %{?with_recode:--with-recode=shared} \
2166         --with-regex=php \
2167         %{?with_snmp:--with-snmp=shared} \
2168         %{?with_sybase:--with-sybase=shared,/usr} \
2169         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2170         %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2171         --with-t1lib=shared \
2172         %{?with_tidy:--with-tidy=shared} \
2173         %{?with_odbc:--with-unixODBC=shared,/usr} \
2174         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2175         --with-xsl=shared \
2176         --with-zlib=shared \
2177         --with-zlib-dir=shared,/usr \
2178         %{?with_system_libzip:--with-libzip} \
2179         --enable-zip=shared,/usr \
2180
2181         cp -f Makefile Makefile.$sapi
2182         cp -f main/php_config.h php_config.h.$sapi
2183         cp -f config.log config.log.$sapi
2184 done
2185
2186 # as we build each SAPI in own make, adjust php-config.in forehead
2187 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2188 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2189
2190 # must make this first, so modules can link against it.
2191 %{__make} libphp_common.la
2192 %{__make} build-modules
2193
2194 %if %{with apache1}
2195 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2196 %endif
2197
2198 %if %{with apache2}
2199 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2200 %endif
2201
2202 # CGI
2203 cp -af php_config.h.cgi main/php_config.h
2204 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2205 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2206 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2207
2208 # FCGI
2209 %if %{with fcgi}
2210 cp -af php_config.h.fcgi main/php_config.h
2211 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2212 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2213 cp -r sapi/cgi sapi/fcgi
2214 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2215 %endif
2216
2217 %if %{with fpm}
2218 cp -af php_config.h.fpm main/php_config.h
2219 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2220 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2221 cp -r sapi/cgi sapi/fpm
2222 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2223 %endif
2224
2225 # CLI
2226 cp -af php_config.h.cli main/php_config.h
2227 %{__make} sapi/cli/php -f Makefile.cli
2228 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2229
2230 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2231 ./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"]));'
2232
2233 # Generate stub .ini files for each extension
2234 rm -rf conf.d
2235 install -d conf.d
2236 generate_inifiles() {
2237         for so in modules/*.so; do
2238                 mod=$(basename $so .so)
2239                 conf="$mod.ini"
2240                 # xml needs to be loaded before wddx
2241                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2242                 # pre needs to be loaded before SPL
2243                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2244                 # spl needs to be loaded before mysqli
2245                 [ "$mod" = "spl" ] && conf="SPL.ini"
2246                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2247                 [ "$mod" = "session" ] && conf="Session.ini"
2248                 echo "+ $conf"
2249                 cat > conf.d/$conf <<-EOF
2250                         ; Enable $mod extension module
2251                         extension=$mod.so
2252                 EOF
2253         done
2254 }
2255 generate_inifiles
2256
2257 # Check that the module inner-dependencies are intact
2258 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2259 if grep -v OK dep-tests.log; then
2260         echo >&2 "The results above were not expected"
2261 # TEMP: ac-i386 builder is broken
2262 %ifnarch i386
2263         exit 1
2264 %endif
2265 fi
2266
2267
2268 %if %{with tests}
2269 # Run tests, using the CLI SAPI
2270 cp -af php_config.h.cli main/php_config.h
2271 cp -af Makefile.cli Makefile
2272 # sybase modules collide, remove one
2273 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2274
2275 cat <<'EOF' > run-tests.sh
2276 #!/bin/sh
2277 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2278 unset TZ LANG LC_ALL || :
2279 %{__make} test \
2280         EXTENSION_DIR=. \
2281         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2282         RUN_TESTS_SETTINGS="-q $*"
2283 EOF
2284 chmod +x run-tests.sh
2285 ./run-tests.sh -w failed.log -s test.log
2286
2287 # collect failed tests into cleanup script used in prep.
2288 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2289 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2290         >> %{_sourcedir}/skip-tests.sh
2291
2292 failed=$(wc -l < tests-failed.log)
2293 if [ "$failed" != 0 ]; then
2294         exit 1
2295 fi
2296 %endif
2297
2298 %install
2299 rm -rf $RPM_BUILD_ROOT
2300 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2301         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2302         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2303         $RPM_BUILD_ROOT%{_mandir}/man1 \
2304
2305 # install the Apache modules' files
2306 %{__make} -j1 install-headers install-build install-modules install-programs \
2307         phpbuilddir=%{_libdir}/%{name}/build \
2308         INSTALL_ROOT=$RPM_BUILD_ROOT
2309
2310 # version suffix
2311 v=$(echo %{version} | cut -d. -f1-2)
2312
2313 # install Apache1 DSO module
2314 %if %{with apache1}
2315 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2316 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2317 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2318 %endif
2319
2320 # install Apache2 DSO module
2321 %if %{with apache2}
2322 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2323 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2324 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2325 %endif
2326
2327 # install CGI
2328 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2329
2330 # install FCGI
2331 %if %{with fcgi}
2332 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2333 %endif
2334
2335 # install FCGI PM
2336 %if %{with fpm}
2337 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2338 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2339 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2340 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2341 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2342 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2343 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2344 %if "%{pld_release}" == "ac"
2345 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2346 %endif
2347
2348 %{__sed} -i -e '
2349         s#/usr/lib/php#%{php_extensiondir}#
2350         s#/etc/php#%{_sysconfdir}#
2351         s#@processname@#%{name}-fpm#g
2352 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2353 %endif
2354
2355 # install CLI
2356 # without suffix, install as php.cli
2357 %if "%{?php_suffix}" == ""
2358 %define phpfn %{name}.cli
2359 %else
2360 %define phpfn %{name}
2361 %endif
2362 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2363 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2364 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2365 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2366 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2367
2368 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2369 %if %{with fcgi}
2370 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2371 %endif
2372 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2373 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.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 %triggerpostun common -- %{name}-common < 4:5.2.17-20130717.9, php-common < 4:5.2.17-20130717.9
2497 # switch to browscap package if the ini file has original value
2498 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2499 # disable browscap, if optional package not present
2500 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2501         %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2502 fi
2503
2504 # common macros called at extension post/postun scriptlet
2505 %define extension_scripts() \
2506 %post %1 \
2507 if [ "$1" = "1" ]; then \
2508         %php_webserver_restart \
2509 fi \
2510 \
2511 %postun %1 \
2512 if [ "$1" = "0" ]; then \
2513         %php_webserver_restart \
2514 fi
2515 %{nil}
2516
2517 # extension scripts defines
2518 %extension_scripts bcmath
2519 %extension_scripts bz2
2520 %extension_scripts calendar
2521 %extension_scripts ctype
2522 %extension_scripts curl
2523 %extension_scripts dba
2524 %extension_scripts dbase
2525 %extension_scripts dom
2526 %extension_scripts exif
2527 %extension_scripts fdf
2528 %extension_scripts filter
2529 %extension_scripts ftp
2530 %extension_scripts gd
2531 %extension_scripts gettext
2532 %extension_scripts gmp
2533 %extension_scripts hash
2534 %extension_scripts iconv
2535 %extension_scripts imap
2536 %extension_scripts interbase
2537 %extension_scripts json
2538 %extension_scripts ldap
2539 %extension_scripts mbstring
2540 %extension_scripts mcrypt
2541 %extension_scripts mhash
2542 %extension_scripts mime_magic
2543 %extension_scripts ming
2544 %extension_scripts mssql
2545 %extension_scripts mysql
2546 %extension_scripts mysqli
2547 %extension_scripts oci8
2548 %extension_scripts odbc
2549 %extension_scripts openssl
2550 %extension_scripts pcntl
2551 %extension_scripts pcre
2552 %extension_scripts pdo
2553 %extension_scripts pdo-dblib
2554 %extension_scripts pdo-firebird
2555 %extension_scripts pdo-oci
2556 %extension_scripts pdo-mysql
2557 %extension_scripts pdo-odbc
2558 %extension_scripts pdo-pgsql
2559 %extension_scripts pdo-sqlite
2560 %extension_scripts pgsql
2561 %extension_scripts posix
2562 %extension_scripts pspell
2563 %extension_scripts recode
2564 %extension_scripts session
2565 %extension_scripts simplexml
2566 %extension_scripts shmop
2567 %extension_scripts snmp
2568 %extension_scripts soap
2569 %extension_scripts sockets
2570 %extension_scripts spl
2571 %extension_scripts sqlite
2572 %extension_scripts sybase
2573 %extension_scripts sybase-ct
2574 %extension_scripts sysvmsg
2575 %extension_scripts sysvsem
2576 %extension_scripts sysvshm
2577 %extension_scripts tidy
2578 %extension_scripts tokenizer
2579 %extension_scripts wddx
2580 %extension_scripts xml
2581 %extension_scripts xmlreader
2582 %extension_scripts xmlrpc
2583 %extension_scripts xmlwriter
2584 %extension_scripts xsl
2585 %extension_scripts zip
2586 %extension_scripts zlib
2587
2588 %if %{with apache1}
2589 %files -n apache1-mod_%{name}
2590 %defattr(644,root,root,755)
2591 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2592 %dir %{_sysconfdir}/apache.d
2593 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2594 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2595 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2596 %endif
2597
2598 %if %{with apache2}
2599 %files -n apache-mod_%{name}
2600 %defattr(644,root,root,755)
2601 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2602 %dir %{_sysconfdir}/apache2handler.d
2603 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2604 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2605 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2606 %endif
2607
2608 %if %{with fcgi}
2609 %files fcgi
2610 %defattr(644,root,root,755)
2611 %doc sapi/cgi/README.FastCGI
2612 %dir %{_sysconfdir}/cgi-fcgi.d
2613 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2614 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2615 %endif
2616
2617 %files cgi
2618 %defattr(644,root,root,755)
2619 %dir %{_sysconfdir}/cgi.d
2620 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2621 %attr(755,root,root) %{_bindir}/%{name}.cgi
2622
2623 %files cli
2624 %defattr(644,root,root,755)
2625 %dir %{_sysconfdir}/cli.d
2626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2627 %attr(755,root,root) %{_bindir}/%{phpfn}
2628 %{_mandir}/man1/%{phpfn}.1*
2629
2630 %files program
2631 %defattr(644,root,root,755)
2632 %attr(755,root,root) %{_bindir}/php
2633 %{_mandir}/man1/php.1*
2634
2635 %if %{with fpm}
2636 %files fpm
2637 %defattr(644,root,root,755)
2638 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2639 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2640 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2641 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2642 %endif
2643
2644 %files common
2645 %defattr(644,root,root,755)
2646 %doc php.ini-*
2647 %doc CREDITS Zend/ZEND_CHANGES
2648 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2649 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2650
2651 %dir %{_sysconfdir}
2652 %dir %{_sysconfdir}/conf.d
2653 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2654 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2655 %dir %{php_extensiondir}
2656
2657 %files devel
2658 %defattr(644,root,root,755)
2659 %doc README.UNIX-BUILD-SYSTEM
2660 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2661 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2662 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2663 %attr(755,root,root) %{_bindir}/phpize
2664 %attr(755,root,root) %{_bindir}/php-config
2665 %attr(755,root,root) %{_libdir}/libphp_common.so
2666 %{_libdir}/libphp_common.la
2667 %{_includedir}/php
2668 %{_libdir}/%{name}/build
2669 %{_mandir}/man1/php-config.1*
2670 %{_mandir}/man1/phpize.1*
2671
2672 %files bcmath
2673 %defattr(644,root,root,755)
2674 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2675 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2676
2677 %files bz2
2678 %defattr(644,root,root,755)
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2680 %attr(755,root,root) %{php_extensiondir}/bz2.so
2681
2682 %files calendar
2683 %defattr(644,root,root,755)
2684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2685 %attr(755,root,root) %{php_extensiondir}/calendar.so
2686
2687 %files ctype
2688 %defattr(644,root,root,755)
2689 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2690 %attr(755,root,root) %{php_extensiondir}/ctype.so
2691
2692 %if %{with curl}
2693 %files curl
2694 %defattr(644,root,root,755)
2695 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2696 %attr(755,root,root) %{php_extensiondir}/curl.so
2697 %endif
2698
2699 %files dba
2700 %defattr(644,root,root,755)
2701 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2702 %attr(755,root,root) %{php_extensiondir}/dba.so
2703
2704 %files dbase
2705 %defattr(644,root,root,755)
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2707 %attr(755,root,root) %{php_extensiondir}/dbase.so
2708
2709 %files dom
2710 %defattr(644,root,root,755)
2711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2712 %attr(755,root,root) %{php_extensiondir}/dom.so
2713
2714 %if %{with fdf}
2715 %files fdf
2716 %defattr(644,root,root,755)
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2718 %attr(755,root,root) %{php_extensiondir}/fdf.so
2719 %endif
2720
2721 %if %{with filter}
2722 %files filter
2723 %defattr(644,root,root,755)
2724 %doc README.input_filter
2725 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2726 %attr(755,root,root) %{php_extensiondir}/filter.so
2727 %endif
2728
2729 %files exif
2730 %defattr(644,root,root,755)
2731 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2732 %attr(755,root,root) %{php_extensiondir}/exif.so
2733
2734 %files ftp
2735 %defattr(644,root,root,755)
2736 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2737 %attr(755,root,root) %{php_extensiondir}/ftp.so
2738
2739 %files gd
2740 %defattr(644,root,root,755)
2741 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2742 %attr(755,root,root) %{php_extensiondir}/gd.so
2743
2744 %files gettext
2745 %defattr(644,root,root,755)
2746 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2747 %attr(755,root,root) %{php_extensiondir}/gettext.so
2748
2749 %files gmp
2750 %defattr(644,root,root,755)
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2752 %attr(755,root,root) %{php_extensiondir}/gmp.so
2753
2754 %files hash
2755 %defattr(644,root,root,755)
2756 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2757 %attr(755,root,root) %{php_extensiondir}/hash.so
2758
2759 %files iconv
2760 %defattr(644,root,root,755)
2761 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2762 %attr(755,root,root) %{php_extensiondir}/iconv.so
2763
2764 %if %{with imap}
2765 %files imap
2766 %defattr(644,root,root,755)
2767 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2768 %attr(755,root,root) %{php_extensiondir}/imap.so
2769 %endif
2770
2771 %if %{with interbase}
2772 %files interbase
2773 %defattr(644,root,root,755)
2774 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2775 %attr(755,root,root) %{php_extensiondir}/interbase.so
2776 %endif
2777
2778 %files json
2779 %defattr(644,root,root,755)
2780 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2781 %attr(755,root,root) %{php_extensiondir}/json.so
2782
2783 %if %{with ldap}
2784 %files ldap
2785 %defattr(644,root,root,755)
2786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2787 %attr(755,root,root) %{php_extensiondir}/ldap.so
2788 %endif
2789
2790 %if %{without zend_multibyte}
2791 %files mbstring
2792 %defattr(644,root,root,755)
2793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2794 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2795 %endif
2796
2797 %files mcrypt
2798 %defattr(644,root,root,755)
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2800 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2801
2802 %if %{with mhash}
2803 %files mhash
2804 %defattr(644,root,root,755)
2805 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2806 %attr(755,root,root) %{php_extensiondir}/mhash.so
2807 %endif
2808
2809 %if %{with mime_magic}
2810 %files mime_magic
2811 %defattr(644,root,root,755)
2812 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2813 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2814 %endif
2815
2816 %if %{with ming}
2817 %files ming
2818 %defattr(644,root,root,755)
2819 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2820 %attr(755,root,root) %{php_extensiondir}/ming.so
2821 %endif
2822
2823 %if %{with mssql}
2824 %files mssql
2825 %defattr(644,root,root,755)
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2827 %attr(755,root,root) %{php_extensiondir}/mssql.so
2828 %endif
2829
2830 %files mysql
2831 %defattr(644,root,root,755)
2832 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2833 %attr(755,root,root) %{php_extensiondir}/mysql.so
2834
2835 %if %{with mysqli}
2836 %files mysqli
2837 %defattr(644,root,root,755)
2838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2839 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2840 %endif
2841
2842 %files ncurses
2843 %defattr(644,root,root,755)
2844 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2845 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2846
2847 %if %{with oci}
2848 %files oci8
2849 %defattr(644,root,root,755)
2850 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2851 %attr(755,root,root) %{php_extensiondir}/oci8.so
2852 %endif
2853
2854 %if %{with odbc}
2855 %files odbc
2856 %defattr(644,root,root,755)
2857 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2858 %attr(755,root,root) %{php_extensiondir}/odbc.so
2859 %endif
2860
2861 %if %{with openssl}
2862 %files openssl
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2865 %attr(755,root,root) %{php_extensiondir}/openssl.so
2866 %endif
2867
2868 %files pcntl
2869 %defattr(644,root,root,755)
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2871 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2872
2873 %if %{with pcre}
2874 %files pcre
2875 %defattr(644,root,root,755)
2876 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2877 %attr(755,root,root) %{php_extensiondir}/pcre.so
2878 %endif
2879
2880 %files pdo
2881 %defattr(644,root,root,755)
2882 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2883 %attr(755,root,root) %{php_extensiondir}/pdo.so
2884
2885 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2886 %files pdo-dblib
2887 %defattr(644,root,root,755)
2888 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2889 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2890 %endif
2891
2892 %if %{with interbase} && !%{with interbase_inst}
2893 %files pdo-firebird
2894 %defattr(644,root,root,755)
2895 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2896 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2897 %endif
2898
2899 %files pdo-mysql
2900 %defattr(644,root,root,755)
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2902 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2903
2904 %if %{with oci}
2905 %files pdo-oci
2906 %defattr(644,root,root,755)
2907 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2908 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2909 %endif
2910
2911 %if %{with odbc}
2912 %files pdo-odbc
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2915 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2916 %endif
2917
2918 %if %{with pgsql}
2919 %files pdo-pgsql
2920 %defattr(644,root,root,755)
2921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2922 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2923 %endif
2924
2925 %if %{with sqlite}
2926 %files pdo-sqlite
2927 %defattr(644,root,root,755)
2928 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2929 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2930 %endif
2931
2932 %if %{with pgsql}
2933 %files pgsql
2934 %defattr(644,root,root,755)
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2936 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2937 %endif
2938
2939 %files posix
2940 %defattr(644,root,root,755)
2941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2942 %attr(755,root,root) %{php_extensiondir}/posix.so
2943
2944 %if %{with pspell}
2945 %files pspell
2946 %defattr(644,root,root,755)
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2948 %attr(755,root,root) %{php_extensiondir}/pspell.so
2949 %endif
2950
2951 %files readline
2952 %defattr(644,root,root,755)
2953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2954 %attr(755,root,root) %{php_extensiondir}/readline.so
2955
2956 %if %{with recode}
2957 %files recode
2958 %defattr(644,root,root,755)
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2960 %attr(755,root,root) %{php_extensiondir}/recode.so
2961 %endif
2962
2963 %files simplexml
2964 %defattr(644,root,root,755)
2965 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2966 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2967
2968 %files session
2969 %defattr(644,root,root,755)
2970 %doc ext/session/mod_files.sh
2971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2972 %attr(755,root,root) %{php_extensiondir}/session.so
2973
2974 %files shmop
2975 %defattr(644,root,root,755)
2976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2977 %attr(755,root,root) %{php_extensiondir}/shmop.so
2978
2979 %if %{with snmp}
2980 %files snmp
2981 %defattr(644,root,root,755)
2982 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2983 %attr(755,root,root) %{php_extensiondir}/snmp.so
2984 %endif
2985
2986 %files soap
2987 %defattr(644,root,root,755)
2988 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2989 %attr(755,root,root) %{php_extensiondir}/soap.so
2990
2991 %files sockets
2992 %defattr(644,root,root,755)
2993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2994 %attr(755,root,root) %{php_extensiondir}/sockets.so
2995
2996 %files spl
2997 %defattr(644,root,root,755)
2998 %doc ext/spl/{CREDITS,README,TODO}
2999 %doc ext/spl/examples
3000 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3001 %attr(755,root,root) %{php_extensiondir}/spl.so
3002
3003 %if %{with sqlite}
3004 %files sqlite
3005 %defattr(644,root,root,755)
3006 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
3007 %attr(755,root,root) %{php_extensiondir}/sqlite.so
3008 %endif
3009
3010 %if %{with sybase}
3011 %files sybase
3012 %defattr(644,root,root,755)
3013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
3014 %attr(755,root,root) %{php_extensiondir}/sybase.so
3015 %endif
3016
3017 %if %{with sybase_ct}
3018 %files sybase-ct
3019 %defattr(644,root,root,755)
3020 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3021 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3022 %endif
3023
3024 %files sysvmsg
3025 %defattr(644,root,root,755)
3026 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3027 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3028
3029 %files sysvsem
3030 %defattr(644,root,root,755)
3031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3032 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3033
3034 %files sysvshm
3035 %defattr(644,root,root,755)
3036 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3037 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3038
3039 %files tests
3040 %defattr(644,root,root,755)
3041 %dir %{php_data_dir}/tests
3042 %dir %{php_data_dir}/tests/php
3043 %{php_data_dir}/tests/php/basic
3044 %{php_data_dir}/tests/php/classes
3045 %{php_data_dir}/tests/php/func
3046 %{php_data_dir}/tests/php/lang
3047 %{php_data_dir}/tests/php/output
3048 %{php_data_dir}/tests/php/run-test
3049 %{php_data_dir}/tests/php/security
3050 %{php_data_dir}/tests/php/strings
3051 %{php_data_dir}/tests/php/quicktester.inc
3052 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3053
3054 # random junk, didn't check, maybe can be just removed
3055 %{php_data_dir}/tests/php/bin-info.inc
3056 %{php_data_dir}/tests/php/foo*
3057 %{php_data_dir}/tests/php/odbc*.php
3058 %{php_data_dir}/tests/php/recurse
3059 %{php_data_dir}/tests/php/run.*
3060 %{php_data_dir}/tests/php/scan_cases
3061 %{php_data_dir}/tests/php/test*
3062
3063 %if %{with tidy}
3064 %files tidy
3065 %defattr(644,root,root,755)
3066 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3067 %attr(755,root,root) %{php_extensiondir}/tidy.so
3068 %endif
3069
3070 %files tokenizer
3071 %defattr(644,root,root,755)
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3073 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3074
3075 %if %{with wddx}
3076 %files wddx
3077 %defattr(644,root,root,755)
3078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3079 %attr(755,root,root) %{php_extensiondir}/wddx.so
3080 %endif
3081
3082 %files xml
3083 %defattr(644,root,root,755)
3084 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3085 %attr(755,root,root) %{php_extensiondir}/xml.so
3086
3087 %files xmlreader
3088 %defattr(644,root,root,755)
3089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3090 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3091
3092 %if %{with xmlrpc}
3093 %files xmlrpc
3094 %defattr(644,root,root,755)
3095 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3096 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3097 %endif
3098
3099 %files xmlwriter
3100 %defattr(644,root,root,755)
3101 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3102 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3103
3104 %files xsl
3105 %defattr(644,root,root,755)
3106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3107 %attr(755,root,root) %{php_extensiondir}/xsl.so
3108
3109 %files zip
3110 %defattr(644,root,root,755)
3111 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3112 %attr(755,root,root) %{php_extensiondir}/zip.so
3113
3114 %files zlib
3115 %defattr(644,root,root,755)
3116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3117 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.451283 seconds and 2 git commands to generate.