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