-
Notifications
You must be signed in to change notification settings - Fork 3
/
goahead.spec
42 lines (34 loc) · 902 Bytes
/
goahead.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# spec file for package goahead
#
# -- Copyright omitted --
Name: goahead
Version: 0.0.7
Release: 0
License: Apache-2.0
Group: System/Monitoring
Summary: Simple service that allows or denies server / OS restarts
Url: https://github.com/jlalvarez-arsys/goahead
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
%if 0%{?suse_version}
BuildRequires: (go or go1.19)
%else
BuildRequires: (go or go1.19)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Simple service that allows or denies server / OS restarts
%prep
%setup -q -n %{name}-%{version}
# unpack Source1 after changing directory
%setup -q -a 1
%build
go build -mod=vendor -o %{name}
%install
install -D -m 0755 %{name} "%{buildroot}/usr/bin/%{name}"
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/*
%changelog