Compare commits

...

2 Commits

Author SHA1 Message Date
David Abdurachmanov 11daec8436
Disable autospec
This is currently not properly supported by Fedora/RISCV infra.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-21 17:36:41 +02:00
David Abdurachmanov b960d004c2
Disable criu support on riscv64
criu is not ported to riscv64 arch.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-21 17:34:00 +02:00
1 changed files with 10 additions and 8 deletions

View File

@ -19,7 +19,7 @@ License: GPL-2.0+
Release: 0%{?dist}
%else
License: GPLv2+
Release: %autorelease
Release: 1.0.riscv64%{?dist}
%endif
BuildRequires: autoconf
BuildRequires: automake
@ -49,11 +49,13 @@ BuildRequires: python3-libmount
BuildRequires: make
BuildRequires: glibc-static
BuildRequires: protobuf-c-devel
%ifnarch %ix86
%ifnarch %ix86 riscv64
BuildRequires: criu-devel >= 3.17.1-2
%endif
%endif
%ifnarch riscv64
Requires: criu >= 3.17.1-2
%endif
Provides: oci-runtime
%description
@ -65,11 +67,14 @@ Provides: oci-runtime
%build
./autogen.sh
%configure \
%if "%{krun_support}" == "enabled"
%configure --disable-silent-rules --with-libkrun
%else
%configure --disable-silent-rules
--with-libkrun \
%endif
%ifarch riscv64
--disable-criu \
%endif
--disable-silent-rules
%make_build
@ -90,6 +95,3 @@ ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/krun
%{_mandir}/man1/*
%changelog
%if "%{_vendor}" != "debbuild"
%autochangelog
%endif