Skip to content

Commit

Permalink
packaging: add bash_completion.d/* (#563)
Browse files Browse the repository at this point in the history
Part of #563.
  • Loading branch information
thiell committed Jan 23, 2025
1 parent 22a30f8 commit e853292
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include ChangeLog
include README.md
include COPYING.LGPLv2.1
include bash_completion.d/*
include conf/*.conf
include conf/*.example
include conf/clush.conf.d/README
Expand Down
12 changes: 12 additions & 0 deletions clustershell.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
%define py2 1
%endif

%{!?bash_completions_dir: %global bash_completions_dir %{_datadir}/bash-completion/completions}

%global srcname ClusterShell

Name: clustershell
Expand Down Expand Up @@ -149,6 +151,13 @@ install -p -m 0644 doc/extras/vim/syntax/clushconf.vim %{buildroot}/%{vimdatadir
install -p -m 0644 doc/extras/vim/syntax/groupsconf.vim %{buildroot}/%{vimdatadir}/syntax/
%{?suse_version:%fdupes %{buildroot}}

install -d %{buildroot}%{bash_completions_dir}
install -p -m 0644 bash_completion.d/cluset -t %{buildroot}%{bash_completions_dir}
install -p -m 0644 bash_completion.d/clush -t %{buildroot}%{bash_completions_dir}
pushd %{buildroot}%{bash_completions_dir}
ln -s cluset nodeset
popd

%if 0%{?rhel}
%clean
rm -rf %{buildroot}
Expand Down Expand Up @@ -228,6 +237,9 @@ rm -rf %{buildroot}
%{vimdatadir}/ftdetect/clustershell.vim
%{vimdatadir}/syntax/clushconf.vim
%{vimdatadir}/syntax/groupsconf.vim
%{bash_completions_dir}/cluset
%{bash_completions_dir}/clush
%{bash_completions_dir}/nodeset

%changelog
* Fri Sep 29 2023 Stephane Thiell <[email protected]> 1.9.2-1
Expand Down

0 comments on commit e853292

Please sign in to comment.