]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- updated to 4.0.3RC1
[packages/php.git] / php.spec
1 Summary:        The PHP HTML-embedded scripting language for use with Apache.
2 Summary(fr):    Le langage de script embarque-HTML PHP pour Apache.
3 Summary(pl):    Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
4 Name:           php
5 Version:        4.0.3RC1
6 Release:        0.1
7 Group:          Libraries
8 Group(fr):      Librairies
9 Group(pl):      Biblioteki
10 License:        The PHP license (see "LICENSE" file included in distribution)
11 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.gz
12 Source1:        FAQ.php
13 Source2:        %{name}.ini
14 Source3:        zend.gif
15 Source4:        http://www.php.net/distributions/manual.tar.gz
16 Source5:        http://www.php.net/extra/number4.tar.gz
17 Patch0:         %{name}-imap.patch
18 Patch1:         %{name}-mysql-socket.patch
19 Patch2:         %{name}-mail.patch
20 Patch3:         %{name}-ldap.patch
21 Patch4:         %{name}-bcmath.patch
22 Patch5:         %{name}-no_libnsl.patch
23 Icon:           php4.gif
24 URL:            http://www.php.net/
25 BuildRequires:  apache(EAPI)-devel
26 BuildRequires:  zip
27 BuildRequires:  bison
28 BuildRequires:  flex
29 #BuildRequires: db-devel >= 3.0.55
30 BuildRequires:  freetype-devel
31 BuildRequires:  gd-devel >= 1.8.3
32 BuildRequires:  gdbm-devel
33 BuildRequires:  imap-devel >= 4.7b-1
34 # I think jdk is better for java
35 # BuildRequires:        jdk
36 BuildRequires:  kaffe-devel
37 BuildRequires:  libjpeg-devel
38 BuildRequires:  libpng >= 1.0.8
39 BuildRequires:  libtiff-devel
40 BuildRequires:  mm-devel >= 1.1.3
41 BuildRequires:  openldap-devel
42 BuildRequires:  pam-devel
43 BuildRequires:  pdflib-devel >= 3.0
44 #BuildRequires: libxml-devel >= 2.0.0
45 BuildRequires:  postgresql-devel
46 BuildRequires:  recode-devel >= 3.5
47 BuildRequires:  t1lib-devel
48 # BuildRequires:        unixODBC-devel
49 BuildRequires:  zlib-devel >= 1.0.9
50 BuildRequires:  ucd-snmp-devel >= 4.1
51 BuildRequires:  libmcrypt-devel >= 2.4.4
52 BuildRequires:  libltdl-devel
53 Requires:       apache(EAPI) >= 1.3.9
54 Prereq:         /usr/sbin/apxs
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %define         _pkglibdir      %{_libdir}/apache
58
59 %description
60 PHP is an HTML-embedded scripting language. PHP attempts to make it
61 easy for developers to write dynamically generated web pages. PHP also
62 offers built-in database integration for several commercial and
63 non-commercial database management systems, so writing a
64 database-enabled web page with PHP is fairly simple. The most common
65 use of PHP coding is probably as a replacement for CGI scripts. The
66 mod_php module enables the Apache web server to understand and process
67 the embedded PHP language in web pages. This package contains PHP
68 version %{version}. If you use applications which specifically rely on
69 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
70 module contained in the phpfi package. If you're just starting with
71 PHP, you should install this package. You'll also need to install the
72 Apache web server.
73
74 %description -l fr
75 PHP est un langage de script embarque dans le HTM. PHP essaye de
76 rendre simple aux developpeurs d'ecrire des pages web generees
77 dynamiquement. PHP incorpore egalement une integration avec plusieurs
78 systemes de gestion de bases de donnees commerciaux et
79 non-connerciaux, qui rent facile la creation de pages web liees avec
80 des bases de donnees. L'utilisation la plus commune de PHP est
81 probablement en remplacement de scripts CGI. Le module mod_php permet
82 au serveur web apache de comprendre et de traiter le langage PHP
83 integre dans des pages web. Ce package contient PHP version
84 %{version}. Si vous utilisez des applications qui utilisent
85 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
86 dans le package mod_php. Si vous debutez avec PHP, vous devriez
87 installer ce package. Vous aurez egalement besoin d'installer le
88 serveur web Apache.
89
90 %description -l pl
91 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
92 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
93 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
94 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
95 zosta³a z jêzyków: C, Java i Perl.
96
97 %package mysql
98 Summary:        MySQL database module for PHP4
99 Summary(pl):    Modu³ bazy danych MySQL dla PHP4
100 Group:          Libraries
101 Group(fr):      Librairies
102 Group(pl):      Biblioteki
103 Requires:       %{name} = %{version}
104
105 %description mysql
106 This is a dynamic shared object (DSO) for Apache that will add MySQL
107 database support to PHP4. If you need back-end support for MySQL, you
108 should install this package in addition to the main %{name} package.
109
110 %description mysql -l pl
111 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
112
113
114 %package pgsql
115 Summary:        PostgreSQL database module for PHP4
116 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP4
117 Group:          Libraries
118 Group(fr):      Librairies
119 Group(pl):      Biblioteki
120 Requires:       %{name} = %{version}
121
122 %description pgsql
123 This is a dynamic shared object (DSO) for Apache that will add
124 PostgreSQL database support to PHP4. If you need back-end support for
125 PostgreSQL, you should install this package in addition to the main
126 %{name} package.
127
128 %description pgsql -l pl
129 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
130
131 %package oci8
132 Summary:        Oracle 8 database module for PHP4
133 Summary(pl):    Modu³ bazy danych Oracle 8 dla PHP4
134 Group:          Libraries
135 Group(fr):      Librairies
136 Group(pl):      Biblioteki
137 Requires:       %{name} = %{version}
138 Autoreq:        false
139
140 %description oci8
141 This is a dynamic shared object (DSO) for Apache that will add
142 Oracle 8 database support to PHP4. If you need back-end support for
143 Oracle 8, you should install this package in addition to the main
144 %{name} package.
145
146 %description oci8 -l pl
147 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
148 }
149
150 %package oracle
151 Summary:        Oracle 7 database module for PHP4
152 Summary(pl):    Modu³ bazy danych Oracle 7 dla PHP4
153 Group:          Libraries
154 Group(fr):      Librairies
155 Group(pl):      Biblioteki
156 Requires:       %{name} = %{version}
157 Autoreq:        false
158
159 %description oracle
160 This is a dynamic shared object (DSO) for Apache that will add
161 Oracle 7 database support to PHP4. If you need back-end support for
162 Oracle 7, you should install this package in addition to the main
163 %{name} package.
164
165 %description oracle -l pl
166 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
167 }
168
169 %package gd
170 Summary:        GD extension module for PHP4
171 Summary:        Modu³ GD dla PHP4
172 Group:          Libraries
173 Group(fr):      Librairies
174 Group(pl):      Biblioteki
175 Requires:       %{name} = %{version}
176
177 %description gd
178 This is a dynamic shared object (DSO) for Apache that will add GD
179 support to PHP4. You should install this package in addition to the
180 main %{name} package if you want to create and manipulate images with
181 PHP.
182
183 %description gd -l pl
184
185 %package java
186 Summary:        Java extension module for PHP4
187 Summary(pl):    Modu³ Javy dla PHP4
188 Group:          Libraries
189 Group(fr):      Librairies
190 Group(pl):      Biblioteki
191 Requires:       %{name} = %{version}
192
193 %description java
194 This is a dynamic shared object (DSO) for Apache that will add JAVA
195 support to PHP4. This extension provides a simple and effective means
196 for creating and invoking methods on Java objects from PHP.
197
198 %description java -l pl
199
200 %package xml
201 Summary:        XML extension module for PHP4
202 Summary(pl):    Modu³ XML dla PHP4
203 Group:          Libraries
204 Group(fr):      Librairies
205 Group(pl):      Biblioteki
206 Requires:       %{name} = %{version}
207
208 %description xml
209 This is a dynamic shared object (DSO) for Apache that will add XML
210 support to PHP4. This extension lets you create XML parsers and then
211 define handlers for different XML events. If you want to be able to
212 parse XML documents you should install this package in addition to the
213 main %{name} package.
214
215 #%description xml -l pl
216
217 %package dba
218 Summary:        DBA extension module for PHP4
219 Summary(pl):    Modu³ DBA dla PHP4
220 Group:          Libraries
221 Group(fr):      Librairies
222 Group(pl):      Biblioteki
223 Requires:       %{name} = %{version}
224
225 %description dba
226 This is a dynamic shared object (DSO) for Apache that will add
227 flat-file databases (DBA) support to PHP4.
228
229 #%description dba -l pl
230
231 %package calendar
232 Summary:        Calendar extension module for PHP4
233 Summary(pl):    Modu³ funkcji kalendarza dla PHP4
234 Group:          Libraries
235 Group(fr):      Librairies
236 Group(pl):      Biblioteki
237 Requires:       %{name} = %{version}
238
239 %description calendar
240 This is a dynamic shared object (DSO) for Apache that will add
241 calendar support to PHP4.
242
243 #%description calendar -l pl
244
245 %package dbase
246 Summary:        DBase extension module for PHP4
247 Summary(pl):    Modu³ DBase dla PHP4
248 Group:          Libraries
249 Group(fr):      Librairies
250 Group(pl):      Biblioteki
251 Requires:       %{name} = %{version}
252
253 %description dbase
254 This is a dynamic shared object (DSO) for Apache that will add DBase
255 support to PHP4.
256
257 #%description dbase -l pl
258
259 %package filepro
260 Summary:        FilePro extension module for PHP4
261 Summary(pl):    Modu³ FilePro dla PHP4
262 Group:          Libraries
263 Group(fr):      Librairies
264 Group(pl):      Biblioteki
265 Requires:       %{name} = %{version}
266
267 %description filepro
268 This is a dynamic shared object (DSO) for Apache that will add FilePro
269 support to PHP4.
270
271 #%description filepro -l pl
272
273 %package posix
274 Summary:        POSIX extension module for PHP4
275 Summary(pl):    Modu³ POSIX dla PHP4
276 Group:          Libraries
277 Group(fr):      Librairies
278 Group(pl):      Biblioteki
279 Requires:       %{name} = %{version}
280
281 %description posix
282 This is a dynamic shared object (DSO) for Apache that will add POSIX
283 functions support to PHP4.
284
285 #%description posix -l pl
286
287 %package pcre
288 Summary:        PCRE extension module for PHP4
289 Summary(pl):    Modu³ PCRE dla PHP4
290 Group:          Libraries
291 Group(fr):      Librairies
292 Group(pl):      Biblioteki
293 Requires:       %{name} = %{version}
294
295 %description pcre
296 This is a dynamic shared object (DSO) for Apache that will add Perl
297 Compatible Regular Expression support to PHP4.
298
299 #%description pcre -l pl
300
301 %package sysvsem
302 Summary:        SysV sem extension module for PHP4
303 Summary(pl):    Modu³ SysV sem dla PHP4
304 Group:          Libraries
305 Group(fr):      Librairies
306 Group(pl):      Biblioteki
307 Requires:       %{name} = %{version}
308
309 %description sysvsem
310 This is a dynamic shared object (DSO) for Apache that will add SysV
311 semafores support to PHP4.
312
313 #%description sysvsem -l pl
314
315 %package sysvshm
316 Summary:        SysV shm extension module for PHP4
317 Summary(pl):    Modu³ SysV shm dla PHP4
318 Group:          Libraries
319 Group(fr):      Librairies
320 Group(pl):      Biblioteki
321 Requires:       %{name} = %{version}
322
323 %description sysvshm
324 This is a dynamic shared object (DSO) for Apache that will add SysV
325 Shared Memory support to PHP4.
326
327 #%description sysvshm -l pl
328
329 %package yp
330 Summary:        NIS (yp) extension module for PHP4
331 Summary(pl):    Modu³ NIS (yp) dla PHP4
332 Group:          Libraries
333 Group(fr):      Librairies
334 Group(pl):      Biblioteki
335 Requires:       %{name} = %{version}
336
337 %description yp
338 This is a dynamic shared object (DSO) for Apache that will add NIS
339 (Yellow Pages) support to PHP4.
340
341 #%description yp -l pl
342
343 %package bcmath
344 Summary:        bcmath extension module for PHP4
345 Summary(pl):    Modu³ bcmath dla PHP4
346 Group:          Libraries
347 Group(fr):      Librairies
348 Group(pl):      Biblioteki
349 Requires:       %{name} = %{version}
350
351 %description bcmath
352 This is a dynamic shared object (DSO) for Apache that will add bc
353 style precision math functions support to PHP4.
354
355 #%description bcmath -l pl
356
357 %package ftp
358 Summary:        FTP extension module for PHP4
359 Summary(pl):    Modu³ FTP dla PHP4
360 Group:          Libraries
361 Group(fr):      Librairies
362 Group(pl):      Biblioteki
363 Requires:       %{name} = %{version}
364
365 %description ftp
366 This is a dynamic shared object (DSO) for Apache that will add FTP
367 support to PHP4.
368
369 #%description ftp -l pl
370
371 %package zlib
372 Summary:        Zlib extension module for PHP4
373 Summary(pl):    Modu³ zlib dla PHP4
374 Group:          Libraries
375 Group(fr):      Librairies
376 Group(pl):      Biblioteki
377 Requires:       %{name} = %{version}
378
379 %description zlib
380 This is a dynamic shared object (DSO) for Apache that will add
381 commpresion (zlib) support to PHP4.
382
383 #%description zlib -l pl
384
385 %package exif
386 Summary:        exifextension module for PHP4
387 Summary(pl):    Modu³ exif dla PHP4
388 Group:          Libraries
389 Group(fr):      Librairies
390 Group(pl):      Biblioteki
391 Requires:       %{name} = %{version}
392
393 %description exif
394 This is a dynamic shared object (DSO) for Apache that will add exif
395 support to PHP4.
396
397 #%description exif -l pl
398
399 %package recode
400 Summary:        recodeextension module for PHP4
401 Summary(pl):    Modu³ recode dla PHP4
402 Group:          Libraries
403 Group(fr):      Librairies
404 Group(pl):      Biblioteki
405 Requires:       %{name} = %{version}
406
407 %description recode
408 This is a dynamic shared object (DSO) for Apache that will add recode
409 support to PHP4.
410
411 #%description recode -l pl
412
413 %package session
414 Summary:        sessionextension module for PHP4
415 Summary(pl):    Modu³ session dla PHP4
416 Group:          Libraries
417 Group(fr):      Librairies
418 Group(pl):      Biblioteki
419 Requires:       %{name} = %{version}
420
421 %description session
422 This is a dynamic shared object (DSO) for Apache that will add session
423 support to PHP4.
424
425 #%description session -l pl
426
427 %package gettext
428 Summary:        gettextextension module for PHP4
429 Summary(pl):    Modu³ gettext dla PHP4
430 Group:          Libraries
431 Group(fr):      Librairies
432 Group(pl):      Biblioteki
433 Requires:       %{name} = %{version}
434
435 %description gettext
436 This is a dynamic shared object (DSO) for Apache that will add gettext
437 support to PHP4.
438
439 #%description gettext -l pl
440
441
442 %package snmp
443 Summary:        snmpextension module for PHP4
444 Summary(pl):    Modu³ snmp dla PHP4
445 Group:          Libraries
446 Group(fr):      Librairies
447 Group(pl):      Biblioteki
448 Requires:       %{name} = %{version}
449
450 %description snmp
451 This is a dynamic shared object (DSO) for Apache that will add snmp
452 support to PHP4.
453
454 #%description snmp -l pl
455
456 %package imap
457 Summary:        imapextension module for PHP4
458 Summary(pl):    Modu³ imap dla PHP4
459 Group:          Libraries
460 Group(fr):      Librairies
461 Group(pl):      Biblioteki
462 Requires:       %{name} = %{version}
463
464 %description imap
465 This is a dynamic shared object (DSO) for Apache that will add imap
466 support to PHP4.
467
468 #%description imap -l pl
469
470 %package ldap
471 Summary:        LDAP extension module for PHP4
472 Summary(pl):    Modu³ LDAP dla PHP4
473 Group:          Libraries
474 Group(fr):      Librairies
475 Group(pl):      Biblioteki
476 Requires:       %{name} = %{version}
477
478 %description ldap
479 This is a dynamic shared object (DSO) for Apache that will add LDAP
480 support to PHP4.
481
482 #%description ldap -l pl
483
484 %package sockets
485 Summary:        sockets extension module for PHP4
486 Summary(pl):    Modu³ socket dla PHP4
487 Group:          Libraries
488 Group(fr):      Librairies
489 Group(pl):      Biblioteki
490 Requires:       %{name} = %{version}
491
492 %description sockets
493 This is a dynamic shared object (DSO) for Apache that will add sockets
494 support to PHP4.
495
496 #%description sockets -l pl
497
498 %package mcrypt
499 Summary:        mcrypt extension module for PHP4
500 Summary(pl):    Modu³ mcrypt dla PHP4
501 Group:          Libraries
502 Group(fr):      Librairies
503 Group(pl):      Biblioteki
504 Requires:       %{name} = %{version}
505
506 %description mcrypt
507 This is a dynamic shared object (DSO) for Apache that will add mcrypt
508 support to PHP4.
509
510 #%description mcrypt -l pl
511
512 %package doc
513 Summary:        Online manual for PHP4
514 Summary(pl):    Dokumentacja dla PHP4
515 Group:          Networking/Daemons
516 Group(pl):      Sieciowe/Serwery
517
518 %description doc
519 Comprehensive documentation for PHP4, viewable through your web
520 server, too!
521
522 %description doc -l pl
523 Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
524 WWW.
525
526 %prep
527 %setup  -q -a 5
528 %patch0 -p1
529 %patch1 -p1
530 %patch2 -p1
531 %patch3 -p1
532 %patch4 -p1
533 %patch5 -p1
534
535 %build
536 LDFLAGS="-s"; export LDFLAGS
537 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
538 ./buildconf
539 %configure \
540         --with-apxs=%{_sbindir}/apxs \
541         --with-config-file-path=%{_sysconfdir}/httpd \
542         --with-exec-dir=%{_bindir} \
543         --disable-debug \
544         --enable-magic-quotes \
545         --enable-shared \
546         --enable-track-vars \
547         --enable-safe-mode \
548         --enable-trans-sid \
549         --enable-sysvsem=shared \
550         --enable-sysvshm=shared \
551         --enable-session \
552         --enable-exif=shared \
553         --with-regex=system \
554         --with-gettext=shared \
555         --with-ldap=shared \
556         --with-mysql=shared \
557         --with-mysql-sock=/var/lib/mysql/mysql.sock \
558         --with-gd=shared \
559         --with-dbase=shared \
560         --with-filepro=shared \
561         --enable-ftp=shared \
562         --with-hyperwave \
563         --with-pdflib=shared \
564         --with-cpdflib=shared \
565         --with-java \
566         --with-pgsql=shared,/usr \
567         --with-imap=shared \
568         --enable-bcmath=shared \
569         --enable-calendar=shared \
570         --with-mm \
571         --with-pcre-regex=shared \
572         --enable-posix=shared \
573         --with-ttf \
574         --with-t1lib \
575         --with-recode=shared \
576         --enable-ucd-snmp-hack \
577         --enable-dba=shared \
578         --with-snmp=shared \
579         --with-openssl \
580         --with-gdbm \
581         --with-ndbm \
582         --enable-yp=shared \
583         --with-xml=shared \
584         --enable-xml=shared \
585         --with-zlib=shared \
586         --with-mcrypt=shared \
587         --enable-sockets=shared \
588         --with-db2=yes \
589         %{?oracle:--with-oracle=shared} %{?oci8:--with-oci8=shared}
590
591
592
593 # TODO --with-pspell=/usr,shared (brak pspella)
594 #       --with-unixODBC=shared (nie jest shared)
595 #       --with-mhash=shared (brak libmhash)
596 #       --with-curl=shared (brak libcurl)
597
598 #       --with-db3 \
599
600 # snmp won
601
602 #Syntax error on line 228 of %{_sysconfdir}/httpd/httpd.conf: Cannot load %{_libdir}/apache/libphp4.so into server: %{_libdir}/apache/libphp4.so: undefined symbol: phpi_get_le_gd
603 # Solution: make pdf and cpdf shared
604 #       --with-gd=shared \
605
606 #       --with-unixODBC \
607
608 # This option get trouble with imap
609 #       --enable-versioning \
610
611 # To old/new libmcrypt ?
612 #       --with-mcrypt=shared \
613 # --with-dom=%{_prefix}/X11R6 \
614
615 %{__make}
616
617 %install
618 rm -rf $RPM_BUILD_ROOT
619 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
620                 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc}
621
622 install .libs/*.so      $RPM_BUILD_ROOT%{_pkglibdir}
623 install modules/*.so    $RPM_BUILD_ROOT%{_pkglibdir}/php
624
625 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
626 install %{SOURCE3} php4.gif     $RPM_BUILD_ROOT/home/httpd/html/icons
627
628 cd $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
629 tar zxf %{SOURCE4}
630 ln -s manual.html index.html
631 cd -
632
633 strip --strip-unneeded  \
634         $RPM_BUILD_ROOT%{_pkglibdir}/*.so \
635         $RPM_BUILD_ROOT%{_pkglibdir}/php/*.so
636
637 install %{SOURCE1} .
638 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
639       EXTENSIONS  NEWS TODO* LICENSE Zend/LICENSE \
640       Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
641
642 %post
643 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
644 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
645 if [ -f /var/lock/subsys/httpd ]; then
646         /etc/rc.d/init.d/httpd restart 1>&2
647 fi
648
649 %postun
650 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
651 if [ -f /var/lock/subsys/httpd ]; then
652       /etc/rc.d/init.d/httpd restart 1>&2
653 fi
654
655 %preun
656 if [ "$1" = "0" ]; then
657         /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
658         if [ -f /var/lock/subsys/httpd ]; then
659                 /etc/rc.d/init.d/httpd restart 1>&2
660         fi
661 fi
662
663 %post mysql
664 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
665         echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
666         perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
667         %{_sysconfdir}/httpd/php.ini
668 fi
669 if [ -f /var/lock/subsys/httpd ]; then
670         /etc/rc.d/init.d/httpd restart 1>&2
671 fi
672
673 %preun mysql
674 if [ "$1" = "0" ]; then
675         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
676                 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
677                 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
678                 %{_sysconfdir}/httpd/php.ini
679         fi
680         if [ -f /var/lock/subsys/httpd ]; then
681                 /etc/rc.d/init.d/httpd restart 1>&2
682         fi
683 fi
684
685 %post pgsql
686 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
687         echo "activating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
688         perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' \
689         %{_sysconfdir}/httpd/php.ini
690 fi
691 if [ -f /var/lock/subsys/httpd ]; then
692         /etc/rc.d/init.d/httpd restart 1>&2
693 fi
694
695 %preun pgsql
696 if [ "$1" = "0" ]; then
697         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
698                 echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
699                 perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
700                 %{_sysconfdir}/httpd/php.ini
701         fi
702         if [ -f /var/lock/subsys/httpd ]; then
703                 /etc/rc.d/init.d/httpd restart 1>&2
704         fi
705 fi
706
707 %{?oracle:%post oracle}
708 %{?oracle:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
709 %{?oracle:      echo "activating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
710 %{?oracle:      perl -pi -e 's|^;extension=oracle.so|extension=oracle.so|g' %{_sysconfdir}/httpd/php.ini}
711 %{?oracle:fi}
712 %{?oracle:if [ -f /var/lock/subsys/httpd ]; then}
713 %{?oracle:      /etc/rc.d/init.d/httpd restart 1>&2}
714 %{?oracle:fi}
715
716 %{?oracle:%preun oracle}
717 %{?oracle:if [ "$1" = "0" ]; then}
718 %{?oracle:      if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
719 %{?oracle:              echo "deactivating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
720 %{?oracle:              perl -pi -e 's|^extension=oracle.so|;extension=oracle.so|g' {_sysconfdir}/httpd/php.ini}
721 %{?oracle:      fi}
722 %{?oracle:      if [ -f /var/lock/subsys/httpd ]; then}
723 %{?oracle:              /etc/rc.d/init.d/httpd restart 1>&2}
724 %{?oracle:      fi}
725 %{?oracle:fi}
726
727 %{?oci8:%post oci8}
728 %{?oci8:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
729 %{?oci8:        echo "activating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
730 %{?oci8:        perl -pi -e 's|^;extension=oci8.so|extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
731 %{?oci8:fi}
732 %{?oci8:if [ -f /var/lock/subsys/httpd ]; then}
733 %{?oci8:        /etc/rc.d/init.d/httpd restart 1>&2}
734 %{?oci8:fi}
735
736 %{?oci8:%preun oci8}
737 %{?oci8:if [ "$1" = "0" ]; then}
738 %{?oci8:        if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
739 %{?oci8:                echo "deactivating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
740 %{?oci8:                perl -pi -e 's|^extension=oci8.so|;extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
741 %{?oci8:        fi}
742 %{?oci8:        if [ -f /var/lock/subsys/httpd ]; then}
743 %{?oci8:                /etc/rc.d/init.d/httpd restart 1>&2}
744 %{?oci8:        fi}
745 %{?oci8:fi}
746
747 %post gd
748 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
749         echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
750         perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
751         %{_sysconfdir}/httpd/php.ini
752 fi
753 if [ -f /var/lock/subsys/httpd ]; then
754         /etc/rc.d/init.d/httpd restart 1>&2
755 fi
756
757 %preun gd
758 if [ "$1" = "0" ]; then
759         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
760                 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
761                 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
762                 %{_sysconfdir}/httpd/php.ini
763         fi
764         if [ -f /var/lock/subsys/httpd ]; then
765                 /etc/rc.d/init.d/httpd restart 1>&2
766         fi
767 fi
768
769 %post xml
770 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
771         echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
772         perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
773         %{_sysconfdir}/httpd/php.ini
774 fi
775 if [ -f /var/lock/subsys/httpd ]; then
776         /etc/rc.d/init.d/httpd restart 1>&2
777 fi
778
779 %preun xml
780 if [ "$1" = "0" ]; then
781         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
782                 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
783                 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
784                 %{_sysconfdir}/httpd/php.ini
785         fi
786         if [ -f /var/lock/subsys/httpd ]; then
787                 /etc/rc.d/init.d/httpd restart 1>&2
788         fi
789 fi
790
791 %post dba
792 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
793         echo "activating module 'dba.so' in /etc/httpd/php.ini" 1>&2
794         perl -pi -e 's|^;extension=dba.so|extension=dba.so|g' \
795         %{_sysconfdir}/httpd/php.ini
796 fi
797 if [ -f /var/lock/subsys/httpd ]; then
798         /etc/rc.d/init.d/httpd restart 1>&2
799 fi
800
801 %preun dba
802 if [ "$1" = "0" ]; then
803         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
804                 echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
805                 perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
806                 %{_sysconfdir}/httpd/php.ini
807         fi
808         if [ -f /var/lock/subsys/httpd ]; then
809                 /etc/rc.d/init.d/httpd restart 1>&2
810         fi
811 fi
812
813 %post calendar
814 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
815         echo "activating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
816         perl -pi -e 's|^;extension=calendar.so|extension=calendar.so|g' \
817         %{_sysconfdir}/httpd/php.ini
818 fi
819 if [ -f /var/lock/subsys/httpd ]; then
820         /etc/rc.d/init.d/httpd restart 1>&2
821 fi
822
823 %preun calendar
824 if [ "$1" = "0" ]; then
825         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
826                 echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
827                 perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
828                 %{_sysconfdir}/httpd/php.ini
829         fi
830         if [ -f /var/lock/subsys/httpd ]; then
831                 /etc/rc.d/init.d/httpd restart 1>&2
832         fi
833 fi
834
835 %post dbase
836 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
837         echo "activating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
838         perl -pi -e 's|^;extension=dbase.so|extension=dbase.so|g' \
839         %{_sysconfdir}/httpd/php.ini
840 fi
841 if [ -f /var/lock/subsys/httpd ]; then
842         /etc/rc.d/init.d/httpd restart 1>&2
843 fi
844
845 %preun dbase
846 if [ "$1" = "0" ]; then
847         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
848                 echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
849                 perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
850                 %{_sysconfdir}/httpd/php.ini
851         fi
852         if [ -f /var/lock/subsys/httpd ]; then
853                 /etc/rc.d/init.d/httpd restart 1>&2
854         fi
855 fi
856
857
858 %post java
859 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
860         echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
861         perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
862         %{_sysconfdir}/httpd/php.ini
863 fi
864 if [ -f /var/lock/subsys/httpd ]; then
865         /etc/rc.d/init.d/httpd restart 1>&2
866 fi
867
868 %preun java
869 if [ "$1" = "0" ]; then
870         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
871                 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
872                 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
873                 %{_sysconfdir}/httpd/php.ini
874         fi
875         if [ -f /var/lock/subsys/httpd ]; then
876                 /etc/rc.d/init.d/httpd restart 1>&2
877         fi
878 fi
879
880 %post filepro
881 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
882         echo "activating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
883         perl -pi -e 's|^;extension=filepro.so|extension=filepro.so|g' \
884         %{_sysconfdir}/httpd/php.ini
885 fi
886 if [ -f /var/lock/subsys/httpd ]; then
887         /etc/rc.d/init.d/httpd restart 1>&2
888 fi
889
890 %preun filepro
891 if [ "$1" = "0" ]; then
892         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
893                 echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
894                 perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
895                 %{_sysconfdir}/httpd/php.ini
896         fi
897         if [ -f /var/lock/subsys/httpd ]; then
898                 /etc/rc.d/init.d/httpd restart 1>&2
899         fi
900 fi
901
902 %post pcre
903 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
904         echo "activating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
905         perl -pi -e 's|^;extension=pcre.so|extension=pcre.so|g' \
906         %{_sysconfdir}/httpd/php.ini
907 fi
908 if [ -f /var/lock/subsys/httpd ]; then
909         /etc/rc.d/init.d/httpd restart 1>&2
910 fi
911
912 %preun pcre
913 if [ "$1" = "0" ]; then
914         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
915                 echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
916                 perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
917                 %{_sysconfdir}/httpd/php.ini
918         fi
919         if [ -f /var/lock/subsys/httpd ]; then
920                 /etc/rc.d/init.d/httpd restart 1>&2
921         fi
922 fi
923
924 %post posix
925 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
926         echo "activating module 'posix.so' in /etc/httpd/php.ini" 1>&2
927         perl -pi -e 's|^;extension=posix.so|extension=posix.so|g' \
928         %{_sysconfdir}/httpd/php.ini
929 fi
930 if [ -f /var/lock/subsys/httpd ]; then
931         /etc/rc.d/init.d/httpd restart 1>&2
932 fi
933
934 %preun posix
935 if [ "$1" = "0" ]; then
936         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
937                 echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
938                 perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
939                 %{_sysconfdir}/httpd/php.ini
940         fi
941         if [ -f /var/lock/subsys/httpd ]; then
942                 /etc/rc.d/init.d/httpd restart 1>&2
943         fi
944 fi
945
946 %post sysvsem
947 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
948         echo "activating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
949         perl -pi -e 's|^;extension=sysvsem.so|extension=sysvsem.so|g' \
950         %{_sysconfdir}/httpd/php.ini
951 fi
952 if [ -f /var/lock/subsys/httpd ]; then
953         /etc/rc.d/init.d/httpd restart 1>&2
954 fi
955
956 %preun sysvsem
957 if [ "$1" = "0" ]; then
958         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
959                 echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
960                 perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
961                 %{_sysconfdir}/httpd/php.ini
962         fi
963         if [ -f /var/lock/subsys/httpd ]; then
964                 /etc/rc.d/init.d/httpd restart 1>&2
965         fi
966 fi
967
968 %post sysvshm
969 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
970         echo "activating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
971         perl -pi -e 's|^;extension=sysvshm.so|extension=sysvshm.so|g' \
972         %{_sysconfdir}/httpd/php.ini
973 fi
974 if [ -f /var/lock/subsys/httpd ]; then
975         /etc/rc.d/init.d/httpd restart 1>&2
976 fi
977
978 %preun sysvshm
979 if [ "$1" = "0" ]; then
980         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
981                 echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
982                 perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
983                 %{_sysconfdir}/httpd/php.ini
984         fi
985         if [ -f /var/lock/subsys/httpd ]; then
986                 /etc/rc.d/init.d/httpd restart 1>&2
987         fi
988 fi
989
990 %post yp
991 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
992         echo "activating module 'yp.so' in /etc/httpd/php.ini" 1>&2
993         perl -pi -e 's|^;extension=yp.so|extension=yp.so|g' \
994         %{_sysconfdir}/httpd/php.ini
995 fi
996 if [ -f /var/lock/subsys/httpd ]; then
997         /etc/rc.d/init.d/httpd restart 1>&2
998 fi
999
1000 %preun yp
1001 if [ "$1" = "0" ]; then
1002         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1003                 echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1004                 perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
1005                 %{_sysconfdir}/httpd/php.ini
1006         fi
1007         if [ -f /var/lock/subsys/httpd ]; then
1008                 /etc/rc.d/init.d/httpd restart 1>&2
1009         fi
1010 fi
1011
1012 %post ftp
1013 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1014         echo "activating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1015         perl -pi -e 's|^;extension=ftp.so|extension=ftp.so|g' \
1016         %{_sysconfdir}/httpd/php.ini
1017 fi
1018 if [ -f /var/lock/subsys/httpd ]; then
1019         /etc/rc.d/init.d/httpd restart 1>&2
1020 fi
1021
1022 %preun ftp
1023 if [ "$1" = "0" ]; then
1024         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1025                 echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1026                 perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
1027                 %{_sysconfdir}/httpd/php.ini
1028         fi
1029         if [ -f /var/lock/subsys/httpd ]; then
1030                 /etc/rc.d/init.d/httpd restart 1>&2
1031         fi
1032 fi
1033
1034 %post zlib
1035 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1036         echo "activating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1037         perl -pi -e 's|^;extension=zlib.so|extension=zlib.so|g' \
1038         %{_sysconfdir}/httpd/php.ini
1039 fi
1040 if [ -f /var/lock/subsys/httpd ]; then
1041         /etc/rc.d/init.d/httpd restart 1>&2
1042 fi
1043
1044 %preun zlib
1045 if [ "$1" = "0" ]; then
1046         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1047                 echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1048                 perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
1049                 %{_sysconfdir}/httpd/php.ini
1050         fi
1051         if [ -f /var/lock/subsys/httpd ]; then
1052                 /etc/rc.d/init.d/httpd restart 1>&2
1053         fi
1054 fi
1055
1056 %post bcmath
1057 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1058         echo "activating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1059         perl -pi -e 's|^;extension=bcmath.so|extension=bcmath.so|g' \
1060         %{_sysconfdir}/httpd/php.ini
1061 fi
1062 if [ -f /var/lock/subsys/httpd ]; then
1063         /etc/rc.d/init.d/httpd restart 1>&2
1064 fi
1065
1066 %preun bcmath
1067 if [ "$1" = "0" ]; then
1068         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1069                 echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1070                 perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
1071                 %{_sysconfdir}/httpd/php.ini
1072         fi
1073         if [ -f /var/lock/subsys/httpd ]; then
1074                 /etc/rc.d/init.d/httpd restart 1>&2
1075         fi      
1076 fi
1077
1078 %post exif
1079 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1080         echo "activating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1081         perl -pi -e 's|^;extension=exif.so|extension=exif.so|g' \
1082         %{_sysconfdir}/httpd/php.ini
1083 fi
1084 if [ -f /var/lock/subsys/httpd ]; then
1085         /etc/rc.d/init.d/httpd restart 1>&2
1086 fi
1087
1088 %preun exif
1089 if [ "$1" = "0" ]; then
1090         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1091                 echo "deactivating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1092                 perl -pi -e 's|^extension=exif.so|;extension=exif.so|g' \
1093                 %{_sysconfdir}/httpd/php.ini
1094         fi
1095         if [ -f /var/lock/subsys/httpd ]; then
1096                 /etc/rc.d/init.d/httpd restart 1>&2
1097         fi
1098 fi
1099
1100 %post recode
1101 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1102         echo "activating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1103         perl -pi -e 's|^;extension=recode.so|extension=recode.so|g' \
1104         %{_sysconfdir}/httpd/php.ini
1105 fi
1106 if [ -f /var/lock/subsys/httpd ]; then
1107         /etc/rc.d/init.d/httpd restart 1>&2
1108 fi
1109
1110 %preun recode
1111 if [ "$1" = "0" ]; then
1112         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1113                 echo "deactivating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1114                 perl -pi -e 's|^extension=recode.so|;extension=recode.so|g' \
1115                 %{_sysconfdir}/httpd/php.ini
1116         fi
1117         if [ -f /var/lock/subsys/httpd ]; then
1118                 /etc/rc.d/init.d/httpd restart 1>&2
1119         fi
1120 fi
1121
1122 #%post session
1123 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1124 #       echo "activating module 'session.so' in /etc/httpd/php.ini" 1>&2
1125 #       perl -pi -e 's|^;extension=session.so|extension=session.so|g' \
1126 #       %{_sysconfdir}/httpd/php.ini
1127 #fi
1128 #if [ -f /var/lock/subsys/httpd ]; then
1129 #       /etc/rc.d/init.d/httpd restart 1>&2
1130 #fi
1131 #
1132 #%preun session
1133 #if [ "$1" = "0" ]; then
1134 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1135 #       echo "deactivating module 'session.so' in /etc/httpd/php.ini" 1>&2
1136 #       perl -pi -e 's|^extension=session.so|;extension=session.so|g' \
1137 #       %{_sysconfdir}/httpd/php.ini
1138 #fi
1139 #if [ -f /var/lock/subsys/httpd ]; then
1140 #       /etc/rc.d/init.d/httpd restart 1>&2
1141 #fi
1142 #fi
1143
1144 %post gettext
1145 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1146         echo "activating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1147         perl -pi -e 's|^;extension=gettext.so|extension=gettext.so|g' \
1148         %{_sysconfdir}/httpd/php.ini
1149 fi
1150 if [ -f /var/lock/subsys/httpd ]; then
1151         /etc/rc.d/init.d/httpd restart 1>&2
1152 fi
1153
1154 %preun gettext
1155 if [ "$1" = "0" ]; then
1156         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1157                 echo "deactivating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1158                 perl -pi -e 's|^extension=gettext.so|;extension=gettext.so|g' \
1159                 %{_sysconfdir}/httpd/php.ini
1160         fi
1161         if [ -f /var/lock/subsys/httpd ]; then
1162                 /etc/rc.d/init.d/httpd restart 1>&2
1163         fi
1164 fi
1165
1166 %post snmp
1167 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1168         echo "activating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1169         perl -pi -e 's|^;extension=snmp.so|extension=snmp.so|g' \
1170         %{_sysconfdir}/httpd/php.ini
1171 fi
1172 if [ -f /var/lock/subsys/httpd ]; then
1173         /etc/rc.d/init.d/httpd restart 1>&2
1174 fi
1175
1176 %preun snmp
1177 if [ "$1" = "0" ]; then
1178         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1179                 echo "deactivating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1180                 perl -pi -e 's|^extension=snmp.so|;extension=snmp.so|g' \
1181                 %{_sysconfdir}/httpd/php.ini
1182         fi
1183         if [ -f /var/lock/subsys/httpd ]; then
1184                 /etc/rc.d/init.d/httpd restart 1>&2
1185         fi
1186 fi
1187
1188 %post imap
1189 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1190         echo "activating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1191         perl -pi -e 's|^;extension=imap.so|extension=imap.so|g' \
1192         %{_sysconfdir}/httpd/php.ini
1193 fi
1194 if [ -f /var/lock/subsys/httpd ]; then
1195         /etc/rc.d/init.d/httpd restart 1>&2
1196 fi
1197
1198 %preun imap
1199 if [ "$1" = "0" ]; then
1200         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1201                 echo "deactivating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1202                 perl -pi -e 's|^extension=imap.so|;extension=imap.so|g' \
1203                 %{_sysconfdir}/httpd/php.ini
1204         fi
1205         if [ -f /var/lock/subsys/httpd ]; then
1206                 /etc/rc.d/init.d/httpd restart 1>&2
1207         fi
1208 fi
1209
1210 %post ldap
1211 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1212         echo "activating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1213         perl -pi -e 's|^;extension=ldap.so|extension=ldap.so|g' \
1214         %{_sysconfdir}/httpd/php.ini
1215 fi
1216 if [ -f /var/lock/subsys/httpd ]; then
1217         /etc/rc.d/init.d/httpd restart 1>&2
1218 fi
1219
1220 %preun ldap
1221 if [ "$1" = "0" ]; then
1222         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1223                 echo "deactivating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1224                 perl -pi -e 's|^extension=ldap.so|;extension=ldap.so|g' \
1225                 %{_sysconfdir}/httpd/php.ini
1226         fi
1227         if [ -f /var/lock/subsys/httpd ]; then
1228                 /etc/rc.d/init.d/httpd restart 1>&2
1229         fi
1230 fi
1231
1232 %post sockets
1233 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1234         echo "activating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1235         perl -pi -e 's|^;extension=sockets.so|extension=sockets.so|g' \
1236         %{_sysconfdir}/httpd/php.ini
1237 fi
1238 if [ -f /var/lock/subsys/httpd ]; then
1239         /etc/rc.d/init.d/httpd restart 1>&2
1240 fi
1241
1242 %preun sockets
1243 if [ "$1" = "0" ]; then
1244         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1245                 echo "deactivating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1246                 perl -pi -e 's|^extension=sockets.so|;extension=sockets.so|g' \
1247                 %{_sysconfdir}/httpd/php.ini
1248         fi
1249         if [ -f /var/lock/subsys/httpd ]; then
1250                 /etc/rc.d/init.d/httpd restart 1>&2
1251         fi
1252 fi
1253
1254 %post mcrypt
1255 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1256         echo "activating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1257         perl -pi -e 's|^;extension=mcrypt.so|extension=mcrypt.so|g' \
1258         %{_sysconfdir}/httpd/php.ini
1259 fi
1260 if [ -f /var/lock/subsys/httpd ]; then
1261         /etc/rc.d/init.d/httpd restart 1>&2
1262 fi
1263
1264 %preun mcrypt
1265 if [ "$1" = "0" ]; then
1266         if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1267                 echo "deactivating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1268                 perl -pi -e 's|^extension=mcrypt.so|;extension=mcrypt.so|g' \
1269                 %{_sysconfdir}/httpd/php.ini
1270         fi
1271         if [ -f /var/lock/subsys/httpd ]; then
1272                 /etc/rc.d/init.d/httpd restart 1>&2
1273         fi
1274 fi
1275
1276 %clean
1277 rm -rf $RPM_BUILD_ROOT
1278
1279 %files
1280 %defattr(644,root,root,755)
1281 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1282 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz  
1283 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1284
1285 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
1286 %dir %{_pkglibdir}/php
1287
1288 #%attr(755,root,root) %{_libdir}/apache/php/*.so
1289
1290 /home/httpd/html/icons/*
1291
1292 %attr(755,root,root) %{_pkglibdir}/libphp4.so
1293
1294 %files mysql
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
1297
1298 %files pgsql
1299 %defattr(644,root,root,755)
1300 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
1301
1302 %{?oracle:%files oracle}
1303 %{?oracle:%defattr(644,root,root,755)}
1304 %{?oracle:%attr(755,root,root) %{_pkglibdir}/php/oracle.so}
1305
1306 %{?oci8:%files oci8}
1307 %{?oci8:%defattr(644,root,root,755)}
1308 %{?oci8:%attr(755,root,root) %{_pkglibdir}/php/oci8.so}
1309
1310 %files gd
1311 %defattr(644,root,root,755)
1312 %attr(755,root,root) %{_pkglibdir}/php/gd.so
1313
1314 %files xml
1315 %defattr(644,root,root,755)
1316 %attr(755,root,root) %{_pkglibdir}/php/xml.so
1317
1318 %files dba
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{_pkglibdir}/php/dba.so
1321
1322 %files dbase
1323 %defattr(644,root,root,755)
1324 %attr(755,root,root) %{_pkglibdir}/php/dbase.so
1325
1326 %files filepro
1327 %defattr(644,root,root,755)
1328 %attr(755,root,root) %{_pkglibdir}/php/filepro.so
1329
1330 %files pcre
1331 %defattr(644,root,root,755)
1332 %attr(755,root,root) %{_pkglibdir}/php/pcre.so
1333
1334 %files posix
1335 %defattr(644,root,root,755)
1336 %attr(755,root,root) %{_pkglibdir}/php/posix.so
1337
1338 %files sysvsem
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{_pkglibdir}/php/sysvsem.so
1341
1342 %files sysvshm
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{_pkglibdir}/php/sysvshm.so
1345
1346 %files yp
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{_pkglibdir}/php/yp.so
1349
1350 %files calendar
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_pkglibdir}/php/calendar.so
1353
1354 %files bcmath
1355 %defattr(644,root,root,755)
1356 %attr(755,root,root) %{_pkglibdir}/php/bcmath.so
1357
1358 %files ftp
1359 %defattr(644,root,root,755)
1360 %attr(755,root,root) %{_pkglibdir}/php/ftp.so
1361
1362 %files zlib
1363 %defattr(644,root,root,755)
1364 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
1365
1366 %files exif
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_pkglibdir}/php/exif.so
1369
1370 %files recode
1371 %defattr(644,root,root,755)
1372 %attr(755,root,root) %{_pkglibdir}/php/recode.so
1373
1374 #%files session
1375 #%defattr(644,root,root,755)
1376 #%attr(755,root,root) %{_pkglibdir}/php/session.so
1377
1378 %files gettext
1379 %defattr(644,root,root,755)
1380 %attr(755,root,root) %{_pkglibdir}/php/gettext.so
1381
1382 %files imap
1383 %defattr(644,root,root,755)
1384 %attr(755,root,root) %{_pkglibdir}/php/imap.so
1385
1386 %files snmp
1387 %defattr(644,root,root,755)
1388 %attr(755,root,root) %{_pkglibdir}/php/snmp.so
1389
1390 %files java
1391 %defattr(644,root,root,755)
1392 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
1393
1394 %files ldap
1395 %defattr(644,root,root,755) 
1396 %attr(755,root,root) %{_pkglibdir}/php/ldap.so
1397
1398 %files sockets
1399 %defattr(644,root,root,755) 
1400 %attr(755,root,root) %{_pkglibdir}/php/sockets.so
1401
1402 %files mcrypt
1403 %defattr(644,root,root,755) 
1404 %attr(755,root,root) %{_pkglibdir}/php/mcrypt.so
1405
1406 %files doc
1407 %defattr(644,root,root,755)
1408 /home/httpd/html/docs/php4-doc
This page took 0.124843 seconds and 3 git commands to generate.