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