RPMパッケージにしておいた。ReleasesにRPMパッケージは置いた。
SPECファイルはこんな。
%global debug_package %{nil}
Name: azcopy
Version: 10.13.0
Release: 1%{?dist}
Summary: AzCopy v10 is a command-line utility that you can use to copy data to and from containers and file shares in Azure Storage accounts.
Group: Application/System
License: MIT
URL: https://github.com/Azure/azure-storage-azcopy
Source0: https://github.com/rioriost/azure-storage-azcopy/archive/refs/tags/v%{version}.tar.gz
BuildRequires: golang
Requires: golang
%description
AzCopy v10 is a command-line utility that you can use to copy data to and from containers and file shares in Azure Storage accounts.
%prep
%setup -q -n azure-storage-azcopy-%{version}
%build
export GOARCH=amd64 GOOS=linux
go build -o ./build/azcopy_linux_amd64
%install
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 ./build/azcopy_linux_amd64 ${RPM_BUILD_ROOT}/%{_bindir}/azcopy
%files
%{_bindir}/azcopy
%doc ChangeLog.md LICENSE NOTICE.txt README.md
%changelog
* Tue Nov 09 2021 Rio Fujita <rio@rio.st> - 10.13.0-1
- First build for RHEL8.4