Add bash-completion
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=224
This commit is contained in:
parent
5fe86c0867
commit
032859e39a
@ -56,6 +56,11 @@ Release: 0
|
|||||||
%bcond_with ruby_bindings
|
%bcond_with ruby_bindings
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %suse_version >= 1230
|
||||||
|
%bcond_without bash_completion
|
||||||
|
%else
|
||||||
|
%bcond_with bash_completion
|
||||||
|
%endif
|
||||||
# The following defines are overridden in the individual subpackages
|
# The following defines are overridden in the individual subpackages
|
||||||
%define _configure_fuse --disable-fuse
|
%define _configure_fuse --disable-fuse
|
||||||
%define _configure_lua --disable-lua
|
%define _configure_lua --disable-lua
|
||||||
@ -97,6 +102,9 @@ BuildRequires: attr-devel
|
|||||||
BuildRequires: augeas-devel
|
BuildRequires: augeas-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
%if %{with bash_completion}
|
||||||
|
BuildRequires: bash-completion >= 2.0
|
||||||
|
%endif
|
||||||
BuildRequires: file-devel
|
BuildRequires: file-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -739,6 +747,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files -n guestfsd
|
%files -n guestfsd
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{udevrulesdir}
|
%{udevrulesdir}
|
||||||
|
%if %{with bash_completion}
|
||||||
|
%{_datadir}/bash-completion
|
||||||
|
%endif
|
||||||
%{_sbindir}/guestfsd
|
%{_sbindir}/guestfsd
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user