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