]> git.pld-linux.org Git - packages/php.git/blob - php.spec
84f3a68190c48e4303bcd6787c9e8dabd1091a64
[packages/php.git] / php.spec
1 # TODO 5.6:
2 # - phpdbg: link with libphp_common
3 # - enable --with-fpm-systemd, but ensure it checks for sd_booted()
4 # - build with system libgd 2.1, see 73c5128
5 # TODO 5.4:
6 # - do not remove PatchX: definitions until merged to HEAD, needed for tracking their state
7 # - check php-sapi-ini-file.patch for safe mode removal
8 # - update imap annotations patch (needs api porting)
9 # - update imap myrights patch (needs api porting)
10 # --with-libmbfl=DIR      MBSTRING: Use external libmbfl.  DIR is the libmbfl base install directory BUNDLED
11 # --with-onig=DIR         MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
12 # - uses libvpx for webp support, should use libwebp-devel instead?
13 # NOTE: mysqlnd does not support ssl or compression (see FAQ at http://dev.mysql.com/downloads/connector/php-mysqlnd/)
14 # UNPACKAGED EXTENSION NOTES:
15 # - com_dotnet is Win32-only
16 # TODO:
17 # - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
18 #   - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
19 #   - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
20 #   -  13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
21 # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
22 # - wddx: restore session support (not compiled in due DL extension check)
23 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
24 #   - removed from php 5.0 (currently in php4):
25 #   db [pecl-svn], hyperwave [pecl-svn], java [pecl-svn], mcal [pecl-svn], qtdom [pecl-svn]
26 #   - removed from php 5.1:
27 #   oracle [pecl-svn]
28 #   - removed from php 5.2:
29 #   filepro [pecl-svn], hwapi [pecl-svn]
30 # - make additional headers and checking added by mail patch configurable
31 # - modularize standard (output from pure php -m)?
32 # - lib64 patch obsolete by $PHP_LIBDIR ?
33 # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is
34 #   built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared.
35 #   make it runtime dep and add Suggests (or php warning messages)
36 # - some mods should be shared:
37 #$ php -m
38 # [PHP Modules]
39 #+Core
40 # date
41 #+ereg
42 # libxml
43 # Reflection
44 # standard
45 #
46 # Conditional build:
47 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
48 %bcond_with     oci             # with Oracle oci8 extension module     (BR: proprietary libs)
49 %bcond_without  instantclient   # build Oracle oci8 extension module against oracle-instantclient package
50 %bcond_with     system_gd       # with system gd (we prefer internal since it enables few more features)
51 %bcond_with     system_libzip   # with system libzip (reported broken currently)
52 %bcond_with     default_php     # use this PHP as default PHP in distro
53 %bcond_without  curl            # without CURL extension module
54 %bcond_without  enchant         # without Enchant extension module
55 %bcond_without  filter          # without filter extension module
56 %bcond_without  imap            # without IMAP extension module
57 %bcond_without  interbase       # without InterBase extension module
58 %bcond_without  intl            # without Intl extension module
59 %bcond_without  kerberos5       # without Kerberos5 support
60 %bcond_without  litespeed       # build litespeed module
61 %bcond_without  ldap            # without LDAP extension module
62 %bcond_without  mhash           # without mhash extension (supported by hash extension)
63 %bcond_without  mm              # without mm support for session storage
64 %bcond_without  mssql           # without MS SQL extension module
65 # don't turn it on by default; see TODO item for mysqlnd in this spec
66 %bcond_with     mysqlnd         # with mysqlnd support in mysql related extensions
67 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
68 %bcond_without  odbc            # without ODBC extension module
69 %bcond_without  opcache         # without Enable Zend OPcache extension support
70 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
71 %bcond_without  pcre            # without PCRE extension module
72 %bcond_without  pdo_sqlite      # without PDO SQLite extension module
73 %bcond_without  pgsql           # without PostgreSQL extension module
74 %bcond_without  phar            # without phar extension module
75 %bcond_without  pspell          # without pspell extension module
76 %bcond_without  recode          # without recode extension module
77 %bcond_without  snmp            # without SNMP extension module
78 %bcond_without  sqlite2         # without SQLite extension module
79 %bcond_without  sqlite3         # without SQLite3 extension module
80 %bcond_without  sybase_ct       # without Sybase-CT extension module
81 %bcond_without  tidy            # without Tidy extension module
82 %bcond_without  webp            # Without WebP support in GD extension (imagecreatefromwebp)
83 %bcond_without  wddx            # without WDDX extension module
84 %bcond_without  xmlrpc          # without XML-RPC extension module
85 %bcond_without  apache1         # disable building Apache 1.3.x SAPI
86 %bcond_without  apache2         # disable building Apache 2.x SAPI
87 %bcond_with     zts             # Zend Thread Safety
88 %bcond_without  cgi             # disable CGI/FCGI SAPI
89 %bcond_without  fpm             # disable FPM
90 %bcond_without  embed           # disable Embedded API
91 %bcond_without  phpdbg          # disable phpdbg SAPI
92 %bcond_with     milter          # disable Milter SAPI
93 %bcond_with     suhosin         # with suhosin patch, has little point in PHP>=5.3, see https://github.com/stefanesser/suhosin/issues/42#issuecomment-41728178
94 %bcond_with     tests           # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
95 %bcond_with     gcov            # Enable Code coverage reporting
96 %bcond_with     type_hints      # experimental support for strict typing/casting
97
98 %define apxs1           /usr/sbin/apxs1
99 %define apxs2           /usr/sbin/apxs
100
101 # disable all sapis
102 %if %{with gcov}
103 %undefine       with_apache1
104 %undefine       with_apache2
105 %undefine       with_cgi
106 %undefine       with_litespeed
107 %endif
108
109 # mm is not thread safe
110 %if %{with zts}
111 %undefine       with_mm
112 %endif
113
114 # milter requires ZTS
115 %if %{with milter} && %{without zts}
116 %undefine       with_milter
117 %endif
118
119 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
120 # ppc disabled (broken on th-ppc)
121 %undefine       with_interbase
122 %endif
123
124 %ifnarch %{ix86} %{x8664}
125 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
126 %undefine       with_fpm
127 %endif
128
129 %if 0
130 %if %{without apache1} && %{without apache2}
131 ERROR: You need to select at least one Apache SAPI to build shared modules.
132 %endif
133 %endif
134
135 # filter depends on pcre
136 %if %{without pcre}
137 %undefine       with_filter
138 %endif
139
140 %define         rel     0.8
141 %define         orgname php
142 %define         ver_suffix 56
143 %define         php_suffix %{!?with_default_php:%{ver_suffix}}
144 Summary:        PHP: Hypertext Preprocessor
145 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
146 Summary(pl.UTF-8):      Język skryptowy PHP
147 Summary(pt_BR.UTF-8):   A linguagem de script PHP
148 Summary(ru.UTF-8):      PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
149 Summary(uk.UTF-8):      PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
150 Name:           %{orgname}%{php_suffix}
151 Version:        5.6.0
152 Release:        %{rel}%{?with_type_hints:.th}
153 Epoch:          4
154 License:        PHP
155 Group:          Libraries
156 Source0:        http://www.php.net/distributions/%{orgname}-%{version}.tar.xz
157 # Source0-md5:  642825d75ce2634d9513d5b21dbee521
158 Source2:        %{orgname}-mod_%{orgname}.conf
159 Source3:        %{orgname}-cgi-fcgi.ini
160 Source4:        %{orgname}-apache.ini
161 Source5:        %{orgname}-cli.ini
162 # Taken from: http://browsers.garykeith.com/downloads.asp
163 Source9:        %{orgname}_browscap.ini
164 Source10:       %{orgname}-fpm.init
165 Source11:       %{orgname}-fpm.logrotate
166 Source12:       %{orgname}-branch.sh
167 Source13:       dep-tests.sh
168 Source14:       skip-tests.sh
169 Patch0:         %{orgname}-shared.patch
170 Patch1:         %{orgname}-pldlogo.patch
171 Patch2:         %{orgname}-mail.patch
172 Patch3:         %{orgname}-link-libs.patch
173 Patch4:         %{orgname}-libpq_fs_h_path.patch
174 Patch5:         %{orgname}-filter-shared.patch
175 Patch6:         %{orgname}-build_modules.patch
176 Patch7:         %{orgname}-sapi-ini-file.patch
177 Patch8:         milter.patch
178 Patch9:         libtool-tag.patch
179 Patch10:        %{orgname}-ini.patch
180 Patch11:        embed.patch
181 %if %{with type_hints}
182 Patch12:        http://ilia.ws/patch/type_hint_53_v2.txt
183 %endif
184 Patch14:        %{orgname}-no_pear_install.patch
185 #Patch15:       %{orgname}-zlib.patch # no longer needed?
186 Patch17:        %{orgname}-readline.patch
187 Patch18:        %{orgname}-nohttpd.patch
188 Patch19:        %{orgname}-gd_imagerotate_enable.patch
189 Patch20:        %{orgname}-uint32_t.patch
190 Patch21:        %{orgname}-dba-link.patch
191 Patch22:        %{orgname}-both-apxs.patch
192 Patch23:        %{orgname}-builddir.patch
193 Patch24:        %{orgname}-zlib-for-getimagesize.patch
194 Patch25:        %{orgname}-stupidapache_version.patch
195 Patch26:        %{orgname}-pear.patch
196 Patch27:        %{orgname}-config-dir.patch
197 Patch29:        %{orgname}-fcgi-graceful.patch
198 Patch31:        %{orgname}-fcgi-error_log-no-newlines.patch
199 #Patch32:       %{orgname}-curl-limit-speed.patch # applied upstream
200 Patch34:        %{orgname}-libtool.patch
201 Patch35:        %{orgname}-tds.patch
202 Patch36:        %{orgname}-mysql-charsetphpini.patch
203 Patch37:        %{orgname}-mysqli-charsetphpini.patch
204 Patch38:        %{orgname}-pdo_mysql-charsetphpini.patch
205 Patch39:        %{orgname}-use-prog_sendmail.patch
206 Patch41:        %{orgname}-fpm-config.patch
207 Patch42:        %{orgname}-fpm-shared.patch
208 Patch43:        %{orgname}-silent-session-cleanup.patch
209 Patch44:        %{orgname}-include_path.patch
210 Patch45:        %{orgname}-imap-annotations.patch
211 Patch46:        %{orgname}-imap-myrights.patch
212 Patch47:        suhosin.patch
213 #Patch49:       %{orgname}-m4-divert.patch # no longer needed, upstream supports new ac
214 Patch50:        extension-shared-optional-dep.patch
215 Patch51:        spl-shared.patch
216 Patch52:        pcre-shared.patch
217 Patch53:        fix-test-run.patch
218 #Patch54:       mysqlnd-shared.patch # shared build supported upstream
219 Patch55:        bug-52078-fileinode.patch
220 #Patch57:       bug-52448.patch # outdated
221 Patch59:        %{orgname}-systzdata.patch
222 Patch60:        %{orgname}-oracle-instantclient.patch
223 #Patch61:       %{orgname}-krb5-ac.patch # not needed on 5.4 anymore
224 Patch62:        mcrypt-libs.patch
225 Patch63:        %{orgname}-mysql-nowarning.patch
226 #Patch64:       %{orgname}-m4.patch # not needed on 5.4 branch
227 Patch65:        system-libzip.patch
228 Patch66:        php-db.patch
229 Patch67:        mysql-lib-ver-mismatch.patch
230 Patch69:        fpm-conf-split.patch
231 URL:            http://www.php.net/
232 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
233 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
234 BuildRequires:  autoconf >= 2.59
235 BuildRequires:  automake >= 1.4d
236 BuildRequires:  bison
237 BuildRequires:  bzip2-devel
238 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
239 BuildRequires:  cyrus-sasl-devel
240 BuildRequires:  db-devel >= 4.0
241 BuildRequires:  elfutils-devel
242 %{?with_enchant:BuildRequires:  enchant-devel >= 1.1.3}
243 #BuildRequires: fcgi-devel
244 %{?with_kerberos5:BuildRequires:        heimdal-devel}
245 %{?with_system_libzip:BuildRequires:    libzip-devel >= 0.10.1-2}
246 %{!?with_mysqlnd:BuildRequires: mysql-devel}
247 BuildRequires:  pkgconfig
248 BuildRequires:  sed >= 4.0
249 %if %{with mssql} || %{with sybase_ct}
250 BuildRequires:  freetds-devel >= 0.82
251 %endif
252 BuildRequires:  freetype-devel >= 2.5.1
253 %if %{with system_gd}
254 BuildRequires:  gd-devel >= 2.1
255 %endif
256 BuildRequires:  gdbm-devel
257 BuildRequires:  gmp-devel
258 %{?with_imap:BuildRequires:     imap-devel >= 1:2007e-2}
259 %{?with_intl:BuildRequires:     libicu-devel >= 4.4}
260 BuildRequires:  libjpeg-devel
261 BuildRequires:  libltdl-devel >= 1.4
262 BuildRequires:  libmcrypt-devel >= 2.4.4
263 BuildRequires:  libpng-devel >= 1.0.8
264 #BuildRequires: libtiff-devel
265 %{?with_webp:BuildRequires:     libvpx-devel}
266 BuildRequires:  tokyocabinet-devel
267 %if "%{pld_release}" != "ac"
268 BuildRequires:  libtool >= 2:2.2
269 %else
270 BuildRequires:  libtool >= 1.4.3
271 %endif
272 #BuildRequires: libwrap-devel
273 BuildRequires:  libxml2-devel >= 1:2.7.6-4
274 BuildRequires:  libxslt-devel >= 1.1.0
275 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
276 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
277 %if %{with openssl} || %{with ldap}
278 BuildRequires:  openssl-devel >= 0.9.7d
279 %endif
280 %{?with_gcov:BuildRequires:     lcov}
281 %{?with_snmp:%{?with_tests:BuildRequires:       mibs-net-snmp}}
282 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
283 %{?with_oci:%{?with_instantclient:BuildRequires:        oracle-instantclient-devel}}
284 BuildRequires:  pam-devel
285 %{?with_pcre:BuildRequires:     pcre-devel >= 8.10}
286 BuildRequires:  pkgconfig
287 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
288 %{?with_pgsql:BuildRequires:    postgresql-devel}
289 BuildRequires:  readline-devel
290 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
291 BuildRequires:  rpm >= 4.4.9-56
292 BuildRequires:  rpm-build >= 4.4.0
293 BuildRequires:  rpmbuild(macros) >= 1.566
294 BuildRequires:  tar >= 1:1.22
295 BuildRequires:  xz
296 %if %{with sqlite3} || %{with pdo_sqlite}
297 BuildRequires:  sqlite3-devel >= 3.3.9
298 %endif
299 BuildRequires:  t1lib-devel
300 %{?with_tidy:BuildRequires:     tidy-devel}
301 %{?with_odbc:BuildRequires:     unixODBC-devel}
302 %{?with_xmlrpc:BuildRequires:   xmlrpc-epi-devel >= 0.54.1}
303 BuildRequires:  zlib-devel >= 1.0.9
304 %if %{with apache1}
305 BuildRequires:  apache1-devel
306 %endif
307 %if %{with apache2}
308 BuildRequires:  apache-devel >= 2.0.52-2
309 BuildRequires:  apr-devel >= 1:1.0.0
310 BuildRequires:  apr-util-devel >= 1:1.0.0
311 %endif
312 %if %{with fpm}
313 #BuildRequires: judy-devel
314 %endif
315 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
316
317 %define         php_sysconfdir          /etc/%{name}
318 %define         php_extensiondir        %{_libdir}/%{name}
319 %define         _sysconfdir                     %{php_sysconfdir}
320
321 # must be in sync with source. extra check ensuring that it is so is done in %%build
322 %define         php_api_version         20131106
323 %define         zend_module_api         20131226
324 %define         zend_extension_api      220131226
325
326 # Extension versions
327 %define         bz2ver          1.0
328 %define         enchantver      1.1.0
329 %define         fileinfover     1.0.5
330 %define         hashver         1.0
331 %define         intlver         1.1.0
332 %define         jsonver         1.2.1
333 %define         opcachever      7.0.4-dev
334 %define         pharver         2.0.2
335 %define         sqlite3ver      0.7-dev
336 %define         zipver          1.12.4
337 %define         phpdbgver       0.4.0
338
339 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
340 %define         php_debug               %{!?debug:0}%{?debug:1}
341
342 %if %{with gcov}
343 %undefine       with_ccache
344 %endif
345
346 %if %{with oci}
347 # ORACLE_HOME is required for oci8 ext to build
348 %define _preserve_env %_preserve_env_base ORACLE_HOME
349 %endif
350
351 %description
352 PHP is an HTML-embedded scripting language. PHP attempts to make it
353 easy for developers to write dynamically generated web pages. PHP also
354 offers built-in database integration for several commercial and
355 non-commercial database management systems, so writing a
356 database-enabled web page with PHP is fairly simple. The most common
357 use of PHP coding is probably as a replacement for CGI scripts. The
358 mod_php module enables the Apache web server to understand and process
359 the embedded PHP language in web pages. This package contains PHP
360 version %{version}.
361
362 %description -l fr.UTF-8
363 PHP est un langage de script embarque dans le HTM. PHP essaye de
364 rendre simple aux developpeurs d'ecrire des pages web generees
365 dynamiquement. PHP incorpore egalement une integration avec plusieurs
366 systemes de gestion de bases de donnees commerciaux et
367 non-connerciaux, qui rent facile la creation de pages web liees avec
368 des bases de donnees. L'utilisation la plus commune de PHP est
369 probablement en remplacement de scripts CGI. Le module mod_php permet
370 au serveur web Apache de comprendre et de traiter le langage PHP
371 integre dans des pages web. Ce package contient PHP version
372 %{version}.
373
374 %description -l pl.UTF-8
375 PHP jest językiem skryptowym, którego polecenia umieszcza się w
376 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
377 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
378 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
379 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
380 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
381 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
382 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
383 %{version}.
384
385 %description -l pt_BR.UTF-8
386 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
387 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
388 com algumas características únicas, específicas ao PHP. O objetivo da
389 linguagem é permitir que desenvolvedores web escrevam páginas
390 dinamicamente geradas de forma rápida.
391
392 %description -l ru.UTF-8
393 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
394 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
395 для работы с базами данных относительно просто. Наиболее популярное
396 использование PHP - замена для CGI скриптов.
397
398 %description -l uk.UTF-8
399 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
400 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
401 роботи з базами даних є доволі простим. Найбільш популярне
402 використання PHP - заміна для CGI скриптів.
403
404 %package -n apache1-mod_%{name}
405 Summary:        PHP DSO module for Apache 1.3.x
406 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
407 Group:          Development/Languages/PHP
408 Requires(triggerpostun):        sed >= 4.0
409 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
410 Requires:       apache1(EAPI) >= 1.3.33-2
411 Requires:       apache1-mod_mime
412 Provides:       webserver(php) = %{version}
413 Obsoletes:      apache-mod_php < 1:4.1.1
414 Obsoletes:      phpfi
415
416 %description -n apache1-mod_%{name}
417 PHP as DSO module for Apache 1.3.x.
418
419 %description -n apache1-mod_%{name} -l pl.UTF-8
420 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
421
422 %package -n apache-mod_%{name}
423 Summary:        PHP DSO module for Apache 2.x
424 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
425 Group:          Development/Languages/PHP
426 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
427 Requires:       apache(modules-api) = %{apache_modules_api}
428 Requires:       apache-mod_mime
429 Provides:       webserver(php) = %{version}
430 Obsoletes:      phpfi
431
432 %description -n apache-mod_%{name}
433 PHP as DSO module for Apache 2.x.
434
435 %description -n apache-mod_%{name} -l pl.UTF-8
436 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
437
438 %package litespeed
439 Summary:        PHP for litespeed HTTP server
440 Summary(pl.UTF-8):      PHP dla serwera HTTP litespeed
441 Group:          Development/Languages/PHP
442 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
443 Provides:       php(litespeed)
444 Provides:       webserver(php) = %{version}
445
446 %description litespeed
447 PHP for litespeed HTTP server.
448
449 %description litespeed -l pl.UTF-8
450 PHP dla serwera HTTP litespeed.
451
452 %package cgi
453 Summary:        PHP as CGI/FastCGI program
454 Summary(pl.UTF-8):      PHP jako program CGI/FastCGI
455 Group:          Development/Languages/PHP
456 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
457 Provides:       %{name}-fcgi = %{epoch}:%{version}-%{release}
458 Provides:       php(cgi)
459 Provides:       php(fcgi)
460 Provides:       webserver(php) = %{version}
461 Obsoletes:      php-fcgi < 4:5.3.0
462 %if "%{pld_release}" != "ac"
463 Conflicts:      logrotate < 3.8.0
464 %endif
465
466 %description cgi
467 PHP as CGI or FastCGI program.
468
469 %description cgi -l pl.UTF-8
470 PHP jako program CGI lub FastCGI.
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 embedded
485 Summary:        PHP library for embedding in applications
486 Summary(pl.UTF-8):      Biblioteka PHP do osadzania w aplikacjach
487 Group:          Libraries
488 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
489
490 %description embedded
491 The php-embedded package contains a library which can be embedded into
492 applications to provide PHP scripting language support.
493
494 %description embedded -l pl.UTF-8
495 Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
496 celu obsługi PHP jako języka skryptowego.
497
498 %package program
499 Summary:        /usr/bin/php symlink
500 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
501 Group:          Development/Languages/PHP
502 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
503 Obsoletes:      /usr/bin/php
504
505 %description program
506 Package providing /usr/bin/php symlink to PHP CLI.
507
508 %description program -l pl.UTF-8
509 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
510
511 %package fpm
512 Summary:        PHP FastCGI Process Manager
513 Summary(pl.UTF-8):      PHP FastCGI Process Manager - zarządca procesów FastCGI
514 Group:          Development/Languages/PHP
515 URL:            http://www.php-fpm.org/
516 Requires(post,preun):   /sbin/chkconfig
517 Requires(postun):       /usr/sbin/userdel
518 Requires(pre):  /bin/id
519 Requires(pre):  /usr/sbin/useradd
520 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
521 Requires:       rc-scripts
522 Provides:       php(fpm)
523 Provides:       user(http)
524 Provides:       webserver(php) = %{version}
525
526 %description fpm
527 PHP FastCGI Process Manager.
528
529 %description fpm -l pl.UTF-8
530 PHP FastCGI Process Manager - zarządca procesów FastCGI.
531
532 %package phpdbg
533 Summary:        The debugging platform for PHP 5.4+
534 Group:          Development/Languages/PHP
535 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
536 Provides:       php(phpdbg) = %{phpdbgver}
537
538 %description phpdbg
539 phpdbg - The interactive PHP debugger.
540
541 Implemented as a SAPI module, phpdbg can excert complete control over
542 the environment without impacting the functionality or performance of
543 your code.
544
545 phpdbg aims to be a lightweight, powerful, easy to use debugging
546 platform for PHP 5.4+
547
548 %package common
549 Summary:        Common files needed by both Apache modules and CGI/CLI SAPIs
550 Summary(pl.UTF-8):      Wspólne pliki dla modułu Apache'a i programu CGI
551 Summary(ru.UTF-8):      Разделяемые библиотеки для PHP
552 Summary(uk.UTF-8):      Бібліотеки спільного використання для PHP
553 Group:          Libraries
554 Requires(post): sed >= 4.0
555 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
556 Requires:       glibc >= 6:2.3.5
557 Requires:       php-dirs >= 1.4
558 Requires:       rpm-whiteout >= 1.28
559 Requires:       tzdata
560 Provides:       %{name}(debug) = %{php_debug}
561 Provides:       %{name}(modules_api) = %{php_api_version}
562 Provides:       %{name}(thread-safety) = %{zend_zts}
563 Provides:       %{name}(zend_extension_api) = %{zend_extension_api}
564 Provides:       %{name}(zend_module_api) = %{zend_module_api}
565 Provides:       %{name}-core
566 Provides:       %{name}-date
567 Provides:       %{name}-ereg
568 Provides:       %{name}-reflection
569 Provides:       %{name}-standard
570 Provides:       php(core) = %{version}
571 Provides:       php(date)
572 Provides:       php(ereg)
573 Provides:       php(libxml)
574 Provides:       php(reflection)
575 Provides:       php(standard)
576 %{!?with_mysqlnd:Obsoletes:     php-mysqlnd}
577 %{?with_pcre:%requires_ge_to    pcre pcre-devel}
578 Obsoletes:      php-pecl-domxml
579 Conflicts:      php4-common < 3:4.4.4-8
580 Conflicts:      php55-common < 4:5.5.10-4
581 Conflicts:      rpm < 4.4.2-0.2
582
583 %description common
584 Common files needed by both Apache modules and CGI/CLI SAPIs.
585
586 %description common -l pl.UTF-8
587 Wspólne pliki dla modułu Apache'a i programu CGI.
588
589 %description common -l ru.UTF-8
590 Этот пакет содержит общие файлы для разных вариантов реализации PHP
591 (самодостаточной и в качестве модуля Apache).
592
593 %description common -l uk.UTF-8
594 Цей пакет містить спільні файли для різних варіантів реалізації PHP
595 (самодостатньої та в якості модуля Apache).
596
597 %package devel
598 Summary:        Files for PHP modules development
599 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
600 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
601 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
602 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
603 Group:          Development/Languages/PHP
604 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
605 Requires:       autoconf >= 2.13
606 Requires:       automake
607 %if "%{pld_release}" != "ac"
608 Requires:       libtool >= 2:2.2
609 %else
610 Requires:       libtool
611 %endif
612 %{?with_pcre:Requires:  pcre-devel >= 8.10}
613 Requires:       shtool
614 Obsoletes:      php-devel
615 Obsoletes:      php-pear-devel
616 Obsoletes:      php4-devel
617 Obsoletes:      php52-devel
618 Obsoletes:      php54-devel
619
620 %description devel
621 The php-devel package lets you compile dynamic extensions to PHP.
622 Included here is the source for the PHP extensions. Instead of
623 recompiling the whole PHP binary to add support for, say, oracle,
624 install this package and use the new self-contained extensions
625 support. For more information, read the file
626 README.SELF-CONTAINED-EXTENSIONS.
627
628 %description devel -l pl.UTF-8
629 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
630 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
631 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
632 samodzielnych rozszerzeniach można znaleźć w pliku
633 README.SELF-CONTAINED-EXTENSIONS.
634
635 %description devel -l pt_BR.UTF-8
636 Este pacote contém arquivos usados no desenvolvimento de programas ou
637 módulos PHP.
638
639 %description devel -l ru.UTF-8
640 Пакет php-devel дает возможность компилировать динамические расширения
641 PHP. Пакет включает исходный код этих расширений. Вместо повторной
642 компиляции бинарного файла PHP для добавления, например, поддержки
643 oracle, установите этот пакет для компилирования отдельных расширений.
644 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
645
646 %description devel -l uk.UTF-8
647 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
648 До пакету включено вихідний код для розширень. Замість повторної
649 компіляції бінарного файлу PHP для додання, наприклад, підтримки
650 oracle, встановіть цей пакет для компіляції окремих розширень.
651 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
652
653 %package bcmath
654 Summary:        bcmath extension module for PHP
655 Summary(pl.UTF-8):      Moduł bcmath dla PHP
656 Group:          Libraries
657 URL:            http://www.php.net/manual/en/book.bc.php
658 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
659 Provides:       php(bcmath)
660
661 %description bcmath
662 This is a dynamic shared object (DSO) for PHP that will add bc style
663 precision math functions support.
664
665 %description bcmath -l pl.UTF-8
666 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
667 matematycznych takich jak w programie bc.
668
669 %package bz2
670 Summary:        Bzip2 extension module for PHP
671 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
672 Group:          Libraries
673 URL:            http://www.php.net/manual/en/book.bzip2.php
674 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
675 Provides:       php(bz2) = %{bz2ver}
676 Provides:       php(bzip2)
677 Provides:       php-bzip2 = %{epoch}:%{version}-%{release}
678 Obsoletes:      php-bzip2 < 4:5.2.14-3
679 Obsoletes:      php-pecl-bz2 < %{bz2ver}
680
681 %description bz2
682 This is a dynamic shared object (DSO) for PHP that will add bzip2
683 compression support to PHP.
684
685 %description bz2 -l pl.UTF-8
686 Moduł PHP umożliwiający używanie kompresji bzip2.
687
688 %package calendar
689 Summary:        Calendar extension module for PHP
690 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
691 Group:          Libraries
692 URL:            http://www.php.net/manual/en/book.calendar.php
693 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
694 Provides:       php(calendar)
695
696 %description calendar
697 This is a dynamic shared object (DSO) for PHP that will add calendar
698 support.
699
700 %description calendar -l pl.UTF-8
701 Moduł PHP dodający wsparcie dla kalendarza.
702
703 %package ctype
704 Summary:        ctype extension module for PHP
705 Summary(pl.UTF-8):      Moduł ctype dla PHP
706 Group:          Libraries
707 URL:            http://www.php.net/manual/en/book.ctype.php
708 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
709 Provides:       php(ctype)
710
711 %description ctype
712 This is a dynamic shared object (DSO) for PHP that will add ctype
713 support.
714
715 %description ctype -l pl.UTF-8
716 Moduł PHP umożliwiający korzystanie z funkcji ctype.
717
718 %package curl
719 Summary:        curl extension module for PHP
720 Summary(pl.UTF-8):      Moduł curl dla PHP
721 Group:          Libraries
722 URL:            http://www.php.net/manual/en/book.curl.php
723 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
724 Provides:       php(curl)
725
726 %description curl
727 This is a dynamic shared object (DSO) for PHP that will add curl
728 support.
729
730 %description curl -l pl.UTF-8
731 Moduł PHP umożliwiający korzystanie z biblioteki curl.
732
733 %package dba
734 Summary:        DBA extension module for PHP
735 Summary(pl.UTF-8):      Moduł DBA dla PHP
736 Group:          Libraries
737 URL:            http://www.php.net/manual/en/book.dba.php
738 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
739 Provides:       php(dba)
740
741 %description dba
742 This is a dynamic shared object (DSO) for PHP that will add flat-file
743 databases (DBA) support.
744
745 %description dba -l pl.UTF-8
746 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
747 (DBA).
748
749 %package dom
750 Summary:        DOM extension module for PHP
751 Summary(pl.UTF-8):      Moduł DOM dla PHP
752 Group:          Libraries
753 URL:            http://www.php.net/manual/en/book.dom.php
754 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
755 Provides:       php(dom)
756 # it has some compatibility functions
757 Provides:       %{name}-domxml = %{epoch}:%{version}-%{release}
758 Provides:       php(domxml)
759 Obsoletes:      php-domxml <= 3:4.3.8-1
760
761 %description dom
762 This is a dynamic shared object (DSO) for PHP that will add new DOM
763 support.
764
765 %description dom -l pl.UTF-8
766 Moduł PHP dodający nową obsługę DOM.
767
768 %package enchant
769 Summary:        libenchant binder
770 Summary(pl.UTF-8):      dowiązania biblioteki libenchant
771 Group:          Libraries
772 URL:            http://www.php.net/manual/en/book.exif.php
773 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
774 Provides:       php(enchant) = %{enchantver}
775 Obsoletes:      php-pecl-enchant < %{enchantver}
776
777 %description enchant
778 Enchant is a binder for libenchant. Libenchant provides a common API
779 for many spell libraries:
780 - aspell/pspell (intended to replace ispell)
781 - hspell (hebrew)
782 - ispell
783 - myspell (OpenOffice.org project, mozilla)
784 - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
785   plugin system allows to add custom spell support.
786
787 %description enchant -l pl.UTF-8
788 Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
789 ujednolicone API dla wielu narzędzi sprawdzających pisownię:
790 - aspell/pspell (w zamierzeniu ma zastąpić ispell)
791 - hspell (hebrajski)
792 - ispell
793 - myspell (projekt OpenOffice.org, mozilla)
794 - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
795   System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
796
797 %package exif
798 Summary:        exif extension module for PHP
799 Summary(pl.UTF-8):      Moduł exif dla PHP
800 Group:          Libraries
801 URL:            http://www.php.net/manual/en/book.exif.php
802 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
803 Provides:       php(exif)
804
805 %description exif
806 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
807 support in image files.
808
809 %description exif -l pl.UTF-8
810 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
811
812 %package fileinfo
813 Summary:        libmagic bindings
814 Summary(pl.UTF-8):      Wiązania do libmagic
815 Group:          Libraries
816 URL:            http://www.php.net/manual/en/book.fileinfo.php
817 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
818 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
819 Provides:       php(fileinfo) = %{fileinfover}
820 Obsoletes:      php-mime_magic
821 Obsoletes:      php-pecl-fileinfo < %{fileinfover}
822
823 %description fileinfo
824 This extension allows retrieval of information regarding vast majority
825 of file. This information may include dimensions, quality, length
826 etc...
827
828 Additionally it can also be used to retrieve the MIME type for a
829 particular file and for text files proper language encoding.
830
831 %description fileinfo -l pl.UTF-8
832 To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
833 plików. Informacje mogą zawierać wymiary, jakość, długość itp.
834
835 Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
836 pliku oraz kodowania plików tekstowych.
837
838 %package filter
839 Summary:        Extension for safely dealing with input parameters
840 Summary(pl.UTF-8):      Rozszerzenie do bezpiecznej obsługi danych wejściowych
841 Group:          Libraries
842 URL:            http://www.php.net/manual/en/book.filter.php
843 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
844 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
845 Provides:       php(filter)
846 Obsoletes:      php-pecl-filter
847
848 %description filter
849 We all know that you should always check input variables, but PHP does
850 not offer really good functionality for doing this in a safe way. The
851 Input Filter extension is meant to address this issue by implementing
852 a set of filters and mechanisms that users can use to safely access
853 their input data.
854
855 %description filter -l pl.UTF-8
856 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
857 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
858 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
859 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
860 mogą bezpiecznie używać do dostępu do danych.
861
862 %package ftp
863 Summary:        FTP extension module for PHP
864 Summary(pl.UTF-8):      Moduł FTP dla PHP
865 Group:          Libraries
866 URL:            http://www.php.net/manual/en/book.ftp.php
867 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
868 Provides:       php(ftp)
869
870 %description ftp
871 This is a dynamic shared object (DSO) for PHP that will add FTP
872 support.
873
874 %description ftp -l pl.UTF-8
875 Moduł PHP dodający obsługę protokołu FTP.
876
877 %package gd
878 Summary:        GD extension module for PHP
879 Summary(pl.UTF-8):      Moduł GD dla PHP
880 Group:          Libraries
881 URL:            http://www.php.net/manual/en/book.image.php
882 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
883 %if %{with system_gd}
884 Requires:       gd >= 2.0.28-4
885 Requires:       gd(gif)
886 Requires:       gd(imagerotate) = 5.2.0
887 %endif
888 Provides:       php(gd)
889
890 %description gd
891 This is a dynamic shared object (DSO) for PHP that will add GD
892 support, allowing you to create and manipulate images with PHP.
893
894 %description gd -l pl.UTF-8
895 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
896 tworzenie i obróbkę obrazków.
897
898 %package gettext
899 Summary:        gettext extension module for PHP
900 Summary(pl.UTF-8):      Moduł gettext dla PHP
901 Group:          Libraries
902 URL:            http://www.php.net/manual/en/book.gettext.php
903 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
904 Provides:       php(gettext)
905
906 %description gettext
907 This is a dynamic shared object (DSO) for PHP that will add gettext
908 support.
909
910 %description gettext -l pl.UTF-8
911 Moduł PHP dodający obsługę lokalizacji przez gettext.
912
913 %package gmp
914 Summary:        gmp extension module for PHP
915 Summary(pl.UTF-8):      Moduł gmp dla PHP
916 Group:          Libraries
917 URL:            http://www.php.net/manual/en/book.gmp.php
918 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
919 Provides:       php(gmp)
920
921 %description gmp
922 This is a dynamic shared object (DSO) for PHP that will add arbitrary
923 length number support with GNU MP library.
924
925 %description gmp -l pl.UTF-8
926 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
927 liczbach o dowolnej długości.
928
929 %package hash
930 Summary:        HASH Message Digest Framework
931 Summary(pl.UTF-8):      Szkielet do obliczania skrótów wiadomości
932 Group:          Libraries
933 URL:            http://www.php.net/manual/en/book.gmp.php
934 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
935 Provides:       php(hash) = %{hashver}
936 %if %{with mhash}
937 Provides:       php(mhash)
938 Provides:       php-mhash = %{epoch}:%{version}-%{release}
939 Obsoletes:      php-mhash < 4:5.3.0
940 %endif
941 Obsoletes:      php-pecl-hash < %{hashver}
942
943 %description hash
944 Native implementations of common message digest algorithms using a
945 generic factory method.
946
947 %description hash -l pl.UTF-8
948 Natywne implementacje popularnych algorytmów obliczania skrótów
949 wiadomości przy użyciu wspólnego interfejsu.
950
951 %package iconv
952 Summary:        iconv extension module for PHP
953 Summary(pl.UTF-8):      Moduł iconv dla PHP
954 Group:          Libraries
955 URL:            http://www.php.net/manual/en/book.iconv.php
956 Requires:       %{_libdir}/gconv
957 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
958 Requires:       iconv
959 Provides:       php(iconv)
960
961 %description iconv
962 This is a dynamic shared object (DSO) for PHP that will add iconv
963 support.
964
965 %description iconv -l pl.UTF-8
966 Moduł PHP dodający obsługę iconv.
967
968 %package imap
969 Summary:        IMAP extension module for PHP
970 Summary(pl.UTF-8):      Moduł IMAP dla PHP
971 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
972 Group:          Libraries
973 URL:            http://www.php.net/manual/en/book.imap.php
974 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
975 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
976 Requires:       imap-lib >= 1:2007e-2
977 Provides:       php(imap)
978
979 %description imap
980 This is a dynamic shared object (DSO) for PHP that will add IMAP
981 support.
982
983 %description imap -l pl.UTF-8
984 Moduł PHP dodający obsługę skrzynek IMAP.
985
986 %description imap -l pt_BR.UTF-8
987 Um módulo para aplicações PHP que usam IMAP.
988
989 %package interbase
990 Summary:        InterBase/Firebird database module for PHP
991 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
992 Group:          Libraries
993 URL:            http://www.php.net/manual/en/book.ibase.php
994 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
995 Provides:       php(interbase)
996 %{?with_interbase_inst:Autoreq: false}
997
998 %description interbase
999 This is a dynamic shared object (DSO) for PHP that will add InterBase
1000 and Firebird database support.
1001
1002 %description interbase -l pl.UTF-8
1003 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
1004
1005 %package intl
1006 Summary:        Internationalization extension (ICU wrapper)
1007 Summary(pl.UTF-8):      Rozszerzenie do internacjonalizacji (interfejs do ICU)
1008 Group:          Libraries
1009 URL:            http://www.php.net/intl
1010 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1011 Provides:       php(intl) = %{intlver}
1012 Obsoletes:      php-pecl-intl < %{intlver}
1013
1014 %description intl
1015 Internationalization extension (further is referred as Intl) is a
1016 wrapper for ICU library, enabling PHP programmers to perform
1017 UCA-conformant collation and date/time/number/currency formatting in
1018 their scripts.
1019
1020 %description intl -l pl.UTF-8
1021 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1022 interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1023 wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1024 daty/czasu/walut.
1025
1026 %package json
1027 Summary:        PHP C extension for JSON serialization
1028 Summary(pl.UTF-8):      Rozszerzenie C PHP dla serializacji JSON
1029 Group:          Libraries
1030 URL:            http://www.php.net/manual/en/book.json.php
1031 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1032 Provides:       php(json) = %{jsonver}
1033 Obsoletes:      php-pecl-json < %{jsonver}
1034
1035 %description json
1036 php-json is an extremely fast PHP C extension for JSON (JavaScript
1037 Object Notation) serialisation.
1038
1039 %description json -l pl.UTF-8
1040 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1041 (JavaScript Object Notation).
1042
1043 %package ldap
1044 Summary:        LDAP extension module for PHP
1045 Summary(pl.UTF-8):      Moduł LDAP dla PHP
1046 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
1047 Group:          Libraries
1048 URL:            http://www.php.net/manual/en/book.ldap.php
1049 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1050 Provides:       php(ldap)
1051
1052 %description ldap
1053 This is a dynamic shared object (DSO) for PHP that will add LDAP
1054 support.
1055
1056 %description ldap -l pl.UTF-8
1057 Moduł PHP dodający obsługę LDAP.
1058
1059 %description ldap -l pt_BR.UTF-8
1060 Um módulo para aplicações PHP que usam LDAP.
1061
1062 %package mbstring
1063 Summary:        mbstring extension module for PHP
1064 Summary(pl.UTF-8):      Moduł mbstring dla PHP
1065 Group:          Libraries
1066 URL:            http://www.php.net/manual/en/book.mbstring.php
1067 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1068 Provides:       php(mbstring)
1069
1070 %description mbstring
1071 This is a dynamic shared object (DSO) for PHP that will add multibyte
1072 string support.
1073
1074 %description mbstring -l pl.UTF-8
1075 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1076
1077 %package mcrypt
1078 Summary:        mcrypt extension module for PHP
1079 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
1080 Group:          Libraries
1081 URL:            http://www.php.net/manual/en/book.mcrypt.php
1082 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1083 Provides:       php(mcrypt)
1084
1085 %description mcrypt
1086 This is a dynamic shared object (DSO) for PHP that will add mcrypt
1087 support.
1088
1089 %description mcrypt -l pl.UTF-8
1090 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
1091
1092 %package mssql
1093 Summary:        MS SQL extension module for PHP
1094 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1095 Group:          Libraries
1096 URL:            http://www.php.net/manual/en/book.mssql.php
1097 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1098 Provides:       php(mssql)
1099
1100 %description mssql
1101 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1102 databases support through FreeTDS library.
1103
1104 %description mssql -l pl.UTF-8
1105 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1106 FreeTDS.
1107
1108 %package mysql
1109 Summary:        MySQL database module for PHP
1110 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1111 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1112 Group:          Libraries
1113 URL:            http://www.php.net/manual/en/book.mysql.php
1114 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1115 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1116 Provides:       php(mysql)
1117
1118 %description mysql
1119 This is a dynamic shared object (DSO) for PHP that will add MySQL
1120 database support.
1121
1122 %description mysql -l pl.UTF-8
1123 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1124
1125 %description mysql -l pt_BR.UTF-8
1126 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1127
1128 %package mysqli
1129 Summary:        MySQLi module for PHP
1130 Summary(pl.UTF-8):      Moduł MySQLi dla PHP
1131 Group:          Libraries
1132 URL:            http://www.php.net/manual/en/book.mysqli.php
1133 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1134 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1135 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1136 Provides:       php(mysqli)
1137
1138 %description mysqli
1139 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1140 (Improved MySQL) support. The difference between it and mysql module
1141 is that it provides access to functionality of MySQL 4.1 and above.
1142
1143 %description mysqli -l pl.UTF-8
1144 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1145 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1146 MySQL w wersji 4.1 i nowszych.
1147
1148 %package mysqlnd
1149 Summary:        MySQL Native Client Driver for PHP
1150 Summary(pl.UTF-8):      Sterownik natywnego klienta MySQL dla PHP
1151 Group:          Libraries
1152 URL:            http://www.php.net/manual/en/book.mysqlnd.php
1153 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1154 Provides:       php(mysqlnd)
1155
1156 %description mysqlnd
1157 MySQL Native Driver is a replacement for the MySQL Client Library
1158 (libmysql).
1159
1160 Because MySQL Native Driver is written as a PHP extension, it is
1161 tightly coupled to the workings of PHP. This leads to gains in
1162 efficiency, especially when it comes to memory usage, as the driver
1163 uses the PHP memory management system. It also supports the PHP memory
1164 limit. Using MySQL Native Driver leads to comparable or better
1165 performance than using MySQL Client Library, it always ensures the
1166 most efficient use of memory. One example of the memory efficiency is
1167 the fact that when using the MySQL Client Library, each row is stored
1168 in memory twice, whereas with the MySQL Native Driver each row is only
1169 stored once in memory.
1170
1171 %description mysqlnd -l pl.UTF-8
1172 MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1173 klienckiej MySQL (libmysql).
1174
1175 Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1176 ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1177 jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1178 system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1179 z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1180 biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1181 Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1182 każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1183 tym sterowniku - tylko raz.
1184
1185 %package oci8
1186 Summary:        Oracle 8+ database module for PHP
1187 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8+ dla PHP
1188 Group:          Libraries
1189 URL:            http://www.php.net/manual/en/book.oci8.php
1190 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1191 Provides:       php(oci8)
1192 AutoReq:        false
1193
1194 %description oci8
1195 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1196 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1197
1198 %description oci8 -l pl.UTF-8
1199 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1200 poprzez interfejs Oracle8 Call-Interface (OCI8).
1201
1202 %package odbc
1203 Summary:        ODBC extension module for PHP
1204 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1205 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1206 Group:          Libraries
1207 URL:            http://www.php.net/manual/en/book.uodbc.php
1208 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1209 Requires:       unixODBC >= 2.1.1-3
1210 Provides:       php(odbc)
1211
1212 %description odbc
1213 This is a dynamic shared object (DSO) for PHP that will add ODBC
1214 support.
1215
1216 %description odbc -l pl.UTF-8
1217 Moduł PHP ze wsparciem dla ODBC.
1218
1219 %description odbc -l pt_BR.UTF-8
1220 Um módulo para aplicações PHP que usam ODBC.
1221
1222 %package opcache
1223 Summary:        Zend Optimizer+ - PHP code optimizer
1224 Group:          Libraries
1225 URL:            https://wiki.php.net/rfc/optimizerplus
1226 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1227 Provides:       php(opcache) = %{opcachever}
1228
1229 %description opcache
1230 The Zend OPcache provides faster PHP execution through opcode caching
1231 and optimization. It improves PHP performance by storing precompiled
1232 script bytecode in the shared memory. This eliminates the stages of
1233 reading code from the disk and compiling it on future access. In
1234 addition, it applies a few bytecode optimization patterns that make
1235 code execution faster.
1236
1237 %package openssl
1238 Summary:        OpenSSL extension module for PHP
1239 Summary(pl.UTF-8):      Moduł OpenSSL dla PHP
1240 Group:          Libraries
1241 URL:            http://www.php.net/manual/en/book.openssl.php
1242 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1243 Provides:       php(openssl)
1244
1245 %description openssl
1246 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1247 support.
1248
1249 %description openssl -l pl.UTF-8
1250 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1251
1252 %package pcntl
1253 Summary:        Process Control extension module for PHP
1254 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1255 Group:          Libraries
1256 URL:            http://www.php.net/manual/en/book.pcntl.php
1257 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1258 Provides:       php(pcntl)
1259
1260 %description pcntl
1261 This is a dynamic shared object (DSO) for PHP that will add process
1262 spawning and control support. It supports functions like fork(),
1263 waitpid(), signal() etc.
1264
1265 %description pcntl -l pl.UTF-8
1266 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1267 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1268
1269 %package pcre
1270 Summary:        PCRE extension module for PHP
1271 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1272 Group:          Libraries
1273 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1274 Provides:       php(pcre)
1275
1276 %description pcre
1277 This is a dynamic shared object (DSO) for PHP that will add Perl
1278 Compatible Regular Expression support.
1279
1280 %description pcre -l pl.UTF-8
1281 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1282 (Perl Compatible Regular Expressions)
1283
1284 %package pdo
1285 Summary:        PHP Data Objects (PDO)
1286 Summary(pl.UTF-8):      Obsługa PHP Data Objects (PDO)
1287 Group:          Libraries
1288 URL:            http://www.php.net/manual/en/book.pdo.php
1289 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1290 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1291 Provides:       php(pdo)
1292 Obsoletes:      php-pecl-PDO
1293
1294 %description pdo
1295 This is a dynamic shared object (DSO) for PHP that will add PDO
1296 support.
1297
1298 %description pdo -l pl.UTF-8
1299 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1300
1301 %package pdo-dblib
1302 Summary:        PHP Data Objects (PDO) FreeTDS support
1303 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1304 Group:          Libraries
1305 URL:            http://www.php.net/manual/en/ref.pdo-dblib.php
1306 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1307 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1308 Provides:       php(dblib)
1309
1310 %description pdo-dblib
1311 This is a dynamic shared object (DSO) for PHP that will add PDO
1312 FreeTDS support.
1313
1314 %description pdo-dblib -l pl.UTF-8
1315 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1316 interfejsu PDO.
1317
1318 %package pdo-firebird
1319 Summary:        PHP Data Objects (PDO) Firebird support
1320 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Firebirda
1321 Group:          Libraries
1322 URL:            http://www.php.net/manual/en/ref.pdo-firebird.php
1323 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1324 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1325 Provides:       php(pdo-firebird)
1326 Obsoletes:      php-pecl-PDO_FIREBIRD
1327
1328 %description pdo-firebird
1329 This is a dynamic shared object (DSO) for PHP that will add PDO
1330 Firebird support.
1331
1332 %description pdo-firebird -l pl.UTF-8
1333 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1334 interfejsu PDO.
1335
1336 %package pdo-mysql
1337 Summary:        PHP Data Objects (PDO) MySQL support
1338 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1339 Group:          Libraries
1340 URL:            http://www.php.net/manual/en/ref.pdo-mysql.php
1341 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1342 %{?with_mysqlnd:Requires:       %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1343 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1344 Provides:       php(pdo-mysql)
1345 Obsoletes:      php-pecl-PDO_MYSQL
1346
1347 %description pdo-mysql
1348 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1349 support.
1350
1351 %description pdo-mysql -l pl.UTF-8
1352 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1353 interfejsu PDO.
1354
1355 %package pdo-oci
1356 Summary:        PHP Data Objects (PDO) Oracle support
1357 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1358 Group:          Libraries
1359 URL:            http://www.php.net/manual/en/ref.pdo-oci.php
1360 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1361 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1362 Provides:       php(pdo-oci)
1363 Obsoletes:      php-pecl-PDO_OCI
1364
1365 %description pdo-oci
1366 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1367 support.
1368
1369 %description pdo-oci -l pl.UTF-8
1370 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1371 interfejsu PDO.
1372
1373 %package pdo-odbc
1374 Summary:        PHP Data Objects (PDO) ODBC support
1375 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą ODBC
1376 Group:          Libraries
1377 URL:            http://www.php.net/manual/en/ref.pdo-odbc.php
1378 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1379 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1380 Provides:       php(pdo-odbc)
1381 Obsoletes:      php-pecl-PDO_ODBC
1382
1383 %description pdo-odbc
1384 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1385 support.
1386
1387 %description pdo-odbc -l pl.UTF-8
1388 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1389 interfejsu PDO.
1390
1391 %package pdo-pgsql
1392 Summary:        PHP Data Objects (PDO) PostgreSQL support
1393 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1394 Group:          Libraries
1395 URL:            http://www.php.net/manual/en/ref.pdo-pgsql.php
1396 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1397 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1398 Provides:       php(pdo-pgsql)
1399 Provides:       php-pecl-PDO_PGSQL
1400 Obsoletes:      php-pecl-PDO_PGSQL < 4:5.2.1-2
1401
1402 %description pdo-pgsql
1403 This is a dynamic shared object (DSO) for PHP that will add PDO
1404 PostgreSQL support.
1405
1406 %description pdo-pgsql -l pl.UTF-8
1407 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1408 interfejsu PDO.
1409
1410 %package pdo-sqlite
1411 Summary:        PHP Data Objects (PDO) SQLite support
1412 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą SQLite
1413 Group:          Libraries
1414 URL:            http://www.php.net/manual/en/ref.pdo-sqlite.php
1415 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1416 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1417 Provides:       php(pdo-sqlite)
1418 Obsoletes:      php-pecl-PDO_SQLITE
1419
1420 %description pdo-sqlite
1421 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1422 support.
1423
1424 %description pdo-sqlite -l pl.UTF-8
1425 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1426 interfejsu PDO.
1427
1428 %package pgsql
1429 Summary:        PostgreSQL database module for PHP
1430 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1431 Group:          Libraries
1432 URL:            http://www.php.net/manual/en/book.pgsql.php
1433 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1434 Provides:       php(pgsql)
1435
1436 %description pgsql
1437 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1438 database support.
1439
1440 %description pgsql -l pl.UTF-8
1441 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1442
1443 %description pgsql -l pt_BR.UTF-8
1444 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1445
1446 %package phar
1447 Summary:        phar database module for PHP
1448 Summary(pl.UTF-8):      Moduł phar dla PHP
1449 Group:          Libraries
1450 URL:            http://www.php.net/manual/en/book.phar.php
1451 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1452 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1453 Suggests:       %{name}-cli
1454 # zlib is required by phar program, but as phar cli is optional should the dep be too
1455 Suggests:       %{name}-zlib
1456 Provides:       php(phar) = %{pharver}
1457 Obsoletes:      php-pecl-phar < %{pharver}
1458 Conflicts:      php-ioncube < 4.0.9
1459
1460 %description phar
1461 This is a dynamic shared object (DSO) for PHP that will add phar
1462 archive a support.
1463
1464 %description phar -l pl.UTF-8
1465 Moduł PHP umożliwiający dostęp do achiwów .phar.
1466
1467 %package posix
1468 Summary:        POSIX extension module for PHP
1469 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1470 Group:          Libraries
1471 URL:            http://www.php.net/manual/en/book.posix.php
1472 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1473 Provides:       php(posix)
1474
1475 %description posix
1476 This is a dynamic shared object (DSO) for PHP that will add POSIX
1477 functions support to PHP.
1478
1479 %description posix -l pl.UTF-8
1480 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1481
1482 %package pspell
1483 Summary:        pspell extension module for PHP
1484 Summary(pl.UTF-8):      Moduł pspell dla PHP
1485 Group:          Libraries
1486 URL:            http://www.php.net/manual/en/book.pspell.php
1487 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1488 Provides:       php(pspell)
1489
1490 %description pspell
1491 This is a dynamic shared object (DSO) for PHP that will add pspell
1492 support to PHP. It allows to check the spelling of a word and offer
1493 suggestions.
1494
1495 %description pspell -l pl.UTF-8
1496 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1497 sprawdzanie pisowni słowa i sugerowanie poprawek.
1498
1499 %package readline
1500 Summary:        readline extension module for PHP
1501 Summary(pl.UTF-8):      Moduł readline dla PHP
1502 Group:          Libraries
1503 URL:            http://www.php.net/manual/en/book.readline.php
1504 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1505 Provides:       php(readline)
1506
1507 %description readline
1508 This PHP module adds support for readline functions (only for cli and
1509 cgi SAPIs).
1510
1511 %description readline -l pl.UTF-8
1512 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1513
1514 %package recode
1515 Summary:        recode extension module for PHP
1516 Summary(pl.UTF-8):      Moduł recode dla PHP
1517 Group:          Libraries
1518 URL:            http://www.php.net/manual/en/book.recode.php
1519 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1520 Requires:       recode >= 3.5d-3
1521 Provides:       php(recode)
1522
1523 %description recode
1524 This is a dynamic shared object (DSO) for PHP that will add recode
1525 support.
1526
1527 %description recode -l pl.UTF-8
1528 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1529 bibliotekę recode).
1530
1531 %package session
1532 Summary:        session extension module for PHP
1533 Summary(pl.UTF-8):      Moduł session dla PHP
1534 Group:          Libraries
1535 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1536 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1537 Suggests:       %{name}-hash = %{epoch}:%{version}-%{release}
1538 Suggests:       tmpwatch
1539 Provides:       php(session)
1540
1541 %description session
1542 This is a dynamic shared object (DSO) for PHP that will add session
1543 support.
1544
1545 %description session -l pl.UTF-8
1546 Moduł PHP dodający obsługę sesji.
1547
1548 %package shmop
1549 Summary:        Shared Memory Operations extension module for PHP
1550 Summary(pl.UTF-8):      Moduł shmop dla PHP
1551 Group:          Libraries
1552 URL:            http://www.php.net/manual/en/book.shmop.php
1553 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1554 Provides:       php(shmop)
1555
1556 %description shmop
1557 This is a dynamic shared object (DSO) for PHP that will add Shared
1558 Memory Operations support.
1559
1560 %description shmop -l pl.UTF-8
1561 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1562
1563 %package simplexml
1564 Summary:        Simple XML extension module for PHP
1565 Summary(pl.UTF-8):      Moduł prostego rozszerzenia XML dla PHP
1566 Group:          Libraries
1567 URL:            http://www.php.net/manual/en/book.simplexml.php
1568 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1569 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1570 Provides:       php(simplexml)
1571
1572 %description simplexml
1573 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1574 support.
1575
1576 %description simplexml -l pl.UTF-8
1577 Moduł PHP dodający obsługę prostego XML-a.
1578
1579 %package snmp
1580 Summary:        SNMP extension module for PHP
1581 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1582 Group:          Libraries
1583 URL:            http://www.php.net/manual/en/book.snmp.php
1584 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1585 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1586 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1587 Provides:       php(snmp)
1588
1589 %description snmp
1590 This is a dynamic shared object (DSO) for PHP that will add SNMP
1591 support.
1592
1593 %description snmp -l pl.UTF-8
1594 Moduł PHP dodający obsługę SNMP.
1595
1596 %package soap
1597 Summary:        soap extension module for PHP
1598 Summary(pl.UTF-8):      Moduł soap dla PHP
1599 Group:          Libraries
1600 URL:            http://www.php.net/manual/en/book.soap.php
1601 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1602 Provides:       php(soap)
1603
1604 %description soap
1605 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1606 support.
1607
1608 %description soap -l pl.UTF-8
1609 Moduł PHP dodający obsługę SOAP/WSDL.
1610
1611 %package sockets
1612 Summary:        sockets extension module for PHP
1613 Summary(pl.UTF-8):      Moduł socket dla PHP
1614 Group:          Libraries
1615 URL:            http://www.php.net/manual/en/book.sockets.php
1616 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1617 Provides:       php(sockets)
1618
1619 %description sockets
1620 This is a dynamic shared object (DSO) for PHP that will add sockets
1621 support.
1622
1623 %description sockets -l pl.UTF-8
1624 Moduł PHP dodający obsługę gniazdek.
1625
1626 %package spl
1627 Summary:        Standard PHP Library module for PHP
1628 Summary(pl.UTF-8):      Moduł biblioteki standardowej (Standard PHP Library) dla PHP
1629 Group:          Libraries
1630 URL:            http://php.net/manual/en/book.spl.php
1631 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1632 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
1633 Requires:       %{name}-simplexml = %{epoch}:%{version}-%{release}
1634 Provides:       php(spl)
1635
1636 %description spl
1637 This is a dynamic shared object (DSO) for PHP that will add Standard
1638 PHP Library support.
1639
1640 %description spl -l pl.UTF-8
1641 Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
1642
1643 %package sqlite3
1644 Summary:        SQLite3 extension module for PHP
1645 Summary(pl.UTF-8):      Moduł SQLite3 dla PHP
1646 Group:          Libraries
1647 URL:            http://php.net/manual/en/book.sqlite3.php
1648 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1649 Provides:       php(sqlite3) = %{sqlite3ver}
1650
1651 %description sqlite3
1652 SQLite is a C library that implements an embeddable SQL database
1653 engine. Programs that link with the SQLite library can have SQL
1654 database access without running a separate RDBMS process.
1655
1656 SQLite is not a client library used to connect to a big database
1657 server. SQLite is the server. The SQLite library reads and writes
1658 directly to and from the database files on disk.
1659
1660 %description sqlite3 -l pl.UTF-8
1661 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1662 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1663 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1664 RDBMS.
1665
1666 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1667 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1668 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1669 dysku.
1670
1671 %package sybase-ct
1672 Summary:        Sybase-CT extension module for PHP
1673 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1674 Group:          Libraries
1675 URL:            http://www.php.net/manual/en/book.sybase.php
1676 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1677 Provides:       php(sybase-ct)
1678 Obsoletes:      php-sybase
1679
1680 %description sybase-ct
1681 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1682 MS SQL databases support through CT-lib.
1683
1684 %description sybase-ct -l pl.UTF-8
1685 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1686 CT-lib.
1687
1688 %package sysvmsg
1689 Summary:        SysV msg extension module for PHP
1690 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1691 Group:          Libraries
1692 URL:            http://www.php.net/manual/en/book.sem.php
1693 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1694 Provides:       php(sysvmsg)
1695
1696 %description sysvmsg
1697 This is a dynamic shared object (DSO) for PHP that will add SysV
1698 message queues support.
1699
1700 %description sysvmsg -l pl.UTF-8
1701 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1702
1703 %package sysvsem
1704 Summary:        SysV sem extension module for PHP
1705 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1706 Group:          Libraries
1707 URL:            http://www.php.net/manual/en/book.sem.php
1708 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1709 Provides:       php(sysvsem)
1710
1711 %description sysvsem
1712 This is a dynamic shared object (DSO) for PHP that will add SysV
1713 semaphores support.
1714
1715 %description sysvsem -l pl.UTF-8
1716 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1717
1718 %package sysvshm
1719 Summary:        SysV shm extension module for PHP
1720 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1721 Group:          Libraries
1722 URL:            http://www.php.net/manual/en/book.shmop.php
1723 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1724 Provides:       php(sysvshm)
1725
1726 %description sysvshm
1727 This is a dynamic shared object (DSO) for PHP that will add SysV
1728 Shared Memory support.
1729
1730 %description sysvshm -l pl.UTF-8
1731 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1732
1733 %package tests
1734 Summary:        Contains unit test files for PHP and extensions
1735 Summary(pl.UTF-8):      Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1736 Group:          Libraries
1737 URL:            http://qa.php.net/
1738 Requires:       %{name}-cli
1739
1740 %description tests
1741 This package contains unit tests for PHP and its extensions.
1742
1743 %description tests -l pl.UTF-8
1744 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1745
1746 %package tidy
1747 Summary:        Tidy extension module for PHP
1748 Summary(pl.UTF-8):      Moduł Tidy dla PHP
1749 Group:          Libraries
1750 URL:            http://www.php.net/manual/en/book.tidy.php
1751 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1752 Requires:       tidy
1753 Provides:       php(tidy)
1754
1755 %description tidy
1756 This is a dynamic shared object (DSO) for PHP that will add Tidy
1757 support.
1758
1759 %description tidy -l pl.UTF-8
1760 Moduł PHP umożliwiający korzystanie z tidy.
1761
1762 %package tokenizer
1763 Summary:        tokenizer extension module for PHP
1764 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1765 Group:          Libraries
1766 URL:            http://www.php.net/manual/en/book.tokenizer.php
1767 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1768 Provides:       php(tokenizer)
1769
1770 %description tokenizer
1771 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1772 support.
1773
1774 %description tokenizer -l pl.UTF-8
1775 Moduł PHP dodający obsługę tokenizera do PHP.
1776
1777 %package wddx
1778 Summary:        wddx extension module for PHP
1779 Summary(pl.UTF-8):      Moduł wddx dla PHP
1780 Group:          Libraries
1781 URL:            http://www.php.net/manual/en/book.wddx.php
1782 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1783 # - wddx doesn't require session as it's disabled at compile time:
1784 #   if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1785 #   see also php.spec#rev1.120.2.22
1786 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1787 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1788 Provides:       php(wddx)
1789
1790 %description wddx
1791 This is a dynamic shared object (DSO) for PHP that will add wddx
1792 support.
1793
1794 %description wddx -l pl.UTF-8
1795 Moduł PHP umożliwiający korzystanie z wddx.
1796
1797 %package xml
1798 Summary:        XML extension module for PHP
1799 Summary(pl.UTF-8):      Moduł XML dla PHP
1800 Group:          Libraries
1801 URL:            http://www.php.net/manual/en/book.xml.php
1802 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1803 Provides:       php(xml)
1804
1805 %description xml
1806 This is a dynamic shared object (DSO) for PHP that will add XML
1807 support. This extension lets you create XML parsers and then define
1808 handlers for different XML events.
1809
1810 %description xml -l pl.UTF-8
1811 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1812 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1813 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1814
1815 %package xmlreader
1816 Summary:        XML Reader extension module for PHP
1817 Summary(pl.UTF-8):      Moduł XML Reader dla PHP
1818 Group:          Libraries
1819 URL:            http://www.php.net/manual/en/book.xmlreader.php
1820 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1821 Suggests:       %{name}-dom = %{epoch}:%{version}-%{release}
1822 Provides:       php(xmlreader)
1823
1824 %description xmlreader
1825 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1826 support. The XMLReader extension is an XML Pull parser. The reader
1827 acts as a cursor going forward on the document stream and stopping at
1828 each node on the way.
1829
1830 %description xmlreader -l pl.UTF-8
1831 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1832 działa jako kursor przechodzący przez strumień dokumentu i
1833 zatrzymujący się na każdym węźle po drodze.
1834
1835 %package xmlrpc
1836 Summary:        xmlrpc extension module for PHP
1837 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1838 Group:          Libraries
1839 URL:            http://www.php.net/manual/en/book.xmlrpc.php
1840 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1841 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1842 Provides:       php(xmlrpc)
1843
1844 %description xmlrpc
1845 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1846 support.
1847
1848 %description xmlrpc -l pl.UTF-8
1849 Moduł PHP dodający obsługę XMLRPC.
1850
1851 %package xmlwriter
1852 Summary:        Fast, non-cached, forward-only means to write XML data
1853 Summary(pl.UTF-8):      Szybka, nie cachowana metoda zapisu danych w formacie XML
1854 Group:          Libraries
1855 URL:            http://www.php.net/manual/en/book.xmlwriter.php
1856 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1857 Provides:       php(xmlwriter)
1858 Obsoletes:      php-pecl-xmlwriter
1859
1860 %description xmlwriter
1861 This extension wraps the libxml xmlWriter API. Represents a writer
1862 that provides a non-cached, forward-only means of generating streams
1863 or files containing XML data.
1864
1865 %description xmlwriter -l pl.UTF-8
1866 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1867 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1868 plików zawierających dane XML.
1869
1870 %package xsl
1871 Summary:        xsl extension module for PHP
1872 Summary(pl.UTF-8):      Moduł xsl dla PHP
1873 Group:          Libraries
1874 URL:            http://www.php.net/manual/en/book.xsl.php
1875 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1876 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1877 Requires:       libxslt >= 1.0.18
1878 # actually not true, functionality is similar, but API differs
1879 Provides:       php(xsl)
1880 Obsoletes:      php-xslt <= 3:4.3.8-1
1881
1882 %description xsl
1883 This is a dynamic shared object (DSO) for PHP that will add new XSL
1884 support (using libxslt).
1885
1886 %description xsl -l pl.UTF-8
1887 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1888
1889 %package zip
1890 Summary:        Zip management extension
1891 Summary(pl.UTF-8):      Zarządzanie archiwami zip
1892 Group:          Libraries
1893 URL:            http://www.php.net/manual/en/book.zip.php
1894 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1895 %{?with_system_libzip:Requires: libzip >= 0.10.1-2}
1896 Provides:       php(zip) = %{zipver}
1897 Obsoletes:      php-pecl-zip < %{zipver}
1898
1899 %description zip
1900 Zip is an extension to create, modify and read zip files.
1901
1902 %description zip -l pl.UTF-8
1903 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1904 odczyt archiwów zip.
1905
1906 %package zlib
1907 Summary:        Zlib extension module for PHP
1908 Summary(pl.UTF-8):      Moduł zlib dla PHP
1909 Group:          Libraries
1910 URL:            http://www.php.net/manual/en/book.zlib.php
1911 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1912 Provides:       php(zlib)
1913
1914 %description zlib
1915 This is a dynamic shared object (DSO) for PHP that will add zlib
1916 compression support to PHP.
1917
1918 %description zlib -l pl.UTF-8
1919 Moduł PHP umożliwiający używanie kompresji zlib.
1920
1921 %prep
1922 %setup -q -n %{orgname}-%{version}%{?subver}
1923 cp -p php.ini-production php.ini
1924 %patch0 -p1
1925 %patch1 -p1
1926 %patch2 -p1
1927 %patch3 -p1
1928 %patch4 -p1
1929 %patch5 -p1
1930 %patch6 -p1
1931 %patch7 -p1
1932 %patch8 -p1
1933 %patch9 -p1
1934 %patch10 -p1
1935 %if %{with type_hints}
1936 %patch12 -p0
1937 %endif
1938 %patch14 -p1
1939 %patch17 -p1
1940 %patch18 -p1
1941 %if %{with system_gd}
1942 %patch19 -p1
1943 %endif
1944 %patch20 -p1
1945 %patch21 -p1
1946 %patch22 -p1
1947 %patch23 -p1
1948 %patch24 -p1
1949 %patch25 -p1
1950 %patch26 -p1
1951 %patch27 -p1
1952 %patch29 -p1
1953 %patch31 -p1
1954 %if "%{pld_release}" != "ac"
1955 %patch34 -p1
1956 %endif
1957 %patch35 -p1
1958 %patch36 -p1
1959 %patch37 -p1
1960 %patch38 -p1
1961 %patch39 -p1
1962 %if %{with fpm}
1963 %patch41 -p1
1964 %patch42 -p1
1965 %endif
1966 %patch43 -p1
1967 %patch44 -p1
1968 #%patch45 -p1 # imap annotations. fixme
1969 #%patch46 -p1 # imap myrights. fixme
1970 %if %{with suhosin}
1971 %patch47 -p1
1972 %endif
1973 %patch50 -p1
1974 %patch51 -p1
1975 %patch52 -p1
1976 %patch53 -p1
1977 %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
1978 %patch55 -p1
1979 %patch59 -p1
1980 %patch60 -p1
1981 %patch62 -p1
1982 %patch63 -p1
1983 %{?with_system_libzip:%patch65 -p1}
1984 %patch66 -p1
1985 %patch67 -p1
1986 %patch69 -p1
1987
1988 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
1989
1990 # cleanup backups after patching
1991 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1992
1993 # conflict seems to be resolved by recode patches
1994 %{__rm} ext/recode/config9.m4
1995
1996 # remove all bundled libraries not to link with them accidentally
1997 %{__rm} -r ext/sqlite3/libsqlite
1998 #%{__rm} -r ext/bcmath/libbcmath
1999 #%{__rm} -r ext/date/lib
2000 #%{__rm} -r ext/fileinfo/libmagic
2001 #%{__rm} -r ext/dba/libcdb
2002 #%{__rm} -r ext/dba/libflatfile
2003 #%{__rm} -r ext/dba/libinifile
2004 #%{__rm} -r ext/gd/libgd
2005 #%{__rm} -r ext/mbstring/libmbfl
2006 #%{__rm} -r ext/mbstring/oniguruma
2007 %{__rm} -r ext/pcre/pcrelib
2008 #%{__rm} -r ext/soap/interop
2009 %{__rm} -r ext/xmlrpc/libxmlrpc
2010 #%{__rm} -r ext/zip/lib
2011 %{__rm} ext/date/lib/timezonedb.h
2012
2013 cp -pf Zend/LICENSE{,.Zend}
2014 install -p %{SOURCE13} dep-tests.sh
2015
2016 # breaks build
2017 sed -i -e 's#-fvisibility=hidden##g' configure*
2018
2019 # disable broken tests
2020 # says just "Terminated" twice and fails
2021 mv sapi/cli/tests/022.phpt{,.broken}
2022
2023 # really dumb test, executable binary name is .libs/ something when building
2024 # https://bugs.php.net/bug.php?id=54514
2025 mv tests/basic/bug54514.phpt{,.disable}
2026
2027 # breaks whole testsuite unexpectedly:
2028 # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2029 # probably broken as zlib is built as shared
2030 mv ext/soap/tests/server019.phpt{,disable}
2031 # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
2032 mv ext/soap/tests/server020.phpt{,disable}
2033
2034 # runs out of memory and kills carme vserver
2035 # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
2036 mv Zend/tests/bug39438.phpt{,.disable}
2037
2038 # php-5.3.3/ext/standard/tests/file/statpage.phpt
2039 %{__rm} ext/standard/tests/file/statpage.phpt
2040
2041 # idiotic test, it will fail if somebody else makes space on disk or if disk
2042 # space is not yet allocated (xfs). report upstream to advice bogus test is
2043 # probably pointless.
2044 %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2045
2046 %ifarch %{x8664}
2047 # all pdo_sqlite, sqlite3 tests die with Aborted on carme
2048 %{__rm} -r ext/pdo_sqlite/tests
2049 %{__rm} -r ext/sqlite3/tests
2050 %endif
2051
2052 # skip XFAILs
2053 # no point testing stuff that is knowingly broken
2054 find -name '*.phpt' | xargs grep XFAIL -l | xargs rm -v
2055
2056 env \
2057 %ifarch %{ix86}
2058 ix86= x8664=:
2059 %endif
2060 %ifarch %{x8664}
2061 ix86=: x8664= \
2062 %endif
2063         sh -xe %{_sourcedir}/skip-tests.sh
2064
2065 %build
2066 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2067 if [ $API != %{php_api_version} ]; then
2068         echo "Set %%define php_api_version to $API and re-run."
2069         exit 1
2070 fi
2071
2072 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2073 if [ $API != %{zend_module_api} ]; then
2074         echo "Set %%define zend_module_api to $API and re-run."
2075         exit 1
2076 fi
2077
2078 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2079 if [ $API != %{zend_extension_api} ]; then
2080         echo "Set %%define zend_extension_api to $API and re-run."
2081         exit 1
2082 fi
2083
2084 # Check for some extension version
2085 ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2086 if test "$ver" != "%{fileinfover}"; then
2087         : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2088         : Update the fileinfover macro and rebuild.
2089         exit 1
2090 fi
2091 ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2092 if test "$ver" != "%{pharver}"; then
2093         : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2094         : Update the pharver macro and rebuild.
2095         exit 1
2096 fi
2097 ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2098 if test "$ver" != "%{sqlite3ver}"; then
2099         : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2100         : Update the sqlite3ver macro and rebuild.
2101         exit 1
2102 fi
2103 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2104 if test "$ver" != "%{zipver}"; then
2105         : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2106         : Update the zipver macro and rebuild.
2107         exit 1
2108 fi
2109 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2110 if test "$ver" != "%{jsonver}"; then
2111         : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2112         : Update the jsonver macro and rebuild.
2113         exit 1
2114 fi
2115 ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h)
2116 if test "$ver" != "%{opcachever}"; then
2117         : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
2118         : Update the opcachever macro and rebuild.
2119         exit 1
2120 fi
2121 ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
2122 if test "$ver" != "%{phpdbgver}"; then
2123         : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2124         : Update the opcachever macro and rebuild.
2125         exit 1
2126 fi
2127 ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2128 if test "$ver" != "%{bz2ver}"; then
2129         : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2130         : Update the bz2ver macro and rebuild.
2131         exit 1
2132 fi
2133 ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2134 if test "$ver" != "%{enchantver}"; then
2135         : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2136         : Update the enchantver macro and rebuild.
2137         exit 1
2138 fi
2139 ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2140 if test "$ver" != "%{hashver}"; then
2141         : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2142         : Update the hashver macro and rebuild.
2143         exit 1
2144 fi
2145 ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2146 if test "$ver" != "%{intlver}"; then
2147         : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2148         : Update the intlver macro and rebuild.
2149         exit 1
2150 fi
2151
2152 export EXTENSION_DIR="%{php_extensiondir}"
2153 # configure once (for faster debugging purposes)
2154 if [ ! -f _built-conf ]; then
2155         # now remove Makefile copies
2156         rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
2157         %{__libtoolize}
2158         %{__aclocal}
2159         cp -f /usr/share/automake/config.* .
2160         ./buildconf --force
2161         touch _built-conf
2162 fi
2163 export PROG_SENDMAIL="/usr/lib/sendmail"
2164 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2165         -I%{_includedir}/xmlrpc-epi"
2166
2167 sapis="
2168 cli
2169 %if %{with cgi}
2170 cgi-fcgi
2171 %endif
2172 %if %{with litespeed}
2173 litespeed
2174 %endif
2175 %if %{with fpm}
2176 fpm
2177 %endif
2178 %if %{with embed}
2179 embed
2180 %endif
2181 %if %{with apache1}
2182 apxs1
2183 %endif
2184 %if %{with apache2}
2185 apxs2
2186 %endif
2187 %if %{with phpdbg}
2188 phpdbg
2189 %endif
2190 %if %{with milter}
2191 milter
2192 %endif
2193 "
2194 for sapi in $sapis; do
2195         : SAPI $sapi
2196         # skip if already configured (for faster debugging purposes)
2197         [ -f Makefile.$sapi ] && continue
2198
2199         sapi_args=''
2200         case $sapi in
2201         cgi-fcgi)
2202                 sapi_args='--disable-cli'
2203         ;;
2204         cli)
2205                 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2206         ;;
2207         fpm)
2208                 sapi_args='--disable-cli --disable-cgi --enable-fpm'
2209                 ;;
2210         embed)
2211                 sapi_args='--disable-cli --disable-cgi --enable-embed'
2212                 ;;
2213         apxs1)
2214                 ver=$(rpm -q --qf '%{V}' apache1-devel)
2215                 sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver"
2216         ;;
2217         apxs2)
2218                 ver=$(rpm -q --qf '%{V}' apache-devel)
2219                 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
2220         ;;
2221         litespeed)
2222                 sapi_args='--disable-cli --disable-cgi --with-litespeed'
2223         ;;
2224         phpdbg)
2225                 sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2226         ;;
2227         milter)
2228                 sapi_args='--disable-cli --disable-cgi --with-milter'
2229         ;;
2230         esac
2231
2232         %configure \
2233         $sapi_args \
2234 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2235         --cache-file=config.cache \
2236 %endif
2237         --with-libdir=%{_lib} \
2238         --with-config-file-path=%{_sysconfdir} \
2239         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2240         --with-system-tzdata \
2241         --%{!?debug:dis}%{?debug:en}able-debug \
2242         %{?with_zts:--enable-maintainer-zts} \
2243         --enable-inline-optimization \
2244         --enable-bcmath=shared \
2245         --enable-calendar=shared \
2246         --enable-ctype=shared \
2247         --enable-dba=shared \
2248         --enable-dom=shared \
2249         --enable-exif=shared \
2250         --enable-fileinfo=shared \
2251         --enable-ftp=shared \
2252         --enable-gd-native-ttf \
2253         %{?with_intl:--enable-intl=shared} \
2254         --enable-libxml \
2255         --enable-mbstring=shared,all \
2256         --enable-mbregex \
2257         --enable-pcntl=shared \
2258         --enable-pdo=shared \
2259         --enable-json=shared \
2260         --enable-hash=shared \
2261         --enable-xmlwriter=shared \
2262 %if %{with fpm}
2263         --with-fpm-user=http \
2264         --with-fpm-group=http \
2265 %endif
2266 %if %{with mssql} || %{with sybase_ct}
2267         --with-pdo-dblib=shared \
2268 %endif
2269 %if %{with interbase} && %{without interbase_inst}
2270         --with-pdo-firebird=shared,/usr \
2271 %endif
2272         %{?with_mhash:--with-mhash=yes} \
2273         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2274         --with-pdo-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
2275         %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2276         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2277         %{?with_pgsql:--with-pdo-pgsql=shared} \
2278         %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2279         %{?with_webp:--with-vpx-dir=/usr} \
2280         --without-libexpat-dir \
2281         --enable-posix=shared \
2282         --enable-shared \
2283         --enable-session=shared \
2284         --enable-shmop=shared \
2285         --enable-simplexml=shared \
2286         --enable-sysvmsg=shared \
2287         --enable-sysvsem=shared \
2288         --enable-sysvshm=shared \
2289         --enable-soap=shared \
2290         --enable-sockets=shared \
2291         --enable-tokenizer=shared \
2292         %{?with_wddx:--enable-wddx=shared} \
2293         --enable-xml=shared \
2294         --enable-xmlreader=shared \
2295         --with-bz2=shared \
2296         %{__with_without curl curl shared} \
2297         --with-db4 \
2298         --with-iconv=shared \
2299         %{?with_enchant:--with-enchant=shared,/usr} \
2300         --with-freetype-dir=shared \
2301         --with-gettext=shared \
2302         --with-gd=shared%{?with_system_gd:,/usr} \
2303         --with-gdbm \
2304         --with-gmp=shared \
2305         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2306         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2307         --with-jpeg-dir=/usr \
2308         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2309         --with-mcrypt=shared \
2310         %{?with_mm:--with-mm} \
2311         %{?with_mssql:--with-mssql=shared} \
2312         %{?with_mysqlnd:--enable-mysqlnd=shared} \
2313         --with-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \
2314         %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2315         %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2316         %{?with_opcache:--enable-opcache=shared} \
2317         %{?with_openssl:--with-openssl=shared} \
2318         %{?with_kerberos5:--with-kerberos} \
2319         --with-tcadb=/usr \
2320         %{__with_without pcre pcre-regex /usr} \
2321         %{__enable_disable filter filter shared} \
2322         --with-pear=%{php_pear_dir} \
2323         %{__with_without pgsql pgsql shared,/usr} \
2324         %{__enable_disable phar phar shared} \
2325         --with-png-dir=/usr \
2326         %{?with_pspell:--with-pspell=shared} \
2327         --with-readline=shared \
2328         %{?with_recode:--with-recode=shared} \
2329         --with-regex=system \
2330         %{?with_snmp:--with-snmp=shared} \
2331         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2332         %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2333         %{__with_without sqlite3 sqlite3 shared,/usr} \
2334         --with-t1lib=shared \
2335         %{?with_tidy:--with-tidy=shared} \
2336         %{?with_odbc:--with-unixODBC=shared,/usr} \
2337         %{__with_without xmlrpc xmlrpc shared,/usr} \
2338         --with-xsl=shared \
2339         --with-zlib=shared \
2340         --with-zlib-dir=shared,/usr \
2341         %{?with_system_libzip:--with-libzip} \
2342         --enable-zip=shared,/usr \
2343
2344         # save for debug
2345         cp -f Makefile Makefile.$sapi
2346         cp -f main/php_config.h php_config.h.$sapi
2347         cp -f config.log config.log.$sapi
2348 done
2349
2350 # as we build each SAPI in own make, adjust php-config.in forehead
2351 sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2352 %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2353
2354 # must make libphp_common first, so modules can link against it.
2355 cp -af php_config.h.cli main/php_config.h
2356 cp -af Makefile.cli Makefile
2357 %{__make} libphp_common.la
2358 %{__make} build-modules
2359
2360 %if %{with apache1}
2361 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2362 %endif
2363
2364 %if %{with apache2}
2365 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2366 %endif
2367
2368 %if %{with litespeed}
2369 %{__make} -f Makefile.litespeed litespeed
2370 %endif
2371
2372 %if %{with embed}
2373 %{__make} -f Makefile.embed libphp5.la
2374 %endif
2375
2376 %if %{with phpdbg}
2377 # PHP_READLINE_LIBS is empty, so force readline here
2378 %{__make} -f Makefile.phpdbg phpdbg \
2379         PHPDBG_EXTRA_LIBS=-lreadline
2380 %endif
2381
2382 %if %{with milter}
2383 %{__make} -f Makefile.milter milter
2384 %endif
2385
2386 # CGI/FCGI
2387 %if %{with cgi}
2388 cp -pf php_config.h.cgi-fcgi main/php_config.h
2389 %{__make} -f Makefile.cgi-fcgi
2390 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2391 %endif
2392
2393 # PHP FPM
2394 %if %{with fpm}
2395 cp -pf php_config.h.fpm main/php_config.h
2396 %{__make} -f Makefile.fpm
2397 [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2398 %endif
2399
2400 # CLI
2401 cp -pf php_config.h.cli main/php_config.h
2402 %{__make} -f Makefile.cli
2403 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2404
2405 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2406 ./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"]));'
2407
2408 # Generate stub .ini files for each extension
2409 rm -rf conf.d
2410 install -d conf.d
2411 generate_inifiles() {
2412         for so in modules/*.so; do
2413                 mod=$(basename $so .so)
2414                 ext=extension
2415                 # opcache.so is zend extension
2416                 nm $so | grep -q zend_extension_entry && ext=zend_extension
2417                 conf="$mod.ini"
2418                 # xml needs to be loaded before wddx
2419                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2420                 # pre needs to be loaded before SPL
2421                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2422                 # spl needs to be loaded before mysqli
2423                 [ "$mod" = "spl" ] && conf="SPL.ini"
2424                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2425                 [ "$mod" = "session" ] && conf="Session.ini"
2426                 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2427                 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2428                 echo "+ $conf"
2429                 cat > conf.d/$conf <<-EOF
2430                         ; Enable $mod $ext module
2431                         $ext=$mod.so
2432                 EOF
2433         done
2434 }
2435 generate_inifiles
2436
2437 # Check that the module inner-dependencies are intact
2438 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2439 if grep -v OK dep-tests.log; then
2440         echo >&2 "The results above were not expected"
2441         exit 1
2442 fi
2443
2444 %if %{with gcov}
2445 # Use CLI SAPI
2446 cp -pf php_config.h.cli main/php_config.h
2447 cp -pf Makefile.cli Makefile
2448 %{__make} lcov
2449 # you really don't want to package result of gcov build
2450 exit 1
2451 %endif
2452
2453 cat <<'EOF' > run-tests.sh
2454 #!/bin/sh
2455 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2456 unset TZ LANG LC_ALL || :
2457 %{__make} test \
2458         EXTENSION_DIR=modules \
2459         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2460         RUN_TESTS_SETTINGS="-q $*"
2461 EOF
2462 chmod +x run-tests.sh
2463
2464 %if %{with tests}
2465 # Run tests, using the CLI SAPI
2466 cp -pf php_config.h.cli main/php_config.h
2467 cp -pf Makefile.cli Makefile
2468
2469 ./run-tests.sh -w failed.log -s tests.log || {
2470 rc=$?
2471
2472 # collect failed tests into cleanup script used in prep.
2473 sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2474 sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2475         >> %{_sourcedir}/skip-tests.sh
2476
2477 # if on builders, dump test log
2478 tty -q || cat tests.log
2479
2480 test ! -s failed.log
2481 exit $rc
2482 }
2483 %endif
2484
2485 %install
2486 rm -rf $RPM_BUILD_ROOT
2487 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2488         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2489         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2490         $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2491
2492 cp -pf php_config.h.cli main/php_config.h
2493 cp -pf Makefile.cli Makefile
2494 %{__make} install \
2495         phpbuilddir=%{_libdir}/%{name}/build \
2496         INSTALL_ROOT=$RPM_BUILD_ROOT
2497
2498 # make link relative
2499 ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar
2500
2501 # version suffix
2502 v=$(echo %{version} | cut -d. -f1-2)
2503
2504 # install Apache1 DSO module
2505 %if %{with apache1}
2506 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2507 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2508 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
2509 %endif
2510
2511 # install Apache2 DSO module
2512 %if %{with apache2}
2513 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2514 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2515 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
2516 %endif
2517
2518 # install litespeed sapi
2519 %if %{with litespeed}
2520 libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2521 %endif
2522
2523 %if %{with phpdbg}
2524 %{__make} -f Makefile.phpdbg install-phpdbg \
2525         INSTALL_ROOT=$RPM_BUILD_ROOT
2526 %endif
2527
2528 %if %{with milter}
2529 %{__make} -f Makefile.milter install-milter \
2530         INSTALL_ROOT=$RPM_BUILD_ROOT
2531 %endif
2532
2533 libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2534
2535 # install CGI/FCGI
2536 %if %{with cgi}
2537 # install-cgi
2538 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2539 ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2540 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2541 %endif
2542
2543 # install FCGI PM
2544 %if %{with fpm}
2545 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2546 libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2547 cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2548 cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2549 cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
2550 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2551 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2552 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2553 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2554 %if "%{pld_release}" == "ac"
2555 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2556 %endif
2557
2558 %{__sed} -i -e '
2559         s#/usr/lib/php#%{php_extensiondir}#
2560         s#/etc/php#%{_sysconfdir}#
2561         s#@processname@#%{name}-fpm#g
2562 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf}
2563 %endif
2564
2565 # install Embedded API
2566 %if %{with embed}
2567 # we could use install-headers from Makefile.embed, but that would reinstall all headers
2568 # install-sapi installs to wrong dir, so just do it all manually
2569 install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2570 install -p libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}
2571 cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2572 %endif
2573
2574 # install CLI
2575 # versioned suffix is always installed
2576 libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2577 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2578 echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2579 ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2580
2581 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2582
2583 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2584 cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
2585
2586 %if %{with apache1}
2587 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2588 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2589 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2590 %endif
2591
2592 %if %{with apache2}
2593 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2594 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2595 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2596 %endif
2597
2598 # ensure that paths are correct for current php version and arch
2599 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2600 %{__sed} -i -e '
2601         s#/usr/lib/php#%{php_extensiondir}#
2602         s#/etc/php#%{_sysconfdir}#
2603 '
2604
2605 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2606 cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2607
2608 # per SAPI ini directories
2609 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2610
2611 # for CLI SAPI only
2612 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2613
2614 # use system automake and {lib,sh}tool
2615 %if "%{pld_release}" != "ac"
2616         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2617         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2618                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2619         done
2620         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2621 %else
2622         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2623         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2624 %endif
2625 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2626 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2627
2628 # for php-pecl-mailparse
2629 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2630 cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2631
2632 # tests
2633 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2634 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2635 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2636
2637 # fix install paths, avoid evil rpaths
2638 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2639 # better solution?
2640 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2641
2642 %clean
2643 rm -rf $RPM_BUILD_ROOT
2644
2645 %post -n apache1-mod_%{name}
2646 if [ "$1" = "1" ]; then
2647         %service -q apache restart
2648 fi
2649
2650 %postun -n apache1-mod_%{name}
2651 if [ "$1" = "0" ]; then
2652         %service -q apache restart
2653 fi
2654
2655 %post -n apache-mod_%{name}
2656 if [ "$1" = "1" ]; then
2657         %service -q httpd restart
2658 fi
2659
2660 %postun -n apache-mod_%{name}
2661 if [ "$1" = "0" ]; then
2662         %service -q httpd restart
2663 fi
2664
2665 %pre fpm
2666 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2667
2668 %post fpm
2669 /sbin/chkconfig --add %{name}-fpm
2670 %service %{name}-fpm restart
2671
2672 %preun fpm
2673 if [ "$1" = 0 ]; then
2674         %service %{name}-fpm stop
2675         /sbin/chkconfig --del %{name}-fpm
2676 fi
2677
2678 %postun fpm
2679 if [ "$1" = "0" ]; then
2680         %userremove http
2681 fi
2682
2683 %post   embedded -p /sbin/ldconfig
2684 %postun embedded -p /sbin/ldconfig
2685
2686 %post common
2687 # PHP 5.3 requires timezone being setup, try setup it from tzdata
2688 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2689         TIMEZONE=
2690         . /etc/sysconfig/timezone
2691         if [ "$TIMEZONE" ]; then
2692                 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2693         fi
2694 fi
2695
2696 %posttrans common
2697 # minimizing apache restarts logics. we restart webserver:
2698 #
2699 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2700 # 2. first install of extension (post: $1 = 1)
2701 # 2. uninstall of extension (postun: $1 == 0)
2702 #
2703 # the strict internal deps between extensions (and apache modules) and
2704 # common package are very important for all this to work.
2705
2706 # restart webserver at the end of transaction
2707 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2708 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2709
2710 # common macros called at extension post/postun scriptlet
2711 %define extension_scripts() \
2712 %post %1 \
2713 if [ "$1" = "1" ]; then \
2714         %php_webserver_restart \
2715 fi \
2716 \
2717 %postun %1 \
2718 if [ "$1" = "0" ]; then \
2719         %php_webserver_restart \
2720 fi
2721 %{nil}
2722
2723 # extension scripts defines
2724 %extension_scripts bcmath
2725 %extension_scripts bz2
2726 %extension_scripts calendar
2727 %extension_scripts ctype
2728 %extension_scripts curl
2729 %extension_scripts dba
2730 %extension_scripts dom
2731 %extension_scripts enchant
2732 %extension_scripts exif
2733 %extension_scripts fileinfo
2734 %extension_scripts filter
2735 %extension_scripts ftp
2736 %extension_scripts gd
2737 %extension_scripts gettext
2738 %extension_scripts gmp
2739 %extension_scripts hash
2740 %extension_scripts iconv
2741 %extension_scripts imap
2742 %extension_scripts interbase
2743 %extension_scripts intl
2744 %extension_scripts json
2745 %extension_scripts ldap
2746 %extension_scripts mbstring
2747 %extension_scripts mcrypt
2748 %extension_scripts mssql
2749 %extension_scripts mysql
2750 %extension_scripts mysqli
2751 %extension_scripts mysqlnd
2752 %extension_scripts oci8
2753 %extension_scripts odbc
2754 %extension_scripts opcache
2755 %extension_scripts openssl
2756 %extension_scripts pcre
2757 %extension_scripts pdo
2758 %extension_scripts pdo-dblib
2759 %extension_scripts pdo-firebird
2760 %extension_scripts pdo-oci
2761 %extension_scripts pdo-mysql
2762 %extension_scripts pdo-odbc
2763 %extension_scripts pdo-pgsql
2764 %extension_scripts pdo-sqlite
2765 %extension_scripts pgsql
2766 %extension_scripts phar
2767 %extension_scripts pcntl
2768 %extension_scripts posix
2769 %extension_scripts pspell
2770 %extension_scripts recode
2771 %extension_scripts session
2772 %extension_scripts shmop
2773 %extension_scripts simplexml
2774 %extension_scripts snmp
2775 %extension_scripts soap
2776 %extension_scripts sockets
2777 %extension_scripts spl
2778 %extension_scripts sqlite3
2779 %extension_scripts sybase-ct
2780 %extension_scripts sysvmsg
2781 %extension_scripts sysvsem
2782 %extension_scripts sysvshm
2783 %extension_scripts tidy
2784 %extension_scripts tokenizer
2785 %extension_scripts wddx
2786 %extension_scripts xml
2787 %extension_scripts xmlreader
2788 %extension_scripts xmlrpc
2789 %extension_scripts xmlwriter
2790 %extension_scripts xsl
2791 %extension_scripts zip
2792 %extension_scripts zlib
2793
2794 %if %{with apache1}
2795 %files -n apache1-mod_%{name}
2796 %defattr(644,root,root,755)
2797 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2798 %dir %{_sysconfdir}/apache.d
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2800 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2801 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2802 %endif
2803
2804 %if %{with apache2}
2805 %files -n apache-mod_%{name}
2806 %defattr(644,root,root,755)
2807 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2808 %dir %{_sysconfdir}/apache2handler.d
2809 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2810 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2811 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2812 %endif
2813
2814 %if %{with litespeed}
2815 %files litespeed
2816 %defattr(644,root,root,755)
2817 %attr(755,root,root) %{_sbindir}/%{name}.litespeed
2818 %endif
2819
2820 %if %{with cgi}
2821 %files cgi
2822 %defattr(644,root,root,755)
2823 %dir %{_sysconfdir}/cgi-fcgi.d
2824 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2825 %attr(755,root,root) %{_bindir}/%{name}.cgi
2826 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2827 %endif
2828
2829 %if %{with embed}
2830 %files embedded
2831 %defattr(644,root,root,755)
2832 %attr(755,root,root) %{_libdir}/libphp5.so
2833 %endif
2834
2835 %files cli
2836 %defattr(644,root,root,755)
2837 %dir %{_sysconfdir}/cli.d
2838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2839 %attr(755,root,root) %{_bindir}/php%{ver_suffix}
2840 %{_mandir}/man1/php%{ver_suffix}.1*
2841
2842 %files program
2843 %defattr(644,root,root,755)
2844 %attr(755,root,root) %{_bindir}/php
2845 %{_mandir}/man1/php.1*
2846
2847 %if %{with fpm}
2848 %files fpm
2849 %defattr(644,root,root,755)
2850 %doc sapi/fpm/{CREDITS,LICENSE}
2851 %dir %{_sysconfdir}/fpm.d
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
2853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
2854 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2855 %{_mandir}/man8/%{name}-fpm.8*
2856 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2857 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2858 %endif
2859
2860 %if %{with phpdbg}
2861 %files phpdbg
2862 %defattr(644,root,root,755)
2863 %attr(755,root,root) %{_bindir}/phpdbg
2864 %endif
2865
2866 %if %{with milter}
2867 %files milter
2868 %defattr(644,root,root,755)
2869 %attr(755,root,root) %{_bindir}/php-milter
2870 %endif
2871
2872 %files common
2873 %defattr(644,root,root,755)
2874 %doc CREDITS EXTENSIONS LICENSE NEWS README.namespaces UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-*
2875 %dir %{_sysconfdir}
2876 %dir %{_sysconfdir}/conf.d
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2879 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2880 %dir %{php_extensiondir}
2881
2882 %doc ext/session/mod_files.sh
2883
2884 %files devel
2885 %defattr(644,root,root,755)
2886 %doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
2887 %attr(755,root,root) %{_bindir}/phpize
2888 %attr(755,root,root) %{_bindir}/php-config
2889 %attr(755,root,root) %{_libdir}/libphp_common.so
2890 %{_libdir}/libphp_common.la
2891 %{_includedir}/php
2892 %{_libdir}/%{name}/build
2893 %{_mandir}/man1/php-config.1*
2894 %{_mandir}/man1/phpize.1*
2895
2896 %files bcmath
2897 %defattr(644,root,root,755)
2898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2899 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2900
2901 %files bz2
2902 %defattr(644,root,root,755)
2903 %doc ext/bz2/CREDITS
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2905 %attr(755,root,root) %{php_extensiondir}/bz2.so
2906
2907 %files calendar
2908 %defattr(644,root,root,755)
2909 %doc ext/calendar/CREDITS
2910 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2911 %attr(755,root,root) %{php_extensiondir}/calendar.so
2912
2913 %files ctype
2914 %defattr(644,root,root,755)
2915 %doc ext/calendar/CREDITS
2916 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2917 %attr(755,root,root) %{php_extensiondir}/ctype.so
2918
2919 %if %{with curl}
2920 %files curl
2921 %defattr(644,root,root,755)
2922 %doc ext/curl/CREDITS
2923 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2924 %attr(755,root,root) %{php_extensiondir}/curl.so
2925 %endif
2926
2927 %files dba
2928 %defattr(644,root,root,755)
2929 %doc ext/dba/{CREDITS,README}
2930 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2931 %attr(755,root,root) %{php_extensiondir}/dba.so
2932
2933 %files dom
2934 %defattr(644,root,root,755)
2935 %doc ext/dom/{CREDITS,TODO}
2936 %doc ext/dom/examples
2937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2938 %attr(755,root,root) %{php_extensiondir}/dom.so
2939
2940 %if %{with enchant}
2941 %files enchant
2942 %defattr(644,root,root,755)
2943 %doc ext/enchant/{CREDITS,docs/examples}
2944 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
2945 %attr(755,root,root) %{php_extensiondir}/enchant.so
2946 %endif
2947
2948 %files exif
2949 %defattr(644,root,root,755)
2950 %doc ext/exif/CREDITS
2951 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2952 %attr(755,root,root) %{php_extensiondir}/exif.so
2953
2954 %files fileinfo
2955 %defattr(644,root,root,755)
2956 %doc ext/fileinfo/CREDITS
2957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2958 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2959
2960 %if %{with filter}
2961 %files filter
2962 %defattr(644,root,root,755)
2963 %doc ext/filter/{CREDITS,docs/*}
2964 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2965 %attr(755,root,root) %{php_extensiondir}/filter.so
2966 %endif
2967
2968 %files ftp
2969 %defattr(644,root,root,755)
2970 %doc ext/ftp/CREDITS
2971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2972 %attr(755,root,root) %{php_extensiondir}/ftp.so
2973
2974 %files gd
2975 %defattr(644,root,root,755)
2976 %doc ext/gd/CREDITS
2977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2978 %attr(755,root,root) %{php_extensiondir}/gd.so
2979
2980 %files gettext
2981 %defattr(644,root,root,755)
2982 %doc ext/gettext/CREDITS
2983 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2984 %attr(755,root,root) %{php_extensiondir}/gettext.so
2985
2986 %files gmp
2987 %defattr(644,root,root,755)
2988 %doc ext/gmp/{CREDITS,README,TODO}
2989 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2990 %attr(755,root,root) %{php_extensiondir}/gmp.so
2991
2992 %files hash
2993 %defattr(644,root,root,755)
2994 %doc ext/hash/{CREDITS,README}
2995 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2996 %attr(755,root,root) %{php_extensiondir}/hash.so
2997
2998 %files iconv
2999 %defattr(644,root,root,755)
3000 %doc ext/iconv/CREDITS
3001 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3002 %attr(755,root,root) %{php_extensiondir}/iconv.so
3003
3004 %if %{with imap}
3005 %files imap
3006 %defattr(644,root,root,755)
3007 %doc ext/imap/CREDITS
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3009 %attr(755,root,root) %{php_extensiondir}/imap.so
3010 %endif
3011
3012 %if %{with interbase}
3013 %files interbase
3014 %defattr(644,root,root,755)
3015 %doc ext/interbase/CREDITS
3016 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3017 %attr(755,root,root) %{php_extensiondir}/interbase.so
3018 %endif
3019
3020 %if %{with intl}
3021 %files intl
3022 %defattr(644,root,root,755)
3023 %doc ext/intl/{CREDITS,TODO}
3024 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3025 %attr(755,root,root) %{php_extensiondir}/intl.so
3026 %endif
3027
3028 %files json
3029 %defattr(644,root,root,755)
3030 %doc ext/json/CREDITS
3031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3032 %attr(755,root,root) %{php_extensiondir}/json.so
3033
3034 %if %{with ldap}
3035 %files ldap
3036 %defattr(644,root,root,755)
3037 %doc ext/ldap/CREDITS
3038 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3039 %attr(755,root,root) %{php_extensiondir}/ldap.so
3040 %endif
3041
3042 %files mbstring
3043 %defattr(644,root,root,755)
3044 %doc ext/mbstring/{CREDITS,README*}
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3046 %attr(755,root,root) %{php_extensiondir}/mbstring.so
3047
3048 %files mcrypt
3049 %defattr(644,root,root,755)
3050 %doc ext/mcrypt/{CREDITS,TODO}
3051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3052 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
3053
3054 %if %{with mssql}
3055 %files mssql
3056 %defattr(644,root,root,755)
3057 %doc ext/mssql/CREDITS
3058 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3059 %attr(755,root,root) %{php_extensiondir}/mssql.so
3060 %endif
3061
3062 %files mysql
3063 %defattr(644,root,root,755)
3064 %doc ext/mysql/CREDITS
3065 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3066 %attr(755,root,root) %{php_extensiondir}/mysql.so
3067
3068 %if %{with mysqli}
3069 %files mysqli
3070 %defattr(644,root,root,755)
3071 %doc ext/mysqli/{CREDITS,TODO}
3072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3073 %attr(755,root,root) %{php_extensiondir}/mysqli.so
3074 %endif
3075
3076 %if %{with mysqlnd}
3077 %files mysqlnd
3078 %defattr(644,root,root,755)
3079 %doc ext/mysqlnd/CREDITS
3080 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3081 %attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3082 %endif
3083
3084 %if %{with oci}
3085 %files oci8
3086 %defattr(644,root,root,755)
3087 %doc ext/oci8/{CREDITS,README}
3088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3089 %attr(755,root,root) %{php_extensiondir}/oci8.so
3090 %endif
3091
3092 %if %{with odbc}
3093 %files odbc
3094 %defattr(644,root,root,755)
3095 %doc ext/odbc/CREDITS
3096 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3097 %attr(755,root,root) %{php_extensiondir}/odbc.so
3098 %endif
3099
3100 %if %{with opcache}
3101 %files opcache
3102 %defattr(644,root,root,755)
3103 %doc ext/opcache/README
3104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3105 %attr(755,root,root) %{php_extensiondir}/opcache.so
3106 %endif
3107
3108 %if %{with openssl}
3109 %files openssl
3110 %defattr(644,root,root,755)
3111 %doc ext/openssl/{CREDITS,README}
3112 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3113 %attr(755,root,root) %{php_extensiondir}/openssl.so
3114 %endif
3115
3116 %files pcntl
3117 %defattr(644,root,root,755)
3118 %doc ext/pcntl/{CREDITS,README}
3119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3120 %attr(755,root,root) %{php_extensiondir}/pcntl.so
3121
3122 %if %{with pcre}
3123 %files pcre
3124 %defattr(644,root,root,755)
3125 %doc ext/pcre/CREDITS
3126 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3127 %attr(755,root,root) %{php_extensiondir}/pcre.so
3128 %endif
3129
3130 %files pdo
3131 %defattr(644,root,root,755)
3132 %doc ext/pdo/{CREDITS,README,TODO}
3133 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3134 %attr(755,root,root) %{php_extensiondir}/pdo.so
3135
3136 %if %{with mssql} || %{with sybase_ct}
3137 %files pdo-dblib
3138 %defattr(644,root,root,755)
3139 %doc ext/pdo_dblib/{CREDITS,README}
3140 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3141 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3142 %endif
3143
3144 %if %{with interbase} && !%{with interbase_inst}
3145 %files pdo-firebird
3146 %defattr(644,root,root,755)
3147 %doc ext/pdo_firebird/CREDITS
3148 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3149 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3150 %endif
3151
3152 %files pdo-mysql
3153 %defattr(644,root,root,755)
3154 %doc ext/pdo_mysql/CREDITS
3155 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3156 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3157
3158 %if %{with oci}
3159 %files pdo-oci
3160 %defattr(644,root,root,755)
3161 %doc ext/pdo_oci/CREDITS
3162 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3163 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3164 %endif
3165
3166 %if %{with odbc}
3167 %files pdo-odbc
3168 %defattr(644,root,root,755)
3169 %doc ext/pdo_odbc/CREDITS
3170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3171 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3172 %endif
3173
3174 %if %{with pgsql}
3175 %files pdo-pgsql
3176 %defattr(644,root,root,755)
3177 %doc ext/pdo_pgsql/CREDITS
3178 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3179 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3180 %endif
3181
3182 %if %{with pdo_sqlite}
3183 %files pdo-sqlite
3184 %defattr(644,root,root,755)
3185 %doc ext/pdo_sqlite/CREDITS
3186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3187 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3188 %endif
3189
3190 %if %{with pgsql}
3191 %files pgsql
3192 %defattr(644,root,root,755)
3193 %doc ext/pgsql/{CREDITS,README}
3194 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3195 %attr(755,root,root) %{php_extensiondir}/pgsql.so
3196 %endif
3197
3198 %if %{with phar}
3199 %files phar
3200 %defattr(644,root,root,755)
3201 %doc ext/phar/{CREDITS,TODO}
3202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3203 %attr(755,root,root) %{php_extensiondir}/phar.so
3204 %attr(755,root,root) %{_bindir}/phar
3205 %attr(755,root,root) %{_bindir}/phar.phar
3206 %{_mandir}/man1/phar.1*
3207 %{_mandir}/man1/phar.phar.1
3208 %endif
3209
3210 %files posix
3211 %defattr(644,root,root,755)
3212 %doc ext/posix/CREDITS
3213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3214 %attr(755,root,root) %{php_extensiondir}/posix.so
3215
3216 %if %{with pspell}
3217 %files pspell
3218 %defattr(644,root,root,755)
3219 %doc ext/pspell/{CREDITS,README}
3220 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3221 %attr(755,root,root) %{php_extensiondir}/pspell.so
3222 %endif
3223
3224 %files readline
3225 %defattr(644,root,root,755)
3226 %doc ext/readline/{CREDITS,README*}
3227 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3228 %attr(755,root,root) %{php_extensiondir}/readline.so
3229
3230 %if %{with recode}
3231 %files recode
3232 %defattr(644,root,root,755)
3233 %doc ext/recode/CREDITS
3234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3235 %attr(755,root,root) %{php_extensiondir}/recode.so
3236 %endif
3237
3238 %files session
3239 %defattr(644,root,root,755)
3240 %doc ext/session/CREDITS
3241 %doc ext/session/mod_files.sh
3242 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3243 %attr(755,root,root) %{php_extensiondir}/session.so
3244
3245 %files shmop
3246 %defattr(644,root,root,755)
3247 %doc ext/shmop/{CREDITS,README}
3248 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3249 %attr(755,root,root) %{php_extensiondir}/shmop.so
3250
3251 %files simplexml
3252 %defattr(644,root,root,755)
3253 %doc ext/simplexml/{CREDITS,README}
3254 %doc ext/simplexml/examples
3255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3256 %attr(755,root,root) %{php_extensiondir}/simplexml.so
3257
3258 %if %{with snmp}
3259 %files snmp
3260 %defattr(644,root,root,755)
3261 %doc ext/snmp/CREDITS
3262 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3263 %attr(755,root,root) %{php_extensiondir}/snmp.so
3264 %endif
3265
3266 %files soap
3267 %defattr(644,root,root,755)
3268 %doc ext/soap/{CREDITS,TODO*}
3269 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3270 %attr(755,root,root) %{php_extensiondir}/soap.so
3271
3272 %files sockets
3273 %defattr(644,root,root,755)
3274 %doc ext/sockets/CREDITS
3275 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3276 %attr(755,root,root) %{php_extensiondir}/sockets.so
3277
3278 %files spl
3279 %defattr(644,root,root,755)
3280 %doc ext/spl/{CREDITS,README,TODO}
3281 %doc ext/spl/examples
3282 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3283 %attr(755,root,root) %{php_extensiondir}/spl.so
3284
3285 %if %{with sqlite3}
3286 %files sqlite3
3287 %defattr(644,root,root,755)
3288 %doc ext/sqlite3/CREDITS
3289 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3290 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
3291 %endif
3292
3293 %if %{with sybase_ct}
3294 %files sybase-ct
3295 %defattr(644,root,root,755)
3296 %doc ext/sybase_ct/CREDITS
3297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3298 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3299 %endif
3300
3301 %files sysvmsg
3302 %defattr(644,root,root,755)
3303 %doc ext/sysvmsg/CREDITS
3304 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3305 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3306
3307 %files sysvsem
3308 %defattr(644,root,root,755)
3309 %doc ext/sysvsem/CREDITS
3310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3311 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3312
3313 %files sysvshm
3314 %defattr(644,root,root,755)
3315 %doc ext/sysvshm/CREDITS
3316 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3317 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3318
3319 %files tests
3320 %defattr(644,root,root,755)
3321 %dir %{php_data_dir}/tests
3322 %dir %{php_data_dir}/tests/php
3323 %{php_data_dir}/tests/php/basic
3324 %{php_data_dir}/tests/php/classes
3325 %{php_data_dir}/tests/php/func
3326 %{php_data_dir}/tests/php/lang
3327 %{php_data_dir}/tests/php/output
3328 %{php_data_dir}/tests/php/run-test
3329 %{php_data_dir}/tests/php/security
3330 %{php_data_dir}/tests/php/strings
3331 %{php_data_dir}/tests/php/quicktester.inc
3332 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3333
3334 %if %{with tidy}
3335 %files tidy
3336 %defattr(644,root,root,755)
3337 %doc ext/tidy/{CREDITS,README}
3338 %doc ext/tidy/examples
3339 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3340 %attr(755,root,root) %{php_extensiondir}/tidy.so
3341 %endif
3342
3343 %files tokenizer
3344 %defattr(644,root,root,755)
3345 %doc ext/tokenizer/CREDITS
3346 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3347 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3348
3349 %if %{with wddx}
3350 %files wddx
3351 %defattr(644,root,root,755)
3352 %doc ext/wddx/CREDITS
3353 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3354 %attr(755,root,root) %{php_extensiondir}/wddx.so
3355 %endif
3356
3357 %files xml
3358 %defattr(644,root,root,755)
3359 %doc ext/xml/CREDITS
3360 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3361 %attr(755,root,root) %{php_extensiondir}/xml.so
3362
3363 %files xmlreader
3364 %defattr(644,root,root,755)
3365 %doc ext/xmlreader/{CREDITS,README,TODO}
3366 %doc ext/xmlreader/examples
3367 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3368 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3369
3370 %if %{with xmlrpc}
3371 %files xmlrpc
3372 %defattr(644,root,root,755)
3373 %doc ext/xmlrpc/CREDITS
3374 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3375 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3376 %endif
3377
3378 %files xmlwriter
3379 %defattr(644,root,root,755)
3380 %doc ext/xmlwriter/{CREDITS,TODO}
3381 %doc ext/xmlwriter/examples
3382 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3383 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3384
3385 %files xsl
3386 %defattr(644,root,root,755)
3387 %doc ext/xsl/CREDITS
3388 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3389 %attr(755,root,root) %{php_extensiondir}/xsl.so
3390
3391 %files zip
3392 %defattr(644,root,root,755)
3393 %doc ext/zip/{CREDITS,TODO}
3394 %doc ext/zip/examples
3395 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3396 %attr(755,root,root) %{php_extensiondir}/zip.so
3397
3398 %files zlib
3399 %defattr(644,root,root,755)
3400 %doc ext/zlib/CREDITS
3401 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3402 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.332859 seconds and 3 git commands to generate.