Reduce redunancies in spec file

Remove redundant differences between SUSE and RHEL distributions.

refs #5818
This commit is contained in:
Tim Hardeck 2014-07-04 13:00:19 +02:00 committed by Gunnar Beutner
parent 1fcf746108
commit e7d3500ca7
1 changed files with 3 additions and 12 deletions

View File

@ -365,13 +365,6 @@ exit 0
%insserv_cleanup
%endif
if [ "$1" = "0" ]; then
# deinstallation of the package - remove enabled features
rm -rf %{_sysconfdir}/%{name}/features-enabled
fi
exit 0
%else
# rhel
@ -383,14 +376,15 @@ if [ "$1" -ge "1" ]; then
fi
%endif
%endif
# suse / rhel
if [ "$1" = "0" ]; then
# deinstallation of the package - remove enabled features
rm -rf %{_sysconfdir}/%{name}/features-enabled
fi
exit 0
%endif
# suse / rhel
%preun bin
# suse
@ -401,9 +395,6 @@ exit 0
%else
%stop_on_removal %{name}
%endif
if [ "$1" = "0" ]; then
%stop_on_removal %{name}
fi
exit 0