]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- add patch for bug #48880 random errors with open_basedir(); will be fixed
[packages/php.git] / php.spec
1 # TODO
2 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
3 #   - removed from php 5.0 (currently in php4):
4 #   db, hyperwave, java, mcal, overload, qtdom
5 #   - removed from php 5.1:
6 #   cpdf, fam, oracle
7 #   - removed from php 5.2:
8 #   filepro, hw
9 #   - removed from php 5.3:
10 #   dbase, mhash, mime_magic, ming, ncurses, sybase
11 # - make additional headers and checking added by mail patch configurable
12 # - modularize session, standard (output from pure php -m)?
13 # - lib64 patch obsolete by $PHP_LIBDIR ?
14 # - move mysqlnd out of libphp-common.so?
15 # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is
16 #   built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared.
17 #   make it runtime dep and add Suggests (or php warning messages)
18 # - some mods should be shared:
19 #$ php -m
20 # [PHP Modules]
21 #+Core
22 # date
23 #+ereg
24 # libxml
25 #+mysqlnd
26 # pcre
27 # Reflection
28 # session
29 #
30 # Conditional build:
31 %bcond_with     fdf             # with FDF (PDF forms) module           (BR: proprietary lib)
32 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
33 %bcond_with     oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
34 %bcond_with     system_gd       # with system gd (we prefer internal since it enables few more features)
35 %bcond_without  curl            # without CURL extension module
36 %bcond_without  filter          # without filter extension module
37 %bcond_without  imap            # without IMAP extension module
38 %bcond_without  interbase       # without InterBase extension module
39 %bcond_without  ldap            # without LDAP extension module
40 %bcond_without  mm              # without mm support for session storage
41 %bcond_without  mssql           # without MS SQL extension module
42 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
43 %bcond_without  odbc            # without ODBC extension module
44 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
45 %bcond_without  pgsql           # without PostgreSQL extension module
46 %bcond_without  phar            # without phar extension module
47 %bcond_without  pspell          # without pspell extension module
48 %bcond_without  recode          # without recode extension module
49 %bcond_without  snmp            # without SNMP extension module
50 %bcond_without  sqlite          # without SQLite extension module
51 %bcond_without  sqlite3         # without SQLite3 extension module
52 %bcond_without  sybase_ct       # without Sybase-CT extension module
53 %bcond_without  tidy            # without Tidy extension module
54 %bcond_without  wddx            # without WDDX extension module
55 %bcond_without  xmlrpc          # without XML-RPC extension module
56 %bcond_without  apache1         # disable building apache 1.3.x module
57 %bcond_without  apache2         # disable building apache 2.x module
58 %bcond_without  zts             # disable experimental-zts
59 %bcond_with     tests           # default off; test process very often hangs on buildersl; perform "make test"
60 %bcond_with     type_hints      # experimental support for strict typing/casting
61
62 %define apxs1           /usr/sbin/apxs1
63 %define apxs2           /usr/sbin/apxs
64
65 # some problems with apache 2.x
66 %if %{with apache2}
67 %undefine       with_mm
68 %endif
69
70 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
71 # ppc disabled (broken on th-ppc)
72 %undefine       with_interbase
73 %endif
74
75 %if %{without apache1} && %{without apache2}
76 ERROR: You need to select at least one Apache SAPI to build shared modules.
77 %endif
78
79 %define         rel             0.4
80 Summary:        PHP: Hypertext Preprocessor
81 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
82 Summary(pl.UTF-8):      Język skryptowy PHP
83 Summary(pt_BR.UTF-8):   A linguagem de script PHP
84 Summary(ru.UTF-8):      PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
85 Summary(uk.UTF-8):      PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
86 Name:           php
87 Version:        5.3.0
88 Release:        %{rel}%{?with_type_hints:th}
89 Epoch:          4
90 License:        PHP
91 Group:          Libraries
92 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.bz2
93 # Source0-md5:  846760cd655c98dfd86d6d97c3d964b0
94 Source2:        %{name}-mod_%{name}.conf
95 Source3:        %{name}-cgi-fcgi.ini
96 Source4:        %{name}-apache.ini
97 Source5:        %{name}-cli.ini
98 # Taken from: http://browsers.garykeith.com/downloads.asp
99 Source9:        %{name}_browscap.ini
100 Patch0:         %{name}-shared.patch
101 Patch1:         %{name}-pldlogo.patch
102 Patch2:         %{name}-mail.patch
103 Patch3:         %{name}-link-libs.patch
104 Patch4:         %{name}-libpq_fs_h_path.patch
105 Patch5:         %{name}-filter-shared.patch
106 Patch6:         %{name}-build_modules.patch
107 Patch7:         %{name}-config-file-scan-dir.patch
108 Patch8:         %{name}-sapi-ini-file.patch
109 Patch9:         %{name}-sh.patch
110 Patch10:        %{name}-ini.patch
111 Patch14:        %{name}-no_pear_install.patch
112 Patch15:        %{name}-zlib.patch
113 Patch17:        %{name}-readline.patch
114 Patch18:        %{name}-nohttpd.patch
115 Patch19:        %{name}-gd_imagerotate_enable.patch
116 Patch20:        %{name}-uint32_t.patch
117 Patch21:        %{name}-dba-link.patch
118 Patch23:        %{name}-both-apxs.patch
119 Patch24:        %{name}-builddir.patch
120 Patch25:        %{name}-zlib-for-getimagesize.patch
121 Patch29:        %{name}-config-dir.patch
122 Patch30:        %{name}-silent-session-cleanup.patch
123 Patch31:        %{name}-fcgi-graceful.patch
124 Patch32:        %{name}-m4-divert.patch
125 Patch38:        %{name}-tds.patch
126 Patch43:        %{name}-use-prog_sendmail.patch
127 Patch44:        %{name}-bug-48880.patch
128 %if %{with type_hints}
129 Patch50:        http://ilia.ws/patch/type_hint_53_v2.txt
130 %endif
131 URL:            http://www.php.net/
132 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
133 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
134 BuildRequires:  autoconf >= 2.53
135 BuildRequires:  automake >= 1.4d
136 BuildRequires:  bison
137 BuildRequires:  bzip2-devel
138 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
139 BuildRequires:  cyrus-sasl-devel
140 BuildRequires:  db-devel >= 4.0
141 BuildRequires:  elfutils-devel
142 %if %{with xmlrpc}
143 BuildRequires:  expat-devel
144 %endif
145 %{?with_fdf:BuildRequires:      fdftk-devel}
146 BuildRequires:  flex
147 Requires:       fcgi-devel
148 %if %{with mssql} || %{with sybase_ct}
149 BuildRequires:  freetds-devel >= 0.82
150 %endif
151 BuildRequires:  freetype-devel >= 2.0
152 %if %{with system_gd}
153 BuildRequires:  gd-devel >= 2.0.28-4
154 BuildRequires:  gd-devel(imagerotate) = 5.2.0
155 %endif
156 BuildRequires:  gdbm-devel
157 BuildRequires:  gmp-devel
158 %{?with_imap:BuildRequires:     imap-devel >= 1:2001-0.BETA.200107022325.2}
159 BuildRequires:  libjpeg-devel
160 BuildRequires:  libltdl-devel >= 1.4
161 BuildRequires:  libmcrypt-devel >= 2.4.4
162 BuildRequires:  libpng-devel >= 1.0.8
163 BuildRequires:  libtiff-devel
164 %if "%{pld_release}" != "ac"
165 BuildRequires:  libtool >= 2:2.2
166 %else
167 BuildRequires:  libtool >= 1.4.3
168 %endif
169 BuildRequires:  libwrap-devel
170 BuildRequires:  libxml2-devel >= 2.5.10
171 BuildRequires:  libxslt-devel >= 1.1.0
172 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
173 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
174 %if %{with openssl} || %{with ldap}
175 BuildRequires:  openssl-devel >= 0.9.7d
176 %endif
177 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
178 BuildRequires:  pam-devel
179 BuildRequires:  pcre-devel >= 6.6
180 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
181 %{?with_pgsql:BuildRequires:    postgresql-devel}
182 BuildRequires:  readline-devel
183 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
184 BuildRequires:  rpm >= 4.4.9-56
185 BuildRequires:  rpm-build >= 4.4.0
186 BuildRequires:  rpmbuild(macros) >= 1.238
187 %{?with_sqlite:BuildRequires:   sqlite-devel}
188 %{?with_sqlite3:BuildRequires:  sqlite3-devel >= 3.3.9}
189 BuildRequires:  t1lib-devel
190 %{?with_tidy:BuildRequires:     tidy-devel}
191 %{?with_odbc:BuildRequires:     unixODBC-devel}
192 %{?with_xmlrpc:BuildRequires:   xmlrpc-epi-devel}
193 BuildRequires:  zlib-devel >= 1.0.9
194 %if %{with apache1}
195 BuildRequires:  apache1-devel
196 %endif
197 %if %{with apache2}
198 BuildRequires:  apache-devel >= 2.0.52-2
199 BuildRequires:  apr-devel >= 1:1.0.0
200 BuildRequires:  apr-util-devel >= 1:1.0.0
201 %endif
202 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
203
204 %define         php_sysconfdir          /etc/php
205 %define         php_extensiondir        %{_libdir}/php
206 %define         _sysconfdir                     %{php_sysconfdir}
207
208 # must be in sync with source. extra check ensuring that it is so is done in %%build
209 %define         php_api_version         20090626
210 %define         zend_module_api         20090626
211 %define         zend_extension_api      220090626
212
213 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
214 %define         php_debug               %{!?debug:0}%{?debug:1}
215
216 %if %{with oci8}
217 # ORACLE_HOME is required for oci8 ext to build
218 %define _preserve_env %_preserve_env_base ORACLE_HOME
219 %endif
220
221 %description
222 PHP is an HTML-embedded scripting language. PHP attempts to make it
223 easy for developers to write dynamically generated web pages. PHP also
224 offers built-in database integration for several commercial and
225 non-commercial database management systems, so writing a
226 database-enabled web page with PHP is fairly simple. The most common
227 use of PHP coding is probably as a replacement for CGI scripts. The
228 mod_php module enables the Apache web server to understand and process
229 the embedded PHP language in web pages. This package contains php
230 version %{version}.
231
232 %description -l fr.UTF-8
233 PHP est un langage de script embarque dans le HTM. PHP essaye de
234 rendre simple aux developpeurs d'ecrire des pages web generees
235 dynamiquement. PHP incorpore egalement une integration avec plusieurs
236 systemes de gestion de bases de donnees commerciaux et
237 non-connerciaux, qui rent facile la creation de pages web liees avec
238 des bases de donnees. L'utilisation la plus commune de PHP est
239 probablement en remplacement de scripts CGI. Le module mod_php permet
240 au serveur web apache de comprendre et de traiter le langage PHP
241 integre dans des pages web. Ce package contient php version
242 %{version}.
243
244 %description -l pl.UTF-8
245 PHP jest językiem skryptowym, którego polecenia umieszcza się w
246 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
247 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
248 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
249 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
250 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
251 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
252 język PHP osadzony w stronach. Ten pakiet zawiera php w wersji
253 %{version}.
254
255 %description -l pt_BR.UTF-8
256 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
257 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
258 com algumas características únicas, específicas ao PHP. O objetivo da
259 linguagem é permitir que desenvolvedores web escrevam páginas
260 dinamicamente geradas de forma rápida.
261
262 %description -l ru.UTF-8
263 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
264 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
265 для работы с базами данных относительно просто. Наиболее популярное
266 использование PHP - замена для CGI скриптов.
267
268 %description -l uk.UTF-8
269 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
270 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
271 роботи з базами даних є доволі простим. Найбільш популярне
272 використання PHP - заміна для CGI скриптів.
273
274 %package -n apache1-mod_php
275 Summary:        PHP DSO module for apache 1.3.x
276 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php dla apache 1.3.x
277 Group:          Development/Languages/PHP
278 Requires(triggerpostun):        sed >= 4.0
279 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
280 Requires:       apache1(EAPI) >= 1.3.33-2
281 Requires:       apache1-mod_mime
282 Provides:       webserver(php) = %{version}
283 Obsoletes:      apache-mod_php < 1:4.1.1
284 Obsoletes:      phpfi
285
286 %description -n apache1-mod_php
287 PHP as DSO module for apache 1.3.x.
288
289 %description -n apache1-mod_php -l pl.UTF-8
290 php jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
291
292 %package -n apache-mod_php
293 Summary:        PHP DSO module for apache 2.x
294 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php dla apache 2.x
295 Group:          Development/Languages/PHP
296 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
297 Requires:       apache(modules-api) = %{apache_modules_api}
298 Requires:       apache-mod_mime
299 Provides:       webserver(php) = %{version}
300 Obsoletes:      phpfi
301
302 %description -n apache-mod_php
303 PHP as DSO module for apache 2.x.
304
305 %description -n apache-mod_php -l pl.UTF-8
306 php jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
307
308 %package cgi
309 Summary:        php as CGI/FastCGI program
310 Summary(pl.UTF-8):      php jako program CGI/FastCGI
311 Group:          Development/Languages/PHP
312 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
313 Provides:       php(cgi)
314 Provides:       php(fcgi)
315 Provides:       webserver(php)
316 Provides:       %{name}-fcgi = %{epoch}:%{version}-%{release}
317 Obsoletes:      php-fcgi < 4:5.3.0
318
319 %description cgi
320 php as CGI or FastCGI program.
321
322 %description cgi -l pl.UTF-8
323 php jako program CGI lub FastCGI.
324
325 %package cli
326 Summary:        php as CLI interpreter
327 Summary(pl.UTF-8):      php jako interpreter działający z linii poleceń
328 Group:          Development/Languages/PHP
329 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
330
331 %description cli
332 php as CLI interpreter.
333
334 %description cli -l pl.UTF-8
335 php jako interpreter działający z linii poleceń.
336
337 %package program
338 Summary:        /usr/bin/php symlink
339 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
340 Group:          Development/Languages/PHP
341 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
342 Obsoletes:      /usr/bin/php
343
344 %description program
345 Package providing /usr/bin/php symlink to PHP CLI.
346
347 %description program -l pl.UTF-8
348 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
349
350 %package common
351 Summary:        Common files needed by both Apache modules and CGI/CLI SAPI-s.
352 Summary(pl.UTF-8):      Wspólne pliki dla modułu apache'a i programu CGI
353 Summary(ru.UTF-8):      Разделяемые библиотеки для php
354 Summary(uk.UTF-8):      Бібліотеки спільного використання для php
355 Group:          Libraries
356 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
357 Requires:       glibc >= 6:2.3.5
358 Requires:       php-dirs
359 Provides:       php(date)
360 Provides:       php(hash)
361 Provides:       php(libxml)
362 Provides:       php(modules_api) = %{php_api_version}
363 Provides:       php(overload)
364 Provides:       php(pcre)
365 Provides:       php(reflection)
366 Provides:       php(session)
367 Provides:       php(spl)
368 Provides:       php(standard)
369 Provides:       php(zend_extension_api) = %{zend_extension_api}
370 Provides:       php(zend_module_api) = %{zend_module_api}
371 Provides:       php5(debug) = %{php_debug}
372 Provides:       php5(thread-safety) = %{zend_zts}
373 Obsoletes:      php-mhash
374 Obsoletes:      php-pcre < 4:5.2.0
375 Obsoletes:      php-pecl-domxml
376 Obsoletes:      php-session < 3:4.2.1-2
377 Conflicts:      php4-common < 3:4.4.4-8
378 Conflicts:      rpm < 4.4.2-0.2
379
380 %description common
381 Common files needed by both Apache modules and CGI/CLI SAPI-s.
382
383 %description common -l pl.UTF-8
384 Wspólne pliki dla modułu apacha i programu CGI.
385
386 %description common -l ru.UTF-8
387 Этот пакет содержит общие файлы для разных вариантов реализации PHP
388 (самодостаточной и в качестве модуля apache).
389
390 %description common -l uk.UTF-8
391 Цей пакет містить спільні файли для різних варіантів реалізації PHP
392 (самодостатньої та в якості модуля apache).
393
394 %package devel
395 Summary:        Files for PHP modules development
396 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
397 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
398 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
399 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
400 Group:          Development/Languages/PHP
401 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
402 Requires:       autoconf
403 Requires:       automake
404 Requires:       libtool
405 Requires:       pcre-devel >= 6.6
406 Requires:       shtool
407 Obsoletes:      php-pear-devel
408 Obsoletes:      php4-devel
409
410 %description devel
411 The php-devel package lets you compile dynamic extensions to PHP.
412 Included here is the source for the PHP extensions. Instead of
413 recompiling the whole php binary to add support for, say, oracle,
414 install this package and use the new self-contained extensions
415 support. For more information, read the file
416 README.SELF-CONTAINED-EXTENSIONS.
417
418 %description devel -l pl.UTF-8
419 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
420 rekompilować całe php aby dodać obsługę np. oracle, można przy użyciu
421 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
422 samodzielnych rozszerzeniach można znaleźć w pliku
423 README.SELF-CONTAINED-EXTENSIONS.
424
425 %description devel -l pt_BR.UTF-8
426 Este pacote contém arquivos usados no desenvolvimento de programas ou
427 módulos PHP.
428
429 %description devel -l ru.UTF-8
430 Пакет php-devel дает возможность компилировать динамические расширения
431 PHP. Пакет включает исходный код этих расширений. Вместо повторной
432 компиляции бинарного файла php для добавления, например, поддержки
433 oracle, установите этот пакет для компилирования отдельных расширений.
434 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
435
436 %description devel -l uk.UTF-8
437 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
438 До пакету включено вихідний код для розширень. Замість повторної
439 компіляції бінарного файлу php для додання, наприклад, підтримки
440 oracle, встановіть цей пакет для компіляції окремих розширень.
441 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
442
443 %package bcmath
444 Summary:        bcmath extension module for PHP
445 Summary(pl.UTF-8):      Moduł bcmath dla PHP
446 Group:          Libraries
447 URL:            http://www.php.net/manual/en/book.bc.php
448 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
449 Provides:       php(bcmath)
450
451 %description bcmath
452 This is a dynamic shared object (DSO) for PHP that will add bc style
453 precision math functions support.
454
455 %description bcmath -l pl.UTF-8
456 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
457 matematycznych takich jak w programie bc.
458
459 %package bzip2
460 Summary:        Bzip2 extension module for PHP
461 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
462 Group:          Libraries
463 URL:            http://www.php.net/manual/en/book.bzip2.php
464 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
465 Provides:       php(bzip2)
466
467 %description bzip2
468 This is a dynamic shared object (DSO) for PHP that will add bzip2
469 compression support to PHP.
470
471 %description bzip2 -l pl.UTF-8
472 Moduł PHP umożliwiający używanie kompresji bzip2.
473
474 %package calendar
475 Summary:        Calendar extension module for PHP
476 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
477 Group:          Libraries
478 URL:            http://www.php.net/manual/en/book.calendar.php
479 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
480 Provides:       php(calendar)
481
482 %description calendar
483 This is a dynamic shared object (DSO) for PHP that will add calendar
484 support.
485
486 %description calendar -l pl.UTF-8
487 Moduł PHP dodający wsparcie dla kalendarza.
488
489 %package ctype
490 Summary:        ctype extension module for PHP
491 Summary(pl.UTF-8):      Moduł ctype dla PHP
492 Group:          Libraries
493 URL:            http://www.php.net/manual/en/book.ctype.php
494 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
495 Provides:       php(ctype)
496
497 %description ctype
498 This is a dynamic shared object (DSO) for PHP that will add ctype
499 support.
500
501 %description ctype -l pl.UTF-8
502 Moduł PHP umożliwiający korzystanie z funkcji ctype.
503
504 %package curl
505 Summary:        curl extension module for PHP
506 Summary(pl.UTF-8):      Moduł curl dla PHP
507 Group:          Libraries
508 URL:            http://www.php.net/manual/en/book.curl.php
509 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
510 Provides:       php(curl)
511
512 %description curl
513 This is a dynamic shared object (DSO) for PHP that will add curl
514 support.
515
516 %description curl -l pl.UTF-8
517 Moduł PHP umożliwiający korzystanie z biblioteki curl.
518
519 %package dba
520 Summary:        DBA extension module for PHP
521 Summary(pl.UTF-8):      Moduł DBA dla PHP
522 Group:          Libraries
523 URL:            http://www.php.net/manual/en/book.dba.php
524 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
525 Provides:       php(dba)
526
527 %description dba
528 This is a dynamic shared object (DSO) for PHP that will add flat-file
529 databases (DBA) support.
530
531 %description dba -l pl.UTF-8
532 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
533 (DBA).
534
535 %package dom
536 Summary:        DOM extension module for PHP
537 Summary(pl.UTF-8):      Moduł DOM dla PHP
538 Group:          Libraries
539 URL:            http://www.php.net/manual/en/book.dom.php
540 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
541 Provides:       php(dom)
542 # it has some compatibility functions
543 Provides:       php(domxml)
544 Obsoletes:      php-domxml <= 3:4.3.8-1
545
546 %description dom
547 This is a dynamic shared object (DSO) for PHP that will add new DOM
548 support.
549
550 %description dom -l pl.UTF-8
551 Moduł PHP dodający nową obsługę DOM.
552
553 %package exif
554 Summary:        exif extension module for PHP
555 Summary(pl.UTF-8):      Moduł exif dla PHP
556 Group:          Libraries
557 URL:            http://www.php.net/manual/en/book.exif.php
558 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
559 Provides:       php(exif)
560
561 %description exif
562 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
563 support in image files.
564
565 %description exif -l pl.UTF-8
566 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
567
568 %package fdf
569 Summary:        FDF extension module for PHP
570 Summary(pl.UTF-8):      Moduł FDF dla PHP
571 Group:          Libraries
572 URL:            http://www.php.net/manual/en/book.fdf.php
573 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
574 Provides:       php(fdf)
575
576 %description fdf
577 This PHP module adds support for PDF Forms through Adobe FDFTK
578 library.
579
580 %description fdf -l pl.UTF-8
581 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
582 FDFTK.
583
584 %package fileinfo
585 Summary:        libmagic bindings
586 Group:          Libraries
587 URL:            http://www.php.net/manual/en/book.fileinfo.php
588 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
589 Provides:       php(fileinfo)
590 Obsoletes:      php-pecl-fileinfo
591
592 %description fileinfo
593 This extension allows retrieval of information regarding vast majority
594 of file. This information may include dimensions, quality, length
595 etc...
596
597 Additionally it can also be used to retrieve the MIME type for a
598 particular file and for text files proper language encoding.
599
600 %package filter
601 Summary:        Extension for safely dealing with input parameters
602 Summary(pl.UTF-8):      Rozszerzenie do bezpiecznej obsługi danych wejściowych
603 Group:          Libraries
604 URL:            http://www.php.net/manual/en/book.filter.php
605 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
606 Provides:       php(filter)
607 Obsoletes:      php-pecl-filter
608
609 %description filter
610 We all know that you should always check input variables, but PHP does
611 not offer really good functionality for doing this in a safe way. The
612 Input Filter extension is meant to address this issue by implementing
613 a set of filters and mechanisms that users can use to safely access
614 their input data.
615
616 %description filter -l pl.UTF-8
617 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
618 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
619 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
620 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
621 mogą bezpiecznie używać do dostępu do danych.
622
623 %package ftp
624 Summary:        FTP extension module for PHP
625 Summary(pl.UTF-8):      Moduł FTP dla PHP
626 Group:          Libraries
627 URL:            http://www.php.net/manual/en/book.ftp.php
628 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
629 Provides:       php(ftp)
630
631 %description ftp
632 This is a dynamic shared object (DSO) for PHP that will add FTP
633 support.
634
635 %description ftp -l pl.UTF-8
636 Moduł PHP dodający obsługę protokołu FTP.
637
638 %package gd
639 Summary:        GD extension module for PHP
640 Summary(pl.UTF-8):      Moduł GD dla PHP
641 Group:          Libraries
642 URL:            http://www.php.net/manual/en/book.image.php
643 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
644 %if %{with system_gd}
645 Requires:       gd >= 2.0.28-4
646 Requires:       gd(gif)
647 Requires:       gd(imagerotate) = 5.2.0
648 %endif
649 Provides:       php(gd)
650
651 %description gd
652 This is a dynamic shared object (DSO) for PHP that will add GD
653 support, allowing you to create and manipulate images with PHP.
654
655 %description gd -l pl.UTF-8
656 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
657 tworzenie i obróbkę obrazków.
658
659 %package gettext
660 Summary:        gettext extension module for PHP
661 Summary(pl.UTF-8):      Moduł gettext dla PHP
662 Group:          Libraries
663 URL:            http://www.php.net/manual/en/book.gettext.php
664 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
665 Provides:       php(gettext)
666
667 %description gettext
668 This is a dynamic shared object (DSO) for PHP that will add gettext
669 support.
670
671 %description gettext -l pl.UTF-8
672 Moduł PHP dodający obsługę lokalizacji przez gettext.
673
674 %package gmp
675 Summary:        gmp extension module for PHP
676 Summary(pl.UTF-8):      Moduł gmp dla PHP
677 Group:          Libraries
678 URL:            http://www.php.net/manual/en/book.gmp.php
679 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
680 Provides:       php(gmp)
681
682 %description gmp
683 This is a dynamic shared object (DSO) for PHP that will add arbitrary
684 length number support with GNU MP library.
685
686 %description gmp -l pl.UTF-8
687 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
688 liczbach o dowolnej długości.
689
690 %package hash
691 Summary:        HASH Message Digest Framework
692 Summary(pl.UTF-8):      Szkielet do obliczania skrótów wiadomości
693 Group:          Libraries
694 URL:            http://www.php.net/manual/en/book.gmp.php
695 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
696 Provides:       php(hash)
697 Obsoletes:      php-pecl-hash
698
699 %description hash
700 Native implementations of common message digest algorithms using a
701 generic factory method.
702
703 %description hash -l pl.UTF-8
704 Natywne implementacje popularnych algorytmów obliczania skrótów
705 wiadomości przy użyciu wspólnego interfejsu.
706
707 %package iconv
708 Summary:        iconv extension module for PHP
709 Summary(pl.UTF-8):      Moduł iconv dla PHP
710 Group:          Libraries
711 URL:            http://www.php.net/manual/en/book.iconv.php
712 Requires:       %{_libdir}/gconv
713 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
714 Requires:       iconv
715 Provides:       php(iconv)
716
717 %description iconv
718 This is a dynamic shared object (DSO) for PHP that will add iconv
719 support.
720
721 %description iconv -l pl.UTF-8
722 Moduł PHP dodający obsługę iconv.
723
724 %package imap
725 Summary:        IMAP extension module for PHP
726 Summary(pl.UTF-8):      Moduł IMAP dla PHP
727 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
728 Group:          Libraries
729 URL:            http://www.php.net/manual/en/book.imap.php
730 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
731 Provides:       php(imap)
732
733 %description imap
734 This is a dynamic shared object (DSO) for PHP that will add IMAP
735 support.
736
737 %description imap -l pl.UTF-8
738 Moduł PHP dodający obsługę skrzynek IMAP.
739
740 %description imap -l pt_BR.UTF-8
741 Um módulo para aplicações PHP que usam IMAP.
742
743 %package interbase
744 Summary:        InterBase/Firebird database module for PHP
745 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
746 Group:          Libraries
747 URL:            http://www.php.net/manual/en/book.ibase.php
748 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
749 Provides:       php(interbase)
750 %{?with_interbase_inst:Autoreq: false}
751
752 %description interbase
753 This is a dynamic shared object (DSO) for PHP that will add InterBase
754 and Firebird database support.
755
756 %description interbase -l pl.UTF-8
757 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
758
759 %package intl
760 Summary:        Internationalization extension (ICU wrapper)
761 Summary(pl.UTF-8):      Rozszerzenie do internacjonalizacji (wrapper ICU)
762 Group:          Libraries
763 URL:            http://www.php.net/intl
764 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
765 Provides:       php(intl)
766
767 %description intl
768 Internationalization extension (further is referred as Intl) is a wrapper 
769 for ICU library, enabling PHP programmers to perform UCA-conformant 
770 collation and date/time/number/currency formatting in their scripts.
771
772 %description intl -l pl.UTF-8
773 Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest wrapperem
774 biblioteki ICU, pozwalającym programistom PHP na wykonywanie w skryptach
775 porównań zdgodnych z UCA oraz formatowań daty/czasu/walut.
776
777 %package json
778 Summary:        PHP C extension for JSON serialization
779 Summary(pl.UTF-8):      Rozszerzenie C PHP dla serializacji JSON
780 Group:          Libraries
781 URL:            http://www.php.net/manual/en/book.json.php
782 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
783 Provides:       php(json)
784 Obsoletes:      php-pecl-json
785
786 %description json
787 php-json is an extremely fast PHP C extension for JSON (JavaScript
788 Object Notation) serialisation.
789
790 %description json -l pl.UTF-8
791 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
792 (JavaScript Object Notation).
793
794 %package ldap
795 Summary:        LDAP extension module for PHP
796 Summary(pl.UTF-8):      Moduł LDAP dla PHP
797 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
798 Group:          Libraries
799 URL:            http://www.php.net/manual/en/book.ldap.php
800 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
801 Provides:       php(ldap)
802
803 %description ldap
804 This is a dynamic shared object (DSO) for PHP that will add LDAP
805 support.
806
807 %description ldap -l pl.UTF-8
808 Moduł PHP dodający obsługę LDAP.
809
810 %description ldap -l pt_BR.UTF-8
811 Um módulo para aplicações PHP que usam LDAP.
812
813 %package mbstring
814 Summary:        mbstring extension module for PHP
815 Summary(pl.UTF-8):      Moduł mbstring dla PHP
816 Group:          Libraries
817 URL:            http://www.php.net/manual/en/book.mbstring.php
818 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
819 Provides:       php(mbstring)
820
821 %description mbstring
822 This is a dynamic shared object (DSO) for PHP that will add multibyte
823 string support.
824
825 %description mbstring -l pl.UTF-8
826 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
827
828 %package mcrypt
829 Summary:        mcrypt extension module for PHP
830 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
831 Group:          Libraries
832 URL:            http://www.php.net/manual/en/book.mcrypt.php
833 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
834 Provides:       php(mcrypt)
835
836 %description mcrypt
837 This is a dynamic shared object (DSO) for PHP that will add mcrypt
838 support.
839
840 %description mcrypt -l pl.UTF-8
841 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
842
843 %package mssql
844 Summary:        MS SQL extension module for PHP
845 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
846 Group:          Libraries
847 URL:            http://www.php.net/manual/en/book.mssql.php
848 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
849 Provides:       php(mssql)
850
851 %description mssql
852 This is a dynamic shared object (DSO) for PHP that will add MS SQL
853 databases support through FreeTDS library.
854
855 %description mssql -l pl.UTF-8
856 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
857 FreeTDS.
858
859 %package mysql
860 Summary:        MySQL database module for PHP
861 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
862 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
863 Group:          Libraries
864 URL:            http://www.php.net/manual/en/book.mysql.php
865 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
866 Provides:       php(mysql)
867
868 %description mysql
869 This is a dynamic shared object (DSO) for PHP that will add MySQL
870 database support.
871
872 %description mysql -l pl.UTF-8
873 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
874
875 %description mysql -l pt_BR.UTF-8
876 Um módulo para aplicações PHP que usam bancos de dados MySQL.
877
878 %package mysqli
879 Summary:        MySQLi module for PHP
880 Summary(pl.UTF-8):      Moduł MySQLi dla PHP
881 Group:          Libraries
882 URL:            http://www.php.net/manual/en/book.mysqli.php
883 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
884 Provides:       php(mysqli)
885
886 %description mysqli
887 This is a dynamic shared object (DSO) for PHP that will add MySQLi
888 (Improved MySQL) support. The difference between it and mysql module
889 is that it provides access to functionality of MySQL 4.1 and above.
890
891 %description mysqli -l pl.UTF-8
892 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
893 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
894 MySQL w wersji 4.1 i nowszych.
895
896 %package oci8
897 Summary:        Oracle 8+ database module for PHP
898 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8+ dla PHP
899 Group:          Libraries
900 URL:            http://www.php.net/manual/en/book.oci8.php
901 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
902 Provides:       php(oci8)
903 AutoReq:        false
904
905 %description oci8
906 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
907 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
908
909 %description oci8 -l pl.UTF-8
910 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
911 poprzez interfejs Oracle8 Call-Interface (OCI8).
912
913 %package odbc
914 Summary:        ODBC extension module for PHP
915 Summary(pl.UTF-8):      Moduł ODBC dla PHP
916 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
917 Group:          Libraries
918 URL:            http://www.php.net/manual/en/book.uodbc.php
919 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
920 Requires:       unixODBC >= 2.1.1-3
921 Provides:       php(odbc)
922
923 %description odbc
924 This is a dynamic shared object (DSO) for PHP that will add ODBC
925 support.
926
927 %description odbc -l pl.UTF-8
928 Moduł PHP ze wsparciem dla ODBC.
929
930 %description odbc -l pt_BR.UTF-8
931 Um módulo para aplicações PHP que usam ODBC.
932
933 %package openssl
934 Summary:        OpenSSL extension module for PHP
935 Summary(pl.UTF-8):      Moduł OpenSSL dla PHP
936 Group:          Libraries
937 URL:            http://www.php.net/manual/en/book.openssl.php
938 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
939 Provides:       php(openssl)
940
941 %description openssl
942 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
943 support.
944
945 %description openssl -l pl.UTF-8
946 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
947
948 %package pcntl
949 Summary:        Process Control extension module for PHP
950 Summary(pl.UTF-8):      Moduł Process Control dla PHP
951 Group:          Libraries
952 URL:            http://www.php.net/manual/en/book.pcntl.php
953 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
954 Provides:       php(pcntl)
955
956 %description pcntl
957 This is a dynamic shared object (DSO) for PHP that will add process
958 spawning and control support. It supports functions like fork(),
959 waitpid(), signal() etc.
960
961 %description pcntl -l pl.UTF-8
962 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
963 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
964
965 %package pdo
966 Summary:        PHP Data Objects (PDO)
967 Summary(pl.UTF-8):      Obsługa PHP Data Objects (PDO)
968 Group:          Libraries
969 URL:            http://www.php.net/manual/en/book.pdo.php
970 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
971 Provides:       php(pdo)
972 Obsoletes:      php-pecl-PDO
973
974 %description pdo
975 This is a dynamic shared object (DSO) for PHP that will add PDO
976 support.
977
978 %description pdo -l pl.UTF-8
979 Moduł PHP dodający obsługę PDO (PHP Data Objects).
980
981 %package pdo-dblib
982 Summary:        PHP Data Objects (PDO) FreeTDS support
983 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą FreeTDS
984 Group:          Libraries
985 URL:            http://www.php.net/manual/en/ref.pdo-dblib.php
986 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
987 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
988 Provides:       php(dblib)
989
990 %description pdo-dblib
991 This is a dynamic shared object (DSO) for PHP that will add PDO
992 FreeTDS support.
993
994 %description pdo-dblib -l pl.UTF-8
995 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
996 interfejsu PDO.
997
998 %package pdo-firebird
999 Summary:        PHP Data Objects (PDO) Firebird support
1000 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Firebirda
1001 Group:          Libraries
1002 URL:            http://www.php.net/manual/en/ref.pdo-firebird.php
1003 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1004 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1005 Provides:       php(pdo-firebird)
1006 Obsoletes:      php-pecl-PDO_FIREBIRD
1007
1008 %description pdo-firebird
1009 This is a dynamic shared object (DSO) for PHP that will add PDO
1010 Firebird support.
1011
1012 %description pdo-firebird -l pl.UTF-8
1013 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1014 interfejsu PDO.
1015
1016 %package pdo-mysql
1017 Summary:        PHP Data Objects (PDO) MySQL support
1018 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1019 Group:          Libraries
1020 URL:            http://www.php.net/manual/en/ref.pdo-mysql.php
1021 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1022 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1023 Provides:       php(pdo-mysql)
1024 Obsoletes:      php-pecl-PDO_MYSQL
1025
1026 %description pdo-mysql
1027 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1028 support.
1029
1030 %description pdo-mysql -l pl.UTF-8
1031 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1032 interfejsu PDO.
1033
1034 %package pdo-oci
1035 Summary:        PHP Data Objects (PDO) Oracle support
1036 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1037 Group:          Libraries
1038 URL:            http://www.php.net/manual/en/ref.pdo-oci.php
1039 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1040 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1041 Provides:       php(pdo-oci)
1042 Obsoletes:      php-pecl-PDO_OCI
1043
1044 %description pdo-oci
1045 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1046 support.
1047
1048 %description pdo-oci -l pl.UTF-8
1049 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1050 interfejsu PDO.
1051
1052 %package pdo-odbc
1053 Summary:        PHP Data Objects (PDO) ODBC support
1054 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą ODBC
1055 Group:          Libraries
1056 URL:            http://www.php.net/manual/en/ref.pdo-odbc.php
1057 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1058 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1059 Provides:       php(pdo-odbc)
1060 Obsoletes:      php-pecl-PDO_ODBC
1061
1062 %description pdo-odbc
1063 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1064 support.
1065
1066 %description pdo-odbc -l pl.UTF-8
1067 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1068 interfejsu PDO.
1069
1070 %package pdo-pgsql
1071 Summary:        PHP Data Objects (PDO) PostgreSQL support
1072 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1073 Group:          Libraries
1074 URL:            http://www.php.net/manual/en/ref.pdo-pgsql.php
1075 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1076 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1077 Provides:       php(pdo-pgsql)
1078 Provides:       php-pecl-PDO_PGSQL
1079 Obsoletes:      php-pecl-PDO_PGSQL
1080
1081 %description pdo-pgsql
1082 This is a dynamic shared object (DSO) for PHP that will add PDO
1083 PostgreSQL support.
1084
1085 %description pdo-pgsql -l pl.UTF-8
1086 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1087 interfejsu PDO.
1088
1089 %package pdo-sqlite
1090 Summary:        PHP Data Objects (PDO) SQLite support
1091 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą SQLite
1092 Group:          Libraries
1093 URL:            http://www.php.net/manual/en/ref.pdo-sqlite.php
1094 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1095 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1096 Provides:       php(pdo-sqlite)
1097 Obsoletes:      php-pecl-PDO_SQLITE
1098
1099 %description pdo-sqlite
1100 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1101 support.
1102
1103 %description pdo-sqlite -l pl.UTF-8
1104 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1105 interfejsu PDO.
1106
1107 %package pgsql
1108 Summary:        PostgreSQL database module for PHP
1109 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1110 Group:          Libraries
1111 URL:            http://www.php.net/manual/en/book.pgsql.php
1112 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1113 Provides:       php(pgsql)
1114
1115 %description pgsql
1116 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1117 database support.
1118
1119 %description pgsql -l pl.UTF-8
1120 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1121
1122 %description pgsql -l pt_BR.UTF-8
1123 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1124
1125 %package phar
1126 Summary:        phar database module for PHP
1127 Summary(pl.UTF-8):      Moduł phar dla PHP
1128 Group:          Libraries
1129 URL:            http://www.php.net/manual/en/book.phar.php
1130 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1131 Provides:       php(phar)
1132
1133 %description phar
1134 This is a dynamic shared object (DSO) for PHP that will add phar
1135 archive a support.
1136
1137 %description phar -l pl.UTF-8
1138 Moduł PHP umożliwiający dostęp do achiwów .phar.
1139
1140 %package posix
1141 Summary:        POSIX extension module for PHP
1142 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1143 Group:          Libraries
1144 URL:            http://www.php.net/manual/en/book.posix.php
1145 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1146 Provides:       php(posix)
1147
1148 %description posix
1149 This is a dynamic shared object (DSO) for PHP that will add POSIX
1150 functions support to PHP.
1151
1152 %description posix -l pl.UTF-8
1153 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1154
1155 %package pspell
1156 Summary:        pspell extension module for PHP
1157 Summary(pl.UTF-8):      Moduł pspell dla PHP
1158 Group:          Libraries
1159 URL:            http://www.php.net/manual/en/book.pspell.php
1160 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1161 Provides:       php(pspell)
1162
1163 %description pspell
1164 This is a dynamic shared object (DSO) for PHP that will add pspell
1165 support to PHP. It allows to check the spelling of a word and offer
1166 suggestions.
1167
1168 %description pspell -l pl.UTF-8
1169 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1170 sprawdzanie pisowni słowa i sugerowanie poprawek.
1171
1172 %package readline
1173 Summary:        readline extension module for PHP
1174 Summary(pl.UTF-8):      Moduł readline dla PHP
1175 Group:          Libraries
1176 URL:            http://www.php.net/manual/en/book.readline.php
1177 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1178 Provides:       php(readline)
1179
1180 %description readline
1181 This PHP module adds support for readline functions (only for cli and
1182 cgi SAPIs).
1183
1184 %description readline -l pl.UTF-8
1185 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1186
1187 %package recode
1188 Summary:        recode extension module for PHP
1189 Summary(pl.UTF-8):      Moduł recode dla PHP
1190 Group:          Libraries
1191 URL:            http://www.php.net/manual/en/book.recode.php
1192 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1193 Requires:       recode >= 3.5d-3
1194 Provides:       php(recode)
1195
1196 %description recode
1197 This is a dynamic shared object (DSO) for PHP that will add recode
1198 support.
1199
1200 %description recode -l pl.UTF-8
1201 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1202 bibliotekę recode).
1203
1204 %package shmop
1205 Summary:        Shared Memory Operations extension module for PHP
1206 Summary(pl.UTF-8):      Moduł shmop dla PHP
1207 Group:          Libraries
1208 URL:            http://www.php.net/manual/en/book.shmop.php
1209 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1210 Provides:       php(shmop)
1211
1212 %description shmop
1213 This is a dynamic shared object (DSO) for PHP that will add Shared
1214 Memory Operations support.
1215
1216 %description shmop -l pl.UTF-8
1217 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1218
1219 %package simplexml
1220 Summary:        Simple XML extension module for PHP
1221 Summary(pl.UTF-8):      Moduł prostego rozszerzenia XML dla PHP
1222 Group:          Libraries
1223 URL:            http://www.php.net/manual/en/book.simplexml.php
1224 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1225 Provides:       php(simplexml)
1226
1227 %description simplexml
1228 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1229 support.
1230
1231 %description simplexml -l pl.UTF-8
1232 Moduł PHP dodający obsługę prostego XML-a.
1233
1234 %package snmp
1235 Summary:        SNMP extension module for PHP
1236 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1237 Group:          Libraries
1238 URL:            http://www.php.net/manual/en/book.snmp.php
1239 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1240 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1241 Provides:       php(snmp)
1242
1243 %description snmp
1244 This is a dynamic shared object (DSO) for PHP that will add SNMP
1245 support.
1246
1247 %description snmp -l pl.UTF-8
1248 Moduł PHP dodający obsługę SNMP.
1249
1250 %package soap
1251 Summary:        soap extension module for PHP
1252 Summary(pl.UTF-8):      Moduł soap dla PHP
1253 Group:          Libraries
1254 URL:            http://www.php.net/manual/en/book.soap.php
1255 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1256 Provides:       php(soap)
1257
1258 %description soap
1259 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1260 support.
1261
1262 %description soap -l pl.UTF-8
1263 Moduł PHP dodający obsługę SOAP/WSDL.
1264
1265 %package sockets
1266 Summary:        sockets extension module for PHP
1267 Summary(pl.UTF-8):      Moduł socket dla PHP
1268 Group:          Libraries
1269 URL:            http://www.php.net/manual/en/book.sockets.php
1270 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1271 Provides:       php(sockets)
1272
1273 %description sockets
1274 This is a dynamic shared object (DSO) for PHP that will add sockets
1275 support.
1276
1277 %description sockets -l pl.UTF-8
1278 Moduł PHP dodający obsługę gniazdek.
1279
1280 %package sqlite
1281 Summary:        SQLite extension module for PHP
1282 Summary(pl.UTF-8):      Moduł SQLite dla PHP
1283 Group:          Libraries
1284 URL:            http://www.php.net/manual/en/book.sqlite.php
1285 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1286 # sqlite ext extends spl and pdo
1287 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1288 Provides:       php(sqlite)
1289
1290 %description sqlite
1291 SQLite is a C library that implements an embeddable SQL database
1292 engine. Programs that link with the SQLite library can have SQL
1293 database access without running a separate RDBMS process.
1294
1295 SQLite is not a client library used to connect to a big database
1296 server. SQLite is the server. The SQLite library reads and writes
1297 directly to and from the database files on disk.
1298
1299 %description sqlite -l pl.UTF-8
1300 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1301 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1302 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1303 RDBMS.
1304
1305 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1306 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1307 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1308 dysku.
1309
1310 %package sqlite3
1311 Summary:        SQLite3 extension module for PHP
1312 Summary(pl.UTF-8):      Moduł SQLite3 dla PHP
1313 Group:          Libraries
1314 URL:            http://php.net/manual/en/book.sqlite3.php
1315 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1316 Provides:       php(sqlite3)
1317
1318 %description sqlite3
1319 SQLite is a C library that implements an embeddable SQL database
1320 engine. Programs that link with the SQLite library can have SQL
1321 database access without running a separate RDBMS process.
1322
1323 SQLite is not a client library used to connect to a big database
1324 server. SQLite is the server. The SQLite library reads and writes
1325 directly to and from the database files on disk.
1326
1327 %description sqlite3 -l pl.UTF-8
1328 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1329 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1330 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1331 RDBMS.
1332
1333 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1334 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1335 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1336 dysku.
1337
1338 %package sybase-ct
1339 Summary:        Sybase-CT extension module for PHP
1340 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1341 Group:          Libraries
1342 URL:            http://www.php.net/manual/en/book.sybase.php
1343 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1344 Provides:       php(sybase-ct)
1345 Obsoletes:      php-sybase
1346 Conflicts:      php-sybase
1347
1348 %description sybase-ct
1349 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1350 MS SQL databases support through CT-lib.
1351
1352 %description sybase-ct -l pl.UTF-8
1353 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1354 CT-lib.
1355
1356 %package sysvmsg
1357 Summary:        SysV msg extension module for PHP
1358 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1359 Group:          Libraries
1360 URL:            http://www.php.net/manual/en/book.sem.php
1361 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1362 Provides:       php(sysvmsg)
1363
1364 %description sysvmsg
1365 This is a dynamic shared object (DSO) for PHP that will add SysV
1366 message queues support.
1367
1368 %description sysvmsg -l pl.UTF-8
1369 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1370
1371 %package sysvsem
1372 Summary:        SysV sem extension module for PHP
1373 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1374 Group:          Libraries
1375 URL:            http://www.php.net/manual/en/book.sem.php
1376 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1377 Provides:       php(sysvsem)
1378
1379 %description sysvsem
1380 This is a dynamic shared object (DSO) for PHP that will add SysV
1381 semaphores support.
1382
1383 %description sysvsem -l pl.UTF-8
1384 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1385
1386 %package sysvshm
1387 Summary:        SysV shm extension module for PHP
1388 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1389 Group:          Libraries
1390 URL:            http://www.php.net/manual/en/book.shmop.php
1391 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1392 Provides:       php(sysvshm)
1393
1394 %description sysvshm
1395 This is a dynamic shared object (DSO) for PHP that will add SysV
1396 Shared Memory support.
1397
1398 %description sysvshm -l pl.UTF-8
1399 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1400
1401 %package tests
1402 Summary:        Contains unit test files for PHP and extensions
1403 Summary(pl.UTF-8):      Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1404 Group:          Libraries
1405 URL:            http://qa.php.net/
1406 Requires:       %{name}-cli
1407
1408 %description tests
1409 This package contains unit tests for PHP and it's extensions.
1410
1411 %description tests -l pl.UTF-8
1412 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1413
1414 %package tidy
1415 Summary:        Tidy extension module for PHP
1416 Summary(pl.UTF-8):      Moduł Tidy dla PHP
1417 Group:          Libraries
1418 URL:            http://www.php.net/manual/en/book.tidy.php
1419 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1420 Requires:       tidy
1421 Provides:       php(tidy)
1422
1423 %description tidy
1424 This is a dynamic shared object (DSO) for PHP that will add Tidy
1425 support.
1426
1427 %description tidy -l pl.UTF-8
1428 Moduł PHP umożliwiający korzystanie z tidy.
1429
1430 %package tokenizer
1431 Summary:        tokenizer extension module for PHP
1432 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1433 Group:          Libraries
1434 URL:            http://www.php.net/manual/en/book.tokenizer.php
1435 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1436 Provides:       php(tokenizer)
1437
1438 %description tokenizer
1439 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1440 support.
1441
1442 %description tokenizer -l pl.UTF-8
1443 Moduł PHP dodający obsługę tokenizera do PHP.
1444
1445 %package wddx
1446 Summary:        wddx extension module for PHP
1447 Summary(pl.UTF-8):      Moduł wddx dla PHP
1448 Group:          Libraries
1449 URL:            http://www.php.net/manual/en/book.wddx.php
1450 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1451 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1452 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1453 Provides:       php(wddx)
1454
1455 %description wddx
1456 This is a dynamic shared object (DSO) for PHP that will add wddx
1457 support.
1458
1459 %description wddx -l pl.UTF-8
1460 Moduł PHP umożliwiający korzystanie z wddx.
1461
1462 %package xml
1463 Summary:        XML extension module for PHP
1464 Summary(pl.UTF-8):      Moduł XML dla PHP
1465 Group:          Libraries
1466 URL:            http://www.php.net/manual/en/book.xml.php
1467 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1468 Provides:       php(xml)
1469
1470 %description xml
1471 This is a dynamic shared object (DSO) for PHP that will add XML
1472 support. This extension lets you create XML parsers and then define
1473 handlers for different XML events.
1474
1475 %description xml -l pl.UTF-8
1476 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1477 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1478 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1479
1480 %package xmlreader
1481 Summary:        XML Reader extension module for PHP
1482 Summary(pl.UTF-8):      Moduł XML Reader dla PHP
1483 Group:          Libraries
1484 URL:            http://www.php.net/manual/en/book.xmlreader.php
1485 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1486 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1487 Provides:       php(xmlreader)
1488
1489 %description xmlreader
1490 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1491 support. The XMLReader extension is an XML Pull parser. The reader
1492 acts as a cursor going forward on the document stream and stopping at
1493 each node on the way.
1494
1495 %description xmlreader -l pl.UTF-8
1496 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1497 działa jako kursor przechodzący przez strumień dokumentu i
1498 zatrzymujący się na każdym węźle po drodze.
1499
1500 %package xmlrpc
1501 Summary:        xmlrpc extension module for PHP
1502 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1503 Group:          Libraries
1504 URL:            http://www.php.net/manual/en/book.xmlrpc.php
1505 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1506 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1507 Provides:       php(xmlrpc)
1508
1509 %description xmlrpc
1510 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1511 support.
1512
1513 %description xmlrpc -l pl.UTF-8
1514 Moduł PHP dodający obsługę XMLRPC.
1515
1516 %package xmlwriter
1517 Summary:        Fast, non-cached, forward-only means to write XML data
1518 Summary(pl.UTF-8):      Szybka, nie cachowana metoda zapisu danych w formacie XML
1519 Group:          Libraries
1520 URL:            http://www.php.net/manual/en/book.xmlwriter.php
1521 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1522 Provides:       php(xmlwriter)
1523 Obsoletes:      php-pecl-xmlwriter
1524
1525 %description xmlwriter
1526 This extension wraps the libxml xmlWriter API. Represents a writer
1527 that provides a non-cached, forward-only means of generating streams
1528 or files containing XML data.
1529
1530 %description xmlwriter -l pl.UTF-8
1531 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1532 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1533 plików zawierających dane XML.
1534
1535 %package xsl
1536 Summary:        xsl extension module for PHP
1537 Summary(pl.UTF-8):      Moduł xsl dla PHP
1538 Group:          Libraries
1539 URL:            http://www.php.net/manual/en/book.xsl.php
1540 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1541 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1542 Requires:       libxslt >= 1.0.18
1543 # actually not true, functionality is similar, but API differs
1544 Provides:       php(xsl)
1545 Obsoletes:      php-xslt <= 3:4.3.8-1
1546
1547 %description xsl
1548 This is a dynamic shared object (DSO) for PHP that will add new XSL
1549 support (using libxslt).
1550
1551 %description xsl -l pl.UTF-8
1552 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1553
1554 %package zip
1555 Summary:        Zip management extension
1556 Summary(pl.UTF-8):      Zarządzanie archiwami zip
1557 Group:          Libraries
1558 URL:            http://www.php.net/manual/en/book.zip.php
1559 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1560 Provides:       php(zip)
1561 Obsoletes:      php-pecl-zip
1562
1563 %description zip
1564 Zip is an extension to create, modify and read zip files.
1565
1566 %description zip -l pl.UTF-8
1567 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1568 odczyt archiwów zip.
1569
1570 %package zlib
1571 Summary:        Zlib extension module for PHP
1572 Summary(pl.UTF-8):      Moduł zlib dla PHP
1573 Group:          Libraries
1574 URL:            http://www.php.net/manual/en/book.zlib.php
1575 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1576 Provides:       php(zlib)
1577
1578 %description zlib
1579 This is a dynamic shared object (DSO) for PHP that will add zlib
1580 compression support to PHP.
1581
1582 %description zlib -l pl.UTF-8
1583 Moduł PHP umożliwiający używanie kompresji zlib.
1584
1585 %prep
1586 %setup -q
1587
1588 %if %{with type_hints}
1589 %patch50 -p0
1590 %endif
1591
1592 %patch44 -p1
1593
1594 %patch0 -p1
1595 %patch1 -p1
1596 %patch2 -p1
1597 %patch3 -p1
1598 %patch4 -p1
1599 %patch5 -p1
1600 %patch6 -p1
1601 %patch7 -p1
1602 %patch8 -p1
1603 %patch9 -p1
1604
1605 cp php.ini-production php.ini
1606 %patch10 -p1
1607
1608 %patch14 -p1
1609 %patch15 -p1
1610 %patch17 -p1
1611 %patch18 -p1
1612 %if %{with system_gd}
1613 %patch19 -p1
1614 %endif
1615 %patch20 -p1
1616 %patch21 -p1
1617
1618 %patch23 -p1
1619 %patch24 -p1
1620 %patch25 -p1
1621
1622 %patch29 -p1
1623 %patch30 -p1
1624 %patch31 -p1
1625 %patch32 -p1
1626 %patch38 -p1
1627
1628 %patch43 -p1
1629
1630 # conflict seems to be resolved by recode patches
1631 rm -f ext/recode/config9.m4
1632
1633 # remove all bundled libraries not to link with them accidentally
1634 #rm -rf ext/sqlite/libsqlite
1635 rm -rf ext/sqlite3/libsqlite
1636 #rm -rf ext/bcmath/libbcmath
1637 #rm -rf ext/date/lib
1638 #rm -rf ext/dba/libcdb
1639 #rm -rf ext/dba/libflatfile
1640 #rm -rf ext/dba/libinifile
1641 #rm -rf ext/gd/libgd
1642 #rm -rf ext/mbstring/libmbfl
1643 #rm -rf ext/mbstring/oniguruma
1644 rm -rf ext/pcre/pcrelib
1645 rm -rf ext/pdo_sqlite/sqlite
1646 #rm -rf ext/soap/interop
1647 rm -rf ext/xmlrpc/libxmlrpc
1648
1649 # breaks build
1650 sed -i -e 's#-fvisibility=hidden##g' configure*
1651
1652 %build
1653 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1654 if [ $API != %{php_api_version} ]; then
1655         echo "Set %%define php_api_version to $API and re-run."
1656         exit 1
1657 fi
1658
1659 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1660 if [ $API != %{zend_module_api} ]; then
1661         echo "Set %%define zend_module_api to $API and re-run."
1662         exit 1
1663 fi
1664
1665 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1666 if [ $API != %{zend_extension_api} ]; then
1667         echo "Set %%define zend_extension_api to $API and re-run."
1668         exit 1
1669 fi
1670
1671 export EXTENSION_DIR="%{php_extensiondir}"
1672 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1673         rm -f Makefile.{cgi-fcgi,cli,apxs{1,2}} # now remove Makefile copies
1674         %{__libtoolize}
1675         %{__aclocal}
1676         cp -f /usr/share/automake/config.* .
1677         ./buildconf --force
1678         touch _built-conf
1679 fi
1680 export PROG_SENDMAIL="/usr/lib/sendmail"
1681 export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP"
1682
1683 sapis="
1684 cgi-fcgi cli
1685 %if %{with apache1}
1686 apxs1
1687 %endif
1688 %if %{with apache2}
1689 apxs2
1690 %endif
1691 "
1692 for sapi in $sapis; do
1693         : SAPI $sapi
1694         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1695
1696         sapi_args=''
1697         case $sapi in
1698         cgi-fcgi)
1699                 sapi_args=''
1700         ;;
1701         cli)
1702                 sapi_args='--disable-cgi'
1703         ;;
1704         apxs1)
1705                 ver=$(rpm -q --qf '%{V}' apache1-devel)
1706                 sapi_args="--with-apxs=%{apxs1}"
1707         ;;
1708         apxs2)
1709                 ver=$(rpm -q --qf '%{V}' apache-devel)
1710                 sapi_args="--with-apxs2=%{apxs2}"
1711         ;;
1712         esac
1713
1714         %configure \
1715         $sapi_args \
1716 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1717         --cache-file=config.cache \
1718 %endif
1719         --with-libdir=%{_lib} \
1720         --with-config-file-path=%{_sysconfdir} \
1721         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1722         --with-exec-dir=%{_bindir} \
1723         --%{!?debug:dis}%{?debug:en}able-debug \
1724         %{?with_zts:--enable-maintainer-zts} \
1725         --enable-inline-optimization \
1726         --enable-bcmath=shared \
1727         --enable-calendar=shared \
1728         --enable-ctype=shared \
1729         --enable-dba=shared \
1730         --enable-dom=shared \
1731         --enable-exif=shared \
1732         --enable-fileinfo=shared \
1733         --enable-ftp=shared \
1734         --enable-gd-native-ttf \
1735         --enable-intl=shared \
1736         --enable-libxml \
1737         --enable-magic-quotes \
1738         --enable-mbstring=shared,all \
1739         --enable-mbregex \
1740         --enable-pcntl=shared \
1741         --enable-pdo=shared \
1742         --enable-json=shared \
1743         --enable-hash=shared \
1744         --enable-xmlwriter=shared \
1745 %if %{with mssql} || %{with sybase_ct}
1746         --with-pdo-dblib=shared \
1747 %endif
1748 %if %{with interbase} && %{without interbase_inst}
1749         --with-pdo-firebird=shared,/usr \
1750 %endif
1751         --with-mysql-sock=/var/lib/mysql/mysql.sock \
1752         --with-pdo-mysql=shared,mysqlnd \
1753         %{?with_oci8:--with-pdo-oci=shared} \
1754         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1755         %{?with_pgsql:--with-pdo-pgsql=shared} \
1756         %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1757         --enable-mysqlnd-threading \
1758         --enable-posix=shared \
1759         --enable-session \
1760         --enable-shared \
1761         --enable-shmop=shared \
1762         --enable-simplexml=shared \
1763         --enable-sysvmsg=shared \
1764         --enable-sysvsem=shared \
1765         --enable-sysvshm=shared \
1766         --enable-safe-mode \
1767         --enable-soap=shared \
1768         --enable-sockets=shared \
1769         --enable-tokenizer=shared \
1770         --enable-ucd-snmp-hack \
1771         %{?with_wddx:--enable-wddx=shared} \
1772         --enable-xml=shared \
1773         --enable-xmlreader=shared \
1774         --with-bz2=shared \
1775         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1776         --with-db4 \
1777         %{?with_fdf:--with-fdftk=shared} \
1778         --with-iconv=shared \
1779         --with-freetype-dir=shared \
1780         --with-gettext=shared \
1781         --with-gd=shared%{?with_system_gd:,/usr} \
1782         --with-gdbm \
1783         --with-gmp=shared \
1784         %{?with_imap:--with-imap=shared --with-imap-ssl} \
1785         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1786         --with-jpeg-dir=/usr \
1787         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1788         --with-mcrypt=shared \
1789         %{?with_mm:--with-mm} \
1790         %{?with_mssql:--with-mssql=shared} \
1791         --with-mysql=shared,mysqlnd \
1792         %{?with_mysqli:--with-mysqli=shared,mysqlnd} \
1793         %{?with_oci8:--with-oci8=shared} \
1794         %{?with_openssl:--with-openssl=shared} \
1795         --with-kerberos \
1796         --with-pcre-regex=/usr \
1797         %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
1798         --with-pear=%{php_pear_dir} \
1799         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1800         %{!?with_phar:--disable-phar}%{?with_phar:--enable-phar=shared} \
1801         --with-png-dir=/usr \
1802         %{?with_pspell:--with-pspell=shared} \
1803         --with-readline=shared \
1804         %{?with_recode:--with-recode=shared} \
1805         --with-regex=system \
1806         %{?with_snmp:--with-snmp=shared} \
1807         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1808         %{!?with_sqlite:--without-sqlite --without-pdo-sqlite}%{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1809         %{!?with_sqlite3:--without-sqlite3}%{?with_sqlite3:--with-sqlite3=shared,/usr} \
1810         --with-t1lib=shared \
1811         %{?with_tidy:--with-tidy=shared} \
1812         %{?with_odbc:--with-unixODBC=shared,/usr} \
1813         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
1814         --with-xsl=shared \
1815         --with-zlib=shared \
1816         --with-zlib-dir=shared,/usr \
1817         --enable-zip=shared,/usr \
1818
1819         cp -f Makefile Makefile.$sapi
1820         cp -f main/php_config.h php_config.h.$sapi
1821         cp -f config.log config.log.$sapi
1822 done
1823
1824 # must make this first, so modules can link against it.
1825 %{__make} libphp_common.la
1826 %{__make} build-modules
1827
1828 %if %{with apache1}
1829 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
1830 %endif
1831
1832 %if %{with apache2}
1833 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
1834 %endif
1835
1836 # CGI
1837 cp -af php_config.h.cgi-fcgi main/php_config.h
1838 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1839 %{__make} sapi/cgi/php-cgi -f Makefile.cgi-fcgi
1840 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
1841
1842 # CLI
1843 cp -af php_config.h.cli main/php_config.h
1844 %{__make} sapi/cli/php -f Makefile.cli
1845 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = cli ] || exit 1
1846
1847 %if %{with tests}
1848 # Run tests, using the CLI SAPI
1849 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
1850 unset TZ LANG LC_ALL || :
1851 %{__make} test
1852 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
1853 %endif
1854
1855 %install
1856 rm -rf $RPM_BUILD_ROOT
1857 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
1858         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1859         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
1860         $RPM_BUILD_ROOT%{_mandir}/man1 \
1861
1862 # install the apache modules' files
1863 %{__make} install-headers install-build install-modules install-programs \
1864         INSTALL_ROOT=$RPM_BUILD_ROOT
1865
1866 # install apache1 DSO module
1867 %if %{with apache1}
1868 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
1869 %endif
1870
1871 # install apache2 DSO module
1872 %if %{with apache2}
1873 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
1874 %endif
1875
1876 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
1877 # fix install paths, avoid evil rpaths
1878 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
1879 # better solution?
1880 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
1881
1882 # install CGI
1883 libtool --silent --mode=install install sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.cgi
1884 ln -sf php.cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
1885
1886 # install CLI
1887 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
1888 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
1889 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
1890
1891 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
1892
1893 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1894
1895 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1896 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
1897 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
1898 install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
1899
1900 %if %{with apache1}
1901 install %{SOURCE3} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
1902 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
1903 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
1904 %endif
1905
1906 %if %{with apache2}
1907 install %{SOURCE3} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
1908 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
1909 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
1910 %endif
1911
1912 cp -f Zend/LICENSE{,.Zend}
1913
1914 # Generate stub .ini files for each subpackage
1915 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1916 generate_inifiles() {
1917         for so in modules/*.so; do
1918                 mod=$(basename $so .so)
1919                 conf="%{_sysconfdir}/conf.d/$mod.ini"
1920                 # xml needs to be loaded before wddx
1921                 [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_$mod.ini"
1922                 echo "+ $conf"
1923                 cat > $RPM_BUILD_ROOT$conf <<-EOF
1924                         ; Enable $mod extension module
1925                         extension=$mod.so
1926                 EOF
1927         done
1928 }
1929 generate_inifiles
1930
1931 # per SAPI ini directories
1932 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
1933
1934 # for CLI SAPI only
1935 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{pcntl,readline}.ini,cli.d}
1936
1937 # use system automake and {lib,sh}tool
1938 %if "%{pld_release}" != "ac"
1939         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
1940         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
1941                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
1942         done
1943         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1944 %else
1945         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
1946         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1947 %endif
1948 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
1949
1950 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
1951 # isn't installed by install-headers make target, we do it manually here.
1952 # this header file is required by e.g. filter PECL extension
1953 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
1954 # for php-pecl-mailparse
1955 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
1956 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
1957
1958 # tests
1959 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
1960 install run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
1961 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
1962
1963 %clean
1964 rm -rf $RPM_BUILD_ROOT
1965
1966 %post -n apache1-mod_php
1967 if [ "$1" = "1" ]; then
1968         %service -q apache restart
1969 fi
1970
1971 %postun -n apache1-mod_php
1972 if [ "$1" = "0" ]; then
1973         %service -q apache restart
1974 fi
1975
1976 %post -n apache-mod_php
1977 if [ "$1" = "1" ]; then
1978         %service -q httpd restart
1979 fi
1980
1981 %postun -n apache-mod_php
1982 if [ "$1" = "0" ]; then
1983         %service -q httpd restart
1984 fi
1985
1986 %post   common -p /sbin/ldconfig
1987 %postun common -p /sbin/ldconfig
1988
1989 %posttrans common
1990 # minimizing apache restarts logics. we restart webserver:
1991 #
1992 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1993 # 2. first install of extension (post: $1 = 1)
1994 # 2. uninstall of extension (postun: $1 == 0)
1995 #
1996 # the strict internal deps between extensions (and apache modules) and
1997 # common package are very important for all this to work.
1998
1999 # restart webserver at the end of transaction
2000 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2001 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2002
2003 %if %{with apache1}
2004 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
2005 sed -i -e '
2006         /^AddType application\/x-httpd-php \.php/s,^,#,
2007         /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
2008 ' /etc/apache/apache.conf
2009 %service -q apache restart
2010 %endif
2011
2012 %if %{with apache2}
2013 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
2014 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2015 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2016         cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2017         mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2018 fi
2019 %endif
2020
2021 # common macros called at extension post/postun scriptlet
2022 %define extension_scripts() \
2023 %post %1 \
2024 if [ "$1" = "1" ]; then \
2025         %php_webserver_restart \
2026 fi \
2027 \
2028 %postun %1 \
2029 if [ "$1" = "0" ]; then \
2030         %php_webserver_restart \
2031 fi
2032 %{nil}
2033
2034 # extension scripts defines
2035 %extension_scripts bcmath
2036 %extension_scripts bzip2
2037 %extension_scripts calendar
2038 %extension_scripts ctype
2039 %extension_scripts curl
2040 %extension_scripts dba
2041 %extension_scripts dom
2042 %extension_scripts exif
2043 %extension_scripts fdf
2044 %extension_scripts fileinfo
2045 %extension_scripts filter
2046 %extension_scripts ftp
2047 %extension_scripts gd
2048 %extension_scripts gettext
2049 %extension_scripts gmp
2050 %extension_scripts hash
2051 %extension_scripts iconv
2052 %extension_scripts imap
2053 %extension_scripts interbase
2054 %extension_scripts intl
2055 %extension_scripts json
2056 %extension_scripts ldap
2057 %extension_scripts mbstring
2058 %extension_scripts mcrypt
2059 %extension_scripts mssql
2060 %extension_scripts mysql
2061 %extension_scripts mysqli
2062 %extension_scripts oci8
2063 %extension_scripts odbc
2064 %extension_scripts openssl
2065 %extension_scripts pdo-dblib
2066 %extension_scripts pdo-firebird
2067 %extension_scripts pdo-mysql
2068 %extension_scripts pdo-odbc
2069 %extension_scripts pdo-pgsql
2070 %extension_scripts pdo-sqlite
2071 %extension_scripts pgsql
2072 %extension_scripts phar
2073 %extension_scripts posix
2074 %extension_scripts pspell
2075 %extension_scripts recode
2076 %extension_scripts shmop
2077 %extension_scripts snmp
2078 %extension_scripts soap
2079 %extension_scripts sockets
2080 %extension_scripts sqlite
2081 %extension_scripts sqlite3
2082 %extension_scripts sybase-ct
2083 %extension_scripts sysvmsg
2084 %extension_scripts sysvsem
2085 %extension_scripts sysvshm
2086 %extension_scripts tidy
2087 %extension_scripts tokenizer
2088 %extension_scripts wddx
2089 %extension_scripts xml
2090 %extension_scripts xmlreader
2091 %extension_scripts xmlrpc
2092 %extension_scripts xmlwriter
2093 %extension_scripts xsl
2094 %extension_scripts zip
2095 %extension_scripts zlib
2096
2097 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2098 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2099
2100 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2101 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2102
2103 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2104 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2105
2106 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2107 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2108
2109 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2110 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2111
2112 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2113 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2114
2115 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2116 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2117
2118 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2119 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2120
2121 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2122 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2123
2124 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2125 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2126
2127 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2128 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2129
2130 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2131 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2132
2133 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2134 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2135
2136 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2137 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2138
2139 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2140 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2141
2142 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2143 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2144
2145 %triggerun intl -- %{name}-intl < 4:5.0.4-9.1
2146 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*intl\.so/d' %{_sysconfdir}/php.ini
2147
2148 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2149 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2150
2151 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2152 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2153
2154 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2155 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2156
2157 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2158 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2159
2160 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2161 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2162
2163 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2164 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2165
2166 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2167 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2168
2169 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2170 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2171
2172 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2173 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2174
2175 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2176 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2177         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2178 fi
2179 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2180         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2181 fi
2182
2183 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2184 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2185
2186 %triggerun phar -- %{name}-phar < 4:5.0.4-9.1
2187 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*phar\.so/d' %{_sysconfdir}/php.ini
2188
2189 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2190 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2191
2192 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2193 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2194
2195 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2196 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2197         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2198 fi
2199 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2200         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2201 fi
2202
2203 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2204 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2205
2206 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2207 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2208
2209 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2210 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2211
2212 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2213 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2214
2215 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2216 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2217
2218 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2219 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2220
2221 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2222 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2223
2224 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2225 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2226
2227 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2228 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2229
2230 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2231 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2232
2233 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2234 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2235
2236 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2237 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2238
2239 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2240 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2241
2242 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2243 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2244
2245 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2246 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2247
2248 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2249 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2250
2251 %if %{with apache1}
2252 %files -n apache1-mod_php
2253 %defattr(644,root,root,755)
2254 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2255 %dir %{_sysconfdir}/apache.d
2256 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2257 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2258 %endif
2259
2260 %if %{with apache2}
2261 %files -n apache-mod_php
2262 %defattr(644,root,root,755)
2263 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2264 %dir %{_sysconfdir}/apache2handler.d
2265 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2266 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2267 %endif
2268
2269 %files cgi
2270 %defattr(644,root,root,755)
2271 %dir %{_sysconfdir}/cgi-fcgi.d
2272 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2273 %attr(755,root,root) %{_bindir}/php.cgi
2274 %attr(755,root,root) %{_bindir}/php.fcgi
2275
2276 %files cli
2277 %defattr(644,root,root,755)
2278 %dir %{_sysconfdir}/cli.d
2279 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2280 %attr(755,root,root) %{_bindir}/php.cli
2281 %{_mandir}/man1/php.1*
2282 %{_mandir}/man1/php.cli.1*
2283
2284 %files program
2285 %defattr(644,root,root,755)
2286 %attr(755,root,root) %{_bindir}/php
2287
2288 %files common
2289 %defattr(644,root,root,755)
2290 %doc php.ini-*
2291 %doc CREDITS Zend/ZEND_CHANGES
2292 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2293 %doc README.PHP4-TO-PHP5-THIN-CHANGES
2294 %doc README.namespaces
2295
2296 %dir %{_sysconfdir}
2297 %dir %{_sysconfdir}/conf.d
2298 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2299 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
2300 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2301 %dir %{php_extensiondir}
2302
2303 %doc ext/session/mod_files.sh
2304
2305 %files devel
2306 %defattr(644,root,root,755)
2307 %doc README.UNIX-BUILD-SYSTEM
2308 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2309 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2310 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2311 %attr(755,root,root) %{_bindir}/phpize
2312 %attr(755,root,root) %{_bindir}/php-config
2313 %attr(755,root,root) %{_libdir}/libphp_common.so
2314 %{_libdir}/libphp_common.la
2315 %{_includedir}/php
2316 %{_libdir}/php/build
2317 %{_mandir}/man1/php-config.1*
2318 %{_mandir}/man1/phpize.1*
2319
2320 %files bcmath
2321 %defattr(644,root,root,755)
2322 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2323 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2324
2325 %files bzip2
2326 %defattr(644,root,root,755)
2327 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2328 %attr(755,root,root) %{php_extensiondir}/bz2.so
2329
2330 %files calendar
2331 %defattr(644,root,root,755)
2332 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2333 %attr(755,root,root) %{php_extensiondir}/calendar.so
2334
2335 %files ctype
2336 %defattr(644,root,root,755)
2337 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2338 %attr(755,root,root) %{php_extensiondir}/ctype.so
2339
2340 %if %{with curl}
2341 %files curl
2342 %defattr(644,root,root,755)
2343 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2344 %attr(755,root,root) %{php_extensiondir}/curl.so
2345 %endif
2346
2347 %files dba
2348 %defattr(644,root,root,755)
2349 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2350 %attr(755,root,root) %{php_extensiondir}/dba.so
2351
2352 %files dom
2353 %defattr(644,root,root,755)
2354 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2355 %attr(755,root,root) %{php_extensiondir}/dom.so
2356
2357 %if %{with fdf}
2358 %files fdf
2359 %defattr(644,root,root,755)
2360 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2361 %attr(755,root,root) %{php_extensiondir}/fdf.so
2362 %endif
2363
2364 %files fileinfo
2365 %defattr(644,root,root,755)
2366 %doc README.input_filter
2367 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
2368 %attr(755,root,root) %{php_extensiondir}/fileinfo.so
2369
2370 %if %{with filter}
2371 %files filter
2372 %defattr(644,root,root,755)
2373 %doc README.input_filter
2374 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2375 %attr(755,root,root) %{php_extensiondir}/filter.so
2376 %endif
2377
2378 %files exif
2379 %defattr(644,root,root,755)
2380 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2381 %attr(755,root,root) %{php_extensiondir}/exif.so
2382
2383 %files ftp
2384 %defattr(644,root,root,755)
2385 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2386 %attr(755,root,root) %{php_extensiondir}/ftp.so
2387
2388 %files gd
2389 %defattr(644,root,root,755)
2390 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2391 %attr(755,root,root) %{php_extensiondir}/gd.so
2392
2393 %files gettext
2394 %defattr(644,root,root,755)
2395 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2396 %attr(755,root,root) %{php_extensiondir}/gettext.so
2397
2398 %files gmp
2399 %defattr(644,root,root,755)
2400 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2401 %attr(755,root,root) %{php_extensiondir}/gmp.so
2402
2403 %files hash
2404 %defattr(644,root,root,755)
2405 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2406 %attr(755,root,root) %{php_extensiondir}/hash.so
2407
2408 %files iconv
2409 %defattr(644,root,root,755)
2410 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2411 %attr(755,root,root) %{php_extensiondir}/iconv.so
2412
2413 %if %{with imap}
2414 %files imap
2415 %defattr(644,root,root,755)
2416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2417 %attr(755,root,root) %{php_extensiondir}/imap.so
2418 %endif
2419
2420 %if %{with interbase}
2421 %files interbase
2422 %defattr(644,root,root,755)
2423 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2424 %attr(755,root,root) %{php_extensiondir}/interbase.so
2425 %endif
2426
2427 %files intl
2428 %defattr(644,root,root,755)
2429 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
2430 %attr(755,root,root) %{php_extensiondir}/intl.so
2431
2432 %files json
2433 %defattr(644,root,root,755)
2434 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2435 %attr(755,root,root) %{php_extensiondir}/json.so
2436
2437 %if %{with ldap}
2438 %files ldap
2439 %defattr(644,root,root,755)
2440 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2441 %attr(755,root,root) %{php_extensiondir}/ldap.so
2442 %endif
2443
2444 %files mbstring
2445 %defattr(644,root,root,755)
2446 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2447 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2448
2449 %files mcrypt
2450 %defattr(644,root,root,755)
2451 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2452 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2453
2454 %if %{with mssql}
2455 %files mssql
2456 %defattr(644,root,root,755)
2457 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2458 %attr(755,root,root) %{php_extensiondir}/mssql.so
2459 %endif
2460
2461 %files mysql
2462 %defattr(644,root,root,755)
2463 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2464 %attr(755,root,root) %{php_extensiondir}/mysql.so
2465
2466 %if %{with mysqli}
2467 %files mysqli
2468 %defattr(644,root,root,755)
2469 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2470 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2471 %endif
2472
2473 %if %{with oci8}
2474 %files oci8
2475 %defattr(644,root,root,755)
2476 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2477 %attr(755,root,root) %{php_extensiondir}/oci8.so
2478 %endif
2479
2480 %if %{with odbc}
2481 %files odbc
2482 %defattr(644,root,root,755)
2483 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2484 %attr(755,root,root) %{php_extensiondir}/odbc.so
2485 %endif
2486
2487 %if %{with openssl}
2488 %files openssl
2489 %defattr(644,root,root,755)
2490 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2491 %attr(755,root,root) %{php_extensiondir}/openssl.so
2492 %endif
2493
2494 %files pcntl
2495 %defattr(644,root,root,755)
2496 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2497 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2498
2499 %files pdo
2500 %defattr(644,root,root,755)
2501 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2502 %attr(755,root,root) %{php_extensiondir}/pdo.so
2503
2504 %if %{with mssql} || %{with sybase_ct}
2505 %files pdo-dblib
2506 %defattr(644,root,root,755)
2507 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2508 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2509 %endif
2510
2511 %if %{with interbase} && !%{with interbase_inst}
2512 %files pdo-firebird
2513 %defattr(644,root,root,755)
2514 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2515 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2516 %endif
2517
2518 %files pdo-mysql
2519 %defattr(644,root,root,755)
2520 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2521 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2522
2523 %if %{with oci8}
2524 %files pdo-oci
2525 %defattr(644,root,root,755)
2526 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2527 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2528 %endif
2529
2530 %if %{with odbc}
2531 %files pdo-odbc
2532 %defattr(644,root,root,755)
2533 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2534 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2535 %endif
2536
2537 %if %{with pgsql}
2538 %files pdo-pgsql
2539 %defattr(644,root,root,755)
2540 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2541 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2542 %endif
2543
2544 %if %{with sqlite}
2545 %files pdo-sqlite
2546 %defattr(644,root,root,755)
2547 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2548 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2549 %endif
2550
2551 %if %{with pgsql}
2552 %files pgsql
2553 %defattr(644,root,root,755)
2554 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2555 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2556 %endif
2557
2558 %if %{with phar}
2559 %files phar
2560 %defattr(644,root,root,755)
2561 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
2562 %attr(755,root,root) %{php_extensiondir}/phar.so
2563 %endif
2564
2565 %files posix
2566 %defattr(644,root,root,755)
2567 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2568 %attr(755,root,root) %{php_extensiondir}/posix.so
2569
2570 %if %{with pspell}
2571 %files pspell
2572 %defattr(644,root,root,755)
2573 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2574 %attr(755,root,root) %{php_extensiondir}/pspell.so
2575 %endif
2576
2577 %files readline
2578 %defattr(644,root,root,755)
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2580 %attr(755,root,root) %{php_extensiondir}/readline.so
2581
2582 %if %{with recode}
2583 %files recode
2584 %defattr(644,root,root,755)
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2586 %attr(755,root,root) %{php_extensiondir}/recode.so
2587 %endif
2588
2589 %files simplexml
2590 %defattr(644,root,root,755)
2591 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2592 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2593
2594 %files shmop
2595 %defattr(644,root,root,755)
2596 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2597 %attr(755,root,root) %{php_extensiondir}/shmop.so
2598
2599 %if %{with snmp}
2600 %files snmp
2601 %defattr(644,root,root,755)
2602 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2603 %attr(755,root,root) %{php_extensiondir}/snmp.so
2604 %endif
2605
2606 %files soap
2607 %defattr(644,root,root,755)
2608 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2609 %attr(755,root,root) %{php_extensiondir}/soap.so
2610
2611 %files sockets
2612 %defattr(644,root,root,755)
2613 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2614 %attr(755,root,root) %{php_extensiondir}/sockets.so
2615
2616 %if %{with sqlite}
2617 %files sqlite
2618 %defattr(644,root,root,755)
2619 %doc ext/sqlite/{README,TODO,CREDITS}
2620 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2621 %attr(755,root,root) %{php_extensiondir}/sqlite.so
2622 %endif
2623
2624 %if %{with sqlite3}
2625 %files sqlite3
2626 %defattr(644,root,root,755)
2627 %doc ext/sqlite3/CREDITS
2628 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
2629 %attr(755,root,root) %{php_extensiondir}/sqlite3.so
2630 %endif
2631
2632 %if %{with sybase_ct}
2633 %files sybase-ct
2634 %defattr(644,root,root,755)
2635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2636 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
2637 %endif
2638
2639 %files sysvmsg
2640 %defattr(644,root,root,755)
2641 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2642 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
2643
2644 %files sysvsem
2645 %defattr(644,root,root,755)
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2647 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
2648
2649 %files sysvshm
2650 %defattr(644,root,root,755)
2651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2652 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
2653
2654 %files tests
2655 %defattr(644,root,root,755)
2656 %dir %{php_data_dir}/tests/php
2657 %{php_data_dir}/tests/php/basic
2658 %{php_data_dir}/tests/php/classes
2659 %{php_data_dir}/tests/php/func
2660 %{php_data_dir}/tests/php/lang
2661 %{php_data_dir}/tests/php/output
2662 %{php_data_dir}/tests/php/run-test
2663 %{php_data_dir}/tests/php/security
2664 %{php_data_dir}/tests/php/strings
2665 %{php_data_dir}/tests/php/quicktester.inc
2666 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
2667
2668 %if %{with tidy}
2669 %files tidy
2670 %defattr(644,root,root,755)
2671 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2672 %attr(755,root,root) %{php_extensiondir}/tidy.so
2673 %endif
2674
2675 %files tokenizer
2676 %defattr(644,root,root,755)
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2678 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
2679
2680 %if %{with wddx}
2681 %files wddx
2682 %defattr(644,root,root,755)
2683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2684 %attr(755,root,root) %{php_extensiondir}/wddx.so
2685 %endif
2686
2687 %files xml
2688 %defattr(644,root,root,755)
2689 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2690 %attr(755,root,root) %{php_extensiondir}/xml.so
2691
2692 %files xmlreader
2693 %defattr(644,root,root,755)
2694 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2695 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
2696
2697 %if %{with xmlrpc}
2698 %files xmlrpc
2699 %defattr(644,root,root,755)
2700 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2701 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
2702 %endif
2703
2704 %files xmlwriter
2705 %defattr(644,root,root,755)
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
2707 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
2708
2709 %files xsl
2710 %defattr(644,root,root,755)
2711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
2712 %attr(755,root,root) %{php_extensiondir}/xsl.so
2713
2714 %files zip
2715 %defattr(644,root,root,755)
2716 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
2717 %attr(755,root,root) %{php_extensiondir}/zip.so
2718
2719 %files zlib
2720 %defattr(644,root,root,755)
2721 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
2722 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.353692 seconds and 4 git commands to generate.