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