2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-18 15:25:31 +00:00
cointop/.rpm/cointop.spec
2020-02-18 23:38:04 -08:00

39 lines
1.1 KiB
RPMSpec

%define version 1.4.5
%global commit da958204ddfdf4e586abe61728983aec2ee772ad
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: cointop
Version: %{version}
Release: 6%{?dist}
Summary: Terminal based application for tracking cryptocurrencies
License: Apache-2.0
URL: https://cointop.sh
Source0: https://github.com/miguelmota/%{cointop}/archive/%{version}.tar.gz
BuildRequires: gcc
BuildRequires: golang >= 1.13
%description
cointop is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time.
%prep
%setup -q -n %{name}-%{version}
%build
mkdir -p ./_build/src/github.com/miguelmota
ln -s $(pwd) ./_build/src/github.com/miguelmota/%{name}
export GOPATH=$(pwd)/_build:%{gopath}
GO111MODULE=off go build -ldflags="-linkmode=external -compressdwarf=false -X github.com/miguelmota/cointop/cointop.version=%{version}" -o x .
%install
install -d %{buildroot}%{_bindir}
install -p -m 0755 ./x %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_bindir}/%{name}
%changelog