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