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