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

View File

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