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