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