Skip to content

Commit

Permalink
Use variables for versions and bump consulacl/kv versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAubuchon committed Jun 18, 2015
1 parent a9d62ed commit 9641f88
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions SPECS/consul-utils.spec
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
Name: consul-utils
Version: 0.1.0
Release: 1%{?dist}
Version: 0.1.1
Release: 2%{?dist}
Summary: Command line tools for Consul

%global consulkv_version 0.1.1
%global consulacl_version 0.1.1

Group: Applications/System
License: ASL 2.0
Source0: https://github.com/CiscoCloud/consulacl/releases/download/v0.1.0/consulacl_0.1.0_linux_amd64.tar.gz
Source1: https://github.com/CiscoCloud/consulkv/releases/download/v0.1.0/consulkv_0.1.0_linux_amd64.tar.gz
Source0: https://github.com/CiscoCloud/consulacl/releases/download/v%{consulacl_version}/consulacl_%{consulacl_version}_linux_amd64.tar.gz
Source1: https://github.com/CiscoCloud/consulkv/releases/download/v%{consulkv_version}/consulkv_%{consulkv_version}_linux_amd64.tar.gz

%description
Command line tools for Consul

%prep
%setup -T -b 0 -n consulacl_0.1.0_linux_amd64
%setup -T -b 1 -n consulkv_0.1.0_linux_amd64
%setup -T -b 0 -n consulacl_%{consulacl_version}_linux_amd64
%setup -T -b 1 -n consulkv_%{consulkv_version}_linux_amd64

%install
mkdir -p %{buildroot}/%{_bindir}
cp consulkv %{buildroot}/%{_bindir}
cd ../consulacl_0.1.0_linux_amd64
cd ../consulacl_%{consulacl_version}_linux_amd64
cp consulacl %{buildroot}/%{_bindir}

%clean
Expand Down

0 comments on commit 9641f88

Please sign in to comment.