%undefine _debugsource_packages %global goipath atomgit.com/hust-open-atom-club/atomgit-cli %global gomodulesmode GO111MODULE=on %global currentgoldflags -X %{goipath}/internal/version.Version=v%{version} Name: atomgit-cli Version: 0.7.4 Release: 1%{?dist} Summary: Command line interface for AtomGit License: Apache-2.0 AND BSD-3-Clause AND MulanPSL-2.0 URL: https://atomgit.com/hust-open-atom-club/atomgit-cli Source0: https://raw.atomgit.com/hust-open-atom-club/atomgit-cli/archive/refs/heads/v%{version}.tar.gz # AtomGit exposes tag archives under the heads/ path. Source1: %{name}-%{version}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: golang >= 1.26.8 BuildRequires: go-rpm-macros BuildRequires: go-vendor-tools >= 0.12.0 BuildRequires: gcc BuildRequires: git-core Requires: git-core Recommends: xdg-utils %description AtomGit CLI is a command line client for AtomGit. %prep %autosetup -n atomgit-cli-v%{version} -p1 -a1 %generate_buildrequires %go_vendor_license_buildrequires -c %{SOURCE2} %build export GOTOOLCHAIN=local export GOFLAGS=-mod=vendor export GOPROXY=off export GOSUMDB=off %gobuild -o ag-cli ./cmd/ag-cli %check export GOTOOLCHAIN=local export GOFLAGS=-mod=vendor export GOPROXY=off export GOSUMDB=off %gocheck2 -F %go_vendor_license_check -c %{SOURCE2} %install install -Dpm0755 ag-cli %{buildroot}%{_bindir}/ag-cli %go_vendor_license_install -c %{SOURCE2} %files -f %{go_vendor_license_filelist} %doc README.md CHANGELOG.md %{_bindir}/ag-cli %changelog * Wed Oct 14 2026 CubeLitBlade - 0.7.4-1 - Update to 0.7.4 and rename the executable to ag-cli - Build with fixed vendored dependencies * Wed Sep 09 2026 CubeLitBlade - 0.7.3-1 - Initial package