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