mount/umount check without suse_version

OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=82
This commit is contained in:
Dr. Werner Fink 2016-12-15 09:39:43 +00:00 committed by Git OBS Bridge
parent fb77e6bcdb
commit 80f0d54997
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 15 09:37:52 UTC 2016 - werner@suse.de
- Detect if the completions for mount/umount have to be removed
for modern util-linux package but without using suse_version
-------------------------------------------------------------------
Thu Dec 15 07:49:36 UTC 2016 - werner@suse.de

View File

@ -59,6 +59,7 @@ BuildRequires: libxslt-tools
BuildRequires: pkg-config
%if %build_core
BuildRequires: cmake
BuildRequires: util-linux
Requires: bash
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -132,16 +133,18 @@ rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hexdump
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hwclock
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/ionice
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/look
%if 0%{?suse_version} <= 1320
if test -e %{_datadir}/bash-completion/completions/mount
then
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount
%endif
fi
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/newgrp
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/renice
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/rtcwake
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/su
%if 0%{?suse_version} <= 1320
if test -e %{_datadir}/bash-completion/completions/umount
then
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount
%endif
fi
%endif %build_core
%if %build_doc
pushd doc