-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathark-overseer.spec
58 lines (39 loc) · 1.01 KB
/
ark-overseer.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%global goipath github.com/led0nk/ark-overseer
%define debug_package %{nil}
Version: 0.1.0
%gometa
Name: ark-overseer
Release: 1%{?dist}
Summary: steam observation tool
License: BSD
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-rpm-macros
BuildRequires: go-rpm-macros
BuildRequires: golang
BuildRequires: git
BuildRequires: make
%description
ark-overseer is a steam observation tool to track players
%prep
%goprep
%autosetup
#%%generate_buildrequires
#%%go_generate_buildrequires
%build
go build -v -buildmode pie -mod vendor -o %{gobuilddir}/bin/%{name} cmd/api/main.go
%install
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vd %{buildroot}%{_unitdir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0644 -vp %{name}.service %{buildroot}%{_unitdir}/
%check
%gocheck
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%files
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%changelog
%autochangelog