From fc65d933df8e24d0531619d3817af0625cbd44a2 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Mon, 21 Aug 2023 21:00:03 -0400 Subject: [PATCH] fixes for el8 --- nebula.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nebula.spec b/nebula.spec index cd8616c..5bdaca2 100644 --- a/nebula.spec +++ b/nebula.spec @@ -25,8 +25,10 @@ Source0: %{gosource} Source1: %{name}-vendor-%{version}.tar.gz BuildRequires: systemd-rpm-macros + +%if 0%{?fedora} BuildRequires: go-rpm-macros -BuildRequires: compiler(go-compiler) +%endif # Let's be sure that people do not upgrade from the "old" nebula. We can sensibly drop it by F39 Conflicts: nebula < 1.0 @@ -69,7 +71,9 @@ done %endif %install +%if 0%{?fedora} %gopkginstall +%endif install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name} @@ -78,8 +82,10 @@ install -m 0644 -vDp dist/fedora/nebula.service %{buildroot}%{_unitdir}/%{name}. %if %{with check} %check +%if 0%{?fedora} %gocheck %endif +%endif %post %systemd_post nebula.service @@ -98,7 +104,9 @@ install -m 0644 -vDp dist/fedora/nebula.service %{buildroot}%{_unitdir}/%{name}. %{_bindir}/* %{_unitdir}/%{name}.service +%if 0%{?fedora} %gopkgfiles +%endif %changelog %autochangelog