Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created November 16, 2016 04:10
Show Gist options
  • Save tkuchiki/735e90c4e986a9ca1854c312c3ce1446 to your computer and use it in GitHub Desktop.
Save tkuchiki/735e90c4e986a9ca1854c312c3ce1446 to your computer and use it in GitHub Desktop.
stretcher.spec
Summary: A deployment tool with Consul / Serf event
Name: stretcher
Version: 0.8.0
Release: 1%{?dist}
License: MIT
Group: Applications/Services
URL: https://github.com/fujiwara/stretcher
Source: https://github.com/fujiwara/stretcher/releases/download/v%{version}/stretcher-v%{version}-linux-amd64.zip
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
A deployment tool with Consul / Serf event.
%prep
%setup -q -n stretcher-%{version} -c
%install
%{__rm} -rf %{buildroot}
install -p -D -m 0755 %{name}-v%{version}-linux-amd64 %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_builddir}/stretcher-%{version}
%changelog
* Wed Nov 16 2016 tkuchiki - 0.8.0-1
- Initial package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment