3 %bcond_with tests # build without tests
5 Summary: CLI to upload application code to Atlas
10 Group: Applications/System
11 Source0: https://github.com/hashicorp/atlas-upload-cli/archive/v%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 06fa00b9feb63b0a25e5331831b5b968
13 URL: https://github.com/hashicorp/atlas-upload-cli
14 BuildRequires: golang >= 1.2.1
15 BuildRequires: rpmbuild(macros) >= 1.228
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 # binary stripped or something
19 %define _enable_debug_packages 0
22 The Atlas Upload CLI is a lightweight command line interface for
23 uploading application code to Atlas to kick off deployment processes.
24 This is the CLI used to power the vagrant push command and other parts
25 of Atlas Go with the Atlas strategy.
27 It can also be downloaded and used externally with other systems (such
28 as a CI service like Jenkins or Travis CI) to initiate Atlas-based
34 # handle external deps:
35 #package github.com/hashicorp/atlas-go/archive: cannot download, $GOPATH not set. For more details see: go help gopath
36 #package github.com/hashicorp/atlas-go/v1: cannot download, $GOPATH not set. For more details see: go help gopath
37 #package github.com/hashicorp/logutils: cannot download, $GOPATH not set. For more details see: go help gopath
38 #package github.com/mitchellh/ioprogress: cannot download, $GOPATH not set. For more details see: go help gopath
41 export GOPATH=$(pwd)/vendor
42 # make -j1 because https://github.com/hashicorp/atlas-upload-cli/pull/10
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_bindir}
48 install -p bin/atlas-upload $RPM_BUILD_ROOT%{_bindir}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc README.md CHANGELOG.md LICENSE
56 %attr(755,root,root) %{_bindir}/atlas-upload