fix build issues
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
dc93fcbce6
commit
cf03e2d69f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user