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