]> git.pld-linux.org Git - packages/php4.git/blob - php4.spec
- rel 26; fix gmp build
[packages/php4.git] / php4.spec
1 #
2 # Do NOT build openssl as shared module or
3 # fsockopen('tls://host',...) will not work!
4 #
5 # TODO:
6 # - make additional headers added by mail patch configurable
7 # - too many unneccessary libs:
8 #  - libkrb5.so.3 is needed by (installed) php4-common-4.4.8-15.i686
9 #  - php4-common-4.4.8-15.i686 marks net-snmp-libs-5.4.1.2-1.i686 (cap libnetsnmp.so.15)
10 #    php5-common doesn't have such deps
11 #  - php4-cli pulls: libltdl
12 # - above is caused by openssl linked in statically as openssl links with kerberos
13 #
14 # Conditional build:
15 %bcond_with     db3             # use db3 packages instead of db (4.x) for Berkeley DB support
16 %bcond_with     fdf             # with FDF (PDF forms) module           (BR: proprietary lib)
17 %bcond_with     hardening       # build with hardening patch applied (http://www.hardened-php.net/)
18 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
19 %bcond_with     java            # with Java extension module            (BR: jdk)
20 %bcond_with     oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
21 %bcond_with     oracle          # with oracle extension module          (BR: proprietary libs)
22 %bcond_without  cpdf            # without cpdf extension module
23 %bcond_without  curl            # without CURL extension module
24 %bcond_without  domxslt         # without DOM XSLT/EXSLT support in DOM XML extension module
25 %bcond_without  fribidi         # without FriBiDi extension module
26 %bcond_without  imap            # without IMAP extension module
27 %bcond_without  interbase       # without InterBase extension module
28 %bcond_without  ldap            # without LDAP extension module
29 %bcond_without  mhash           # without mhash extension module
30 %bcond_with     ming            # with ming extension module
31 %bcond_without  mm              # without mm support for session storage
32 %bcond_without  mnogosearch     # without mnogosearch extension module
33 %bcond_without  msession        # without msession extension module
34 %bcond_without  mssql           # without MS SQL extension module
35 %bcond_without  odbc            # without ODBC extension module
36 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
37 %bcond_without  pcre            # without PCRE extension module
38 %bcond_without  pdf             # without PDF extension module
39 %bcond_without  pgsql           # without PostgreSQL extension module
40 %bcond_without  pspell          # without pspell extension module
41 %bcond_without  qtdom           # without Qt DOM extension module
42 %bcond_without  recode          # without recode extension module
43 %bcond_without  snmp            # without SNMP extension module
44 %bcond_without  sybase          # without Sybase and Sybase-CT extension modules
45 %bcond_without  wddx            # without WDDX extension module
46 %bcond_without  xml             # without XML and DOMXML extension modules
47 %bcond_without  xmlrpc          # without XML-RPC extension module
48 %bcond_with     system_xmlrpc_epi       # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
49 %bcond_without  xslt            # without XSLT extension module
50 %bcond_with     yaz             # without YAZ extension module
51 %bcond_without  apache1         # disable building apache 1.3.x module
52 %bcond_without  apache2         # disable building apache 2.x module
53 %bcond_without  fcgi            # disable building FCGI SAPI
54 %bcond_without  zts             # disable experimental-zts
55 %bcond_with     versioning      # build with experimental versioning (to load php4/php5 into same apache)
56
57 %define apxs1           /usr/sbin/apxs1
58 %define apxs2           /usr/sbin/apxs
59
60 # mm is not thread safe
61 # ext/session/mod_mm.c:37:3: #error mm is not thread-safe
62 %if %{with zts}
63 %undefine       with_mm
64 %endif
65
66 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
67 %undefine       with_interbase
68 %endif
69
70 # x86-only lib
71 %ifnarch %{ix86}
72 %undefine       with_msession
73 %endif
74
75 %define         rel 26
76 Summary:        PHP: Hypertext Preprocessor
77 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
78 Summary(pl.UTF-8):      Język skryptowy PHP
79 Summary(pt_BR.UTF-8):   A linguagem de script PHP
80 Summary(ru.UTF-8):      PHP Версии 4 - язык препроцессирования HTML-файлов, выполняемый на сервере
81 Summary(uk.UTF-8):      PHP Версії 4 - мова препроцесування HTML-файлів, виконувана на сервері
82 Name:           php4
83 Version:        4.4.9
84 Release:        %{rel}%{?with_hardening:hardened}
85 Epoch:          3
86 License:        PHP
87 Group:          Libraries
88 Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
89 # Source0-md5:  2e3b2a0e27f10cb84fd00e5ecd7a1880
90 #Source0:       http://cvs.php.net/viewvc.cgi/phpweb/distributions/php-%{version}.tar.bz2?revision=1.1
91 Source3:        %{name}-mod_php.conf
92 Source4:        %{name}-cgi-fcgi.ini
93 Source5:        %{name}-cgi.ini
94 Source6:        %{name}-apache.ini
95 Source7:        %{name}-cli.ini
96 Source8:        http://www.hardened-php.net/hardening-patch-4.4.0-0.4.3.patch.gz
97 # Source8-md5:  6eac3c5c5a7473c68a043c7657298f48
98 Patch0:         %{name}-shared.patch
99 Patch1:         %{name}-pldlogo.patch
100 Patch2:         %{name}-xml-expat-fix.patch
101 Patch3:         %{name}-mail.patch
102 Patch4:         %{name}-link-libs.patch
103 Patch5:         %{name}-libpq_fs_h_path.patch
104 Patch6:         %{name}-wddx-fix.patch
105 Patch7:         %{name}-lib.patch
106 Patch8:         %{name}-hyperwave-fix.patch
107 Patch9:         %{name}-xslt-gcc33.patch
108 Patch10:        %{name}-java-norpath.patch
109 Patch11:        %{name}-mcal-shared-lib.patch
110 Patch12:        %{name}-msession-shared-lib.patch
111 Patch13:        %{name}-build_modules.patch
112 Patch14:        %{name}-sapi-ini-file.patch
113 Patch15:        %{name}-no-metaccld.patch
114 Patch16:        %{name}-session-unregister.patch
115 Patch17:        %{name}-ini.patch
116 Patch18:        %{name}-acam.patch
117 Patch19:        %{name}-xmlrpc-fix.patch
118 Patch20:        %{name}-libtool.patch
119 Patch21:        %{name}-allow-db31.patch
120 Patch22:        %{name}-threads-acfix.patch
121 Patch23:        %{name}-gmp.patch
122 Patch24:        %{name}-qt.patch
123 Patch25:        %{name}-no_pear_install.patch
124 Patch26:        %{name}-zlib.patch
125 Patch27:        %{name}-db-shared.patch
126 Patch28:        %{name}-sybase-fix.patch
127 Patch30:        %{name}-mnogosearch-fix.patch
128 Patch31:        %{name}-stupidapache_version.patch
129 Patch33:        %{name}-uint32_t.patch
130 Patch34:        %{name}-install_gd_headers.patch
131 Patch35:        %{name}-both-apxs.patch
132 Patch36:        php-dextension.patch
133 Patch37:        %{name}-zlib-for-getimagesize.patch
134 Patch38:        %{name}-ini-search-path.patch
135 Patch39:        %{name}-versioning.patch
136 Patch40:        %{name}-linkflags-clean.patch
137 Patch41:        %{name}-krb5.patch
138 Patch42:        %{name}-apr-apu.patch
139 Patch43:        %{name}-gd.patch
140 Patch45:        %{name}-config-dir.patch
141 Patch46:        %{name}-phpinfo_no_configure.patch
142 Patch47:        %{name}-ming.patch
143 Patch48:        %{name}-fcgi-graceful.patch
144 Patch49:        %{name}-ac.patch
145 Patch50:        %{name}-mime_magic.patch
146 Patch51:        %{name}-tds.patch
147 Patch52:        %{name}-lib64.patch
148 Patch53:        %{name}-silent-session-cleanup.patch
149 Patch54:        %{name}-m4-divert.patch
150 Patch55:        %{name}-libpng.patch
151 Patch56:        %{name}-gmp.patch
152 URL:            http://www.php.net/
153 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
154 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
155 BuildRequires:  autoconf >= 2.53
156 BuildRequires:  automake >= 1.4d
157 BuildRequires:  bison
158 BuildRequires:  bzip2-devel
159 BuildRequires:  cracklib-devel >= 2.7-15
160 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
161 BuildRequires:  cyrus-sasl-devel
162 %{!?with_db3:BuildRequires:     db-devel >= 4.0}
163 %{?with_db3:BuildRequires:      db3-devel >= 3.1}
164 BuildRequires:  elfutils-devel
165 %if %{with wddx} || %{with xml} || %{with xmlrpc}
166 BuildRequires:  expat-devel
167 %endif
168 %{?with_fcgi:BuildRequires:     fcgi-devel}
169 %{?with_fdf:BuildRequires:      fdftk-devel}
170 BuildRequires:  flex
171 %if %{with mssql} || %{with sybase}
172 BuildRequires:  freetds-devel >= 0.82
173 %endif
174 BuildRequires:  freetype-devel >= 2.0
175 %{?with_fribidi:BuildRequires:  fribidi-devel >= 0.10.4}
176 BuildRequires:  gdbm-devel
177 BuildRequires:  gmp-devel
178 %{?with_imap:BuildRequires:     heimdal-devel >= 0.7}
179 %{?with_imap:BuildRequires:     imap-devel >= 1:2001-0.BETA.200107022325.2}
180 %{?with_java:BuildRequires:     jdk >= 1.1}
181 %{?with_cpdf:BuildRequires:     libcpdf-devel >= 2.02r1-2}
182 BuildRequires:  libjpeg-devel
183 BuildRequires:  libltdl-devel >= 1.4
184 BuildRequires:  libmcal-devel
185 BuildRequires:  libmcrypt-devel >= 2.4.4
186 BuildRequires:  libpng-devel >= 1.0.8
187 BuildRequires:  libtiff-devel
188 %if "%{pld_release}" != "ac"
189 BuildRequires:  libtool >= 2:2.2
190 %else
191 BuildRequires:  libtool >= 1.4.3
192 %endif
193 %{?with_xml:BuildRequires:      libxml2-devel >= 2.2.7}
194 %{?with_domxslt:BuildRequires:  libxslt-devel >= 1.0.3}
195 %{?with_mhash:BuildRequires:    mhash-devel}
196 %{?with_ming:BuildRequires:     ming-devel >= 0.3.0}
197 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
198 %{?with_mnogosearch:BuildRequires:      mnogosearch-devel >= 3.2.29}
199 BuildRequires:  mysql-devel >= 3.23.32
200 BuildRequires:  ncurses-ext-devel
201 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
202 %if %{with openssl} || %{with ldap}
203 BuildRequires:  openssl-devel >= 0.9.7d
204 %endif
205 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
206 BuildRequires:  pam-devel
207 BuildRequires:  pcre-devel
208 %{?with_pdf:BuildRequires:      pdflib-devel >= 4.0.0}
209 %{?with_msession:BuildRequires: phoenix-devel}
210 BuildRequires:  pkgconfig
211 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
212 %{?with_pgsql:BuildRequires:    postgresql-devel}
213 %{?with_qtdom:BuildRequires:    qt-devel >= 2.2.0}
214 BuildRequires:  readline-devel
215 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
216 BuildRequires:  rpm >= 4.4.9-56
217 BuildRequires:  rpm-build >= 4.4.0
218 BuildRequires:  rpmbuild(macros) >= 1.236
219 %{?with_xslt:BuildRequires:     sablotron-devel >= 0.96}
220 BuildRequires:  sed >= 4.0
221 BuildRequires:  t1lib-devel
222 %{?with_odbc:BuildRequires:     unixODBC-devel}
223 %{?with_system_xmlrpc_epi:BuildRequires:        xmlrpc-epi-devel}
224 %{?with_yaz:BuildRequires:      yaz-devel >= 1.9}
225 BuildRequires:  zip
226 BuildRequires:  zlib-devel >= 1.0.9
227 BuildRequires:  zziplib-devel
228 %if %{with apache1}
229 BuildRequires:  apache1-devel >= 1.3.33-2
230 %endif
231 %if %{with apache2}
232 BuildRequires:  apache-devel >= 2.0.52-2
233 BuildRequires:  apr-devel >= 1:1.0.0
234 BuildRequires:  apr-util-devel >= 1:1.0.0
235 %endif
236 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
237
238 %define         _sysconfdir     /etc/php4
239 %define         extensionsdir   %{_libdir}/php4
240
241 # must be in sync with source. extra check ensuring that it is so is done in %%build
242 %define         php_api_version         20020918
243 %define         zend_module_api         20020429
244 %define         zend_extension_api      20050606
245 %define         zend_zts                        %{!?with_zts:0}%{?with_zts:1}
246 %define         php_debug                       %{!?debug:0}%{?debug:1}
247
248 %description
249 PHP is an HTML-embedded scripting language. PHP attempts to make it
250 easy for developers to write dynamically generated web pages. PHP also
251 offers built-in database integration for several commercial and
252 non-commercial database management systems, so writing a
253 database-enabled web page with PHP is fairly simple. The most common
254 use of PHP coding is probably as a replacement for CGI scripts. The
255 mod_php module enables the Apache web server to understand and process
256 the embedded PHP language in web pages. This package contains php
257 version %{version}.
258
259 %description -l fr.UTF-8
260 PHP est un langage de script embarque dans le HTM. PHP essaye de
261 rendre simple aux developpeurs d'ecrire des pages web generees
262 dynamiquement. PHP incorpore egalement une integration avec plusieurs
263 systemes de gestion de bases de donnees commerciaux et
264 non-connerciaux, qui rent facile la creation de pages web liees avec
265 des bases de donnees. L'utilisation la plus commune de PHP est
266 probablement en remplacement de scripts CGI. Le module mod_php permet
267 au serveur web apache de comprendre et de traiter le langage PHP
268 integre dans des pages web. Ce package contient php version
269 %{version}.
270
271 %description -l pl.UTF-8
272 PHP jest językiem skryptowym, którego polecenia umieszcza się w
273 plikach HTML. Pakiet ten zawiera moduł przeznaczony dla serwera HTTP
274 (jak np. Apache), który interpretuje te polecenia. Umożliwia to
275 tworzenie dynamicznie stron WWW. Spora część składni PHP zapożyczona
276 została z języków: C, Java i Perl.
277
278 %description -l pt_BR.UTF-8
279 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
280 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
281 com algumas características únicas, específicas ao PHP. O objetivo da
282 linguagem é permitir que desenvolvedores web escrevam páginas
283 dinamicamente geradas de forma rápida.
284
285 %description -l ru.UTF-8
286 PHP4 - это язык написания скриптов, встраиваемых в HTML-код. PHP
287 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
288 для работы с базами данных относительно просто. Наиболее популярное
289 использование PHP - замена для CGI скриптов.
290
291 Этот пакет содержит самодостаточную (CGI) версию интерпретатора языка.
292 Вы должны также установить пакет %{name}-common. Если вам нужен
293 интерпретатор PHP в качестве модуля apache, установите пакет
294 apache-php.
295
296 %description -l uk.UTF-8
297 PHP4 - це мова написання скриптів, що вбудовуються в HTML-код. PHP
298 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
299 роботи з базами даних є доволі простим. Найбільш популярне
300 використання PHP - заміна для CGI скриптів.
301
302 Цей пакет містить самодостатню (CGI) версію інтерпретатора мови. Ви
303 маєте також встановити пакет %{name}-common. Якщо вам потрібен
304 інтерпретатор PHP в якості модуля apache, встановіть пакет apache-php.
305
306 %package -n apache1-mod_php4
307 Summary:        php4 DSO module for apache 1.3.x
308 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php4 dla apache 1.3.x
309 Group:          Development/Languages/PHP
310 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
311 Requires:       apache1(EAPI) >= 1.3.33-2
312 Requires:       apache1-mod_mime
313 Provides:       webserver(php) = %{version}
314 Obsoletes:      apache-mod_php < 1:4.1.1
315 Obsoletes:      phpfi
316 # Obsolete last version when apache module was in main package
317 Obsoletes:      php4 < 3:4.3.11-4.16
318
319 %description -n apache1-mod_php4
320 php4 as DSO module for apache 1.3.x.
321
322 %description -n apache1-mod_php4 -l pl.UTF-8
323 php4 jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
324
325 %package -n apache-mod_php4
326 Summary:        php4 DSO module for apache 2.x
327 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php4 dla apache 2.x
328 Group:          Development/Languages/PHP
329 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
330 Requires:       apache(modules-api) = %{apache_modules_api}
331 Requires:       apache-mod_mime
332 Provides:       webserver(php) = %{version}
333 Obsoletes:      apache-mod_php < 1:4.1.1
334 Obsoletes:      phpfi
335 # Obsolete last version when apache module was in main package
336 Obsoletes:      php4 < 3:4.3.11-4.16
337
338 %description -n apache-mod_php4
339 php4 as DSO module for apache 2.x.
340
341 %description -n apache-mod_php4 -l pl.UTF-8
342 php4 jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
343
344 %package fcgi
345 Summary:        php4 as FastCGI program
346 Summary(pl.UTF-8):      php4 jako program FastCGI
347 Group:          Development/Languages/PHP
348 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
349 Provides:       php-fcgi = %{epoch}:%{version}-%{release}
350 Provides:       webserver(php) = %{version}
351
352 %description fcgi
353 php4 as FastCGI program.
354
355 %description fcgi -l pl.UTF-8
356 php4 jako program FastCGI.
357
358 %package cgi
359 Summary:        php4 as CGI program
360 Summary(pl.UTF-8):      php4 jako program CGI
361 Group:          Development/Languages/PHP
362 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
363 Provides:       php-cgi = %{epoch}:%{version}-%{release}
364 Provides:       php(cgi)
365
366 %description cgi
367 php4 as CGI program.
368
369 %description cgi -l pl.UTF-8
370 php4 jako program CGI.
371
372 %package cli
373 Summary:        php4 as CLI interpreter
374 Summary(pl.UTF-8):      php4 jako interpreter działający z linii poleceń
375 Group:          Development/Languages/PHP
376 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
377 Provides:       php-cli = %{epoch}:%{version}-%{release}
378
379 %description cli
380 php4 as CLI interpreter.
381
382 %description cli -l pl.UTF-8
383 php4 jako interpreter działający z linii poleceń.
384
385 %package program
386 Summary:        /usr/bin/php symlink
387 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
388 Group:          Development/Languages/PHP
389 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
390 Obsoletes:      /usr/bin/php
391
392 %description program
393 Package providing /usr/bin/php symlink to PHP CLI.
394
395 %description program -l pl.UTF-8
396 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
397
398 %package common
399 Summary:        Common files needed by all PHP SAPIs
400 Summary(pl.UTF-8):      Wspólne pliki dla modułu apache'a i programu CGI
401 Summary(ru.UTF-8):      Разделяемые библиотеки для php
402 Summary(uk.UTF-8):      Бібліотеки спільного використання для php
403 Group:          Libraries
404 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
405 Requires(triggerun):    sed >= 4.0
406 Requires:       glibc >= 6:2.3.5
407 Requires:       php-dirs
408 Provides:       php(modules_api) = %{php_api_version}
409 Provides:       php(openssl)
410 Provides:       php(session)
411 Provides:       php(standard)
412 Provides:       php(zend_extension_api) = %{zend_extension_api}
413 Provides:       php(zend_module_api) = %{zend_module_api}
414 Provides:       php-common = %{epoch}:%{version}-%{release}
415 Provides:       php4(debug) = %{php_debug}
416 Provides:       php4(thread-safety) = %{zend_zts}
417 Obsoletes:      php-session < 3:4.2.1-2
418 Obsoletes:      php4-openssl < 3:4.4.0-4
419 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
420 Conflicts:      rpm < 4.4.2-0.2
421
422 %description common
423 Common files needed by all PHP SAPIs.
424
425 %description common -l pl.UTF-8
426 Wspólne pliki dla modułu apacha i programu CGI.
427
428 %description common -l ru.UTF-8
429 Этот пакет содержит общие файлы для разных вариантов реализации PHP
430 (самодостаточной и в качестве модуля apache).
431
432 %description common -l uk.UTF-8
433 Цей пакет містить спільні файли для різних варіантів реалізації PHP
434 (самодостатньої та в якості модуля apache).
435
436 %package devel
437 Summary:        Files for PHP modules development
438 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
439 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
440 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
441 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
442 Group:          Development/Languages/PHP
443 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
444 Requires:       autoconf
445 Requires:       automake
446 %if "%{pld_release}" != "ac"
447 Requires:       libtool >= 2:2.2
448 %else
449 Requires:       libtool
450 %endif
451 Obsoletes:      php-devel
452
453 %description devel
454 The php-devel package lets you compile dynamic extensions to PHP.
455 Included here is the source for the PHP extensions. Instead of
456 recompiling the whole php4 binary to add support for, say, oracle,
457 install this package and use the new self-contained extensions
458 support. For more information, read the file
459 SELF-CONTAINED-EXTENSIONS.
460
461 %description devel -l pl.UTF-8
462 Pliki potrzebne do kompilacji modułów PHP.
463
464 %description devel -l pt_BR.UTF-8
465 Este pacote contém arquivos usados no desenvolvimento de programas ou
466 módulos PHP.
467
468 %description devel -l uk.UTF-8
469 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
470 До пакету включено вихідний код для розширень. Замість повторної
471 компіляції бінарного файлу php4 для додання, наприклад, підтримки
472 oracle, встановіть цей пакет для компіляції окремих розширень.
473 Детальніша інформація - в файлі SELF-CONTAINED-EXTENSIONS.
474
475 %description devel -l ru.UTF-8
476 Пакет php-devel дает возможность компилировать динамические расширения
477 PHP. Пакет включает исходный код этих расширений. Вместо повторной
478 компиляции бинарного файла php4 для добавления, например, поддержки
479 oracle, установите этот пакет для компилирования отдельных расширений.
480 Подробности - в файле SELF-CONTAINED-EXTENSIONS.
481
482 %package bcmath
483 Summary:        bcmath extension module for PHP
484 Summary(pl.UTF-8):      Moduł bcmath dla PHP
485 Group:          Libraries
486 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
487 Provides:       php(bcmath)
488
489 %description bcmath
490 This is a dynamic shared object (DSO) for PHP that will add bc style
491 precision math functions support.
492
493 %description bcmath -l pl.UTF-8
494 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
495 matematycznych takich jak w programie bc.
496
497 %package bzip2
498 Summary:        Bzip2 extension module for PHP
499 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
500 Group:          Libraries
501 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
502 Provides:       php(bzip2)
503
504 %description bzip2
505 This is a dynamic shared object (DSO) for PHP that will add bzip2
506 compression support to PHP.
507
508 %description bzip2 -l pl.UTF-8
509 Moduł PHP umożliwiający używanie kompresji bzip2.
510
511 %package calendar
512 Summary:        Calendar extension module for PHP
513 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
514 Group:          Libraries
515 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
516 Provides:       php(calendar)
517
518 %description calendar
519 This is a dynamic shared object (DSO) for PHP that will add calendar
520 support.
521
522 %description calendar -l pl.UTF-8
523 Moduł PHP dodający wsparcie dla kalendarza.
524
525 %package cpdf
526 Summary:        cpdf extension module for PHP
527 Summary(pl.UTF-8):      Moduł cpdf dla PHP
528 Group:          Libraries
529 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
530 Provides:       php(cpdf)
531
532 %description cpdf
533 This is a dynamic shared object (DSO) for PHP that will add PDF
534 support through libcpdf library.
535
536 %description cpdf -l pl.UTF-8
537 Moduł PHP dodający obsługę plików PDF poprzez bibliotekę libcpdf.
538
539 %package crack
540 Summary:        crack extension module for PHP
541 Summary(pl.UTF-8):      Moduł crack dla PHP
542 Group:          Libraries
543 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
544 Provides:       php(crack)
545
546 %description crack
547 This is a dynamic shared object (DSO) for PHP that will add cracklib
548 support to PHP.
549
550 Warning: this is an experimental module.
551
552 %description crack -l pl.UTF-8
553 Moduł PHP umożliwiający korzystanie z biblioteki cracklib.
554
555 Uwaga: to jest moduł eksperymentalny.
556
557 %package ctype
558 Summary:        ctype extension module for PHP
559 Summary(pl.UTF-8):      Moduł ctype dla PHP
560 Group:          Libraries
561 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
562 Provides:       php(ctype)
563
564 %description ctype
565 This is a dynamic shared object (DSO) for PHP that will add ctype
566 support.
567
568 %description ctype -l pl.UTF-8
569 Moduł PHP umożliwiający korzystanie z funkcji ctype.
570
571 %package curl
572 Summary:        curl extension module for PHP
573 Summary(pl.UTF-8):      Moduł curl dla PHP
574 Group:          Libraries
575 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
576 Provides:       php(curl)
577
578 %description curl
579 This is a dynamic shared object (DSO) for PHP that will add curl
580 support.
581
582 %description curl -l pl.UTF-8
583 Moduł PHP umożliwiający korzystanie z biblioteki curl.
584
585 %package db
586 Summary:        Old xDBM extension module for PHP
587 Summary(pl.UTF-8):      Moduł xDBM dla PHP
588 Group:          Libraries
589 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
590 Provides:       php(db)
591
592 %description db
593 This is an old dynamic shared object (DSO) for PHP that will add DBM
594 databases support.
595
596 Warning: this module is deprecated and does not support database
597 locking correctly. Please use DBA extension which is a fully
598 operational superset.
599
600 %description db -l pl.UTF-8
601 Stary moduł PHP dodający obsługę baz danych DBM.
602
603 Uwaga: ten moduł jest przestarzały i nie obsługuje poprawnie
604 blokowania bazy danych. Zamiast niego lepiej używać rozszerzenia DBA,
605 które obsługuje nadzbiór funkcjonalności tego modułu.
606
607 %package dba
608 Summary:        DBA extension module for PHP
609 Summary(pl.UTF-8):      Moduł DBA dla PHP
610 Group:          Libraries
611 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
612 Provides:       php(dba)
613
614 %description dba
615 This is a dynamic shared object (DSO) for PHP that will add flat-file
616 databases (DBA) support.
617
618 %description dba -l pl.UTF-8
619 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
620 (DBA).
621
622 %package dbase
623 Summary:        DBase extension module for PHP
624 Summary(pl.UTF-8):      Moduł DBase dla PHP
625 Group:          Libraries
626 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
627 Provides:       php(dbase)
628
629 %description dbase
630 This is a dynamic shared object (DSO) for PHP that will add DBase
631 support.
632
633 %description dbase -l pl.UTF-8
634 Moduł PHP ze wsparciem dla DBase.
635
636 %package dbx
637 Summary:        DBX extension module for PHP
638 Summary(pl.UTF-8):      Moduł DBX dla PHP
639 Group:          Libraries
640 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
641 Provides:       php(dbx)
642
643 %description dbx
644 This is a dynamic shared object (DSO) for PHP that will add DB
645 abstraction layer. DBX supports odbc, mysql, pgsql, mssql, fbsql and
646 more.
647
648 %description dbx -l pl.UTF-8
649 Moduł PHP dodający warstwę abstrakcji do obsługi baz danych. DBX
650 obsługuje bazy odbc, mysql, pgsql, mssql, fbsql i inne.
651
652 %package dio
653 Summary:        Direct I/O extension module for PHP
654 Summary(pl.UTF-8):      Moduł Direct I/O dla PHP
655 Group:          Libraries
656 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
657 Provides:       php(dio)
658
659 %description dio
660 This is a dynamic shared object (DSO) for PHP that will add direct
661 file I/O support.
662
663 %description dio -l pl.UTF-8
664 Moduł PHP dodający obsługę bezpośrednich operacji I/O na plikach.
665
666 %package domxml
667 Summary:        DOM XML extension module for PHP
668 Summary(pl.UTF-8):      Moduł DOM XML dla PHP
669 Group:          Libraries
670 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
671 Provides:       php(domxml)
672
673 %description domxml
674 This is a dynamic shared object (DSO) for PHP that will add DOM XML
675 support.
676
677 Warning: this is an experimental module.
678
679 %description domxml -l pl.UTF-8
680 Moduł PHP dodający obsługę DOM XML.
681
682 Uwaga: to jest moduł eksperymentalny.
683
684 %package exif
685 Summary:        exif extension module for PHP
686 Summary(pl.UTF-8):      Moduł exif dla PHP
687 Group:          Libraries
688 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
689 Provides:       php(exif)
690
691 %description exif
692 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
693 support in image files.
694
695 %description exif -l pl.UTF-8
696 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
697
698 %package fdf
699 Summary:        FDF extension module for PHP
700 Summary(pl.UTF-8):      Moduł FDF dla PHP
701 Group:          Libraries
702 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
703 Provides:       php(fdf)
704
705 %description fdf
706 This PHP module adds support for PDF Forms through Adobe FDFTK
707 library.
708
709 %description fdf -l pl.UTF-8
710 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
711 FDFTK.
712
713 %package filepro
714 Summary:        filePro extension module for PHP
715 Summary(pl.UTF-8):      Moduł filePro dla PHP
716 Group:          Libraries
717 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
718 Provides:       php(filepro)
719
720 %description filepro
721 This is a dynamic shared object (DSO) for PHP that will add support
722 for read-only access to filePro databases.
723
724 %description filepro -l pl.UTF-8
725 Moduł PHP dodający możliwość dostępu (tylko do odczytu) do baz danych
726 filePro.
727
728 %package fribidi
729 Summary:        FriBiDi extension module for PHP
730 Summary(pl.UTF-8):      Modułe FriBiDi dla PHP
731 Group:          Libraries
732 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
733 Provides:       php(fribidi)
734
735 %description fribidi
736 This extension is basically a wrapper for the FriBidi implementation
737 of the Unicode Bidi algorithm. The need for such an algorithm rises
738 from the bidirectional language usage done by applications.
739 Arabic/Hebrew embedded within English is such a case.
740
741 %description fribidi -l pl.UTF-8
742 To rozszerzenie to głównie interfejs do implementacji FriBiDi
743 algorytmu Unicode Bidi. Taki algorytm jest potrzebny w przypadku
744 używania dwukierunkowego pisma w aplikacjach - na przykład przy
745 tekście arabskim lub hebrajskim osadzonym wewnątrz angielskiego.
746
747 %package ftp
748 Summary:        FTP extension module for PHP
749 Summary(pl.UTF-8):      Moduł FTP dla PHP
750 Group:          Libraries
751 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
752 Provides:       php(ftp)
753
754 %description ftp
755 This is a dynamic shared object (DSO) for PHP that will add FTP
756 support.
757
758 %description ftp -l pl.UTF-8
759 Moduł PHP dodający obsługę protokołu FTP.
760
761 %package gd
762 Summary:        GD extension module for PHP
763 Summary(pl.UTF-8):      Moduł GD dla PHP
764 Group:          Libraries
765 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
766 Requires:       gd >= 2.0.28-2
767 Requires:       gd(gif)
768 Provides:       php(gd)
769
770 %description gd
771 This is a dynamic shared object (DSO) for PHP that will add GD
772 support, allowing you to create and manipulate images with PHP.
773
774 %description gd -l pl.UTF-8
775 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
776 tworzenie i obróbkę obrazków.
777
778 %package gettext
779 Summary:        gettext extension module for PHP
780 Summary(pl.UTF-8):      Moduł gettext dla PHP
781 Group:          Libraries
782 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
783 Provides:       php(gettext)
784
785 %description gettext
786 This is a dynamic shared object (DSO) for PHP that will add gettext
787 support.
788
789 %description gettext -l pl.UTF-8
790 Moduł PHP dodający obsługę lokalizacji przez gettext.
791
792 %package gmp
793 Summary:        gmp extension module for PHP
794 Summary(pl.UTF-8):      Moduł gmp dla PHP
795 Group:          Libraries
796 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
797 Provides:       php(gmp)
798
799 %description gmp
800 This is a dynamic shared object (DSO) for PHP that will add arbitrary
801 length number support with GNU MP library.
802
803 %description gmp -l pl.UTF-8
804 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
805 liczbach o dowolnej długości.
806
807 %package hyperwave
808 Summary:        Hyperwave extension module for PHP
809 Summary(pl.UTF-8):      Moduł Hyperwave dla PHP
810 Group:          Libraries
811 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
812 Provides:       php(hyperwave)
813
814 %description hyperwave
815 This is a dynamic shared object (DSO) for PHP that will add Hyperwave
816 support.
817
818 %description hyperwave -l pl.UTF-8
819 Moduł PHP dodający obsługę Hyperwave.
820
821 %package iconv
822 Summary:        iconv extension module for PHP
823 Summary(pl.UTF-8):      Moduł iconv dla PHP
824 Group:          Libraries
825 Requires:       %{_libdir}/gconv
826 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
827 Requires:       iconv
828 Provides:       php(iconv)
829
830 %description iconv
831 This is a dynamic shared object (DSO) for PHP that will add iconv
832 support.
833
834 %description iconv -l pl.UTF-8
835 Moduł PHP dodający obsługę iconv.
836
837 %package imap
838 Summary:        IMAP extension module for PHP
839 Summary(pl.UTF-8):      Moduł IMAP dla PHP
840 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
841 Group:          Libraries
842 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
843 Provides:       php(imap)
844
845 %description imap
846 This is a dynamic shared object (DSO) for PHP that will add IMAP
847 support.
848
849 %description imap -l pl.UTF-8
850 Moduł PHP dodający obsługę skrzynek IMAP.
851
852 %description imap -l pt_BR.UTF-8
853 Um módulo para aplicações PHP que usam IMAP.
854
855 %package interbase
856 Summary:        InterBase/Firebird database module for PHP
857 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
858 Group:          Libraries
859 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
860 Provides:       php(interbase)
861 %{?with_interbase_inst:Autoreq: false}
862
863 %description interbase
864 This is a dynamic shared object (DSO) for PHP that will add InterBase
865 and Firebird database support.
866
867 %description interbase -l pl.UTF-8
868 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
869
870 %package java
871 Summary:        Java extension module for PHP
872 Summary(pl.UTF-8):      Moduł Javy dla PHP
873 Group:          Libraries
874 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
875 Provides:       php(java)
876
877 %description java
878 This is a dynamic shared object (DSO) for PHP that will add Java
879 support to PHP. This extension provides a simple and effective means
880 for creating and invoking methods on Java objects from PHP.
881
882 Note: it requires setting LD_LIBRARY_PATH to JRE directories
883 containing JVM libraries (e.g. libjava.so, libverify.so and libjvm.so
884 for Sun's JRE) before starting Apache or PHP interpreter.
885
886 %description java -l pl.UTF-8
887 Moduł PHP dodający wsparcie dla Javy. Umożliwia odwoływanie się do
888 obiektów Javy z poziomu PHP.
889
890 Uwaga: moduł wymaga ustawienia LD_LIBRARY_PATH na katalogi JRE
891 zawierające biblioteki JVM (np. libjava.so, libverify.so i libjvm.so
892 dla JRE Suna) przed uruchomieniem Apache'a lub interpretera PHP.
893
894 %package ldap
895 Summary:        LDAP extension module for PHP
896 Summary(pl.UTF-8):      Moduł LDAP dla PHP
897 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
898 Group:          Libraries
899 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
900 Provides:       php(ldap)
901
902 %description ldap
903 This is a dynamic shared object (DSO) for PHP that will add LDAP
904 support.
905
906 %description ldap -l pl.UTF-8
907 Moduł PHP dodający obsługę LDAP.
908
909 %description ldap -l pt_BR.UTF-8
910 Um módulo para aplicações PHP que usam LDAP.
911
912 %package mbstring
913 Summary:        mbstring extension module for PHP
914 Summary(pl.UTF-8):      Moduł mbstring dla PHP
915 Group:          Libraries
916 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
917 Provides:       php(mbstring)
918
919 %description mbstring
920 This is a dynamic shared object (DSO) for PHP that will add multibyte
921 string support.
922
923 %description mbstring -l pl.UTF-8
924 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
925
926 %package mcal
927 Summary:        mcal extension module for PHP
928 Summary(pl.UTF-8):      Moduł mcal dla PHP
929 Group:          Libraries
930 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
931 Provides:       php(mcal)
932
933 %description mcal
934 This is a dynamic shared object (DSO) for PHP that will add mcal
935 (Modular Calendar Access Library) support.
936
937 %description mcal -l pl.UTF-8
938 Moduł PHP umożliwiający korzystanie z biblioteki mcal (dającej dostęp
939 do kalendarzy).
940
941 %package mcrypt
942 Summary:        mcrypt extension module for PHP
943 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
944 Group:          Libraries
945 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
946 Provides:       php(mcrypt)
947
948 %description mcrypt
949 This is a dynamic shared object (DSO) for PHP that will add mcrypt
950 support.
951
952 %description mcrypt -l pl.UTF-8
953 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
954
955 %package mhash
956 Summary:        mhash extension module for PHP
957 Summary(pl.UTF-8):      Moduł mhash dla PHP
958 Group:          Libraries
959 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
960 Provides:       php(mhash)
961
962 %description mhash
963 This is a dynamic shared object (DSO) for PHP that will add mhash
964 support.
965
966 %description mhash -l pl.UTF-8
967 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
968
969 %package mime_magic
970 Summary:        mime_magic extension module for PHP
971 Summary(pl.UTF-8):      Moduł mime_magic dla PHP
972 Group:          Libraries
973 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
974 Requires:       /usr/share/misc/magic.mime
975 Provides:       php(mime_magic)
976
977 %description mime_magic
978 This PHP module adds support for MIME type lookup via file magic
979 numbers using magic.mime database.
980
981 %description mime_magic -l pl.UTF-8
982 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
983 znaczników plików z użyciem bazy danych magic.mime.
984
985 %package ming
986 Summary:        ming extension module for PHP
987 Summary(pl.UTF-8):      Moduł ming dla PHP
988 Group:          Libraries
989 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
990 Provides:       php(ming)
991
992 %description ming
993 This is a dynamic shared object (DSO) for PHP that will add ming
994 (Flash - .swf files) support.
995
996 %description ming -l pl.UTF-8
997 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
998 ming.
999
1000 %package mnogosearch
1001 Summary:        mnoGoSearch extension module for PHP
1002 Summary(pl.UTF-8):      Moduł mnoGoSearch dla PHP
1003 Group:          Libraries
1004 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1005 Provides:       php(mnogosearch)
1006
1007 %description mnogosearch
1008 This is a dynamic shared object (DSO) for PHP that will allow you to
1009 access mnoGoSearch free search engine.
1010
1011 %description mnogosearch -l pl.UTF-8
1012 Moduł PHP dodający pozwalający na dostęp do wolnodostępnego silnika
1013 wyszukiwarki mnoGoSearch.
1014
1015 %package msession
1016 Summary:        msession extension module for PHP
1017 Summary(pl.UTF-8):      Moduł msession dla PHP
1018 Group:          Libraries
1019 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1020 Provides:       php(msession)
1021
1022 %description msession
1023 This is a dynamic shared object (DSO) for PHP that will allow you to
1024 use msession. msession is a high speed session daemon which can run
1025 either locally or remotely. It is designed to provide consistent
1026 session management for a PHP web farm.
1027
1028 %description msession -l pl.UTF-8
1029 Moduł PHP dodający umożliwiający korzystanie z demona msession. Jest
1030 to demon szybkiej obsługi sesji, który może działać lokalnie lub na
1031 innej maszynie. Służy do zapewniania spójnej obsługi sesji dla farmy
1032 serwerów.
1033
1034 %package mssql
1035 Summary:        MS SQL extension module for PHP
1036 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1037 Group:          Libraries
1038 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1039 Provides:       php(mssql)
1040 Conflicts:      %{name}-sybase
1041 Conflicts:      %{name}-sybase-ct
1042
1043 %description mssql
1044 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1045 databases support through FreeTDS library.
1046
1047 %description mssql -l pl.UTF-8
1048 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1049 FreeTDS.
1050
1051 %package mysql
1052 Summary:        MySQL database module for PHP
1053 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1054 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1055 Group:          Libraries
1056 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1057 Provides:       php(mysql)
1058
1059 %description mysql
1060 This is a dynamic shared object (DSO) for PHP that will add MySQL
1061 database support.
1062
1063 %description mysql -l pl.UTF-8
1064 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1065
1066 %description mysql -l pt_BR.UTF-8
1067 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1068
1069 %package ncurses
1070 Summary:        ncurses module for PHP
1071 Summary(pl.UTF-8):      Moduł ncurses dla PHP
1072 Group:          Libraries
1073 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1074 Provides:       php(ncurses)
1075
1076 %description ncurses
1077 This PHP module adds support for ncurses functions (only for cli and
1078 cgi SAPIs).
1079
1080 %description ncurses -l pl.UTF-8
1081 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1082
1083 %package oci8
1084 Summary:        Oracle 8 database module for PHP
1085 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8 dla PHP
1086 Group:          Libraries
1087 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1088 Provides:       php(oci8)
1089 Autoreq:        false
1090
1091 %description oci8
1092 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
1093 and Oracle 8 database support through Oracle8 Call-Interface (OCI8).
1094
1095 %description oci8 -l pl.UTF-8
1096 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7 i Oracle 8
1097 poprzez interfejs Oracle8 Call-Interface (OCI8).
1098
1099 %package odbc
1100 Summary:        ODBC extension module for PHP
1101 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1102 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1103 Group:          Libraries
1104 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1105 Requires:       unixODBC >= 2.1.1-3
1106 Provides:       php(odbc)
1107
1108 %description odbc
1109 This is a dynamic shared object (DSO) for PHP that will add ODBC
1110 support.
1111
1112 %description odbc -l pl.UTF-8
1113 Moduł PHP ze wsparciem dla ODBC.
1114
1115 %description odbc -l pt_BR.UTF-8
1116 Um módulo para aplicações PHP que usam ODBC.
1117
1118 %package oracle
1119 Summary:        Oracle 7 database module for PHP
1120 Summary(pl.UTF-8):      Moduł bazy danych Oracle 7 dla PHP
1121 Group:          Libraries
1122 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1123 Provides:       php(oracle)
1124 Autoreq:        false
1125
1126 %description oracle
1127 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
1128 database support.
1129
1130 %description oracle -l pl.UTF-8
1131 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7.
1132
1133 %package overload
1134 Summary:        Overload extension module for PHP
1135 Summary(pl.UTF-8):      Moduł Overload dla PHP
1136 Group:          Libraries
1137 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1138 Provides:       php(overload)
1139
1140 %description overload
1141 This is a dynamic shared object (DSO) for PHP that will add user-space
1142 object overloading support.
1143
1144 Warning: this is an experimental module.
1145
1146 %description overload -l pl.UTF-8
1147 Moduł PHP umożliwiający przeciążanie obiektów.
1148
1149 Uwaga: to jest moduł eksperymentalny.
1150
1151 %package pcntl
1152 Summary:        Process Control extension module for PHP
1153 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1154 Group:          Libraries
1155 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1156 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1157 Provides:       php(pcntl)
1158
1159 %description pcntl
1160 This is a dynamic shared object (DSO) for PHP that will add process
1161 spawning and control support. It supports functions like fork(),
1162 waitpid(), signal() etc.
1163
1164 Warning: this is an experimental module. Also, don't use it in
1165 webserver environment!
1166
1167 %description pcntl -l pl.UTF-8
1168 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1169 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1170
1171 Uwaga: to jest moduł eksperymentalny. Ponadto nie jest przeznaczony do
1172 używania z serwerem WWW - nie próbuj tego!
1173
1174 %package pcre
1175 Summary:        PCRE extension module for PHP
1176 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1177 Group:          Libraries
1178 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1179 Provides:       php(pcre)
1180
1181 %description pcre
1182 This is a dynamic shared object (DSO) for PHP that will add Perl
1183 Compatible Regular Expression support.
1184
1185 %description pcre -l pl.UTF-8
1186 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1187 (Perl Compatible Regular Expressions)
1188
1189 %package pdf
1190 Summary:        PDF creation module module for PHP
1191 Summary(pl.UTF-8):      Moduł do tworzenia plików PDF dla PHP
1192 Group:          Libraries
1193 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1194 Provides:       php(pdf)
1195
1196 %description pdf
1197 This is a dynamic shared object (DSO) for PHP that will add PDF
1198 support through pdflib.
1199
1200 %description pdf -l pl.UTF-8
1201 Moduł PHP umożliwiający tworzenie plików PDF. Wykorzystuje bibliotekę
1202 pdflib.
1203
1204 %package pgsql
1205 Summary:        PostgreSQL database module for PHP
1206 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1207 Group:          Libraries
1208 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1209 Provides:       php(pgsql)
1210
1211 %description pgsql
1212 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1213 database support.
1214
1215 %description pgsql -l pl.UTF-8
1216 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1217
1218 %description pgsql -l pt_BR.UTF-8
1219 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1220
1221 %package posix
1222 Summary:        POSIX extension module for PHP
1223 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1224 Group:          Libraries
1225 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1226 Provides:       php(posix)
1227
1228 %description posix
1229 This is a dynamic shared object (DSO) for PHP that will add POSIX
1230 functions support to PHP.
1231
1232 %description posix -l pl.UTF-8
1233 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1234
1235 %package pspell
1236 Summary:        pspell extension module for PHP
1237 Summary(pl.UTF-8):      Moduł pspell dla PHP
1238 Group:          Libraries
1239 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1240 Provides:       php(pspell)
1241
1242 %description pspell
1243 This is a dynamic shared object (DSO) for PHP that will add pspell
1244 support to PHP. It allows to check the spelling of a word and offer
1245 suggestions.
1246
1247 %description pspell -l pl.UTF-8
1248 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1249 sprawdzanie pisowni słowa i sugerowanie poprawek.
1250
1251 %package qtdom
1252 Summary:        Qt DOM extension module for PHP
1253 Summary(pl.UTF-8):      Moduł Qt DOM dla PHP
1254 Group:          Libraries
1255 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1256 Provides:       php(qtdom)
1257
1258 %description qtdom
1259 This PHP module adds Qt DOM functions support.
1260
1261 %description qtdom -l pl.UTF-8
1262 Moduł PHP dodający obsługę funkcji Qt DOM.
1263
1264 %package readline
1265 Summary:        readline extension module for PHP
1266 Summary(pl.UTF-8):      Moduł readline dla PHP
1267 Group:          Libraries
1268 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1269 Provides:       php(readline)
1270
1271 %description readline
1272 This PHP module adds support for readline functions (only for cli and
1273 cgi SAPIs).
1274
1275 %description readline -l pl.UTF-8
1276 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1277
1278 %package recode
1279 Summary:        recode extension module for PHP
1280 Summary(pl.UTF-8):      Moduł recode dla PHP
1281 Group:          Libraries
1282 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1283 Requires:       recode >= 3.5d-3
1284 Provides:       php(recode)
1285
1286 %description recode
1287 This is a dynamic shared object (DSO) for PHP that will add recode
1288 support.
1289
1290 %description recode -l pl.UTF-8
1291 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1292 bibliotekę recode).
1293
1294 %package shmop
1295 Summary:        Shared Memory Operations extension module for PHP
1296 Summary(pl.UTF-8):      Moduł shmop dla PHP
1297 Group:          Libraries
1298 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1299 Provides:       php(shmop)
1300
1301 %description shmop
1302 This is a dynamic shared object (DSO) for PHP that will add Shared
1303 Memory Operations support.
1304
1305 Warning: this is an experimental module.
1306
1307 %description shmop -l pl.UTF-8
1308 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1309
1310 Uwaga: to jest moduł eksperymentalny.
1311
1312 %package snmp
1313 Summary:        SNMP extension module for PHP
1314 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1315 Group:          Libraries
1316 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1317 Provides:       php(snmp)
1318
1319 %description snmp
1320 This is a dynamic shared object (DSO) for PHP that will add SNMP
1321 support.
1322
1323 %description snmp -l pl.UTF-8
1324 Moduł PHP dodający obsługę SNMP.
1325
1326 %package sockets
1327 Summary:        sockets extension module for PHP
1328 Summary(pl.UTF-8):      Moduł socket dla PHP
1329 Group:          Libraries
1330 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1331 Provides:       php(sockets)
1332
1333 %description sockets
1334 This is a dynamic shared object (DSO) for PHP that will add sockets
1335 support.
1336
1337 Warning: this is an experimental module.
1338
1339 %description sockets -l pl.UTF-8
1340 Moduł PHP dodający obsługę gniazdek.
1341
1342 Uwaga: to jest moduł eksperymentalny.
1343
1344 %package sybase
1345 Summary:        Sybase DB extension module for PHP
1346 Summary(pl.UTF-8):      Moduł Sybase DB dla PHP
1347 Group:          Libraries
1348 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1349 Provides:       php(sybase)
1350 Obsoletes:      php4-sybase-ct
1351 Conflicts:      %{name}-mssql
1352
1353 %description sybase
1354 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1355 MS SQL databases support through SYBDB library. Currently Sybase
1356 module is not maintained. Using Sybase-CT module is recommended
1357 instead.
1358
1359 %description sybase -l pl.UTF-8
1360 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1361 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1362 Zaleca się używanie modułu Sybase-CT.
1363
1364 %package sybase-ct
1365 Summary:        Sybase-CT extension module for PHP
1366 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1367 Group:          Libraries
1368 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1369 Provides:       php(sybase-ct)
1370 Obsoletes:      php4-sybase
1371 Conflicts:      %{name}-mssql
1372
1373 %description sybase-ct
1374 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1375 MS SQL databases support through CT-lib.
1376
1377 %description sybase-ct -l pl.UTF-8
1378 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1379 CT-lib.
1380
1381 %package sysvmsg
1382 Summary:        SysV msg extension module for PHP
1383 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1384 Group:          Libraries
1385 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1386 Provides:       php(sysvmsg)
1387
1388 %description sysvmsg
1389 This is a dynamic shared object (DSO) for PHP that will add SysV
1390 message queues support.
1391
1392 %description sysvmsg -l pl.UTF-8
1393 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1394
1395 %package sysvsem
1396 Summary:        SysV sem extension module for PHP
1397 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1398 Group:          Libraries
1399 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1400 Provides:       php(sysvsem)
1401
1402 %description sysvsem
1403 This is a dynamic shared object (DSO) for PHP that will add SysV
1404 semaphores support.
1405
1406 %description sysvsem -l pl.UTF-8
1407 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1408
1409 %package sysvshm
1410 Summary:        SysV shm extension module for PHP
1411 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1412 Group:          Libraries
1413 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1414 Provides:       php(sysvshm)
1415
1416 %description sysvshm
1417 This is a dynamic shared object (DSO) for PHP that will add SysV
1418 Shared Memory support.
1419
1420 %description sysvshm -l pl.UTF-8
1421 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1422
1423 %package tokenizer
1424 Summary:        tokenizer extension module for PHP
1425 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1426 Group:          Libraries
1427 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1428 Provides:       php(tokenizer)
1429
1430 %description tokenizer
1431 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1432 support.
1433
1434 %description tokenizer -l pl.UTF-8
1435 Moduł PHP dodający obsługę tokenizera do PHP.
1436
1437 %package wddx
1438 Summary:        wddx extension module for PHP
1439 Summary(pl.UTF-8):      Moduł wddx dla PHP
1440 Group:          Libraries
1441 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1442 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1443 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1444 Provides:       php(wddx)
1445
1446 %description wddx
1447 This is a dynamic shared object (DSO) for PHP that will add wddx
1448 support.
1449
1450 %description wddx -l pl.UTF-8
1451 Moduł PHP umożliwiający korzystanie z wddx.
1452
1453 %package xml
1454 Summary:        XML extension module for PHP
1455 Summary(pl.UTF-8):      Moduł XML dla PHP
1456 Group:          Libraries
1457 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1458 Provides:       php(xml)
1459
1460 %description xml
1461 This is a dynamic shared object (DSO) for PHP that will add XML
1462 support. This extension lets you create XML parsers and then define
1463 handlers for different XML events.
1464
1465 %description xml -l pl.UTF-8
1466 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1467 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1468 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1469
1470 %package xmlrpc
1471 Summary:        xmlrpc extension module for PHP
1472 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1473 Group:          Libraries
1474 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1475 Provides:       php(xmlrpc)
1476
1477 %description xmlrpc
1478 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1479 support.
1480
1481 Warning: this is an experimental module.
1482
1483 %description xmlrpc -l pl.UTF-8
1484 Moduł PHP dodający obsługę XMLRPC.
1485
1486 Uwaga: to jest moduł eksperymentalny.
1487
1488 %package xslt
1489 Summary:        xslt extension module for PHP
1490 Summary(pl.UTF-8):      Moduł xslt dla PHP
1491 Group:          Libraries
1492 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1493 Provides:       php(xslt)
1494
1495 %description xslt
1496 This is a dynamic shared object (DSO) for PHP that will add xslt
1497 support.
1498
1499 %description xslt -l pl.UTF-8
1500 Moduł PHP umożliwiający korzystanie z technologii xslt.
1501
1502 %package yaz
1503 Summary:        yaz extension module for PHP
1504 Summary(pl.UTF-8):      Moduł yaz dla PHP
1505 Group:          Libraries
1506 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1507 Requires:       yaz >= 1.9
1508 Provides:       php(yaz)
1509
1510 %description yaz
1511 This is a dynamic shared object (DSO) for PHP that will add yaz
1512 support. yaz toolkit implements the Z39.50 protocol for information
1513 retrieval.
1514
1515 %description yaz -l pl.UTF-8
1516 Moduł PHP umożliwiający korzystanie z yaz - implementacji protokołu
1517 Z39.50 służącego do pozyskiwania informacji.
1518
1519 %package yp
1520 Summary:        NIS (yp) extension module for PHP
1521 Summary(pl.UTF-8):      Moduł NIS (yp) dla PHP
1522 Group:          Libraries
1523 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1524 Provides:       php(yp)
1525
1526 %description yp
1527 This is a dynamic shared object (DSO) for PHP that will add NIS
1528 (Yellow Pages) support.
1529
1530 %description yp -l pl.UTF-8
1531 Moduł PHP dodający wsparcie dla NIS (Yellow Pages).
1532
1533 %package zip
1534 Summary:        zip extension module for PHP
1535 Summary(pl.UTF-8):      Moduł zip dla PHP
1536 Group:          Libraries
1537 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1538 Provides:       php(zip)
1539
1540 %description zip
1541 This is a dynamic shared object (DSO) for PHP that will add ZZipLib
1542 (read-only access to ZIP archives) support.
1543
1544 %description zip -l pl.UTF-8
1545 Moduł PHP umożliwiający korzystanie z bibliotekli ZZipLib
1546 (pozwalającej na odczyt archiwów ZIP).
1547
1548 %package zlib
1549 Summary:        Zlib extension module for PHP
1550 Summary(pl.UTF-8):      Moduł zlib dla PHP
1551 Group:          Libraries
1552 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1553 Provides:       php(zlib)
1554
1555 %description zlib
1556 This is a dynamic shared object (DSO) for PHP that will add zlib
1557 compression support to PHP.
1558
1559 %description zlib -l pl.UTF-8
1560 Moduł PHP umożliwiający używanie kompresji zlib.
1561
1562 %prep
1563 %setup -q -n php-%{version}
1564 #%patch43 -p1
1565 %patch40 -p1
1566 %patch0 -p1
1567 %patch1 -p1
1568 %patch2 -p1
1569 %patch3 -p1
1570 %patch4 -p1
1571 %patch5 -p1
1572 %patch6 -p1
1573 %patch7 -p1
1574 %patch8 -p1
1575 # Not really needed?
1576 #%patch9 -p1
1577 %patch10 -p1
1578 %patch11 -p1
1579 %patch12 -p1
1580 %patch13 -p1
1581 %patch14 -p1
1582 %patch15 -p1
1583 %patch16 -p1
1584 cp php.ini-dist php.ini
1585 %patch17 -p1
1586 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1587 # conditionally...
1588 %patch18 -p1
1589 %patch19 -p1
1590 %patch20 -p1
1591 %patch21 -p1
1592 %patch22 -p1
1593 # %patch23 -p1
1594 %patch24 -p1
1595 %patch25 -p1
1596 %patch26 -p1
1597 %patch27 -p1
1598 %patch28 -p1
1599
1600 %patch30 -p1
1601 %patch31 -p1
1602 %patch33 -p1
1603 %patch34 -p1
1604 %patch35 -p1
1605 %patch36 -p1
1606 %patch37 -p1
1607 %patch38 -p1
1608 %{?with_versioning:%patch39 -p1}
1609 # XXX: I believe this one is obsolete as of 4.4.3
1610 #%patch41 -p1
1611 %patch41 -p1
1612 %patch42 -p1
1613 %patch43 -p1
1614 %patch45 -p1
1615 %patch46 -p1
1616 %patch47 -p1
1617 %patch48 -p1
1618 %patch49 -p1
1619 %patch50 -p1
1620 %patch51 -p1
1621 %if "%{_lib}" == "lib64"
1622 %patch52 -p1
1623 %endif
1624 %patch53 -p1
1625 %patch54 -p1
1626 %patch55 -p1
1627 %patch56 -p1
1628
1629 %if %{with hardening}
1630 zcat %{SOURCE8} | patch -p1
1631 %endif
1632
1633 cp -f Zend/LICENSE{,.Zend}
1634
1635 %build
1636 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1637 if [ $API != %{php_api_version} ]; then
1638         echo "Set %%define php_api_version to $API and re-run."
1639         exit 1
1640 fi
1641
1642 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1643 if [ $API != %{zend_module_api} ]; then
1644         echo "Set %%define zend_module_api to $API and re-run."
1645         exit 1
1646 fi
1647
1648 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1649 if [ $API != %{zend_extension_api} ]; then
1650         echo "Set %%define zend_extension_api to $API and re-run."
1651         exit 1
1652 fi
1653
1654 export EXTENSION_DIR="%{extensionsdir}"
1655 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1656         rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
1657         %{__libtoolize}
1658         %{__aclocal}
1659         cp -f /usr/share/automake/config.{sub,guess} .
1660         ./buildconf --force
1661         touch _built-conf
1662 fi
1663 export PROG_SENDMAIL="/usr/lib/sendmail"
1664
1665 sapis="
1666 %if %{with fcgi}
1667 fcgi
1668 %endif
1669 cgi cli
1670 %if %{with apache1}
1671 apxs1
1672 %endif
1673 %if %{with apache2}
1674 apxs2
1675 %endif
1676 "
1677 for sapi in $sapis; do
1678         : SAPI $sapi
1679         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1680
1681         sapi_args=''
1682         case $sapi in
1683         cgi)
1684                 sapi_args='--enable-discard-path --enable-force-cgi-redirect'
1685                 ;;
1686         cli)
1687                 sapi_args='--disable-cgi'
1688                 ;;
1689         fcgi)
1690                 sapi_args='--enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect'
1691                 ;;
1692         apxs1)
1693                 ver=$(rpm -q --qf '%{V}' apache1-devel)
1694                 sapi_args="--with-apxs=%{apxs1} --with-apache-version=$ver"
1695                 ;;
1696         apxs2)
1697                 ver=$(rpm -q --qf '%{V}' apache-devel)
1698                 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
1699                 ;;
1700         esac
1701
1702         %configure \
1703         $sapi_args \
1704 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1705         --cache-file=config.cache \
1706 %endif
1707         --with-config-file-path=%{_sysconfdir} \
1708         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1709         --with-exec-dir=%{_bindir} \
1710         --%{!?debug:dis}%{?debug:en}able-debug \
1711         %{?with_zts:--enable-experimental-zts} \
1712         --enable-inline-optimization \
1713         --enable-shared \
1714         --disable-static \
1715         --enable-bcmath=shared \
1716         --enable-calendar=shared \
1717         --enable-ctype=shared \
1718         --enable-dba=shared \
1719         --enable-dbx=shared \
1720         --enable-dio=shared \
1721         --enable-exif=shared \
1722         --enable-filepro=shared \
1723         --enable-ftp=shared \
1724         --enable-magic-quotes \
1725         --enable-mbstring=shared,all --enable-mbregex \
1726         --enable-memory-limit \
1727         --enable-overload=shared \
1728         --enable-pcntl=shared \
1729         --enable-posix=shared \
1730         %{?with_recode:--with-recode=shared} \
1731         --enable-safe-mode \
1732         --enable-session --enable-trans-sid \
1733         --enable-shmop=shared \
1734         --enable-sockets=shared \
1735         --enable-sysvmsg=shared \
1736         --enable-sysvsem=shared \
1737         --enable-sysvshm=shared \
1738         --enable-tokenizer=shared \
1739         --enable-track-vars \
1740         %{?with_wddx:--enable-wddx=shared} \
1741         %{!?with_xml:--disable-xml}%{?with_xml:--enable-xml=shared} \
1742         %{?with_xslt:--enable-xslt=shared} \
1743         --enable-yp=shared \
1744         --with-bz2=shared \
1745         %{?with_cpdf:--with-cpdflib=shared} \
1746         --with-crack=shared \
1747         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1748         --with-db=shared --with-db%{?with_db3:3}%{!?with_db3:4} \
1749         --with-dbase=shared \
1750         %{?with_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
1751 %if %{with xml} || %{with xmlrpc}
1752         --with-expat-dir=shared,/usr \
1753 %else
1754         --without-expat-dir \
1755 %endif
1756         %{?with_fdf:--with-fdftk=shared} \
1757         --with-filepro=shared \
1758         --with-freetype-dir=shared \
1759         %{?with_fribidi:--with-fribidi=shared} \
1760         --with-gd=shared --enable-gd-native-ttf \
1761         --with-gdbm \
1762         --with-gettext=shared \
1763         --with-gmp=shared \
1764         --with-hyperwave=shared \
1765         --with-iconv=shared \
1766         %{?with_imap:--with-imap=shared --with-imap-ssl --with-kerberos} \
1767         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1768         %{?with_java:--with-java=%{_libdir}/java} \
1769         --with-jpeg-dir=/usr \
1770         %{?with_ldap:--with-ldap=shared} \
1771         --with-mcal=shared,/usr \
1772         --with-mcrypt=shared \
1773         %{?with_mhash:--with-mhash=shared} \
1774         --with-mime-magic=shared,/usr/share/misc/magic.mime \
1775         %{?with_ming:--with-ming=shared} \
1776         %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
1777         %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
1778         %{?with_mssql:--with-mssql=shared} \
1779         --with-mysql=shared,/usr --with-mysql-sock=/var/lib/mysql/mysql.sock \
1780         --with-ncurses=shared \
1781         %{?with_oci8:--with-oci8=shared} \
1782         %{?with_odbc:--with-unixODBC=shared} \
1783         %{?with_openssl:--with-openssl} \
1784         %{?with_oracle:--with-oracle=shared} \
1785         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
1786         %{?with_pdf:--with-pdflib=shared} \
1787         --with-pear=%{php_pear_dir} \
1788         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1789         --with-png-dir=/usr \
1790         %{?with_qtdom:--with-qtdom=shared} \
1791         --with-readline=shared \
1792         --with-regex=php \
1793         %{?with_snmp:--with-snmp=shared --enable-ucd-snmp-hack} \
1794         %{?with_pspell:--with-pspell=shared} \
1795         %{?with_sybase:--with-sybase-ct=shared,/usr --with-sybase=shared,/usr} \
1796         --with-t1lib=shared \
1797         --with-tiff-dir=/usr \
1798         %{?with_xml:--with-dom=shared} \
1799         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
1800         %{?with_xslt:--with-xslt-sablot=shared} --without-sablot-js \
1801         %{?with_yaz:--with-yaz=shared} \
1802         --with-zip=shared \
1803         --with-zlib=shared --with-zlib-dir=shared,/usr \
1804
1805         cp -f Makefile Makefile.$sapi
1806         cp -f main/php_config.h php_config.h.$sapi
1807 done
1808
1809 # must make this first, so modules can link against it.
1810 %{__make} libphp_common.la
1811 %{__make} build-modules
1812
1813 %if %{with apache1}
1814 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp4.la -f Makefile.apxs1
1815 %endif
1816
1817 %if %{with apache2}
1818 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp4.la -f Makefile.apxs2
1819 %endif
1820
1821 # FCGI
1822 %if %{with fcgi}
1823 cp -af php_config.h.fcgi main/php_config.h
1824 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1825 %{__make} sapi/cgi/php -f Makefile.fcgi
1826 cp -r sapi/cgi sapi/fcgi
1827 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php -qn)" = cgi-fcgi ] || exit 1
1828 %endif
1829
1830 # CGI
1831 cp -af php_config.h.cgi main/php_config.h
1832 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1833 %{__make} sapi/cgi/php -f Makefile.cgi
1834 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php -qn)" = cgi ] || exit 1
1835
1836 # CLI
1837 cp -af php_config.h.cli main/php_config.h
1838 %{__make} sapi/cli/php -f Makefile.cli
1839 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
1840
1841 %install
1842 rm -rf $RPM_BUILD_ROOT
1843 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}} \
1844         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1845         $RPM_BUILD_ROOT{/etc/apache/conf.d,/etc/httpd/conf.d} \
1846         $RPM_BUILD_ROOT%{_mandir}/man1
1847
1848 # install the apache modules' files
1849 %{__make} install-headers install-build install-modules install-programs \
1850         INSTALL_ROOT=$RPM_BUILD_ROOT
1851
1852 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
1853 # fix install paths, avoid evil rpaths
1854 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
1855
1856 # install apache1 DSO module
1857 %if %{with apache1}
1858 libtool --silent --mode=install install sapi/apache/libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache1
1859 rm $RPM_BUILD_ROOT%{_libdir}/apache1/libphp4.la
1860 %endif
1861
1862 # install apache2 DSO module
1863 %if %{with apache2}
1864 libtool --silent --mode=install install sapi/apache2handler/libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache
1865 rm $RPM_BUILD_ROOT%{_libdir}/apache/libphp4.la
1866 %endif
1867
1868 # better solution?
1869 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
1870
1871 # install CGI
1872 libtool --silent --mode=install install sapi/cgi/php $RPM_BUILD_ROOT%{_bindir}/php4.cgi
1873
1874 # install FCGI
1875 %if %{with fcgi}
1876 libtool --silent --mode=install install sapi/fcgi/php $RPM_BUILD_ROOT%{_bindir}/php4.fcgi
1877 %endif
1878
1879 # install CLI
1880 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php4.cli
1881
1882 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php4.1
1883 ln -sf php4.cli $RPM_BUILD_ROOT%{_bindir}/php4
1884 ln -sf php4.cli $RPM_BUILD_ROOT%{_bindir}/php
1885
1886 %{?with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{extensionsdir}}
1887
1888 install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1889 %if %{with fcgi}
1890 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
1891 %endif
1892 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
1893 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
1894
1895 %if %{with apache1}
1896 install %{SOURCE3} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php4.conf
1897 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
1898 %endif
1899
1900 %if %{with apache2}
1901 install %{SOURCE3} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php4.conf
1902 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
1903 %endif
1904
1905 # Generate stub .ini files for each subpackage
1906 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1907 generate_inifiles() {
1908         for so in modules/*.so; do
1909                 mod=$(basename $so .so)
1910                 conf="%{_sysconfdir}/conf.d/$mod.ini"
1911                 # xml needs to be loaded before wddx
1912                 [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_$mod.ini"
1913                 echo "+ $conf"
1914                 cat > $RPM_BUILD_ROOT$conf <<-EOF
1915                         ; Enable $mod extension module
1916                         extension=$mod.so
1917                 EOF
1918         done
1919 }
1920 generate_inifiles
1921
1922 # per SAPI ini directories
1923 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
1924
1925 # for CLI SAPI only
1926 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,pcntl,readline}.ini,cli.d}
1927
1928 # use system automake and {lib,sh}tool
1929 %if "%{pld_release}" != "ac"
1930         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
1931         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
1932                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
1933         done
1934         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1935 %else
1936         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
1937         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1938 %endif
1939 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
1940
1941 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
1942 # isn't installed by install-headers make target, we do it manually here.
1943 # this header file is required by e.g. filter PECL extension
1944 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
1945
1946 %clean
1947 rm -rf $RPM_BUILD_ROOT
1948
1949 %post -n apache1-mod_php4
1950 if [ "$1" = "1" ]; then
1951         %service -q apache restart
1952 fi
1953
1954 %postun -n apache1-mod_php4
1955 if [ "$1" = "0" ]; then
1956         %service -q apache restart
1957 fi
1958
1959 %post -n apache-mod_php4
1960 if [ "$1" = "1" ]; then
1961         %service -q httpd restart
1962 fi
1963
1964 %postun -n apache-mod_php4
1965 if [ "$1" = "0" ]; then
1966         %service -q httpd restart
1967 fi
1968
1969 # so tired of typing... so decided to create macros
1970 # macro called at extension post scriptlet
1971 %define extension_post \
1972 if [ "$1" = "1" ]; then \
1973         [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
1974         [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart \
1975 fi
1976
1977 # macro called at extension postun scriptlet
1978 %define extension_postun \
1979 if [ "$1" = "0" ]; then \
1980         [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
1981         [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart \
1982 fi
1983
1984 %post   common -p /sbin/ldconfig
1985 %postun common -p /sbin/ldconfig
1986
1987 %posttrans common
1988 # minimizing apache restarts logics. we restart webserver:
1989 #
1990 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1991 # 2. first install of extension (post: $1 = 1)
1992 # 2. uninstall of extension (postun: $1 == 0)
1993 #
1994 # the strict internal deps between extensions (and apache modules) and
1995 # common package are very important for all this to work.
1996
1997 # restart webserver at the end of transaction
1998 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
1999 [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart
2000
2001 %if %{with apache2}
2002 %triggerpostun -n apache-mod_php4 -- apache-mod_php4 < 3:4.4.0-2.16, php4 < 3:4.3.11-4.16
2003 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2004 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2005         cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2006         mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2007 fi
2008 %endif
2009
2010 %post bcmath
2011 %extension_post
2012
2013 %postun bcmath
2014 %extension_postun
2015
2016 %post bzip2
2017 %extension_post
2018
2019 %postun bzip2
2020 %extension_postun
2021
2022 %post calendar
2023 %extension_post
2024
2025 %postun calendar
2026 %extension_postun
2027
2028 %post cpdf
2029 %extension_post
2030
2031 %postun cpdf
2032 %extension_postun
2033
2034 %post crack
2035 %extension_post
2036
2037 %postun crack
2038 %extension_postun
2039
2040 %post ctype
2041 %extension_post
2042
2043 %postun ctype
2044 %extension_postun
2045
2046 %post curl
2047 %extension_post
2048
2049 %postun curl
2050 %extension_postun
2051
2052 %post db
2053 %extension_post
2054
2055 %postun db
2056 %extension_postun
2057
2058 %post dba
2059 %extension_post
2060
2061 %postun dba
2062 %extension_postun
2063
2064 %post dbase
2065 %extension_post
2066
2067 %postun dbase
2068 %extension_postun
2069
2070 %post dbx
2071 %extension_post
2072
2073 %postun dbx
2074 %extension_postun
2075
2076 %post dio
2077 %extension_post
2078
2079 %postun dio
2080 %extension_postun
2081
2082 %post domxml
2083 %extension_post
2084
2085 %postun domxml
2086 %extension_postun
2087
2088 %post exif
2089 %extension_post
2090
2091 %postun exif
2092 %extension_postun
2093
2094 %post fdf
2095 %extension_post
2096
2097 %postun fdf
2098 %extension_postun
2099
2100 %post filepro
2101 %extension_post
2102
2103 %postun filepro
2104 %extension_postun
2105
2106 %post fribidi
2107 %extension_post
2108
2109 %postun fribidi
2110 %extension_postun
2111
2112 %post ftp
2113 %extension_post
2114
2115 %postun ftp
2116 %extension_postun
2117
2118 %post gd
2119 %extension_post
2120
2121 %postun gd
2122 %extension_postun
2123
2124 %post gettext
2125 %extension_post
2126
2127 %postun gettext
2128 %extension_postun
2129
2130 %post gmp
2131 %extension_post
2132
2133 %postun gmp
2134 %extension_postun
2135
2136 %post hyperwave
2137 %extension_post
2138
2139 %postun hyperwave
2140 %extension_postun
2141
2142 %post iconv
2143 %extension_post
2144
2145 %postun iconv
2146 %extension_postun
2147
2148 %post imap
2149 %extension_post
2150
2151 %postun imap
2152 %extension_postun
2153
2154 %post interbase
2155 %extension_post
2156
2157 %postun interbase
2158 %extension_postun
2159
2160 %post java
2161 %extension_post
2162
2163 %postun java
2164 %extension_postun
2165
2166 %post ldap
2167 %extension_post
2168
2169 %postun ldap
2170 %extension_postun
2171
2172 %post mbstring
2173 %extension_post
2174
2175 %postun mbstring
2176 %extension_postun
2177
2178 %post mcal
2179 %extension_post
2180
2181 %postun mcal
2182 %extension_postun
2183
2184 %post mcrypt
2185 %extension_post
2186
2187 %postun mcrypt
2188 %extension_postun
2189
2190 %post mhash
2191 %extension_post
2192
2193 %postun mhash
2194 %extension_postun
2195
2196 %post mime_magic
2197 %extension_post
2198
2199 %postun mime_magic
2200 %extension_postun
2201
2202 %post ming
2203 %extension_post
2204
2205 %postun ming
2206 %extension_postun
2207
2208 %post mnogosearch
2209 %extension_post
2210
2211 %postun mnogosearch
2212 %extension_postun
2213
2214 %post msession
2215 %extension_post
2216
2217 %postun msession
2218 %extension_postun
2219
2220 %post mssql
2221 %extension_post
2222
2223 %postun mssql
2224 %extension_postun
2225
2226 %post mysql
2227 %extension_post
2228
2229 %postun mysql
2230 %extension_postun
2231
2232 %post oci8
2233 %extension_post
2234
2235 %postun oci8
2236 %extension_postun
2237
2238 %post odbc
2239 %extension_post
2240
2241 %postun odbc
2242 %extension_postun
2243
2244 %post oracle
2245 %extension_post
2246
2247 %postun oracle
2248 %extension_postun
2249
2250 %post overload
2251 %extension_post
2252
2253 %postun overload
2254 %extension_postun
2255
2256 %post pcre
2257 %extension_post
2258
2259 %postun pcre
2260 %extension_postun
2261
2262 %post pdf
2263 %extension_post
2264
2265 %postun pdf
2266 %extension_postun
2267
2268 %post pgsql
2269 %extension_post
2270
2271 %postun pgsql
2272 %extension_postun
2273
2274 %post posix
2275 %extension_post
2276
2277 %postun posix
2278 %extension_postun
2279
2280 %post pspell
2281 %extension_post
2282
2283 %postun pspell
2284 %extension_postun
2285
2286 %post qtdom
2287 %extension_post
2288
2289 %postun qtdom
2290 %extension_postun
2291
2292 %post recode
2293 %extension_post
2294
2295 %postun recode
2296 %extension_postun
2297
2298 %post shmop
2299 %extension_post
2300
2301 %postun shmop
2302 %extension_postun
2303
2304 %post snmp
2305 %extension_post
2306
2307 %postun snmp
2308 %extension_postun
2309
2310 %post sockets
2311 %extension_post
2312
2313 %postun sockets
2314 %extension_postun
2315
2316 %post sybase
2317 %extension_post
2318
2319 %postun sybase
2320 %extension_postun
2321
2322 %post sybase-ct
2323 %extension_post
2324
2325 %postun sybase-ct
2326 %extension_postun
2327
2328 %post sysvmsg
2329 %extension_post
2330
2331 %postun sysvmsg
2332 %extension_postun
2333
2334 %post sysvsem
2335 %extension_post
2336
2337 %postun sysvsem
2338 %extension_postun
2339
2340 %post sysvshm
2341 %extension_post
2342
2343 %postun sysvshm
2344 %extension_postun
2345
2346 %post tokenizer
2347 %extension_post
2348
2349 %postun tokenizer
2350 %extension_postun
2351
2352 %post wddx
2353 %extension_post
2354
2355 %postun wddx
2356 %extension_postun
2357
2358 %post xml
2359 %extension_post
2360
2361 %postun xml
2362 %extension_postun
2363
2364 %post xmlrpc
2365 %extension_post
2366
2367 %postun xmlrpc
2368 %extension_postun
2369
2370 %post xslt
2371 %extension_post
2372
2373 %postun xslt
2374 %extension_postun
2375
2376 %post yaz
2377 %extension_post
2378
2379 %postun yaz
2380 %extension_postun
2381
2382 %post yp
2383 %extension_post
2384
2385 %postun yp
2386 %extension_postun
2387
2388 %post zip
2389 %extension_post
2390
2391 %postun zip
2392 %extension_postun
2393
2394 %post zlib
2395 %extension_post
2396
2397 %postun zlib
2398 %extension_postun
2399
2400 # openssl trigger on common package. it removes shared openssl module from php.ini, if it was there.
2401 %triggerun common -- %{name}-openssl < 3:4.4.0-4
2402 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2403
2404 %triggerun bcmath -- %{name}-bcmath < 3:4.4.0-2.1
2405 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2406
2407 %triggerun bzip2 -- %{name}-bzip2 < 3:4.4.0-2.1
2408 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bz2\.so/d' %{_sysconfdir}/php.ini
2409
2410 %triggerun calendar -- %{name}-calendar < 3:4.4.0-2.1
2411 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2412
2413 %triggerun cpdf -- %{name}-cpdf < 3:4.4.0-2.1
2414 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*cpdf\.so/d' %{_sysconfdir}/php.ini
2415
2416 %triggerun crack -- %{name}-crack < 3:4.4.0-2.1
2417 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*crack\.so/d' %{_sysconfdir}/php.ini
2418
2419 %triggerun ctype -- %{name}-ctype < 3:4.4.0-2.1
2420 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2421
2422 %triggerun curl -- %{name}-curl < 3:4.4.0-2.1
2423 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2424
2425 %triggerun db -- %{name}-db < 3:4.4.0-2.1
2426 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*db\.so/d' %{_sysconfdir}/php.ini
2427
2428 %triggerun dba -- %{name}-dba < 3:4.4.0-2.1
2429 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2430
2431 %triggerun dbase -- %{name}-dbase < 3:4.4.0-2.1
2432 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2433
2434 %triggerun dbx -- %{name}-dbx < 3:4.4.0-2.1
2435 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbx\.so/d' %{_sysconfdir}/php.ini
2436
2437 %triggerun dio -- %{name}-dio < 3:4.4.0-2.1
2438 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dio\.so/d' %{_sysconfdir}/php.ini
2439
2440 %triggerun domxml -- %{name}-domxml < 3:4.4.0-2.1
2441 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*domxml\.so/d' %{_sysconfdir}/php.ini
2442
2443 %triggerun exif -- %{name}-exif < 3:4.4.0-2.1
2444 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2445
2446 %triggerun fdf -- %{name}-fdf < 3:4.4.0-2.1
2447 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2448
2449 %triggerun filepro -- %{name}-filepro < 3:4.4.0-2.1
2450 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*filepro\.so/d' %{_sysconfdir}/php.ini
2451
2452 %triggerun fribidi -- %{name}-fribidi < 3:4.4.0-2.1
2453 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fribidi\.so/d' %{_sysconfdir}/php.ini
2454
2455 %triggerun ftp -- %{name}-ftp < 3:4.4.0-2.1
2456 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2457
2458 %triggerun gd -- %{name}-gd < 3:4.4.0-2.1
2459 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2460
2461 %triggerun gettext -- %{name}-gettext < 3:4.4.0-2.1
2462 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2463
2464 %triggerun gmp -- %{name}-gmp < 3:4.4.0-2.1
2465 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2466
2467 %triggerun hyperwave -- %{name}-hyperwave < 3:4.4.0-2.1
2468 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*hyperwave\.so/d' %{_sysconfdir}/php.ini
2469
2470 %triggerun iconv -- %{name}-iconv < 3:4.4.0-2.1
2471 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2472
2473 %triggerun imap -- %{name}-imap < 3:4.4.0-2.1
2474 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2475
2476 %triggerun interbase -- %{name}-interbase < 3:4.4.0-2.1
2477 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2478
2479 %triggerun java -- %{name}-java < 3:4.4.0-2.1
2480 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*java\.so/d' %{_sysconfdir}/php.ini
2481
2482 %triggerun ldap -- %{name}-ldap < 3:4.4.0-2.1
2483 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2484
2485 %triggerun mbstring -- %{name}-mbstring < 3:4.4.0-2.1
2486 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2487
2488 %triggerun mcal -- %{name}-mcal < 3:4.4.0-2.1
2489 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcal\.so/d' %{_sysconfdir}/php.ini
2490
2491 %triggerun mcrypt -- %{name}-mcrypt < 3:4.4.0-2.1
2492 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2493
2494 %triggerun mhash -- %{name}-mhash < 3:4.4.0-2.1
2495 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2496
2497 %triggerun mime_magic -- %{name}-mime_magic < 3:4.4.0-2.1
2498 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2499
2500 %triggerun ming -- %{name}-ming < 3:4.4.0-2.1
2501 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{_sysconfdir}/php.ini
2502
2503 %triggerun mnogosearch -- %{name}-mnogosearch < 3:4.4.0-2.1
2504 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mnogosearch\.so/d' %{_sysconfdir}/php.ini
2505
2506 %triggerun msession -- %{name}-msession < 3:4.4.0-2.1
2507 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*msession\.so/d' %{_sysconfdir}/php.ini
2508
2509 %triggerun mssql -- %{name}-mssql < 3:4.4.0-2.1
2510 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2511
2512 %triggerun mysql -- %{name}-mysql < 3:4.4.0-2.1
2513 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2514
2515 %triggerun ncurses -- %{name}-ncurses < 3:4.4.2-9.4
2516 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2517         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2518 fi
2519 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2520         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2521 fi
2522
2523 %triggerun oci8 -- %{name}-oci8 < 3:4.4.0-2.1
2524 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2525
2526 %triggerun odbc -- %{name}-odbc < 3:4.4.0-2.1
2527 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2528
2529 %triggerun oracle -- %{name}-oracle < 3:4.4.0-2.1
2530 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oracle\.so/d' %{_sysconfdir}/php.ini
2531
2532 %triggerun overload -- %{name}-overload < 3:4.4.0-2.1
2533 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*overload\.so/d' %{_sysconfdir}/php.ini
2534
2535 %triggerun pcntl -- %{name}-pcntl < 3:4.4.2-9.4
2536 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2537         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2538 fi
2539 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2540         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2541 fi
2542
2543 %triggerun pcre -- %{name}-pcre < 3:4.4.0-2.1
2544 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2545
2546 %triggerun pdf -- %{name}-pdf < 3:4.4.0-2.1
2547 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pdf\.so/d' %{_sysconfdir}/php.ini
2548
2549 %triggerun pgsql -- %{name}-pgsql < 3:4.4.0-2.1
2550 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2551
2552 %triggerun posix -- %{name}-posix < 3:4.4.0-2.1
2553 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2554
2555 %triggerun pspell -- %{name}-pspell < 3:4.4.0-2.1
2556 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2557
2558 %triggerun qtdom -- %{name}-qtdom < 3:4.4.0-2.1
2559 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*qtdom\.so/d' %{_sysconfdir}/php.ini
2560
2561 %triggerun readline -- %{name}-readline < 3:4.4.2-9.4
2562 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2563         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2564 fi
2565 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2566         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2567 fi
2568
2569 %triggerun recode -- %{name}-recode < 3:4.4.0-2.1
2570 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2571
2572 %triggerun shmop -- %{name}-shmop < 3:4.4.0-2.1
2573 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2574
2575 %triggerun snmp -- %{name}-snmp < 3:4.4.0-2.1
2576 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2577
2578 %triggerun sockets -- %{name}-sockets < 3:4.4.0-2.1
2579 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2580
2581 %triggerun sybase -- %{name}-sybase < 3:4.4.0-2.1
2582 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2583
2584 %triggerun sybase-ct -- %{name}-sybase-ct < 3:4.4.0-2.1
2585 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase_ct\.so/d' %{_sysconfdir}/php.ini
2586
2587 %triggerun sysvmsg -- %{name}-sysvmsg < 3:4.4.0-2.1
2588 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2589
2590 %triggerun sysvsem -- %{name}-sysvsem < 3:4.4.0-2.1
2591 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2592
2593 %triggerun sysvshm -- %{name}-sysvshm < 3:4.4.0-2.1
2594 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2595
2596 %triggerun wddx -- %{name}-wddx < 3:4.4.0-2.1
2597 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2598
2599 %triggerun xml -- %{name}-xml < 3:4.4.0-2.1
2600 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2601
2602 %triggerun xmlrpc -- %{name}-xmlrpc < 3:4.4.0-2.1
2603 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2604
2605 %triggerun xslt -- %{name}-xslt < 3:4.4.0-2.1
2606 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xslt\.so/d' %{_sysconfdir}/php.ini
2607
2608 %triggerun yaz -- %{name}-yaz < 3:4.4.0-2.1
2609 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*yaz\.so/d' %{_sysconfdir}/php.ini
2610
2611 %triggerun yp -- %{name}-yp < 3:4.4.0-2.1
2612 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*yp\.so/d' %{_sysconfdir}/php.ini
2613
2614 %triggerun zip -- %{name}-zip < 3:4.4.0-2.1
2615 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zip\.so/d' %{_sysconfdir}/php.ini
2616
2617 %triggerun zlib -- %{name}-zlib < 3:4.4.0-2.1
2618 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2619
2620 %if %{with apache1}
2621 %files -n apache1-mod_php4
2622 %defattr(644,root,root,755)
2623 %doc sapi/apache/CREDITS
2624 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php4.conf
2625 %dir %{_sysconfdir}/apache.d
2626 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2627 %attr(755,root,root) %{_libdir}/apache1/libphp4.so
2628 %endif
2629
2630 %if %{with apache2}
2631 %files -n apache-mod_php4
2632 %defattr(644,root,root,755)
2633 %doc sapi/apache2handler/{CREDITS,README}
2634 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php4.conf
2635 %dir %{_sysconfdir}/apache2handler.d
2636 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2637 %attr(755,root,root) %{_libdir}/apache/libphp4.so
2638 %endif
2639
2640 %if %{with fcgi}
2641 %files fcgi
2642 %defattr(644,root,root,755)
2643 %doc sapi/cgi/{CREDITS,README.FastCGI}
2644 %attr(755,root,root) %{_bindir}/php4.fcgi
2645 %dir %{_sysconfdir}/cgi-fcgi.d
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2647 %endif
2648
2649 %files cgi
2650 %defattr(644,root,root,755)
2651 %doc sapi/cgi/CREDITS
2652 %attr(755,root,root) %{_bindir}/php4.cgi
2653 %dir %{_sysconfdir}/cgi.d
2654 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2655
2656 %files cli
2657 %defattr(644,root,root,755)
2658 %doc sapi/cli/{CREDITS,README}
2659 %attr(755,root,root) %{_bindir}/php4.cli
2660 %attr(755,root,root) %{_bindir}/php4
2661 %dir %{_sysconfdir}/cli.d
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2663 %{_mandir}/man1/php4.1*
2664
2665 %files program
2666 %defattr(644,root,root,755)
2667 %attr(755,root,root) %{_bindir}/php
2668
2669 %files common
2670 %defattr(644,root,root,755)
2671 %doc php.ini-*
2672 %doc CREDITS Zend/ZEND_CHANGES
2673 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2674
2675 %dir %{_sysconfdir}
2676 %dir %{_sysconfdir}/conf.d
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2678 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2679 %dir %{extensionsdir}
2680
2681 %files devel
2682 %defattr(644,root,root,755)
2683 %doc README.UNIX-BUILD-SYSTEM
2684 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2685 %doc CODING_STANDARDS
2686 %attr(755,root,root) %{_bindir}/phpize
2687 %attr(755,root,root) %{_bindir}/php-config
2688 %attr(755,root,root) %{_libdir}/libphp_common.so
2689 # FIXME: how exactly this is needed? as it contains libdir for apache1 or apache2
2690 %{_libdir}/libphp_common.la
2691 %{_includedir}/php
2692 %{_libdir}/php/build
2693 %{_mandir}/man1/php-config.1*
2694 %{_mandir}/man1/phpize.1*
2695
2696 %files bcmath
2697 %defattr(644,root,root,755)
2698 %doc ext/bcmath/CREDITS
2699 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2700 %attr(755,root,root) %{extensionsdir}/bcmath.so
2701
2702 %files bzip2
2703 %defattr(644,root,root,755)
2704 %doc ext/bz2/CREDITS
2705 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2706 %attr(755,root,root) %{extensionsdir}/bz2.so
2707
2708 %files calendar
2709 %defattr(644,root,root,755)
2710 %doc ext/calendar/CREDITS
2711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2712 %attr(755,root,root) %{extensionsdir}/calendar.so
2713
2714 %if %{with cpdf}
2715 %files cpdf
2716 %defattr(644,root,root,755)
2717 %doc ext/cpdf/CREDITS
2718 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/cpdf.ini
2719 %attr(755,root,root) %{extensionsdir}/cpdf.so
2720 %endif
2721
2722 %files crack
2723 %defattr(644,root,root,755)
2724 %doc ext/crack/CREDITS
2725 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/crack.ini
2726 %attr(755,root,root) %{extensionsdir}/crack.so
2727
2728 %files ctype
2729 %defattr(644,root,root,755)
2730 %doc ext/ctype/{CREDITS,README}
2731 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2732 %attr(755,root,root) %{extensionsdir}/ctype.so
2733
2734 %if %{with curl}
2735 %files curl
2736 %defattr(644,root,root,755)
2737 %doc ext/curl/CREDITS
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2739 %attr(755,root,root) %{extensionsdir}/curl.so
2740 %endif
2741
2742 %files db
2743 %defattr(644,root,root,755)
2744 %doc ext/db/CREDITS
2745 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/db.ini
2746 %attr(755,root,root) %{extensionsdir}/db.so
2747
2748 %files dba
2749 %defattr(644,root,root,755)
2750 %doc ext/dba/{CREDITS,README}
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2752 %attr(755,root,root) %{extensionsdir}/dba.so
2753
2754 %files dbase
2755 %defattr(644,root,root,755)
2756 %doc ext/dbase/CREDITS
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2758 %attr(755,root,root) %{extensionsdir}/dbase.so
2759
2760 %files dbx
2761 %defattr(644,root,root,755)
2762 %doc ext/dbx/{CREDITS,howto_extend_dbx.html}
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbx.ini
2764 %attr(755,root,root) %{extensionsdir}/dbx.so
2765
2766 %files dio
2767 %defattr(644,root,root,755)
2768 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dio.ini
2769 %attr(755,root,root) %{extensionsdir}/dio.so
2770
2771 %if %{with xml}
2772 %files domxml
2773 %defattr(644,root,root,755)
2774 %doc ext/domxml/{CREDITS,TODO}
2775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/domxml.ini
2776 %attr(755,root,root) %{extensionsdir}/domxml.so
2777 %endif
2778
2779 %if %{with fdf}
2780 %files fdf
2781 %defattr(644,root,root,755)
2782 %doc ext/fdf/CREDITS
2783 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2784 %attr(755,root,root) %{extensionsdir}/fdf.so
2785 %endif
2786
2787 %files exif
2788 %defattr(644,root,root,755)
2789 %doc ext/exif/CREDITS
2790 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2791 %attr(755,root,root) %{extensionsdir}/exif.so
2792
2793 %files filepro
2794 %defattr(644,root,root,755)
2795 %doc ext/filepro/CREDITS
2796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filepro.ini
2797 %attr(755,root,root) %{extensionsdir}/filepro.so
2798
2799 %if %{with fribidi}
2800 %files fribidi
2801 %defattr(644,root,root,755)
2802 %doc ext/fribidi/{CREDITS,README}
2803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fribidi.ini
2804 %attr(755,root,root) %{extensionsdir}/fribidi.so
2805 %endif
2806
2807 %files ftp
2808 %defattr(644,root,root,755)
2809 %doc ext/ftp/CREDITS
2810 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2811 %attr(755,root,root) %{extensionsdir}/ftp.so
2812
2813 %files gd
2814 %defattr(644,root,root,755)
2815 %doc ext/gd/CREDITS
2816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2817 %attr(755,root,root) %{extensionsdir}/gd.so
2818
2819 %files gettext
2820 %defattr(644,root,root,755)
2821 %doc ext/gettext/CREDITS
2822 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2823 %attr(755,root,root) %{extensionsdir}/gettext.so
2824
2825 %files gmp
2826 %defattr(644,root,root,755)
2827 %doc ext/gmp/{CREDITS,README,TODO}
2828 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2829 %attr(755,root,root) %{extensionsdir}/gmp.so
2830
2831 %files hyperwave
2832 %defattr(644,root,root,755)
2833 %doc ext/hyperwave/CREDITS
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hyperwave.ini
2835 %attr(755,root,root) %{extensionsdir}/hyperwave.so
2836
2837 %files iconv
2838 %defattr(644,root,root,755)
2839 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2840 %attr(755,root,root) %{extensionsdir}/iconv.so
2841
2842 %if %{with imap}
2843 %files imap
2844 %defattr(644,root,root,755)
2845 %doc ext/imap/CREDITS
2846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2847 %attr(755,root,root) %{extensionsdir}/imap.so
2848 %endif
2849
2850 %if %{with interbase}
2851 %files interbase
2852 %defattr(644,root,root,755)
2853 %doc ext/interbase/CREDITS
2854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2855 %attr(755,root,root) %{extensionsdir}/interbase.so
2856 %endif
2857
2858 %if %{with java}
2859 %files java
2860 %defattr(644,root,root,755)
2861 %doc ext/java/{CREDITS,README}
2862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/java.ini
2863 %attr(755,root,root) %{extensionsdir}/java.so
2864 %{extensionsdir}/php_java.jar
2865 %endif
2866
2867 %if %{with ldap}
2868 %files ldap
2869 %defattr(644,root,root,755)
2870 %doc ext/ldap/CREDITS
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2872 %attr(755,root,root) %{extensionsdir}/ldap.so
2873 %endif
2874
2875 %files mbstring
2876 %defattr(644,root,root,755)
2877 %doc ext/mbstring/{CREDITS,README,README.libmbfl}
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2879 %attr(755,root,root) %{extensionsdir}/mbstring.so
2880
2881 %files mcal
2882 %defattr(644,root,root,755)
2883 %doc ext/mcal/CREDITS
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcal.ini
2885 %attr(755,root,root) %{extensionsdir}/mcal.so
2886
2887 %files mcrypt
2888 %defattr(644,root,root,755)
2889 %doc ext/mcrypt/{CREDITS,TODO}
2890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2891 %attr(755,root,root) %{extensionsdir}/mcrypt.so
2892
2893 %if %{with mhash}
2894 %files mhash
2895 %defattr(644,root,root,755)
2896 %doc ext/mhash/CREDITS
2897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2898 %attr(755,root,root) %{extensionsdir}/mhash.so
2899 %endif
2900
2901 %files mime_magic
2902 %defattr(644,root,root,755)
2903 %doc ext/mime_magic/{CREDITS,TODO}
2904 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2905 %attr(755,root,root) %{extensionsdir}/mime_magic.so
2906
2907 %if %{with ming}
2908 %files ming
2909 %defattr(644,root,root,755)
2910 %doc ext/ming/CREDITS
2911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2912 %attr(755,root,root) %{extensionsdir}/ming.so
2913 %endif
2914
2915 %if %{with mnogosearch}
2916 %files mnogosearch
2917 %defattr(644,root,root,755)
2918 %doc ext/mnogosearch/{CREDITS,README}
2919 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mnogosearch.ini
2920 %attr(755,root,root) %{extensionsdir}/mnogosearch.so
2921 %endif
2922
2923 %if %{with msession}
2924 %files msession
2925 %defattr(644,root,root,755)
2926 %doc ext/msession/{CREDITS,README,msession-test.php}
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/msession.ini
2928 %attr(755,root,root) %{extensionsdir}/msession.so
2929 %endif
2930
2931 %if %{with mssql}
2932 %files mssql
2933 %defattr(644,root,root,755)
2934 %doc ext/mssql/CREDITS
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2936 %attr(755,root,root) %{extensionsdir}/mssql.so
2937 %endif
2938
2939 %files mysql
2940 %defattr(644,root,root,755)
2941 %doc ext/mysql/CREDITS
2942 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2943 %attr(755,root,root) %{extensionsdir}/mysql.so
2944
2945 %files ncurses
2946 %defattr(644,root,root,755)
2947 %doc ext/ncurses/CREDITS
2948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2949 %attr(755,root,root) %{extensionsdir}/ncurses.so
2950
2951 %if %{with oci8}
2952 %files oci8
2953 %defattr(644,root,root,755)
2954 %doc ext/oci8/CREDITS
2955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2956 %attr(755,root,root) %{extensionsdir}/oci8.so
2957 %endif
2958
2959 %if %{with odbc}
2960 %files odbc
2961 %defattr(644,root,root,755)
2962 %doc ext/odbc/CREDITS
2963 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2964 %attr(755,root,root) %{extensionsdir}/odbc.so
2965 %endif
2966
2967 %if %{with oracle}
2968 %files oracle
2969 %defattr(644,root,root,755)
2970 %doc ext/oracle/CREDITS
2971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oracle.ini
2972 %attr(755,root,root) %{extensionsdir}/oracle.so
2973 %endif
2974
2975 %files overload
2976 %defattr(644,root,root,755)
2977 %doc ext/overload/{CREDITS,README}
2978 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/overload.ini
2979 %attr(755,root,root) %{extensionsdir}/overload.so
2980
2981 %files pcntl
2982 %defattr(644,root,root,755)
2983 %doc ext/pcntl/{CREDITS,README}
2984 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2985 %attr(755,root,root) %{extensionsdir}/pcntl.so
2986
2987 %if %{with pcre}
2988 %files pcre
2989 %defattr(644,root,root,755)
2990 %doc ext/pcre/CREDITS
2991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcre.ini
2992 %attr(755,root,root) %{extensionsdir}/pcre.so
2993 %endif
2994
2995 %if %{with pdf}
2996 %files pdf
2997 %defattr(644,root,root,755)
2998 %doc ext/pdf/CREDITS
2999 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdf.ini
3000 %attr(755,root,root) %{extensionsdir}/pdf.so
3001 %endif
3002
3003 %if %{with pgsql}
3004 %files pgsql
3005 %defattr(644,root,root,755)
3006 %doc ext/pgsql/{CREDITS,README}
3007 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3008 %attr(755,root,root) %{extensionsdir}/pgsql.so
3009 %endif
3010
3011 %files posix
3012 %defattr(644,root,root,755)
3013 %doc ext/posix/CREDITS
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3015 %attr(755,root,root) %{extensionsdir}/posix.so
3016
3017 %if %{with pspell}
3018 %files pspell
3019 %defattr(644,root,root,755)
3020 %doc ext/overload/{CREDITS,README}
3021 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3022 %attr(755,root,root) %{extensionsdir}/pspell.so
3023 %endif
3024
3025 %if %{with qtdom}
3026 %files qtdom
3027 %defattr(644,root,root,755)
3028 %doc ext/qtdom/CREDITS
3029 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/qtdom.ini
3030 %attr(755,root,root) %{extensionsdir}/qtdom.so
3031 %endif
3032
3033 %files readline
3034 %defattr(644,root,root,755)
3035 %doc ext/readline/{CREDITS,README.libedit}
3036 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3037 %attr(755,root,root) %{extensionsdir}/readline.so
3038
3039 %if %{with recode}
3040 %files recode
3041 %defattr(644,root,root,755)
3042 %doc ext/recode/CREDITS
3043 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3044 %attr(755,root,root) %{extensionsdir}/recode.so
3045 %endif
3046
3047 # session_mm doesn't work with shared session
3048 #%files session
3049 #%defattr(644,root,root,755)
3050 #%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/session.ini
3051 #%attr(755,root,root) %{extensionsdir}/session.so
3052
3053 %files shmop
3054 %defattr(644,root,root,755)
3055 %doc ext/shmop/{CREDITS,README}
3056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3057 %attr(755,root,root) %{extensionsdir}/shmop.so
3058
3059 %if %{with snmp}
3060 %files snmp
3061 %defattr(644,root,root,755)
3062 %doc ext/snmp/CREDITS
3063 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3064 %attr(755,root,root) %{extensionsdir}/snmp.so
3065 %endif
3066
3067 %files sockets
3068 %defattr(644,root,root,755)
3069 %doc ext/sockets/CREDITS
3070 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3071 %attr(755,root,root) %{extensionsdir}/sockets.so
3072
3073 %if %{with sybase}
3074 %files sybase
3075 %defattr(644,root,root,755)
3076 %doc ext/sybase/CREDITS
3077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
3078 %attr(755,root,root) %{extensionsdir}/sybase.so
3079
3080 %files sybase-ct
3081 %defattr(644,root,root,755)
3082 %doc ext/sybase_ct/CREDITS
3083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3084 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
3085 %endif
3086
3087 %files sysvmsg
3088 %defattr(644,root,root,755)
3089 %doc ext/sysvmsg/CREDITS
3090 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3091 %attr(755,root,root) %{extensionsdir}/sysvmsg.so
3092
3093 %files sysvsem
3094 %defattr(644,root,root,755)
3095 %doc ext/sysvsem/CREDITS
3096 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3097 %attr(755,root,root) %{extensionsdir}/sysvsem.so
3098
3099 %files sysvshm
3100 %defattr(644,root,root,755)
3101 %doc ext/sysvshm/CREDITS
3102 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3103 %attr(755,root,root) %{extensionsdir}/sysvshm.so
3104
3105 %files tokenizer
3106 %defattr(644,root,root,755)
3107 %doc ext/tokenizer/{CREDITS,tokenizer.php}
3108 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3109 %attr(755,root,root) %{extensionsdir}/tokenizer.so
3110
3111 %if %{with wddx}
3112 %files wddx
3113 %defattr(644,root,root,755)
3114 %doc ext/wddx/CREDITS
3115 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3116 %attr(755,root,root) %{extensionsdir}/wddx.so
3117 %endif
3118
3119 %if %{with xml}
3120 %files xml
3121 %defattr(644,root,root,755)
3122 %doc ext/xml/CREDITS
3123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3124 %attr(755,root,root) %{extensionsdir}/xml.so
3125 %endif
3126
3127 %if %{with xmlrpc}
3128 %files xmlrpc
3129 %defattr(644,root,root,755)
3130 %doc ext/xmlrpc/CREDITS
3131 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3132 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
3133 %endif
3134
3135 %if %{with xslt}
3136 %files xslt
3137 %defattr(644,root,root,755)
3138 %doc ext/xslt/{README.XSLT-BACKENDS,TODO}
3139 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xslt.ini
3140 %attr(755,root,root) %{extensionsdir}/xslt.so
3141 %endif
3142
3143 %if %{with yaz}
3144 %files yaz
3145 %defattr(644,root,root,755)
3146 %doc ext/yaz/{CREDITS,README}
3147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/yaz.ini
3148 %attr(755,root,root) %{extensionsdir}/yaz.so
3149 %endif
3150
3151 %files yp
3152 %defattr(644,root,root,755)
3153 %doc ext/yp/CREDITS
3154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/yp.ini
3155 %attr(755,root,root) %{extensionsdir}/yp.so
3156
3157 %files zip
3158 %defattr(644,root,root,755)
3159 %doc ext/zip/CREDITS
3160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3161 %attr(755,root,root) %{extensionsdir}/zip.so
3162
3163 %files zlib
3164 %defattr(644,root,root,755)
3165 %doc ext/zlib/CREDITS
3166 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3167 %attr(755,root,root) %{extensionsdir}/zlib.so
This page took 0.256955 seconds and 3 git commands to generate.