Update RPM spec

pull/58/head
Miguel Mota 4 years ago
parent 6eff97fa48
commit 71d09da851

@ -1,14 +1,14 @@
%define version 1.4.6
%global commit 69391a7c6f3a920c175685b9917086d449f4c1ff72c5b98ab08118489f15c0a9
%define version 1.5.1
%global commit 8c225f598f8f3e32afaba7ac4f799577281a160088fec5183919a699e5b4c14e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: cointop
Version: %{version}
Release: 6%{?dist}
Summary: Terminal based application for tracking cryptocurrencies
Summary: Interactive terminal based UI application for tracking cryptocurrencies
License: Apache-2.0
URL: https://cointop.sh
Source0: https://github.com/miguelmota/%{cointop}/archive/%{version}.tar.gz
Source0: https://github.com/miguelmota/%{cointop}/archive/v%{version}.tar.gz
BuildRequires: gcc
BuildRequires: golang >= 1.13
@ -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}
GO111MODULE=off go build -ldflags="-linkmode=external -compressdwarf=false -X github.com/miguelmota/cointop/cointop.version=%{version}" -o x .
GO111MODULE=off go build -ldflags="-linkmode=external -compressdwarf=false -X github.com/miguelmota/cointop/cointop.version=v%{version}" -o x .
%install
install -d %{buildroot}%{_bindir}

@ -127,7 +127,7 @@ rpm-cp-specs:
cp .rpm/cointop.spec ~/rpmbuild/SPECS/
rpm-build:
rpmbuild -ba ~/rpmbuild/SPECS/cointop.spec
rpmbuild --nodeps -ba ~/rpmbuild/SPECS/cointop.spec
rpm-lint:
rpmlint ~/rpmbuild/SPECS/cointop.spec
@ -143,6 +143,8 @@ rpm-download:
copr-install-cli:
sudo dnf install -y copr-cli
copr-deps: copr-install-cli rpm-install-deps
copr-create-project:
copr-cli create cointop --chroot fedora-rawhide-x86_64
@ -150,7 +152,8 @@ copr-build:
copr-cli build cointop ~/rpmbuild/SRPMS/cointop-*.rpm
rm -rf ~/rpmbuild/SRPMS/cointop-*.rpm
copr-deploy: rpm-dirs rpm-cp-specs rpm-download rpm-build copr-build
.PHONY: copr
copr: rpm-dirs rpm-cp-specs rpm-download rpm-build copr-build
brew-clean: brew-remove
brew cleanup --force cointop

Loading…
Cancel
Save