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