%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: 2%{?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 is generated from Source0 with go-vendor-tools 0.12.0 and Go 1.26.8. # In a directory containing Source0 and Source2, run: # PATH=/usr/lib/golang/bin:$PATH GOTOOLCHAIN=local go_vendor_archive create \ # --config go-vendor-tools.toml \ # --output atomgit-cli-0.7.4-vendor.tar.bz2 v0.7.4.tar.gz # Source2 disables tidy so the released go.mod and go.sum remain unchanged. # SHA256: dabc807831f55d6d9fe1f6921a275242dfde66fc65573cdcaa6d91ac72711934 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 # Apply as-needed before cgo libraries; external linker flags come later. export CGO_LDFLAGS="${CGO_LDFLAGS:+${CGO_LDFLAGS} }-Wl,--as-needed" %gobuild -o ag-cli ./cmd/ag-cli go run ./scripts/generate-manpages --output man --version v%{version} %check export GOTOOLCHAIN=local export GOFLAGS=-mod=vendor export GOPROXY=off export GOSUMDB=off export CGO_LDFLAGS="${CGO_LDFLAGS:+${CGO_LDFLAGS} }-Wl,--as-needed" go run ./scripts/generate-manpages --output man --version v%{version} --check %gocheck2 -F %go_vendor_license_check -c %{SOURCE2} %install install -Dpm0755 ag-cli %{buildroot}%{_bindir}/ag-cli install -d %{buildroot}%{_mandir}/man1 install -pm0644 man/*.1 %{buildroot}%{_mandir}/man1/ %go_vendor_license_install -c %{SOURCE2} %files -f %{go_vendor_license_filelist} %doc README.md CHANGELOG.md %{_bindir}/ag-cli %{_mandir}/man1/ag-cli*.1* %changelog * Wed Oct 14 2026 CubeLitBlade - 0.7.4-2 - Generate and install command manual pages - Remove unused shared-library dependencies * 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