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