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