From: Elan Ruusamäe Date: Wed, 16 Feb 2005 18:18:32 +0000 (+0000) Subject: - restart apache in %postun rather in %preun X-Git-Tag: auto/ac/apache1-mod_jk-1_2_25-1~15 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_jk.git;a=commitdiff_plain;h=90a44e79d2a76db3e39a8c7aa599aaea864996e9 - restart apache in %postun rather in %preun - remove unneeded post,preun deps Changed files: apache1-mod_jk.spec -> 1.8 --- diff --git a/apache1-mod_jk.spec b/apache1-mod_jk.spec index 7e9164d..044d05e 100644 --- a/apache1-mod_jk.spec +++ b/apache1-mod_jk.spec @@ -4,7 +4,7 @@ Summary: Apache module that handles communication between Tomcat and Apache 1.3. Summary(pl): Modu³ Apache'a obs³uguj±cy komunikacjê miêdzy Tomcatem a Apachem 1.3.x Name: apache1-mod_%{mod_name} Version: 1.2.8 -Release: 1.1 +Release: 1.2 License: Apache Group: Networking/Daemons Source0: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-%{version}/jakarta-tomcat-connectors-%{version}-src.tar.gz @@ -19,10 +19,6 @@ BuildRequires: automake BuildRequires: autoconf BuildRequires: perl-base Requires: apache1 >= 1.3.33-2 -Requires(post,preun): %{apxs} -Requires(post,preun): %{__perl} -Requires(post,preun): grep -Requires(preun): fileutils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: jakarta-tomcat-connectors-jk @@ -71,7 +67,7 @@ if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi -%preun +%postun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2