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