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