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