Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active November 16, 2016 04:07
Show Gist options
  • Save tkuchiki/eb33d9a465e6cbb346bd to your computer and use it in GitHub Desktop.
Save tkuchiki/eb33d9a465e6cbb346bd to your computer and use it in GitHub Desktop.
gaurun.spec
Summary: A general push notification server in Go
Name: gaurun
Version: 0.4.0
Release: 1%{?dist}
License: MIT
Group: Applications/Services
URL: https://github.com/mercari/gaurun
Source: https://github.com/mercari/gaurun/archive/v%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: make
BuildRequires: golang
%description
Gaurun is the general push notification server in Go.
%prep
%setup -q -n gaurun-%{version}
%install
%{__rm} -rf %{buildroot}
export GOPATH=$(pwd)
export PATH=$(pwd)/bin:${PATH}
make gom
make bundle
make
install -p -D -m 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
install -p -D -m 0755 bin/%{name}_recover %{buildroot}%{_bindir}/%{name}_recover
%files
%{_bindir}/%{name}
%{_bindir}/%{name}_recover
%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_builddir}/gaurun-%{version}
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment