]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- release 2, built against libpng >= 1.0.8
[packages/php.git] / php.spec
index d96a687cf6b0b7aea1857855ed18227ae9fb7b43..e9392cfbd7234fba2d2f7ac67d8a6b82a5d914f8 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -2,13 +2,13 @@ Summary:      The PHP HTML-embedded scripting language for use with Apache.
 Summary(fr):   Le langage de script embarque-HTML PHP pour Apache.
 Summary(pl):   Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
 Name:          php
-Version:       4.0RC2
-Release:       1
+Version:       4.0.1pl2
+Release: 2
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-License:       The PHP license (see "LICENSE" file included in distribution)
-Source0:       ftp://ftp.php.net/pub/version4/downloads/%{name}-%{version}.tar.gz
+License:       The PHP license (see "LICENSE" file included in distribution)
+Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.gz
 Source1:       FAQ.php
 Source2:       php.ini
 Source3:       zend.gif
@@ -25,16 +25,16 @@ BuildRequires:      apache(EAPI)-devel
 BuildRequires: zip
 BuildRequires: bison
 BuildRequires: flex
-BuildRequires: db-devel >= 3.0.55
+#BuildRequires:        db-devel >= 3.0.55
 BuildRequires: freetype-devel
 BuildRequires: gd-devel
 BuildRequires: gdbm-devel
 BuildRequires: imap-devel >= 4.7b-1
 # I think jdk is better for java
-# BuildRequires: jdk
+# BuildRequires:       jdk
 BuildRequires: kaffe-devel
 BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel
+BuildRequires: libpng >= 1.0.8
 BuildRequires: libtiff-devel
 BuildRequires: mm-devel
 BuildRequires: openldap-devel
@@ -44,8 +44,9 @@ BuildRequires:        pdflib-devel >= 3.0
 BuildRequires: postgresql-devel
 BuildRequires: recode-devel >= 3.5
 BuildRequires: t1lib-devel
-BuildRequires: unixODBC-devel
+# BuildRequires:       unixODBC-devel
 BuildRequires: zlib-devel >= 1.0.9
+BuildRequires: ucd-snmp-devel >= 4.1
 #BuildRequires:        libmcrypt-devel
 Requires:      apache(EAPI) >= 1.3.9
 Prereq:                /usr/sbin/apxs
@@ -54,40 +55,42 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _pkglibdir      %{_libdir}/apache
 
 %description
-PHP is an HTML-embedded scripting language.  PHP attempts to make it easy
-for developers to write dynamically generated web pages.  PHP also offers
-built-in database integration for several commercial and non-commercial
-database management systems, so writing a database-enabled web page with
-PHP is fairly simple.  The most common use of PHP coding is probably as a
-replacement for CGI scripts.  The mod_php module enables the Apache web
-server to understand and process the embedded PHP language in web pages.
-This package contains PHP version %{version}.  If you use applications which
-specifically rely on PHP/FI (PHP v2 and earlier), you should instead install
-the PHP/FI module contained in the phpfi package.  If you're just starting
-with PHP, you should install this package.  You'll also need to install
-the Apache web server.
+PHP is an HTML-embedded scripting language. PHP attempts to make it
+easy for developers to write dynamically generated web pages. PHP also
+offers built-in database integration for several commercial and
+non-commercial database management systems, so writing a
+database-enabled web page with PHP is fairly simple. The most common
+use of PHP coding is probably as a replacement for CGI scripts. The
+mod_php module enables the Apache web server to understand and process
+the embedded PHP language in web pages. This package contains PHP
+version %{version}. If you use applications which specifically rely on
+PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
+module contained in the phpfi package. If you're just starting with
+PHP, you should install this package. You'll also need to install the
+Apache web server.
 
 %description -l fr
-PHP est un langage de script embarque dans le HTM. PHP essaye de rendre
-simple aux developpeurs d'ecrire des pages web generees dynamiquement.
-PHP incorpore egalement une integration avec plusieurs systemes de gestion
-de bases de donnees commerciaux et non-connerciaux, qui rent facile
-la creation de pages web liees avec des bases de donnees. L'utilisation la
-plus commune de PHP est probablement en remplacement de scripts CGI. Le
-module mod_php permet au serveur web apache de comprendre et de traiter le
-langage PHP integre dans des pages web.
-Ce package contient PHP version %{version}. Si vous utilisez des
-applications qui utilisent specifiquement PHP/FI, vous devrez installer le
-module PHP/FI inclus dans le package mod_php. Si vous debutez avec PHP, vous
-devriez installer ce package. Vous aurez egalement besoin d'installer le
+PHP est un langage de script embarque dans le HTM. PHP essaye de
+rendre simple aux developpeurs d'ecrire des pages web generees
+dynamiquement. PHP incorpore egalement une integration avec plusieurs
+systemes de gestion de bases de donnees commerciaux et
+non-connerciaux, qui rent facile la creation de pages web liees avec
+des bases de donnees. L'utilisation la plus commune de PHP est
+probablement en remplacement de scripts CGI. Le module mod_php permet
+au serveur web apache de comprendre et de traiter le langage PHP
+integre dans des pages web. Ce package contient PHP version
+%{version}. Si vous utilisez des applications qui utilisent
+specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
+dans le package mod_php. Si vous debutez avec PHP, vous devriez
+installer ce package. Vous aurez egalement besoin d'installer le
 serveur web Apache.
 
 %description -l pl
-PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w plikach
-HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP (jak np.
-Apache), który interpretuje te polecenia.  Umo¿liwia to tworzenie
-dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona zosta³a
-z jêzyków: C, Java i Perl.
+PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
+plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
+(jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
+tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
+zosta³a z jêzyków: C, Java i Perl.
 
 %package mysql
 Summary:       MySQL database module for PHP4
@@ -95,12 +98,12 @@ Summary(pl):        Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description mysql
 This is a dynamic shared object (DSO) for Apache that will add MySQL
-database support to PHP4.  If you need back-end support for MySQL,
-you should install this package in addition to the main %{name} package.
+database support to PHP4. If you need back-end support for MySQL, you
+should install this package in addition to the main %{name} package.
 
 %description mysql -l pl
 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
@@ -112,30 +115,32 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description pgsql
-This is a dynamic shared object (DSO) for Apache that will add PostgreSQL
-database support to PHP4.  If you need back-end support for PostgreSQL,
-you should install this package in addition to the main %{name} package.
+This is a dynamic shared object (DSO) for Apache that will add
+PostgreSQL database support to PHP4. If you need back-end support for
+PostgreSQL, you should install this package in addition to the main
+%{name} package.
 
 %description pgsql -l pl
 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
 
-#%package gd
-#Summary:      GD extension module for PHP4
-#Summary:      Modu³ GD dla PHP4
-#Group:                Libraries
-#Group(fr):    Librairies
-#Group(pl):    Biblioteki
-#Requires:     %{name} = %{version}
-#
-#%description gd
-#This is a dynamic shared object (DSO) for Apache that will add GD
-#support to PHP4. You should install this package in addition to the main
-#%{name} package if you want to create and manipulate images with PHP.
-#
-#%description gd -l pl
+%package gd
+Summary:       GD extension module for PHP4
+Summary:       Modu³ GD dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description gd
+This is a dynamic shared object (DSO) for Apache that will add GD
+support to PHP4. You should install this package in addition to the
+main %{name} package if you want to create and manipulate images with
+PHP.
+
+%description gd -l pl
 
 %package java
 Summary:       Java extension module for PHP4
@@ -143,7 +148,7 @@ Summary(pl):        Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description java
 This is a dynamic shared object (DSO) for Apache that will add JAVA
@@ -158,14 +163,14 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description xml
 This is a dynamic shared object (DSO) for Apache that will add XML
 support to PHP4. This extension lets you create XML parsers and then
-define handlers for different XML events. If you want to be able to parse
-XML documents you should install this package in addition to the main 
-%{name} package.
+define handlers for different XML events. If you want to be able to
+parse XML documents you should install this package in addition to the
+main %{name} package.
 
 #%description xml -l pl
 
@@ -175,11 +180,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description dba
-This is a dynamic shared object (DSO) for Apache that will add flat-file databases (DBA)
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add
+flat-file databases (DBA) support to PHP4.
 
 #%description dba -l pl
 
@@ -189,11 +194,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description calendar
-This is a dynamic shared object (DSO) for Apache that will add calendar
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add
+calendar support to PHP4.
 
 #%description calendar -l pl
 
@@ -203,11 +208,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description dbase
 This is a dynamic shared object (DSO) for Apache that will add DBase
-support to PHP4. 
+support to PHP4.
 
 #%description dbase -l pl
 
@@ -217,11 +222,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description filepro
 This is a dynamic shared object (DSO) for Apache that will add FilePro
-support to PHP4. 
+support to PHP4.
 
 #%description filepro -l pl
 
@@ -231,11 +236,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description posix
-This is a dynamic shared object (DSO) for Apache that will add POSIX functions
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add POSIX
+functions support to PHP4.
 
 #%description posix -l pl
 
@@ -245,11 +250,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description pcre
-This is a dynamic shared object (DSO) for Apache that will add Perl Compatible Regular Expression
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add Perl
+Compatible Regular Expression support to PHP4.
 
 #%description pcre -l pl
 
@@ -259,11 +264,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description sysvsem
-This is a dynamic shared object (DSO) for Apache that will add SysV semafores
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add SysV
+semafores support to PHP4.
 
 #%description sysvsem -l pl
 
@@ -273,11 +278,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description sysvshm
-This is a dynamic shared object (DSO) for Apache that will add SysV Shared Memory
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add SysV
+Shared Memory support to PHP4.
 
 #%description sysvshm -l pl
 
@@ -287,11 +292,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description yp
-This is a dynamic shared object (DSO) for Apache that will add NIS (Yellow Pages)
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add NIS
+(Yellow Pages) support to PHP4.
 
 #%description yp -l pl
 
@@ -301,11 +306,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description bcmath
-This is a dynamic shared object (DSO) for Apache that will add bc style precision math functions
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add bc
+style precision math functions support to PHP4.
 
 #%description bcmath -l pl
 
@@ -315,11 +320,11 @@ Summary(pl):      Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description ftp
 This is a dynamic shared object (DSO) for Apache that will add FTP
-support to PHP4. 
+support to PHP4.
 
 #%description ftp -l pl
 
@@ -329,26 +334,113 @@ Summary(pl):     Modu
 Group:         Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}
 
 %description zlib
-This is a dynamic shared object (DSO) for Apache that will add commpresion (zlib)
-support to PHP4. 
+This is a dynamic shared object (DSO) for Apache that will add
+commpresion (zlib) support to PHP4.
 
 #%description zlib -l pl
 
+%package exif
+Summary:       exifextension module for PHP4
+Summary(pl):   Modu³ exif dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description exif
+This is a dynamic shared object (DSO) for Apache that will add
+exif support to PHP4.
+
+#%description exif -l pl
+
+%package recode
+Summary:       recodeextension module for PHP4
+Summary(pl):   Modu³ recode dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description recode
+This is a dynamic shared object (DSO) for Apache that will add
+recode support to PHP4.
+
+#%description recode -l pl
+
+#%package session
+#Summary:      sessionextension module for PHP4
+#Summary(pl):  Modu³ session dla PHP4
+#Group:                Libraries
+#Group(fr):    Librairies
+#Group(pl):    Biblioteki
+#Requires:     %{name} = %{version}
+#
+#%description session
+#This is a dynamic shared object (DSO) for Apache that will add
+#session support to PHP4.
+#
+#%description session -l pl
+
+%package gettext
+Summary:       gettextextension module for PHP4
+Summary(pl):   Modu³ gettext dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description gettext
+This is a dynamic shared object (DSO) for Apache that will add
+gettext support to PHP4.
+
+#%description gettext -l pl
+
+
+%package snmp
+Summary:       snmpextension module for PHP4
+Summary(pl):   Modu³ snmp dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description snmp
+This is a dynamic shared object (DSO) for Apache that will add
+snmp support to PHP4.
+
+#%description snmp -l pl
+
+%package imap
+Summary:       imapextension module for PHP4
+Summary(pl):   Modu³ imap dla PHP4
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Requires:      %{name} = %{version}
+
+%description imap
+This is a dynamic shared object (DSO) for Apache that will add
+imap support to PHP4.
+
+#%description imap -l pl
 
 
 %package doc
-Summary:     Online manual for PHP4
-Summary(pl): Dokumentacja dla PHP4
-Group:       Networking/Daemons
+Summary:       Online manual for PHP4
+Summary(pl):   Dokumentacja dla PHP4
+Group:         Networking/Daemons
 
 %description doc
-Comprehensive documentation for PHP4, viewable through your web server, too!
+Comprehensive documentation for PHP4, viewable through your web
+server, too!
 
 %description doc -l pl
-Dokumentacja dla pakietu PHP4.  Mo¿na j± równie¿ ogl±daæ poprzez serwer WWW.
+Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
+WWW.
+
 %prep
 %setup  -q -a 5
 %patch0 -p1
@@ -362,7 +454,7 @@ LDFLAGS="-s"; export LDFLAGS
 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
 ./buildconf
 %configure \
-       --with-apxs=/usr/sbin/apxs \
+       --with-apxs=%{_sbindir}/apxs \
        --with-config-file-path=%{_sysconfdir}/httpd \
        --with-exec-dir=%{_bindir} \
        --disable-debug \
@@ -373,31 +465,35 @@ CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
        --enable-trans-sid \
        --enable-sysvsem=shared \
        --enable-sysvshm=shared \
+       --enable-session \
+       --enable-exif=shared \
        --with-regex=system \
-       --with-gettext \
+       --with-gettext=shared \
        --with-ldap \
        --with-mysql=shared \
-       --with-mysql-sock=/var/state/mysql/mysql.sock \
-       --with-gd \
+       --with-mysql-sock=/var/lib/mysql/mysql.sock \
+       --with-gd=shared \
        --with-dbase=shared \
        --with-filepro=shared \
        --enable-ftp=shared \
        --with-hyperwave \
-       --with-pdflib \
+       --with-pdflib=shared \
+       --with-cpdflib=shared \
        --with-java \
        --with-pgsql=shared,/usr \
-       --with-imap \
+       --with-imap=shared \
        --enable-bcmath=shared \
        --enable-calendar=shared \
        --with-mm \
        --with-pcre-regex=shared \
        --enable-posix=shared \
-       --enable-session \
        --with-ttf \
        --with-t1lib \
-       --with-recode \
+       --with-recode=shared \
        --enable-ucd-snmp-hack \
        --enable-dba=shared \
+       --with-snmp=shared \
+       --with-openssl \
        --with-gdbm \
        --with-ndbm \
        --enable-yp=shared \
@@ -408,23 +504,22 @@ CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
 
 #      --with-db3 \
 
-#      --with-unixODBC \
 # snmp won
-#      --with-snmp=shared \
-#      --with-openssl \
 
-#Syntax error on line 228 of /etc/httpd/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: phpi_get_le_gd
+#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
 # Solution: make pdf and cpdf shared
 #      --with-gd=shared \
 
+#      --with-unixODBC \
+
 # This option get trouble with imap
 #      --enable-versioning \
 
 # To old/new libmcrypt ?
 #      --with-mcrypt=shared \
-#      --with-dom=/usr/X11R6 \
+# --with-dom=%{_prefix}/X11R6 \
 
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -482,7 +577,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun mysql
+%preun mysql
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
@@ -502,7 +597,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun pgsql
+%preun pgsql
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
@@ -512,25 +607,25 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-#%post gd
-#if [ -f %{_sysconfdir}/httpd/php.ini ]; then
-#      echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
-#      perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
-#      %{_sysconfdir}/httpd/php.ini
-#fi
-#if [ -f /var/lock/subsys/httpd ]; then
-#      /etc/rc.d/init.d/httpd restart 1>&2
-#fi
-#
-#%postun gd
-#if [ -f %{_sysconfdir}/httpd/php.ini ]; then
-#      echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
-#      perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
-#      %{_sysconfdir}/httpd/php.ini
-#fi
-#if [ -f /var/lock/subsys/httpd ]; then
-#      /etc/rc.d/init.d/httpd restart 1>&2
-#fi
+%post gd
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun gd
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
 
 %post xml
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
@@ -542,7 +637,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun xml
+%preun xml
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
@@ -562,7 +657,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun dba
+%preun dba
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
@@ -582,7 +677,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun calendar
+%preun calendar
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
@@ -602,7 +697,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun dbase
+%preun dbase
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
@@ -623,7 +718,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun java
+%preun java
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
@@ -643,7 +738,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun filepro
+%preun filepro
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
@@ -663,7 +758,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun pcre
+%preun pcre
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
@@ -683,7 +778,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun posix
+%preun posix
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
@@ -703,7 +798,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun sysvsem
+%preun sysvsem
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
@@ -723,7 +818,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun sysvshm
+%preun sysvshm
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
@@ -743,7 +838,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun yp
+%preun yp
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
@@ -763,7 +858,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun ftp
+%preun ftp
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
@@ -783,7 +878,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun zlib
+%preun zlib
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
@@ -803,7 +898,7 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
-%postun bcmath
+%preun bcmath
 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
        echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
        perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
@@ -813,7 +908,125 @@ if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
+%post exif
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'exif.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=exif.so|extension=exif.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
 
+%preun exif
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'exif.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=exif.so|;extension=exif.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%post recode
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'recode.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=recode.so|extension=recode.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun recode
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'recode.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=recode.so|;extension=recode.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+#%post session
+#if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+#      echo "activating module 'session.so' in /etc/httpd/php.ini" 1>&2
+#      perl -pi -e 's|^;extension=session.so|extension=session.so|g' \
+#      %{_sysconfdir}/httpd/php.ini
+#fi
+#if [ -f /var/lock/subsys/httpd ]; then
+#      /etc/rc.d/init.d/httpd restart 1>&2
+#fi
+#
+#%preun session
+#if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+#      echo "deactivating module 'session.so' in /etc/httpd/php.ini" 1>&2
+#      perl -pi -e 's|^extension=session.so|;extension=session.so|g' \
+#      %{_sysconfdir}/httpd/php.ini
+#fi
+#if [ -f /var/lock/subsys/httpd ]; then
+#      /etc/rc.d/init.d/httpd restart 1>&2
+#fi
+
+%post gettext
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=gettext.so|extension=gettext.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun gettext
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=gettext.so|;extension=gettext.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%post snmp
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=snmp.so|extension=snmp.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun snmp
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=snmp.so|;extension=snmp.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%post imap
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "activating module 'imap.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^;extension=imap.so|extension=imap.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun imap
+if [ -f %{_sysconfdir}/httpd/php.ini ]; then
+       echo "deactivating module 'imap.so' in /etc/httpd/php.ini" 1>&2
+       perl -pi -e 's|^extension=imap.so|;extension=imap.so|g' \
+       %{_sysconfdir}/httpd/php.ini
+fi
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -840,9 +1053,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
 
-#%files gd
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{_pkglibdir}/php/gd.so
+%files gd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/gd.so
 
 %files xml
 %defattr(644,root,root,755)
@@ -896,9 +1109,34 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
 
+%files exif
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/exif.so
+
+%files recode
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/recode.so
+
+#%files session
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{_pkglibdir}/php/session.so
+
+%files gettext
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/gettext.so
+
+%files imap
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/imap.so
+
+%files snmp
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/php/snmp.so
+
 %files java
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
 
 %files doc
+%defattr(644,root,root,755)
 /home/httpd/html/docs/php4-doc
This page took 0.092907 seconds and 4 git commands to generate.