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