2020-02-19 07:38:04 +00:00
|
|
|
%define version 1.4.5
|
|
|
|
%global commit da958204ddfdf4e586abe61728983aec2ee772ad
|
2018-05-21 08:23:39 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: cointop
|
2019-04-23 07:36:51 +00:00
|
|
|
Version: %{version}
|
2018-05-21 08:23:39 +00:00
|
|
|
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
|
2020-01-03 09:39:55 +00:00
|
|
|
BuildRequires: golang >= 1.13
|
2018-05-21 08:23:39 +00:00
|
|
|
|
|
|
|
%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}
|
2020-01-03 09:39:55 +00:00
|
|
|
GO111MODULE=off go build -ldflags="-linkmode=external -compressdwarf=false -X github.com/miguelmota/cointop/cointop.version=%{version}" -o x .
|
2018-05-21 08:23:39 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 ./x %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2020-01-03 09:39:55 +00:00
|
|
|
%doc LICENSE README.md
|
2018-05-21 08:23:39 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|