local build

This commit is contained in:
Daniel J Walsh 2022-09-28 14:33:22 -04:00
parent 00068edb16
commit 613edba48b
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028

View File

@ -43,7 +43,6 @@ BuildRequires: systemd-devel
BuildRequires: yajl-devel BuildRequires: yajl-devel
%if "%{krun_support}" == "enabled" %if "%{krun_support}" == "enabled"
BuildRequires: libkrun-devel BuildRequires: libkrun-devel
Provides: krun
%endif %endif
BuildRequires: libseccomp-devel BuildRequires: libseccomp-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
@ -72,19 +71,29 @@ Provides: oci-runtime
%install %install
%make_install %make_install
rm -rf %{buildroot}%{_prefix}/lib* rm -rf %{buildroot}%{_prefix}/lib*
%if "%{krun_support}" == "enabled" %if "%{krun_support}" == "enabled"
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/krun ln -s ../bin/%{name} %{buildroot}%{_bindir}/krun
%endif %endif
%files %files
%license COPYING %license COPYING
%{_bindir}/%{name} %{_bindir}/%{name}
%if "%{krun_support}" == "enabled"
%{_bindir}/krun
%endif
%{_mandir}/man1/* %{_mandir}/man1/*
%if "%{krun_support}" == "enabled"
%package krun
Summary: OCI Runtime providing Virtualization-based process isolation capabilities.
Provides: krun
Requires: libkrun
%description krun
%{name}-krun OCI Runtime providing Virtualization-based process isolation capabilities.
%files krun
%{_bindir}/krun
%endif
%changelog %changelog
%if "%{_vendor}" != "debbuild" %if "%{_vendor}" != "debbuild"
%autochangelog %autochangelog