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