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