From cf03e2d69f05bb9edaf31bd7dd786d47703fe996 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Tue, 16 Feb 2021 11:34:22 -0500 Subject: [PATCH] fix build issues Signed-off-by: Lokesh Mandvekar --- conmon.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/conmon.spec b/conmon.spec index 56d19a8..a2e7153 100644 --- a/conmon.spec +++ b/conmon.spec @@ -33,6 +33,7 @@ Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildRequires: gcc BuildRequires: git BuildRequires: glib2-devel +BuildRequires: go-md2man BuildRequires: systemd-devel BuildRequires: systemd-libs BuildRequires: make @@ -44,12 +45,16 @@ Requires: systemd-libs %prep %autosetup -Sgit -n %{name}-%{commit0} +sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile +sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile %build -%{__make} DEBUGTAG="enable_debug" all +%{__make} DEBUGTAG="enable_debug" bin/conmon +%{__make} GOMD2MAN=go-md2man -C docs %install -%{__make} PREFIX=%{buildroot}%{_prefix} install install.crio +%{__make} PREFIX=%{buildroot}%{_prefix} install.bin install.crio +%{__make} PREFIX=%{buildroot}%{_prefix} -C docs install #define license tag if not already defined %{!?_licensedir:%global license %doc}