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