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