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