Accepting request 1174776 from home:mslacken:branches:systemsmanagement:opentofu
- added global bash completion OBS-URL: https://build.opensuse.org/request/show/1174776 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:opentofu/opentofu?expand=0&rev=35
This commit is contained in:
parent
c45f6dcd11
commit
7b13ba964b
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 06:57:26 UTC 2024 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
- added global bash completion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 08 16:22:29 UTC 2024 - opensuse_buildservice@ojkastl.de
|
||||
|
||||
|
@ -28,6 +28,7 @@ URL: https://github.com/opentofu/opentofu
|
||||
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,10 +58,15 @@ go build \
|
||||
%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}
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user