diff --git a/.rpm/cointop.spec b/.rpm/cointop.spec index e871091..43a7d25 100644 --- a/.rpm/cointop.spec +++ b/.rpm/cointop.spec @@ -1,5 +1,5 @@ -%define version 1.1.5 -%global commit 4cc578ed3665800aa73b0824582b3265805e435c +%define version 1.4.4 +%global commit 3ec64837dd97581e0e38a017beafdde293454afd %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: cointop @@ -11,7 +11,7 @@ URL: https://cointop.sh Source0: https://github.com/miguelmota/%{cointop}/archive/%{version}.tar.gz BuildRequires: gcc -BuildRequires: golang >= 1.10 +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. @@ -24,7 +24,7 @@ mkdir -p ./_build/src/github.com/miguelmota ln -s $(pwd) ./_build/src/github.com/miguelmota/%{name} export GOPATH=$(pwd)/_build:%{gopath} -go build -ldflags="-linkmode=external -compressdwarf=false" -o x . +GO111MODULE=off go build -ldflags="-linkmode=external -compressdwarf=false -X github.com/miguelmota/cointop/cointop.version=%{version}" -o x . %install install -d %{buildroot}%{_bindir} @@ -32,7 +32,7 @@ install -p -m 0755 ./x %{buildroot}%{_bindir}/%{name} %files %defattr(-,root,root,-) -%doc LICENSE.md README.md +%doc LICENSE README.md %{_bindir}/%{name} %changelog diff --git a/Makefile b/Makefile index 1380015..e2c8db1 100644 --- a/Makefile +++ b/Makefile @@ -133,8 +133,9 @@ rpm/lint: rpmlint ~/rpmbuild/SPECS/cointop.spec rpm/dirs: - chmod -R a+rwx ~/rpmbuild + mkdir -p ~/rpmbuild mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} + chmod -R a+rwx ~/rpmbuild rpm/download: wget https://github.com/miguelmota/cointop/archive/$(VERSION).tar.gz -O ~/rpmbuild/SOURCES/$(VERSION).tar.gz diff --git a/README.md b/README.md index b6f6405..cd4875e 100644 --- a/README.md +++ b/README.md @@ -143,16 +143,14 @@ Run cointop flatpak flatpak run com.github.miguelmota.Cointop ``` -cointop flathub [project page](https://flathub.org/apps/details/com.github.miguelmota.Cointop) - ### Copr (Fedora) -cointop is available as a [copr](https://copr.fedorainfracloud.org/) package. +cointop is available as a [copr](https://copr.fedorainfracloud.org/coprs/miguelmota/cointop/) package. First, enable the respository ```bash -sudo dnf copr enable miguelmota/cointop +sudo dnf copr enable miguelmota/cointop -y ``` Install cointop @@ -167,8 +165,6 @@ Run cointop ``` -cointop copr [project page](https://copr.fedorainfracloud.org/coprs/miguelmota/cointop/). - ### AUR (Arch Linux) cointop is available as an [AUR](https://aur.archlinux.org/packages/cointop) package. @@ -193,8 +189,6 @@ Running snap: sudo snap run cointop ``` -cointop snapcraft [project page](https://snapcraft.io/cointop). - Note: snaps don't work in Windows WSL. See this [issue thread](https://forum.snapcraft.io/t/windows-subsystem-for-linux/216). ### FreeBSD