Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package opentofu for openSUSE:Factory checked in at 2024-05-20 18:12:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opentofu (Old) and /work/SRC/openSUSE:Factory/.opentofu.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opentofu" Mon May 20 18:12:39 2024 rev:16 rq:1175016 version:1.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/opentofu/opentofu.changes 2024-05-09 13:13:10.108824861 +0200 +++ /work/SRC/openSUSE:Factory/.opentofu.new.1880/opentofu.changes 2024-05-20 18:14:00.671546487 +0200 @@ -1,0 +2,5 @@ +Fri May 17 06:57:26 UTC 2024 - Christian Goll <cg...@suse.com> + +- added global bash completion + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opentofu.spec ++++++ --- /var/tmp/diff_new_pack.LYNEzs/_old 2024-05-20 18:14:01.499576586 +0200 +++ /var/tmp/diff_new_pack.LYNEzs/_new 2024-05-20 18:14:01.499576586 +0200 @@ -28,6 +28,7 @@ Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source99: opentofu-rpmlintrc +BuildRequires: bash-completion BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.21 # See: https://github.com/hashicorp/opentofu/issues/22807 @@ -57,9 +58,14 @@ %install # Install the binary. install -D -m 0755 bin/%{executable_name} "%{buildroot}/%{_bindir}/%{executable_name}" +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ +cat > %{buildroot}%{_datadir}/bash-completion/completions/%{executable_name} <<EOF +complete -C %{_bindir}/%{executable_name} %{executable_name} +EOF %files %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/%{executable_name} +%{_datadir}/bash-completion/completions/%{executable_name}