diff --git a/sogo.spec b/sogo.spec index 044f9af60..ef5b7b99b 100644 --- a/sogo.spec +++ b/sogo.spec @@ -97,9 +97,7 @@ rm -fr ${RPM_BUILD_ROOT} # ****************************** build ******************************** %build . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh -./configure \ - --enable-strip \ - --disable-debug +./configure case %{_target_platform} in ppc64-*) @@ -222,8 +220,11 @@ if ! id sogo >& /dev/null; then /usr/sbin/adduser sogo > /dev/null 2>&1; fi /sbin/chkconfig --add sogod %preun -/sbin/chkconfig --del sogod -/sbin/service sogod stop > /dev/null 2>&1 +if [ "$1" == "0" ] +then + /sbin/chkconfig --del sogod + /sbin/service sogod stop > /dev/null 2>&1 +fi %postun if test "$1" = "0"