]> git.pld-linux.org Git - packages/php4.git/blobdiff - php4.spec
- %service -q, because only apache package should say to start apache, not php packages
[packages/php4.git] / php4.spec
index 55dd63ae8ba1b006112a79bba512e9f70c7416a2..c77b2eea1673c1f1f4796f88f6daee271fde0dd2 100644 (file)
--- a/php4.spec
+++ b/php4.spec
@@ -73,7 +73,7 @@ Summary(ru):  PHP 
 Summary(uk):   PHP ÷ÅÒÓ¦§ 4 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
 Name:          php4
 Version:       4.4.0
-Release:       4%{?with_hardening:hardened}
+Release:       4.48%{?with_hardening:hardened}
 Epoch:         3
 Group:         Libraries
 License:       PHP
@@ -120,7 +120,7 @@ Patch27:    %{name}-db-shared.patch
 Patch28:       %{name}-sybase-fix.patch
 Patch29:       %{name}-lib64.patch
 Patch30:       %{name}-mnogosearch-fix.patch
-Patch31:       %{name}-stupidapache_version.patch 
+Patch31:       %{name}-stupidapache_version.patch
 Patch32:       %{name}-gd_imagerotate_enable.patch
 Patch33:       %{name}-uint32_t.patch
 Patch34:       %{name}-install_gd_headers.patch
@@ -1630,14 +1630,18 @@ sed -i -e 's#apu-config#apu-1-config#g' sapi/apache*/*.m4
 
 %build
 CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include"
+%if %{with apache2}
+# Apache2 CFLAGS. harmless for other SAPIs.
+CFLAGS="$CFLAGS $(%{_bindir}/apr-1-config --cppflags --includes) $(%{_bindir}/apu-1-config --includes)"
+%endif
 
 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
-./buildconf --force
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-touch _built-conf
+       ./buildconf --force
+       %{__libtoolize}
+       %{__aclocal}
+       %{__autoconf}
+       touch _built-conf
 fi
 PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
 
@@ -1650,11 +1654,6 @@ apxs1
 apxs2
 %endif
 "
-%if %{with apache2}
-# Apache2 CFLAGS. harmless for other SAPIs.
-CFLAGS="$CFLAGS $(%{_bindir}/apr-1-config --cppflags --includes) $(%{_bindir}/apu-1-config --includes)"
-%endif
-
 for sapi in $sapis; do
        [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
 
@@ -1902,8 +1901,26 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/{ncurses,pcntl,readline}.ini
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+# minimizing apache restarts logics:
+#
+# 1. we restart webserver after extension install only:
+# 1.1 if it's first install (post: $1 = 1)
+# 1.2 or uninstall of extension (postun: $1 == 0)
+# 2. the upgrades are handled by common package:
+# 2.1 webserver is restarted only if common package was upgraded (postun: $1 = 1)
+#
+# note that this creates "delay" when webserver is restarted, ie the
+# actual restart is done by *previous* version of php-common package
+# (the one being just postun'ed).
+#
+# the strict internal deps between extensions (and apache modules) and
+# common package are very important for all this to work. also conf.d
+# without conf.d this would be more complex.
+
 %post -n apache1-mod_php4
-%service apache restart
+if [ "$1" = "1" ]; then
+       %service -q apache restart
+fi
 
 %postun -n apache1-mod_php4
 if [ "$1" = "0" ]; then
@@ -1911,18 +1928,50 @@ if [ "$1" = "0" ]; then
 fi
 
 %post -n apache-mod_php4
-%service httpd restart
+if [ "$1" = "1" ]; then
+       %service -q httpd restart
+fi
 
 %postun -n apache-mod_php4
 if [ "$1" = "0" ]; then
        %service -q httpd restart
 fi
 
+# so tired of typing... so decided to create macros
+# macro called at extension post scriptlet
+%define        extension_post \
+if [ "$1" = "1" ]; then \
+       [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
+       [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart \
+fi
+
+# macro called at extension postun scriptlet
+%define        extension_postun \
+if [ "$1" = "0" ]; then \
+       [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
+       [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart \
+fi
+
 %post  common -p /sbin/ldconfig
-%postun        common -p /sbin/ldconfig
+%postun        common
+/sbin/ldconfig
+# extension_post here is all correct.
+%extension_post
+
+# compensate missing restart of earlier -common package.
+%triggerpostun common -- %{name}-common < 3:4.4.0-4.42
+[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
 
 %if %{with apache2}
-%triggerpostun -n apache-mod_php4 -- apache-mod_php4 < 3:4.4.0-2.16, php4 < 3:4.3.11-4.16
+%triggerpostun -- php4 < 3:4.3.11-4.16
+# for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
+if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
+       cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
+       mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
+fi
+# extra trigger, if they did not upgrade to 3:4.4.0-2 but still had old php-apache.ini
+%triggerpostun -n apache-mod_php4 -- apache-mod_php4 < 3:4.4.0-2.16
 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
        cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
 %endif
 
 %post bcmath
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun bcmath -- %{name}-bcmath < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bcmath %{_sysconfdir}/php.ini
+%postun bcmath
+%extension_postun
 
 %post bzip2
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun bzip2 -- %{name}-bzip2 < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bz2 %{_sysconfdir}/php.ini
+%postun bzip2
+%extension_postun
 
 %post calendar
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun calendar -- %{name}-calendar < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove calendar %{_sysconfdir}/php.ini
+%postun calendar
+%extension_postun
 
 %post cpdf
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun cpdf -- %{name}-cpdf < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove cpdf %{_sysconfdir}/php.ini
+%postun cpdf
+%extension_postun
 
 %post crack
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun crack -- %{name}-crack < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove crack %{_sysconfdir}/php.ini
+%postun crack
+%extension_postun
 
 %post ctype
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun ctype -- %{name}-ctype < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ctype %{_sysconfdir}/php.ini
+%postun ctype
+%extension_postun
 
 %post curl
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun curl -- %{name}-curl < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove curl %{_sysconfdir}/php.ini
+%postun curl
+%extension_postun
 
 %post db
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun db -- %{name}-db < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove db %{_sysconfdir}/php.ini
+%postun db
+%extension_postun
 
 %post dba
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun dba -- %{name}-dba < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dba %{_sysconfdir}/php.ini
+%postun dba
+%extension_postun
 
 %post dbase
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun dbase -- %{name}-dbase < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbase %{_sysconfdir}/php.ini
+%postun dbase
+%extension_postun
 
 %post dbx
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun dbx -- %{name}-dbx < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbx %{_sysconfdir}/php.ini
+%postun dbx
+%extension_postun
 
 %post dio
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun dio -- %{name}-dio < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dio %{_sysconfdir}/php.ini
+%postun dio
+%extension_postun
 
 %post domxml
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun domxml -- %{name}-domxml < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove domxml %{_sysconfdir}/php.ini
+%postun domxml
+%extension_postun
 
 %post exif
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun exif -- %{name}-exif < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove exif %{_sysconfdir}/php.ini
+%postun exif
+%extension_postun
 
 %post fdf
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun fdf -- %{name}-fdf < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fdf %{_sysconfdir}/php.ini
+%postun fdf
+%extension_postun
 
 %post filepro
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun filepro -- %{name}-filepro < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove filepro %{_sysconfdir}/php.ini
+%postun filepro
+%extension_postun
 
 %post fribidi
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun fribidi -- %{name}-fribidi < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fribidi %{_sysconfdir}/php.ini
+%postun fribidi
+%extension_postun
 
 %post ftp
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun ftp -- %{name}-ftp < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ftp %{_sysconfdir}/php.ini
+%postun ftp
+%extension_postun
 
 %post gd
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun gd -- %{name}-gd < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gd %{_sysconfdir}/php.ini
+%postun gd
+%extension_postun
 
 %post gettext
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun gettext -- %{name}-gettext < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gettext %{_sysconfdir}/php.ini
+%postun gettext
+%extension_postun
 
 %post gmp
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun gmp -- %{name}-gmp < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gmp %{_sysconfdir}/php.ini
+%postun gmp
+%extension_postun
 
 %post hyperwave
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun hyperwave -- %{name}-hyperwave < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove hyperwave %{_sysconfdir}/php.ini
+%postun hyperwave
+%extension_postun
 
 %post iconv
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun iconv -- %{name}-iconv < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove iconv %{_sysconfdir}/php.ini
+%postun iconv
+%extension_postun
 
 %post imap
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun imap -- %{name}-imap < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove imap %{_sysconfdir}/php.ini
+%postun imap
+%extension_postun
 
 %post interbase
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun interbase -- %{name}-interbase < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove interbase %{_sysconfdir}/php.ini
+%postun interbase
+%extension_postun
 
 %post java
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun java -- %{name}-java < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove java %{_sysconfdir}/php.ini
+%postun java
+%extension_postun
 
 %post ldap
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun ldap -- %{name}-ldap < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ldap %{_sysconfdir}/php.ini
+%postun ldap
+%extension_postun
 
 %post mbstring
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mbstring -- %{name}-mbstring < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mbstring %{_sysconfdir}/php.ini
+%postun mbstring
+%extension_postun
 
 %post mcal
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mcal -- %{name}-mcal < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcal %{_sysconfdir}/php.ini
+%postun mcal
+%extension_postun
 
 %post mcrypt
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mcrypt -- %{name}-mcrypt < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcrypt %{_sysconfdir}/php.ini
+%postun mcrypt
+%extension_postun
 
 %post mhash
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mhash -- %{name}-mhash < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mhash %{_sysconfdir}/php.ini
+%postun mhash
+%extension_postun
 
 %post mime_magic
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mime_magic -- %{name}-mime_magic < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mime_magic %{_sysconfdir}/php.ini
+%postun mime_magic
+%extension_postun
 
 %post ming
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun ming -- %{name}-ming < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ming %{_sysconfdir}/php.ini
+%postun ming
+%extension_postun
 
 %post mnogosearch
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mnogosearch -- %{name}-mnogosearch < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mnogosearch %{_sysconfdir}/php.ini
+%postun mnogosearch
+%extension_postun
 
 %post msession
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun msession -- %{name}-msession < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove msession %{_sysconfdir}/php.ini
+%postun msession
+%extension_postun
 
 %post mssql
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mssql -- %{name}-mssql < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mssql %{_sysconfdir}/php.ini
+%postun mssql
+%extension_postun
 
 %post mysql
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun mysql -- %{name}-mysql < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mysql %{_sysconfdir}/php.ini
+%postun mysql
+%extension_postun
 
 %post ncurses
 # NOTE: only for cli/cgi
@@ -2198,7 +2210,7 @@ if [ -f %{_sysconfdir}/php-cli.ini ]; then
        %{_sbindir}/php4-module-install install ncurses %{_sysconfdir}/php-cli.ini
 fi
 
-%preun ncurses 
+%preun ncurses
 if [ "$1" = "0" ]; then
        if [ -f %{_sysconfdir}/php-cgi.ini ]; then
                [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ncurses %{_sysconfdir}/php-cgi.ini
@@ -2209,35 +2221,28 @@ if [ "$1" = "0" ]; then
 fi
 
 %post oci8
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun oci8 -- %{name}-oci8 < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oci8 %{_sysconfdir}/php.ini
+%postun oci8
+%extension_postun
 
 %post odbc
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
-
-%triggerun odbc -- %{name}-odbc < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove odbc %{_sysconfdir}/php.ini
+%extension_post
 
-#%triggerun openssl -- %{name}-openssl < 3:4.4.0-2.1
-#[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove openssl %{_sysconfdir}/php.ini
+%postun odbc
+%extension_postun
 
 %post oracle
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun oracle -- %{name}-oracle < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oracle %{_sysconfdir}/php.ini
+%postun oracle
+%extension_postun
 
 %post overload
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun overload -- %{name}-overload < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove overload %{_sysconfdir}/php.ini
+%postun overload
+%extension_postun
 
 %post pcntl
 # NOTE: only for cli/cgi
@@ -2248,7 +2253,7 @@ if [ -f %{_sysconfdir}/php-cli.ini ]; then
        %{_sbindir}/php4-module-install install pcntl %{_sysconfdir}/php-cli.ini
 fi
 
-%preun pcntl 
+%preun pcntl
 if [ "$1" = "0" ]; then
        if [ -f %{_sysconfdir}/php-cgi.ini ]; then
                [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pcntl %{_sysconfdir}/php-cgi.ini
@@ -2259,46 +2264,40 @@ if [ "$1" = "0" ]; then
 fi
 
 %post pcre
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun pcre -- %{name}-pcre < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pcre %{_sysconfdir}/php.ini
+%postun pcre
+%extension_postun
 
 %post pdf
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun pdf -- %{name}-pdf < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pdf %{_sysconfdir}/php.ini
+%postun pdf
+%extension_postun
 
 %post pgsql
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun pgsql -- %{name}-pgsql < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pgsql %{_sysconfdir}/php.ini
+%postun pgsql
+%extension_postun
 
 %post posix
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun posix -- %{name}-posix < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove posix %{_sysconfdir}/php.ini
+%postun posix
+%extension_postun
 
 %post pspell
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun pspell -- %{name}-pspell < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pspell %{_sysconfdir}/php.ini
+%postun pspell
+%extension_postun
 
 %post qtdom
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun qtdom -- %{name}-qtdom < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove qtdom %{_sysconfdir}/php.ini
+%postun qtdom
+%extension_postun
 
 %post readline
 # NOTE: only for cli/cgi
@@ -2320,140 +2319,318 @@ if [ "$1" = "0" ]; then
 fi
 
 %post recode
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun recode -- %{name}-recode < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove recode %{_sysconfdir}/php.ini
+%postun recode
+%extension_postun
 
 %post session
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun session -- %{name}-session < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove session %{_sysconfdir}/php.ini
+%postun session
+%extension_postun
 
 %post shmop
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun shmop -- %{name}-shmop < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove shmop %{_sysconfdir}/php.ini
+%postun shmop
+%extension_postun
 
 %post snmp
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun snmp -- %{name}-snmp < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove snmp %{_sysconfdir}/php.ini
+%postun snmp
+%extension_postun
 
 %post sockets
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sockets -- %{name}-sockets < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sockets %{_sysconfdir}/php.ini
+%postun sockets
+%extension_postun
 
 %post sybase
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sybase -- %{name}-sybase < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sybase %{_sysconfdir}/php.ini
+%postun sybase
+%extension_postun
 
 %post sybase-ct
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sybase-ct -- %{name}-sybase-ct < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sybase_ct %{_sysconfdir}/php.ini
+%postun sybase-ct
+%extension_postun
 
 %post sysvmsg
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sysvmsg -- %{name}-sysvmsg < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvmsg %{_sysconfdir}/php.ini
+%postun sysvmsg
+%extension_postun
 
 %post sysvsem
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sysvsem -- %{name}-sysvsem < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvsem %{_sysconfdir}/php.ini
+%postun sysvsem
+%extension_postun
 
 %post sysvshm
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun sysvshm -- %{name}-sysvshm < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvshm %{_sysconfdir}/php.ini
+%postun sysvshm
+%extension_postun
 
 %post wddx
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun wddx -- %{name}-wddx < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove wddx %{_sysconfdir}/php.ini
+%postun wddx
+%extension_postun
 
 %post xml
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun xml -- %{name}-xml < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xml %{_sysconfdir}/php.ini
+%postun xml
+%extension_postun
 
 %post xmlrpc
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun xmlrpc -- %{name}-xmlrpc < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xmlrpc %{_sysconfdir}/php.ini
+%postun xmlrpc
+%extension_postun
 
 %post xslt
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun xslt -- %{name}-xslt < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xslt %{_sysconfdir}/php.ini
+%postun xslt
+%extension_postun
 
 %post yaz
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun yaz -- %{name}-yaz < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove yaz %{_sysconfdir}/php.ini
+%postun yaz
+%extension_postun
 
 %post yp
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun yp -- %{name}-yp < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove yp %{_sysconfdir}/php.ini
+%postun yp
+%extension_postun
 
 %post zip
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
 
-%triggerun zip -- %{name}-zip < 3:4.4.0-2.1
-[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove zip %{_sysconfdir}/php.ini
+%postun zip
+%extension_postun
 
 %post zlib
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+%extension_post
+
+%postun zlib
+%extension_postun
+
+# openssl trigger on common package. it removes shared openssl module from php.ini, if it was there.
+%triggerun common -- %{name}-openssl < 3:4.4.0-4
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove openssl %{_sysconfdir}/php.ini
+
+%triggerun bcmath -- %{name}-bcmath < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bcmath %{_sysconfdir}/php.ini
+
+%triggerun bzip2 -- %{name}-bzip2 < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bz2 %{_sysconfdir}/php.ini
+
+%triggerun calendar -- %{name}-calendar < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove calendar %{_sysconfdir}/php.ini
+
+%triggerun cpdf -- %{name}-cpdf < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove cpdf %{_sysconfdir}/php.ini
+
+%triggerun crack -- %{name}-crack < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove crack %{_sysconfdir}/php.ini
+
+%triggerun ctype -- %{name}-ctype < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ctype %{_sysconfdir}/php.ini
+
+%triggerun curl -- %{name}-curl < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove curl %{_sysconfdir}/php.ini
+
+%triggerun db -- %{name}-db < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove db %{_sysconfdir}/php.ini
+
+%triggerun dba -- %{name}-dba < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dba %{_sysconfdir}/php.ini
+
+%triggerun dbase -- %{name}-dbase < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbase %{_sysconfdir}/php.ini
+
+%triggerun dbx -- %{name}-dbx < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbx %{_sysconfdir}/php.ini
+
+%triggerun dio -- %{name}-dio < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dio %{_sysconfdir}/php.ini
+
+%triggerun domxml -- %{name}-domxml < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove domxml %{_sysconfdir}/php.ini
+
+%triggerun exif -- %{name}-exif < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove exif %{_sysconfdir}/php.ini
+
+%triggerun fdf -- %{name}-fdf < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fdf %{_sysconfdir}/php.ini
+
+%triggerun filepro -- %{name}-filepro < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove filepro %{_sysconfdir}/php.ini
+
+%triggerun fribidi -- %{name}-fribidi < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fribidi %{_sysconfdir}/php.ini
+
+%triggerun ftp -- %{name}-ftp < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ftp %{_sysconfdir}/php.ini
+
+%triggerun gd -- %{name}-gd < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gd %{_sysconfdir}/php.ini
+
+%triggerun gettext -- %{name}-gettext < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gettext %{_sysconfdir}/php.ini
+
+%triggerun gmp -- %{name}-gmp < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gmp %{_sysconfdir}/php.ini
+
+%triggerun hyperwave -- %{name}-hyperwave < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove hyperwave %{_sysconfdir}/php.ini
+
+%triggerun iconv -- %{name}-iconv < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove iconv %{_sysconfdir}/php.ini
+
+%triggerun imap -- %{name}-imap < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove imap %{_sysconfdir}/php.ini
+
+%triggerun interbase -- %{name}-interbase < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove interbase %{_sysconfdir}/php.ini
+
+%triggerun java -- %{name}-java < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove java %{_sysconfdir}/php.ini
+
+%triggerun ldap -- %{name}-ldap < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ldap %{_sysconfdir}/php.ini
+
+%triggerun mbstring -- %{name}-mbstring < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mbstring %{_sysconfdir}/php.ini
+
+%triggerun mcal -- %{name}-mcal < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcal %{_sysconfdir}/php.ini
+
+%triggerun mcrypt -- %{name}-mcrypt < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcrypt %{_sysconfdir}/php.ini
+
+%triggerun mhash -- %{name}-mhash < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mhash %{_sysconfdir}/php.ini
+
+%triggerun mime_magic -- %{name}-mime_magic < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mime_magic %{_sysconfdir}/php.ini
+
+%triggerun ming -- %{name}-ming < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ming %{_sysconfdir}/php.ini
+
+%triggerun mnogosearch -- %{name}-mnogosearch < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mnogosearch %{_sysconfdir}/php.ini
+
+%triggerun msession -- %{name}-msession < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove msession %{_sysconfdir}/php.ini
+
+%triggerun mssql -- %{name}-mssql < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mssql %{_sysconfdir}/php.ini
+
+%triggerun mysql -- %{name}-mysql < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mysql %{_sysconfdir}/php.ini
+
+%triggerun oci8 -- %{name}-oci8 < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oci8 %{_sysconfdir}/php.ini
+
+%triggerun odbc -- %{name}-odbc < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove odbc %{_sysconfdir}/php.ini
+
+%triggerun oracle -- %{name}-oracle < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oracle %{_sysconfdir}/php.ini
+
+%triggerun overload -- %{name}-overload < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove overload %{_sysconfdir}/php.ini
+
+%triggerun pcre -- %{name}-pcre < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pcre %{_sysconfdir}/php.ini
+
+%triggerun pdf -- %{name}-pdf < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pdf %{_sysconfdir}/php.ini
+
+%triggerun pgsql -- %{name}-pgsql < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pgsql %{_sysconfdir}/php.ini
+
+%triggerun posix -- %{name}-posix < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove posix %{_sysconfdir}/php.ini
+
+%triggerun pspell -- %{name}-pspell < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pspell %{_sysconfdir}/php.ini
+
+%triggerun qtdom -- %{name}-qtdom < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove qtdom %{_sysconfdir}/php.ini
+
+%triggerun recode -- %{name}-recode < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove recode %{_sysconfdir}/php.ini
+
+%triggerun session -- %{name}-session < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove session %{_sysconfdir}/php.ini
+
+%triggerun shmop -- %{name}-shmop < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove shmop %{_sysconfdir}/php.ini
+
+%triggerun snmp -- %{name}-snmp < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove snmp %{_sysconfdir}/php.ini
+
+%triggerun sockets -- %{name}-sockets < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sockets %{_sysconfdir}/php.ini
+
+%triggerun sybase -- %{name}-sybase < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sybase %{_sysconfdir}/php.ini
+
+%triggerun sybase-ct -- %{name}-sybase-ct < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sybase_ct %{_sysconfdir}/php.ini
+
+%triggerun sysvmsg -- %{name}-sysvmsg < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvmsg %{_sysconfdir}/php.ini
+
+%triggerun sysvsem -- %{name}-sysvsem < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvsem %{_sysconfdir}/php.ini
+
+%triggerun sysvshm -- %{name}-sysvshm < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove sysvshm %{_sysconfdir}/php.ini
+
+%triggerun wddx -- %{name}-wddx < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove wddx %{_sysconfdir}/php.ini
+
+%triggerun xml -- %{name}-xml < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xml %{_sysconfdir}/php.ini
+
+%triggerun xmlrpc -- %{name}-xmlrpc < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xmlrpc %{_sysconfdir}/php.ini
+
+%triggerun xslt -- %{name}-xslt < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove xslt %{_sysconfdir}/php.ini
+
+%triggerun yaz -- %{name}-yaz < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove yaz %{_sysconfdir}/php.ini
+
+%triggerun yp -- %{name}-yp < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove yp %{_sysconfdir}/php.ini
+
+%triggerun zip -- %{name}-zip < 3:4.4.0-2.1
+[ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove zip %{_sysconfdir}/php.ini
 
 %triggerun zlib -- %{name}-zlib < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove zlib %{_sysconfdir}/php.ini
 
-#%files
-#%defattr(644,root,root,755)
-
 %if %{with apache1}
 %files -n apache1-mod_php4
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/apache/conf.d/*_mod_php4.conf
-%attr(755,root,root) %{_libdir}/apache1/libphp4.so
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-apache.ini
+%attr(755,root,root) %{_libdir}/apache1/libphp4.so
 /home/services/apache/icons/*
 %endif
 
@@ -2461,8 +2638,8 @@ fi
 %files -n apache-mod_php4
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/httpd/httpd.conf/*_mod_php4.conf
-%attr(755,root,root) %{_libdir}/apache/libphp4.so
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-apache2handler.ini
+%attr(755,root,root) %{_libdir}/apache/libphp4.so
 /home/services/httpd/icons/*
 %endif
 
This page took 0.09681 seconds and 4 git commands to generate.