commit 9e3993ffd2b490cdf0a03687627788bb6e178f7c Author: Sergey Zhemoytel Date: Sun Nov 5 15:07:22 2023 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..97ce0e2 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + finch-1.0.0.tar.gz: a39b63a764649fbe6be52d187ee22f95388a1511 diff --git a/finch.spec b/finch.spec new file mode 100644 index 0000000..15b34f5 --- /dev/null +++ b/finch.spec @@ -0,0 +1,44 @@ +%define debug %nil +%define debug_package %nil + +Name: finch +Version: 1.0.0 +Release: 1 +Summary: The Finch CLI an open source client for container development +URL: https://github.com/runfinch/finch +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +License: ASL 2.0 +Group: Development/Other +BuildRequires: go +BuildRequires: git-core +BuildRequires: upx + + +%description +Finch is an open source client for container development. +Its simple installer provides a minimal native client along +with an opinionated distribution of other open source +components. Rather than creating even more options to reason +about and choose from, Finch aims to help promote other +projects by making it easy to install and use them, while +offering a simple native client to tie it all together + +%prep +%setup -q + +%build +export GOPROXY=direct +export VERSION=%{verson} +#make %{name} + +go build -ldflags "-s -w -X github.com/runfinch/finch/pkg/version.Version=%{version} -X github.com/runfinch/finch/pkg/version.GitCommit=.m" -o bin/%{name} ./cmd/finch + +upx bin/finch + +%install +install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} + +%files +%doc README.md LICENSE +%{_bindir}/%{name} +