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