%global goipath github.com/led0nk/ark-overseer %define debug_package %{nil} Version: 0.1.0 %gometa Name: ark-overseer Release: 1.20240909071512270577.main%{?dist} Summary: steam observation tool License: BSD Source0: ark-overseer-0.1.0.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 -n ark-overseer-0.1.0 #%%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