]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- add /usr/bin/ext_skel and /usr/lib/php/ext/skeleton to devel package
[packages/php.git] / php.spec
1 #
2 %define _apache2        %(if rpm -q apache-devel | grep -Eq '\-2\.[0-9]+\.' 2> /dev/null ; then echo 1; else echo 0; fi)
3
4 %if %{_apache2}
5 %define _without_recode 1
6 %define _without_mm 1
7 %endif
8
9 # Conditional build:
10 # _with_oracle  - with oracle support
11 # _with_interbase - with interbase support
12 # _with_oci8    - with oci8 support
13 # _with_java    - with Java support
14 # _with_libcpdf - with libcpdf support
15 # _with_openssl - with OpenSSL support
16 # _with_wddx    - with WDDX support
17 # _with_xslt    - with XSLT support
18 # _without_imap - without IMAP support
19 # _without_ldap - without LDAP support
20 # _without_odbc - without ODBC support
21 # _without_snmp - without SNMP support
22 # _without_sablot - without sablot support
23 # _without_recode - without recode support
24 # _without_mm   - without mm support
25 Summary:        The PHP HTML-embedded scripting language for use with Apache
26 Summary(fr):    Le langage de script embarque-HTML PHP pour Apache
27 Summary(pl):    Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
28 Summary(pt_BR): A linguagem de script PHP
29 Name:           php
30 Version:        4.1.2
31 Release:        7
32 Epoch:          1
33 Group:          Libraries
34 License:        The PHP license (see "LICENSE" file included in distribution)
35 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.gz
36 Source1:        FAQ.%{name}
37 Source2:        %{name}.ini
38 Source3:        zend.gif
39 Source4:        http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
40 Source5:        %{name}-module-install
41 Source6:        %{name}-xml_fix
42 Patch0:         %{name}-shared.patch
43 Patch1:         %{name}-pldlogo.patch
44 Patch2:         %{name}-mysql-socket.patch
45 Patch3:         %{name}-mail.patch
46 Patch4:         %{name}-link-libs.patch
47 Patch5:         %{name}-am_ac_lt.patch
48 Patch6:         %{name}-fastcgi.patch
49 Patch7:         %{name}-ac250.patch
50 Patch8:         %{name}-mailsecurity2.patch
51 Patch9:         %{name}-oracle9.patch
52 Patch10:        %{name}-no_%{name}_pcre_in_SAPI_c.patch
53 Patch11:        %{name}-libpq_fs_h_path.patch
54 Patch12:        %{name}-apache2.patch
55 Patch13:        %{name}-pdflib4.0.2.patch
56 Patch14:        %{name}-build_modules.patch
57 Icon:           php4.gif
58 URL:            http://www.php.net/
59 BuildRequires:  apache(EAPI)-devel
60 BuildRequires:  autoconf >= 1.4
61 BuildRequires:  automake >= 1.4d
62 BuildRequires:  bison
63 BuildRequires:  bzip2-devel
64 BuildRequires:  curl-devel
65 BuildRequires:  cyrus-sasl-devel
66 BuildRequires:  db3-devel >= 3.1.17
67 BuildRequires:  expat-devel
68 BuildRequires:  flex
69 BuildRequires:  gmp-devel
70 BuildRequires:  freetype-devel >= 2.0
71 BuildRequires:  gd-devel >= 2.0.1
72 BuildRequires:  gdbm-devel
73 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
74 # I think jdk is better for java
75 # BuildRequires:        jdk
76 %{?_with_java:BuildRequires:    kaffe-devel}
77 BuildRequires:  libjpeg-devel
78 BuildRequires:  libltdl-devel >= 1.4
79 BuildRequires:  libmcrypt-devel >= 2.4.4
80 BuildRequires:  libpng >= 1.0.8
81 BuildRequires:  libtiff-devel
82 BuildRequires:  libtool >= 1.4
83 BuildRequires:  libxml2-devel >= 2.2.7
84 BuildRequires:  mhash-devel
85 BuildRequires:  ming-devel >= 0.1.0
86 %{!?_without_mm:BuildRequires:  mm-devel >= 1.1.3}
87 BuildRequires:  mysql-devel >= 3.23.32
88 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
89 BuildRequires:  pam-devel
90 BuildRequires:  pdflib-devel >= 4.0.0
91 BuildRequires:  perl
92 BuildRequires:  pkgconfig
93 BuildRequires:  postgresql-devel
94 BuildRequires:  postgresql-backend-devel >= 7.2
95 %{!?_without_recode:BuildRequires:      recode-devel >= 3.5d-3}
96 BuildRequires:  t1lib-devel
97 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.5}
98 %{!?_without_odbc:BuildRequires: unixODBC-devel}
99 BuildRequires:  zip
100 BuildRequires:  zlib-devel >= 1.0.9
101 #BuildRequires: fastcgi-devkit
102 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
103 %{!?_without_openssl:BuildRequires:     openssl-devel >= 0.9.6a}
104 %endif
105 %{?_with_libcpdf:BuildRequires: libcpdf-devel >= 2.00}
106 %{?_with_xslt:BuildRequires:    sablotron-devel}
107 %{?_with_xslt:BuildRequires:    expat-devel}
108 %{?_with_xslt:BuildRequires:    w3c-libwww-devel}
109 # apache 1.3 vs apache 2.0
110 %if %{_apache2}
111 PreReq:         apache(EAPI) >= 2.0.35
112 %else
113 PreReq:         apache(EAPI) < 2.0.0
114 PreReq:         apache(EAPI) >= 1.3.9
115 %endif
116 PreReq:         perl
117 PreReq:         %{_sbindir}/apxs
118 PreReq:         %{name}-common = %{version}
119 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
120 Obsoletes:      phpfi
121 Obsoletes:      apache-mod_php
122
123 %define         _sysconfdir     /etc/php
124 %define         extensionsdir   %{_libdir}/php
125 %define         peardir         %{_datadir}/pear
126
127 %description
128 PHP is an HTML-embedded scripting language. PHP attempts to make it
129 easy for developers to write dynamically generated web pages. PHP also
130 offers built-in database integration for several commercial and
131 non-commercial database management systems, so writing a
132 database-enabled web page with PHP is fairly simple. The most common
133 use of PHP coding is probably as a replacement for CGI scripts. The
134 mod_php module enables the Apache web server to understand and process
135 the embedded PHP language in web pages. This package contains PHP
136 version %{version}. If you use applications which specifically rely on
137 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
138 module contained in the phpfi package. If you're just starting with
139 PHP, you should install this package. You'll also need to install the
140 Apache web server.
141
142 %description -l fr
143 PHP est un langage de script embarque dans le HTM. PHP essaye de
144 rendre simple aux developpeurs d'ecrire des pages web generees
145 dynamiquement. PHP incorpore egalement une integration avec plusieurs
146 systemes de gestion de bases de donnees commerciaux et
147 non-connerciaux, qui rent facile la creation de pages web liees avec
148 des bases de donnees. L'utilisation la plus commune de PHP est
149 probablement en remplacement de scripts CGI. Le module mod_php permet
150 au serveur web apache de comprendre et de traiter le langage PHP
151 integre dans des pages web. Ce package contient PHP version
152 %{version}. Si vous utilisez des applications qui utilisent
153 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
154 dans le package mod_php. Si vous debutez avec PHP, vous devriez
155 installer ce package. Vous aurez egalement besoin d'installer le
156 serveur web Apache.
157
158 %description -l pt_BR
159 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
160 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
161 com algumas características únicas, específicas ao PHP. O objetivo da
162 linguagem é permitir que desenvolvedores web escrevam páginas
163 dinamicamente geradas de forma rápida.
164
165 Com módulos adicionais ela suporta comunicação direta com bancos de
166 dados postgresql, mysql, msql, arquivos DBF e tem interface para a
167 biblioteca gráfica gd.
168
169 %description -l pl
170 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
171 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
172 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
173 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
174 zosta³a z jêzyków: C, Java i Perl.
175
176 %package cgi
177 Summary:        PHP as CGI program
178 Summary(pl):    PHP jako program CGI
179 Group:          Libraries
180 PreReq:         %{name}-common = %{version}
181
182 %description cgi
183 PHP as CGI program.
184
185 %description cgi -l pl
186 PHP jako program CGI.
187
188 %package common
189 Summary:        Common files nneded by both apache module and CGI
190 Summary(pl):    Wspólne pliki dla modu³u apacha i programu CGI
191 Group:          Libraries
192
193 %description common
194 Common files needed by both apache module and CGI.
195
196 %description common -l pl
197 Wspólne pliki dla modu³u apacha i programu CGI.
198
199 %package mysql
200 Summary:        MySQL database module for PHP
201 Summary(pl):    Modu³ bazy danych MySQL dla PHP
202 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados MySQL
203 Group:          Libraries
204 Requires(post): %{name}-common = %{version}
205 Requires(preun):        %{name}-common = %{version}
206
207 %description mysql
208 This is a dynamic shared object (DSO) for Apache that will add MySQL
209 database support to PHP. If you need back-end support for MySQL, you
210 should install this package in addition to the main %{name} package.
211
212 %description mysql -l pl
213 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
214
215 %description mysql -l pt_BR
216 Um módulo para aplicações PHP que usam bancos de dados MySQL.
217
218 %package pdf
219 Summary:        libPDF module for PHP
220 Summary(pl):    Modu³ do tworzenia plików PDF dla PHP
221 Group:          Libraries
222 Requires(post): %{name}-common = %{version}
223 Requires(preun):        %{name}-common = %{version}
224 PreReq:         pdflib
225
226 %description pdf
227 This is a dynamic shared object (DSO) for Apache that will add PDF
228 support to PHP.
229
230 %description pdf -l pl
231 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
232 pdflib.
233
234 %package pgsql
235 Summary:        PostgreSQL database module for PHP
236 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP
237 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados postgresql
238 Group:          Libraries
239 Requires(post): %{name}-common = %{version}
240 Requires(preun):        %{name}-common = %{version}
241
242 %description pgsql
243 This is a dynamic shared object (DSO) for Apache that will add
244 PostgreSQL database support to PHP. If you need back-end support for
245 PostgreSQL, you should install this package in addition to the main
246 %{name} package.
247
248 %description pgsql -l pl
249 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
250
251 %description pgsql -l pt_BR
252 Um módulo para aplicações PHP que usam bancos de dados postgresql.
253
254 %package oci8
255 Summary:        Oracle 8 database module for PHP
256 Summary(pl):    Modu³ bazy danych Oracle 8 dla PHP
257 Group:          Libraries
258 Requires(post): %{name}-common = %{version}
259 Requires(preun):        %{name}-common = %{version}
260 Autoreq:        false
261
262 %description oci8
263 This is a dynamic shared object (DSO) for Apache that will add Oracle
264 8 database support to PHP. If you need back-end support for Oracle 8,
265 you should install this package in addition to the main %{name}
266 package.
267
268 %description oci8 -l pl
269 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
270
271 %package oracle
272 Summary:        Oracle 7 database module for PHP
273 Summary(pl):    Modu³ bazy danych Oracle 7 dla PHP
274 Group:          Libraries
275 Requires(post): %{name}-common = %{version}
276 Requires(preun):        %{name}-common = %{version}
277 Autoreq:        false
278
279 %description oracle
280 This is a dynamic shared object (DSO) for Apache that will add Oracle
281 7 database support to PHP. If you need back-end support for Oracle 7,
282 you should install this package in addition to the main %{name}
283 package.
284
285 %description oracle -l pl
286 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
287
288 %package interbase
289 Summary:        Interbase database module for PHP
290 Summary(pl):    Modu³ bazy danych Interbase dla PHP
291 Group:          Libraries
292 Requires(post): %{name}-common = %{version}
293 Requires(preun):        %{name}-common = %{version}
294 Autoreq:        false
295
296 %description interbase
297 This is a dynamic shared object (DSO) for Apache that will add
298 InterBase database support to PHP. If you need back-end support for
299 InterBase. you should install this package in addition to the main
300 %{name} package.
301
302 %description interbase -l pl
303 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych InterBase.
304
305 %package gd
306 Summary:        GD extension module for PHP
307 Summary:        Modu³ GD dla PHP
308 Group:          Libraries
309 Requires(post): %{name}-common = %{version}
310 Requires(preun):        %{name}-common = %{version}
311
312 %description gd
313 This is a dynamic shared object (DSO) for Apache that will add GD
314 support to PHP. You should install this package in addition to the
315 main %{name} package if you want to create and manipulate images with
316 PHP.
317
318 %description gd -l pl
319 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
320 obrazków z poziomu PHP.
321
322 %package java
323 Summary:        Java extension module for PHP
324 Summary(pl):    Modu³ Javy dla PHP
325 Group:          Libraries
326 Requires(post): %{name}-common = %{version}
327 Requires(preun):        %{name}-common = %{version}
328
329 %description java
330 This is a dynamic shared object (DSO) for Apache that will add JAVA
331 support to PHP. This extension provides a simple and effective means
332 for creating and invoking methods on Java objects from PHP.
333
334 %description java -l pl
335 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
336 obiektów Javy z poziomu PHP.
337
338 %package xml
339 Summary:        XML extension module for PHP
340 Summary(pl):    Modu³ XML dla PHP
341 Group:          Libraries
342 Requires(post): %{name}-common = %{version}
343 Requires(preun):        %{name}-common = %{version}
344
345 %description xml
346 This is a dynamic shared object (DSO) for Apache that will add XML
347 support to PHP. This extension lets you create XML parsers and then
348 define handlers for different XML events. If you want to be able to
349 parse XML documents you should install this package in addition to the
350 main %{name} package.
351
352 %description xml -l pl
353 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
354 zwi±zanych z tymi plikami.
355
356 %package dba
357 Summary:        DBA extension module for PHP
358 Summary(pl):    Modu³ DBA dla PHP
359 Group:          Libraries
360 Requires(post): %{name}-common = %{version}
361 Requires(preun):        %{name}-common = %{version}
362
363 %description dba
364 This is a dynamic shared object (DSO) for Apache that will add
365 flat-file databases (DBA) support to PHP.
366
367 %description dba -l pl
368 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
369 wsparcie dla baz danych DBA.
370
371 %package odbc
372 Summary:        ODBC extension module for PHP
373 Summary(pl):    Modu³ ODBC dla PHP
374 Summary(pt_BR): Um módulo para aplicações PHP que usam bases de dados ODBC
375 Group:          Libraries
376 Requires(post): %{name}-common = %{version}
377 Requires(preun):        %{name}-common = %{version}
378
379 %description odbc
380 This is a dynamic shared object (DSO) for Apache that will add ODBC
381 support to PHP.
382
383 %description odbc -l pl
384 Modu³ PHP ze wsparciem dla ODBC.
385
386 %description odbc -l pt_BR
387 Um módulo para aplicações PHP que usam ODBC.
388
389 %package calendar
390 Summary:        Calendar extension module for PHP
391 Summary(pl):    Modu³ funkcji kalendarza dla PHP
392 Group:          Libraries
393 Requires(post): %{name}-common = %{version}
394 Requires(preun):        %{name}-common = %{version}
395
396 %description calendar
397 This is a dynamic shared object (DSO) for Apache that will add
398 calendar support to PHP.
399
400 %description calendar -l pl
401 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
402 wsparcie dla kalendarza.
403
404 %package dbase
405 Summary:        DBase extension module for PHP
406 Summary(pl):    Modu³ DBase dla PHP
407 Group:          Libraries
408 Requires(post): %{name}-common = %{version}
409 Requires(preun):        %{name}-common = %{version}
410
411 %description dbase
412 This is a dynamic shared object (DSO) for Apache that will add DBase
413 support to PHP.
414
415 %description dbase -l pl
416 Modu³ PHP ze wsparciem dla DBase.
417
418 %package filepro
419 Summary:        FilePro extension module for PHP
420 Summary(pl):    Modu³ FilePro dla PHP
421 Group:          Libraries
422 Requires(post): %{name}-common = %{version}
423 Requires(preun):        %{name}-common = %{version}
424
425 %description filepro
426 This is a dynamic shared object (DSO) for Apache that will add FilePro
427 support to PHP.
428
429 %description filepro -l pl
430 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
431 wsparcie dla FilePro.
432
433 %package posix
434 Summary:        POSIX extension module for PHP
435 Summary(pl):    Modu³ POSIX dla PHP
436 Group:          Libraries
437 Requires(post): %{name}-common = %{version}
438 Requires(preun):        %{name}-common = %{version}
439
440 %description posix
441 This is a dynamic shared object (DSO) for Apache that will add POSIX
442 functions support to PHP.
443
444 %description posix -l pl
445 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
446
447 %package pcre
448 Summary:        PCRE extension module for PHP
449 Summary(pl):    Modu³ PCRE dla PHP
450 Group:          Libraries
451 Requires(post): %{name}-common = %{version}
452 Requires(preun):        %{name}-common = %{version}
453
454 %description pcre
455 This is a dynamic shared object (DSO) for Apache that will add Perl
456 Compatible Regular Expression support to PHP.
457
458 %description pcre -l pl
459 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
460 (Perl Compatible Regular Expressions)
461
462 %package sysvsem
463 Summary:        SysV sem extension module for PHP
464 Summary(pl):    Modu³ SysV sem dla PHP
465 Group:          Libraries
466 Requires(post): %{name}-common = %{version}
467 Requires(preun):        %{name}-common = %{version}
468
469 %description sysvsem
470 This is a dynamic shared object (DSO) for Apache that will add SysV
471 semafores support to PHP.
472
473 %description sysvsem -l pl
474 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
475
476 %package sysvshm
477 Summary:        SysV shm extension module for PHP
478 Summary(pl):    Modu³ SysV shm dla PHP
479 Group:          Libraries
480 Requires(post): %{name}-common = %{version}
481 Requires(preun):        %{name}-common = %{version}
482
483 %description sysvshm
484 This is a dynamic shared object (DSO) for Apache that will add SysV
485 Shared Memory support to PHP.
486
487 %description sysvshm -l pl
488 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
489
490 %package yp
491 Summary:        NIS (yp) extension module for PHP
492 Summary(pl):    Modu³ NIS (yp) dla PHP
493 Group:          Libraries
494 Requires(post): %{name}-common = %{version}
495 Requires(preun):        %{name}-common = %{version}
496
497 %description yp
498 This is a dynamic shared object (DSO) for Apache that will add NIS
499 (Yellow Pages) support to PHP.
500
501 %description yp -l pl
502 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
503 wsparcie dla NIS (Yellow Pages).
504
505 %package bcmath
506 Summary:        bcmath extension module for PHP
507 Summary(pl):    Modu³ bcmath dla PHP
508 Group:          Libraries
509 Requires(post): %{name}-common = %{version}
510 Requires(preun):        %{name}-common = %{version}
511
512 %description bcmath
513 This is a dynamic shared object (DSO) for Apache that will add bc
514 style precision math functions support to PHP.
515
516 %description bcmath -l pl
517 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
518 matematycznych takich jak w programie bc.
519
520 %package ftp
521 Summary:        FTP extension module for PHP
522 Summary(pl):    Modu³ FTP dla PHP
523 Group:          Libraries
524 Requires(post): %{name}-common = %{version}
525 Requires(preun):        %{name}-common = %{version}
526
527 %description ftp
528 This is a dynamic shared object (DSO) for Apache that will add FTP
529 support to PHP.
530
531 %description ftp -l pl
532 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
533
534 %package zlib
535 Summary:        Zlib extension module for PHP
536 Summary(pl):    Modu³ zlib dla PHP
537 Group:          Libraries
538 Requires(post): %{name}-common = %{version}
539 Requires(preun):        %{name}-common = %{version}
540
541 %description zlib
542 This is a dynamic shared object (DSO) for Apache that will add
543 compression (zlib) support to PHP.
544
545 %description zlib -l pl
546 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
547
548 %package bzip2
549 Summary:        Bzip2 extension module for PHP
550 Summary(pl):    Modu³ bzip2 dla PHP
551 Group:          Libraries
552 Requires(post): %{name}-common = %{version}
553 Requires(preun):        %{name}-common = %{version}
554
555 %description bzip2
556 This is a dynamic shared object (DSO) for Apache that will add
557 compression (bzip2) support to PHP.
558
559 %description bzip2 -l pl
560 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê bzip2).
561
562 %package exif
563 Summary:        exif extension module for PHP
564 Summary(pl):    Modu³ exif dla PHP
565 Group:          Libraries
566 Requires(post): %{name}-common = %{version}
567 Requires(preun):        %{name}-common = %{version}
568
569 %description exif
570 This is a dynamic shared object (DSO) for Apache that will add exif
571 support to PHP.
572
573 %description exif -l pl
574 Modu³ PHP dodaj±cy obs³ugê plików EXIF.
575
576 %package recode
577 Summary:        recode extension module for PHP
578 Summary(pl):    Modu³ recode dla PHP
579 Group:          Libraries
580 Requires(post): %{name}-common = %{version}
581 Requires(preun):        %{name}-common = %{version}
582 Requires:       recode >= 3.5d-3
583
584 %description recode
585 This is a dynamic shared object (DSO) for Apache that will add recode
586 support to PHP.
587
588 %description recode -l pl
589 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
590 bibliotekê recode).
591
592 %package session
593 Summary:        session extension module for PHP
594 Summary(pl):    Modu³ session dla PHP
595 Group:          Libraries
596 Requires(post): %{name}-common = %{version}
597 Requires(preun):        %{name}-common = %{version}
598
599 %description session
600 This is a dynamic shared object (DSO) for Apache that will add session
601 support to PHP.
602
603 %description session -l pl
604 Modu³ PHP dodaj±cy obs³ugê sesji.
605
606 %package gettext
607 Summary:        gettext extension module for PHP
608 Summary(pl):    Modu³ gettext dla PHP
609 Group:          Libraries
610 Requires(post): %{name}-common = %{version}
611 Requires(preun):        %{name}-common = %{version}
612
613 %description gettext
614 This is a dynamic shared object (DSO) for Apache that will add gettext
615 support to PHP.
616
617 %description gettext -l pl
618 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
619
620 %package snmp
621 Summary:        SNMP extension module for PHP
622 Summary(pl):    Modu³ SNMP dla PHP
623 Group:          Libraries
624 Requires(post): %{name}-common = %{version}
625 Requires(preun):        %{name}-common = %{version}
626
627 %description snmp
628 This is a dynamic shared object (DSO) for Apache that will add SNMP
629 support to PHP.
630
631 %description snmp -l pl
632 Modu³ PHP dodaj±cy obs³ugê SNMP.
633
634 %package imap
635 Summary:        IMAP extension module for PHP
636 Summary(pl):    Modu³ IMAP dla PHP
637 Summary(pt_BR): Um módulo para aplicações PHP que usam IMAP
638 Group:          Libraries
639 Requires(post): %{name}-common = %{version}
640 Requires(preun):        %{name}-common = %{version}
641
642 %description imap
643 This is a dynamic shared object (DSO) for Apache that will add IMAP
644 support to PHP.
645
646 %description imap -l pl
647 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
648
649 %description imap -l pt_BR
650 Um módulo para aplicações PHP que usam IMAP.
651
652 %package ldap
653 Summary:        LDAP extension module for PHP
654 Summary(pl):    Modu³ LDAP dla PHP
655 Summary(pt_BR): Um módulo para aplicações PHP que usam LDAP
656 Group:          Libraries
657 Requires(post): %{name}-common = %{version}
658 Requires(preun):        %{name}-common = %{version}
659
660 %description ldap
661 This is a dynamic shared object (DSO) for Apache that will add LDAP
662 support to PHP.
663
664 %description ldap -l pl
665 Modu³ PHP dodaj±cy obs³ugê LDAP.
666
667 %description ldap -l pt_BR
668 Um módulo para aplicações PHP que usam LDAP.
669
670 %package sockets
671 Summary:        sockets extension module for PHP
672 Summary(pl):    Modu³ socket dla PHP
673 Group:          Libraries
674 Requires(post): %{name}-common = %{version}
675 Requires(preun):        %{name}-common = %{version}
676
677 %description sockets
678 This is a dynamic shared object (DSO) for Apache that will add sockets
679 support to PHP.
680
681 %description sockets -l pl
682 Modu³ PHP dodaj±cy obs³ugê gniazdek.
683
684 %package mcrypt
685 Summary:        mcrypt extension module for PHP
686 Summary(pl):    Modu³ mcrypt dla PHP
687 Group:          Libraries
688 Requires(post): %{name}-common = %{version}
689 Requires(preun):        %{name}-common = %{version}
690
691 %description mcrypt
692 This is a dynamic shared object (DSO) for Apache that will add mcrypt
693 support to PHP.
694
695 %description mcrypt -l pl
696 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
697
698 %package mhash
699 Summary:        mhash extension module for PHP
700 Summary(pl):    Modu³ mhash dla PHP
701 Group:          Libraries
702 Requires(post): %{name}-common = %{version}
703 Requires(preun):        %{name}-common = %{version}
704
705 %description mhash
706 This is a dynamic shared object (DSO) for Apache that will add mhash
707 support to PHP.
708
709 %description mhash -l pl
710 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
711
712 %package doc
713 Summary:        Online manual for PHP
714 Summary(pl):    Dokumentacja dla PHP
715 Summary(pt_BR): Manual da linguagem PHP, em formato HTML
716 Group:          Networking/Daemons
717 Obsoletes:      php-manual
718
719 %description doc
720 Comprehensive documentation for PHP, viewable through your web server,
721 too!
722
723 %description doc -l pl
724 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
725 WWW.
726
727 %description doc -l pt_BR
728 Manual da linguagem PHP, em formato HTML.
729
730 %package pear
731 Summary:        PEAR - PHP Extension and Application Repository
732 Summary(pl):    PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
733 Group:          Development/Languages/PHP
734 Requires:       %{name}-cgi = %{version}
735 Requires:       %{name}-xml = %{version}
736
737 %description pear
738 PEAR - PHP Extension and Application Repository.
739
740 %description pear -l pl
741 PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
742 Repozytorium Aplikacji.
743
744 %package domxml
745 Summary:        DOM XML module
746 Summary(pl):    Modu³ DOM XML
747 Group:          Development/Languages/PHP
748
749 %description domxml
750 DOM XML module.
751
752 %description domxml -l pl
753 Modu³ DOM XML.
754
755 %package devel
756 Summary:        Files for PHP modules development
757 Summary(pl):    Pliki do kompilacji modu³ów PHP
758 Summary(pt_BR): Arquivos de desenvolvimento para PHP
759 Group:          Development/Languages/PHP
760 Requires:       %{name}-common = %{version}
761
762 %description devel
763 Files for PHP modules development.
764
765 %description devel -l pl
766 Pliki potrzebne do kompilacji modu³ów PHP.
767
768 %description devel -l pt_BR
769 Este pacote contém arquivos usados no desenvolvimento de programas ou
770 módulos PHP.
771
772 %package curl
773 Summary:        curl extension module for PHP
774 Summary(pl):    Modu³ curl dla PHP
775 Group:          Libraries
776
777 %description curl
778 This is a dynamic shared object (DSO) for Apache that will add curl
779 support to PHP.
780
781 %description curl -l pl
782 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
783
784 %package xslt
785 Summary:        xslt extension module for PHP
786 Summary(pl):    Modu³ xslt dla PHP
787 Group:          Libraries
788 Requires(post): %{name}-common = %{version}
789 Requires(preun):        %{name}-common = %{version}
790
791 %description xslt
792 This is a dynamic shared object (DSO) for Apache that will add xslt
793 support to PHP.
794
795 %description xslt -l pl
796 Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
797
798 %package wddx
799 Summary:        wddx extension module for PHP
800 Summary(pl):    Modu³ wddx dla PHP
801 Group:          Libraries
802 Requires(post): %{name}-common = %{version}
803 Requires(preun):        %{name}-common = %{version}
804
805 %description wddx
806 This is a dynamic shared object (DSO) for Apache that will add wddx
807 support to PHP.
808
809 %description wddx -l pl
810 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
811
812 %package ming
813 Summary:        ming extension module for PHP
814 Summary(pl):    Modu³ ming dla PHP
815 Group:          Libraries
816 Requires(post): %{name}-common = %{version}
817 Requires(preun):        %{name}-common = %{version}
818
819 %description ming
820 This is a dynamic shared object (DSO) for Apache that will add ming
821 (Flash - .swf files) support to PHP.
822
823 %description ming -l pl
824 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
825 ming.
826
827 %package libcpdf
828 Summary:        cpdf extension module for PHP
829 Summary(pl):    Modu³ cpdf dla PHP
830 Group:          Libraries
831 Requires(post): %{name}-common = %{version}
832 Requires(preun):        %{name}-common = %{version}
833
834 %description libcpdf
835 This is a dynamic shared object (DSO) for Apache that will add libcpdf
836 support to PHP.
837
838 %description libcpdf -l pl
839 Modu³ PHP dodaj±cy obs³ugê libcpdf.
840
841 %package iconv
842 Summary:        iconv extension module for PHP
843 Summary(pl):    Modu³ iconv dla PHP
844 Group:          Libraries
845 Requires(post): %{name}-common = %{version}
846 Requires(preun):        %{name}-common = %{version}
847
848 %description iconv
849 This is a dynamic shared object (DSO) for Apache that will add iconv
850 support to PHP.
851
852 %description iconv -l pl
853 Modu³ PHP dodaj±cy obs³ugê iconv.
854
855 %package gmp
856 Summary:        gmp extension module for PHP
857 Summary(pl):    Modu³ gmp dla PHP
858 Group:          Libraries
859 Requires(post): %{name}-common = %{version}
860 Requires(preun):        %{name}-common = %{version}
861
862 %description gmp
863 This is a dynamic shared object (DSO) for Apache that will add
864 arbitrary length number support with GNU MP library to PHP.
865
866 %description gmp -l pl
867 Modu³ PHP umorzliwiaj±cy korzystanie z biblioteki gmp.
868
869 %package shmop
870 Summary:        Shared Memory Operations extension module for PHP
871 Summary(pl):    Modu³ shmop dla PHP
872 Group:          Libraries
873 Requires(post): %{name}-common = %{version}
874 Requires(preun):        %{name}-common = %{version}
875
876 %description shmop
877 This is a dynamic shared object (DSO) for Apache that will add Shared
878 Memory Operations support to PHP.
879
880 %description shmop -l pl
881 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
882
883 %prep
884 %setup -q
885 %patch0 -p1
886 %patch1 -p1
887 %patch2 -p1
888 %patch3 -p1
889 %patch4 -p1
890 %patch5 -p1
891 %patch6 -p1
892 %patch7 -p1
893 %patch8 -p1
894 %patch9 -p1
895 %patch10 -p1
896 %patch11 -p1
897 %patch12 -p1
898 %patch13 -p1
899 %patch14 -p1
900
901 install -d manual
902 bzip2 -dc %{SOURCE4} | tar -xf - -C manual
903
904 %build
905 CFLAGS="%{rpmcflags} -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
906 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
907 ./buildconf
908 libtoolize --copy --force
909 aclocal
910 %{__autoconf}
911 #for i in cgi fastcgi apxs ; do
912 for i in cgi apxs ; do
913 %configure \
914         `[ $i = cgi ] && echo --enable-discard-path` \
915         `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
916 %if %{_apache2}
917         `[ $i = apxs ] && echo --with-apxs2=%{_sbindir}/apxs` \
918 %else
919         `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
920 %endif
921         --with-config-file-path=%{_sysconfdir} \
922         --with-exec-dir=%{_bindir} \
923         --%{!?debug:dis}%{?debug:en}able-debug \
924         --enable-bcmath=shared \
925         --enable-calendar=shared \
926         --enable-dba=shared \
927         --enable-exif=shared \
928         --enable-ftp=shared \
929         --enable-gd-native-ttf \
930         --enable-magic-quotes \
931         --enable-posix=shared \
932         --enable-session \
933         --enable-shared \
934         --enable-shmop=shared \
935         --enable-sysvsem=shared \
936         --enable-sysvshm=shared \
937         --enable-track-vars \
938         --enable-trans-sid \
939         --enable-safe-mode \
940         --enable-sockets=shared \
941         --enable-yp=shared \
942         --enable-ucd-snmp-hack \
943         --enable-xml=shared \
944         --with-expat-dir=/usr \
945         --enable-versioning \
946         %{?_with_xslt:--enable-xslt=shared} \
947         --with-bz2=shared \
948         %{?_with_libcpdf:--with-cpdflib=shared} \
949         --with-ctype=shared \
950         --with-curl=shared \
951         --without-db2 \
952         --with-db3 \
953         --with-dbase=shared \
954         --with-iconv=shared \
955         --with-dom=shared \
956         --with-dom-xslt=shared \
957         --with-filepro=shared \
958         --with-freetype-dir=shared \
959         --with-gettext=shared \
960         --with-gd=shared \
961         --with-gdbm \
962         --with-gmp=shared \
963         --with-hyperwave \
964         %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
965         %{?_with_java:--with-java} \
966         --with-jpeg-dir=shared \
967         %{!?_without_ldap:--with-ldap=shared} \
968         --with-mcrypt=shared \
969         --with-mysql=shared,%{_prefix} \
970         --with-mysql-sock=/var/lib/mysql/mysql.sock \
971         --with-mhash=shared \
972         --with-ming=shared \
973         %{!?_without_mm:--with-mm} \
974         %{!?_without_openssl:--with-openssl} \
975         %{?_with_oracle:--with-oracle=shared} \
976         %{?_with_interbase:--with-interbase=shared} \
977         %{?_with_oci8:--with-oci8=shared} \
978         --with-pear=%{peardir} \
979         --with-pcre-regex=shared \
980         --with-pdflib=shared \
981         --with-pgsql=shared,%{_prefix} \
982         --with-png-dir=shared \
983         %{!?_without_recode:--with-recode=shared} \
984         --with-regex=php \
985         %{!?_without_sablot:--with-sablot=/usr/lib} \
986         %{!?_without_snmp:--with-snmp=shared} \
987         --with-t1lib=shared \
988         %{!?_without_odbc:--with-unixODBC=shared} \
989         %{?_with_wddx:--enable-wddx=shared} \
990         --with-zlib=shared \
991         --with-zlib-dir=shared \
992         --without-xmlrpc \
993         %{?_with_xslt:--with-xslt-sablot=shared}
994 done
995
996 # TODO --with-pspell=/usr,shared (pspell missing)
997 #       --with-qtdom=shared
998
999 rm -f ext/xml/libs.mk
1000 install %{SOURCE6} ext/xml/libs.mk
1001
1002 %{__make}
1003 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
1004
1005 # Kill -rpath from php binary and libphp4.so
1006 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
1007 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
1008 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
1009
1010 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
1011 rm libphp4.la ; %{__make} libphp4.la
1012
1013 %install
1014 rm -rf $RPM_BUILD_ROOT
1015 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
1016                 $RPM_BUILD_ROOT/home/httpd/icons \
1017                 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1018                 $RPM_BUILD_ROOT/var/run/php
1019
1020 %{__make} install \
1021         INSTALL_ROOT=$RPM_BUILD_ROOT \
1022         INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
1023
1024 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
1025
1026 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/ #skeleton/test
1027 #install ext/skeleton/tests/* $RPM_BUILD_ROOT%{_includedir}/php/ext/skeleton/test
1028 cp -r ext/skeleton $RPM_BUILD_ROOT%{_includedir}/php/ext/ 
1029 install ext/ext_skel $RPM_BUILD_ROOT%{_bindir}
1030
1031 #exit 1
1032 #install .libs/*.so     $RPM_BUILD_ROOT%{_pkglibdir}
1033 #install modules/*.so   $RPM_BUILD_ROOT%{_pkglibdir}/php
1034
1035 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1036 install %{SOURCE3} php4.gif     $RPM_BUILD_ROOT/home/httpd/icons
1037 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
1038
1039
1040 install %{SOURCE1} .
1041 gzip -9nf CODING_STANDARDS CREDITS \
1042         EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
1043         Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
1044
1045 %clean
1046 rm -rf $RPM_BUILD_ROOT
1047
1048 %post
1049 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
1050 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
1051         /etc/httpd/httpd.conf
1052 if [ -f /var/lock/subsys/httpd ]; then
1053         /etc/rc.d/init.d/httpd restart 1>&2
1054 fi
1055
1056 %preun
1057 if [ "$1" = "0" ]; then
1058         %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
1059         perl -pi -e \
1060                 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
1061                 /etc/httpd/httpd.conf
1062         if [ -f /var/lock/subsys/httpd ]; then
1063                 /etc/rc.d/init.d/httpd restart 1>&2
1064         fi
1065 fi
1066
1067 %post common -p /sbin/ldconfig
1068 %postun common -p /sbin/ldconfig
1069
1070 %post bcmath
1071 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
1072
1073 %preun bcmath
1074 if [ "$1" = "0" ]; then
1075         %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
1076 fi
1077
1078 %post calendar
1079 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
1080
1081 %preun calendar
1082 if [ "$1" = "0" ]; then
1083         %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1084 fi
1085
1086 %post dba
1087 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1088
1089 %preun dba
1090 if [ "$1" = "0" ]; then
1091         %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1092 fi
1093
1094 %post dbase
1095 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1096
1097 %preun dbase
1098 if [ "$1" = "0" ]; then
1099         %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1100 fi
1101
1102 %post exif
1103 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1104
1105 %preun exif
1106 if [ "$1" = "0" ]; then
1107         %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1108 fi
1109
1110 %post filepro
1111 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1112
1113 %preun filepro
1114 if [ "$1" = "0" ]; then
1115         %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1116 fi
1117
1118 %post ftp
1119 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1120
1121 %preun ftp
1122 if [ "$1" = "0" ]; then
1123         %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1124 fi
1125
1126 %post gd
1127 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1128
1129 %preun gd
1130 if [ "$1" = "0" ]; then
1131         %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1132 fi
1133
1134 %post gettext
1135 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1136
1137 %preun gettext
1138 if [ "$1" = "0" ]; then
1139         %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1140 fi
1141
1142 %if %{?_without_imap:0}%{!?_without_imap:1}
1143 %post imap
1144 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1145
1146 %preun imap
1147 if [ "$1" = "0" ]; then
1148         %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1149 fi
1150 %endif
1151
1152 %if %{?_with_java:1}%{!?_with_java:0}
1153 %post java
1154 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1155
1156 %preun java
1157 if [ "$1" = "0" ]; then
1158         %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1159 fi
1160 %endif
1161
1162 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1163 %post ldap
1164 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1165
1166 %preun ldap
1167 if [ "$1" = "0" ]; then
1168         %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1169 fi
1170 %endif
1171
1172 %post mcrypt
1173 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1174
1175 %preun mcrypt
1176 if [ "$1" = "0" ]; then
1177         %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1178 fi
1179
1180 %post mhash
1181 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1182
1183 %preun mhash
1184 if [ "$1" = "0" ]; then
1185         %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1186 fi
1187
1188 %post mysql
1189 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1190
1191 %preun mysql
1192 if [ "$1" = "0" ]; then
1193         %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1194 fi
1195
1196 %post pdf
1197 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1198
1199 %preun pdf
1200 if [ "$1" = "0" ]; then
1201         %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1202 fi
1203
1204 %preun domxml
1205 if [ "$1" = "0" ]; then
1206         %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
1207 fi
1208
1209 %post domxml
1210 %{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
1211
1212 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1213 %post oci8
1214 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1215
1216 %preun oci8
1217 if [ "$1" = "0" ]; then
1218         %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1219 fi
1220 %endif
1221
1222 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1223 %post odbc
1224 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1225
1226 %preun odbc
1227 if [ "$1" = "0" ]; then
1228         %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1229 fi
1230 %endif
1231
1232 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1233 %post oracle
1234 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1235
1236 %preun oracle
1237 if [ "$1" = "0" ]; then
1238         %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1239 fi
1240 %endif
1241
1242 %if %{?_with_interbase:1}%{!?_with_interbase:0}
1243 %post interbase
1244 %{_sbindir}/php-module-install install interbase %{_sysconfdir}/php.ini
1245
1246 %preun interbase
1247 if [ "$1" = "0" ]; then
1248         %{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
1249 fi
1250 %endif
1251
1252 %post pcre
1253 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1254
1255 %preun pcre
1256 if [ "$1" = "0" ]; then
1257         %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1258 fi
1259
1260 %post pgsql
1261 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1262
1263 %preun pgsql
1264 if [ "$1" = "0" ]; then
1265         %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1266 fi
1267
1268 %post posix
1269 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1270
1271 %preun posix
1272 if [ "$1" = "0" ]; then
1273         %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1274 fi
1275
1276 %if %{?_without_recode:0}%{!?_without_recode:1}
1277 %post recode
1278 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1279
1280 %preun recode
1281 if [ "$1" = "0" ]; then
1282         %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1283 fi
1284 %endif
1285
1286 %post session
1287 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1288
1289 %preun session
1290 if [ "$1" = "0" ]; then
1291         %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1292 fi
1293
1294 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1295 %post snmp
1296 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1297
1298 %preun snmp
1299 if [ "$1" = "0" ]; then
1300         %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1301 fi
1302 %endif
1303
1304 %post sockets
1305 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1306
1307 %preun sockets
1308 if [ "$1" = "0" ]; then
1309         %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1310 fi
1311
1312 %post sysvsem
1313 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1314
1315 %preun sysvsem
1316 if [ "$1" = "0" ]; then
1317         %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1318 fi
1319
1320 %post sysvshm
1321 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1322
1323 %preun sysvshm
1324 if [ "$1" = "0" ]; then
1325         %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1326 fi
1327
1328 %post xml
1329 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1330
1331 %preun xml
1332 if [ "$1" = "0" ]; then
1333         %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1334 fi
1335
1336 %post yp
1337 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1338
1339 %preun yp
1340 if [ "$1" = "0" ]; then
1341         %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1342 fi
1343
1344 %post zlib
1345 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1346
1347 %preun zlib
1348 if [ "$1" = "0" ]; then
1349         %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1350 fi
1351
1352 %post bzip2
1353 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1354
1355 %preun bzip2
1356 if [ "$1" = "0" ]; then
1357         %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1358 fi
1359
1360 %post curl
1361 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1362
1363 %preun curl
1364 if [ "$1" = "0" ]; then
1365         %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1366 fi
1367
1368 %post ming
1369 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1370
1371 %preun ming
1372 if [ "$1" = "0" ]; then
1373         %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1374 fi
1375
1376 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1377 %post xslt
1378 %{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
1379
1380 %preun xslt
1381 if [ "$1" = "0" ]; then
1382         %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
1383 fi
1384 %endif
1385
1386 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1387 %post wddx
1388 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
1389
1390 %preun wddx
1391 if [ "$1" = "0" ]; then
1392         %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
1393 fi
1394 %endif
1395
1396 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1397 %post libcpdf
1398 %{_sbindir}/php-module-install install libcpdf %{_sysconfdir}/php.ini
1399
1400 %preun libcpdf
1401 if [ "$1" = "0" ]; then
1402         %{_sbindir}/php-module-install remove libcpdf %{_sysconfdir}/php.ini
1403 fi
1404 %endif
1405
1406 %post iconv
1407 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1408
1409 %preun iconv
1410 if [ "$1" = "0" ]; then
1411         %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1412 fi
1413
1414 %post gmp
1415 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1416
1417 %preun gmp
1418 if [ "$1" = "0" ]; then
1419         %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1420 fi
1421
1422 %post shmop
1423 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
1424
1425 %preun shmop
1426 if [ "$1" = "0" ]; then
1427         %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
1428 fi
1429
1430 %files
1431 %defattr(644,root,root,755)
1432 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1433
1434 %files cgi
1435 %defattr(644,root,root,755)
1436 %attr(755,root,root) %{_bindir}/php
1437
1438 %files common
1439 %defattr(644,root,root,755)
1440 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1441 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1442 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1443
1444 %dir %{_sysconfdir}
1445 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1446 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
1447
1448 /home/httpd/icons/*
1449 %attr(755,root,root) %{_sbindir}/*
1450 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1451 %dir %{extensionsdir}
1452
1453 %files devel
1454 %defattr(644,root,root,755)
1455 %{_includedir}/php
1456 %{_libdir}/php/build
1457 %attr(755,root,root) %{_bindir}/ext_skel
1458 %attr(755,root,root) %{_bindir}/phpextdist
1459 %attr(755,root,root) %{_bindir}/phpize
1460 %attr(755,root,root) %{_bindir}/php-config
1461
1462 %files domxml
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) %{extensionsdir}/domxml.so
1465
1466 %files pear
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{_bindir}/pear
1469 %{peardir}
1470
1471 %files mysql
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) %{extensionsdir}/mysql.so
1474
1475 %files pdf
1476 %defattr(644,root,root,755)
1477 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1478
1479 %files pgsql
1480 %defattr(644,root,root,755)
1481 %attr(755,root,root) %{extensionsdir}/pgsql.so
1482
1483 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1484 %files oracle
1485 %defattr(644,root,root,755)
1486 %attr(755,root,root) %{extensionsdir}/oracle.so
1487 %endif
1488
1489 %if %{?_with_interbase:1}%{!?_with_interbase:0}
1490 %files interbase
1491 %defattr(644,root,root,755)
1492 %attr(755,root,root) %{extensionsdir}/interbase.so
1493 %endif
1494
1495 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1496 %files oci8
1497 %defattr(644,root,root,755)
1498 %attr(755,root,root) %{extensionsdir}/oci8.so
1499 %endif
1500
1501 %files gd
1502 %defattr(644,root,root,755)
1503 %attr(755,root,root) %{extensionsdir}/gd.so
1504
1505 %files xml
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{extensionsdir}/xml.so
1508
1509 %files dba
1510 %defattr(644,root,root,755)
1511 %attr(755,root,root) %{extensionsdir}/dba.so
1512
1513 %files dbase
1514 %defattr(644,root,root,755)
1515 %attr(755,root,root) %{extensionsdir}/dbase.so
1516
1517 %files filepro
1518 %defattr(644,root,root,755)
1519 %attr(755,root,root) %{extensionsdir}/filepro.so
1520
1521 %files pcre
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{extensionsdir}/pcre.so
1524
1525 %files posix
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{extensionsdir}/posix.so
1528
1529 %files sysvsem
1530 %defattr(644,root,root,755)
1531 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1532
1533 %files sysvshm
1534 %defattr(644,root,root,755)
1535 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1536
1537 %files yp
1538 %defattr(644,root,root,755)
1539 %attr(755,root,root) %{extensionsdir}/yp.so
1540
1541 %files calendar
1542 %defattr(644,root,root,755)
1543 %attr(755,root,root) %{extensionsdir}/calendar.so
1544
1545 %files bcmath
1546 %defattr(644,root,root,755)
1547 %attr(755,root,root) %{extensionsdir}/bcmath.so
1548
1549 %files ftp
1550 %defattr(644,root,root,755)
1551 %attr(755,root,root) %{extensionsdir}/ftp.so
1552
1553 %files zlib
1554 %defattr(644,root,root,755)
1555 %attr(755,root,root) %{extensionsdir}/zlib.so
1556
1557 %files bzip2
1558 %defattr(644,root,root,755)
1559 %attr(755,root,root) %{extensionsdir}/bz2.so
1560
1561 %files exif
1562 %defattr(644,root,root,755)
1563 %attr(755,root,root) %{extensionsdir}/exif.so
1564
1565 %if %{?_without_recode:0}%{!?_without_recode:1}
1566 %files recode
1567 %defattr(644,root,root,755)
1568 %attr(755,root,root) %{extensionsdir}/recode.so
1569 %endif
1570
1571 #%files session
1572 #%defattr(644,root,root,755)
1573 #%attr(755,root,root) %{extensionsdir}/session.so
1574
1575 %files gettext
1576 %defattr(644,root,root,755)
1577 %attr(755,root,root) %{extensionsdir}/gettext.so
1578
1579 %if %{?_without_imap:0}%{!?_without_imap:1}
1580 %files imap
1581 %defattr(644,root,root,755)
1582 %attr(755,root,root) %{extensionsdir}/imap.so
1583 %endif
1584
1585 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1586 %files snmp
1587 %defattr(644,root,root,755)
1588 %attr(755,root,root) %{extensionsdir}/snmp.so
1589 %endif
1590
1591 %if %{?_with_java:1}%{!?_with_java:0}
1592 %files java
1593 %defattr(644,root,root,755)
1594 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1595 %endif
1596
1597 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1598 %files ldap
1599 %defattr(644,root,root,755)
1600 %attr(755,root,root) %{extensionsdir}/ldap.so
1601 %endif
1602
1603 %files sockets
1604 %defattr(644,root,root,755)
1605 %attr(755,root,root) %{extensionsdir}/sockets.so
1606
1607 %files mcrypt
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1610
1611 %files mhash
1612 %defattr(644,root,root,755)
1613 %attr(755,root,root) %{extensionsdir}/mhash.so
1614
1615 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1616 %files odbc
1617 %defattr(644,root,root,755)
1618 %attr(755,root,root) %{extensionsdir}/odbc.so
1619 %endif
1620
1621 %files doc
1622 %defattr(644,root,root,755)
1623 %doc manual/*
1624
1625 %files curl
1626 %defattr(644,root,root,755)
1627 %attr(755,root,root) %{extensionsdir}/curl.so
1628
1629 %files ming
1630 %defattr(644,root,root,755)
1631 %attr(755,root,root) %{extensionsdir}/ming.so
1632
1633 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1634 %files xslt
1635 %defattr(644,root,root,755)
1636 %attr(755,root,root) %{extensionsdir}/xslt.so
1637 %endif
1638
1639 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1640 %files wddx
1641 %defattr(644,root,root,755)
1642 %attr(755,root,root) %{extensionsdir}/wddx.so
1643 %endif
1644
1645 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1646 %files libcpdf
1647 %defattr(644,root,root,755)
1648 %attr(755,root,root) %{extensionsdir}/cpdf.so
1649 %endif
1650
1651 %files iconv
1652 %defattr(644,root,root,755)
1653 %attr(755,root,root) %{extensionsdir}/iconv.so
1654
1655 %files gmp
1656 %defattr(644,root,root,755)
1657 %attr(755,root,root) %{extensionsdir}/gmp.so
1658
1659 %files shmop
1660 %defattr(644,root,root,755)
1661 %attr(755,root,root) %{extensionsdir}/shmop.so
This page took 0.141945 seconds and 4 git commands to generate.