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