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: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}-%{version}.tar.gz.sha256 Source2: %{name}-%{version}-vendor.tar.gz Source3: %{name}-%{version}-vendor.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} sha256sum -c %{SOURCE3} %autosetup -n %{name}-%{version} tar -xzf %{SOURCE2} %build export CGO_ENABLED=0 export GOFLAGS="-mod=vendor -buildvcs=false" go build \ -buildmode=pie \ -compiler=gc \ -mod=vendor \ -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 * Thu May 28 2026 Eric Hernandez - 1.6.6-1 - Initial COPR package