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