Accepting request 1175016 from systemsmanagement:opentofu
OBS-URL: https://build.opensuse.org/request/show/1175016 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opentofu?expand=0&rev=16
This commit is contained in:
commit
33d6c5b9e6
@ -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
|
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
|
Source: %{name}-%{version}.tar.gz
|
||||||
Source1: vendor.tar.gz
|
Source1: vendor.tar.gz
|
||||||
Source99: opentofu-rpmlintrc
|
Source99: opentofu-rpmlintrc
|
||||||
|
BuildRequires: bash-completion
|
||||||
BuildRequires: golang-packaging
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: golang(API) >= 1.21
|
BuildRequires: golang(API) >= 1.21
|
||||||
# See: https://github.com/hashicorp/opentofu/issues/22807
|
# See: https://github.com/hashicorp/opentofu/issues/22807
|
||||||
@ -57,10 +58,15 @@ go build \
|
|||||||
%install
|
%install
|
||||||
# Install the binary.
|
# Install the binary.
|
||||||
install -D -m 0755 bin/%{executable_name} "%{buildroot}/%{_bindir}/%{executable_name}"
|
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
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%{_bindir}/%{executable_name}
|
%{_bindir}/%{executable_name}
|
||||||
|
%{_datadir}/bash-completion/completions/%{executable_name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user