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