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