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