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