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