mirror of
https://abf.rosa.ru/djam/finch.git
synced 2025-02-23 14:22:56 +00:00
Imported from SRPM
This commit is contained in:
commit
9e3993ffd2
2 changed files with 46 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
finch-1.0.0.tar.gz: a39b63a764649fbe6be52d187ee22f95388a1511
|
44
finch.spec
Normal file
44
finch.spec
Normal file
|
@ -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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue