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