Name: carapace-bin Version: 1.6.6 Release: 1%{?dist} Summary: Multi-shell completion binary License: MIT URL: https://github.com/carapace-sh/carapace-bin Source0: https://github.com/carapace-sh/carapace-bin/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}.tar.gz.sha256 BuildRequires: golang >= 1.26 BuildRequires: coreutils %description carapace-bin provides argument completion for many CLI commands and can integrate with multiple shells. %prep cd %{_sourcedir} sha256sum -c %{SOURCE1} %autosetup %build export CGO_ENABLED=0 go build \ -buildmode=pie \ -compiler=gc \ -mod=readonly \ -trimpath \ -tags release \ -ldflags "-s -w -X main.version=%{version}" \ -o carapace \ ./cmd/carapace %install install -Dpm0755 carapace %{buildroot}%{_bindir}/carapace %files %license LICENSE %doc README.md %{_bindir}/carapace %changelog - Initial COPR package