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