Package grpcurl: Specfile

%global import_path github.com/fullstorydev/grpcurl
Name:     grpcurl
Version:  1.9.1
Release:  alt1

Summary:  Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
License:  MIT
Group:    Other
Url:      https://github.com/fullstorydev/grpcurl

Packager: Mikhail Gordeev <obirvalger@altlinux.org>

Source:   %name-%version.tar

BuildRequires(pre): rpm-build-golang
BuildRequires: golang

%description
%summary

%prep
%setup

%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"

%golang_prepare

cd .build/src/%import_path
%golang_build cmd/%name

%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1

%golang_install

%check
%gotest

%files
%_bindir/*
%doc *.md

%changelog
* Thu Apr 11 2024 Mikhail Gordeev <obirvalger@altlinux.org> 1.9.1-alt1
- new version 1.9.1

* Tue Oct 31 2023 Mikhail Gordeev <obirvalger@altlinux.org> 1.8.9-alt1
- new version 1.8.9

* Mon Sep 25 2023 Mikhail Gordeev <obirvalger@altlinux.org> 1.8.8-alt1
- new version 1.8.8

* Fri Nov 25 2022 Mikhail Gordeev <obirvalger@altlinux.org> 1.8.7-alt1
- new version 1.8.7

* Wed Mar 02 2022 Mikhail Gordeev <obirvalger@altlinux.org> 1.8.6-alt1
- new version 1.8.6

* Tue Jan 05 2021 Mikhail Gordeev <obirvalger@altlinux.org> 1.7.0-alt1
- Initial build for Sisyphus