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