2022-04-27 11:04:33 +00:00
|
|
|
%global built_tag 1.4.5
|
2021-04-28 12:54:17 +00:00
|
|
|
|
2019-06-21 17:11:11 +00:00
|
|
|
Summary: OCI runtime written in C
|
|
|
|
Name: crun
|
2022-05-16 20:36:52 +00:00
|
|
|
Version: 1.4.5
|
2022-03-31 17:28:16 +00:00
|
|
|
URL: https://github.com/containers/%{name}
|
2022-03-03 14:53:05 +00:00
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2022-05-16 20:36:52 +00:00
|
|
|
%if "%{_vendor}" == "debbuild"
|
|
|
|
Maintainer: Lokesh Mandvekar <https://github.com/lsm5>
|
|
|
|
License: GPL-2.0+
|
|
|
|
Release: 0%{?dist}
|
|
|
|
%else
|
2021-04-16 16:15:40 +00:00
|
|
|
License: GPLv2+
|
2022-05-16 20:36:52 +00:00
|
|
|
Release: %autorelease
|
|
|
|
%endif
|
2019-06-21 17:11:11 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2022-05-16 20:36:52 +00:00
|
|
|
BuildRequires: go-md2man
|
|
|
|
BuildRequires: libtool
|
|
|
|
%if "%{_vendor}" == "debbuild"
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: libcap-dev
|
|
|
|
BuildRequires: libseccomp-dev
|
|
|
|
BuildRequires: libsystemd-dev
|
|
|
|
BuildRequires: libyajl-dev
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%else
|
2019-06-21 17:11:11 +00:00
|
|
|
BuildRequires: gcc
|
2022-05-16 20:36:52 +00:00
|
|
|
BuildRequires: git-core
|
2022-03-10 18:22:48 +00:00
|
|
|
BuildRequires: python3
|
2021-04-06 07:56:23 +00:00
|
|
|
BuildRequires: libcap-devel
|
2019-06-21 17:11:11 +00:00
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: yajl-devel
|
|
|
|
BuildRequires: libseccomp-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: python3-libmount
|
2020-12-17 04:03:08 +00:00
|
|
|
BuildRequires: make
|
2021-02-19 07:55:38 +00:00
|
|
|
BuildRequires: glibc-static
|
2021-09-28 12:54:24 +00:00
|
|
|
BuildRequires: protobuf-c-devel
|
2020-12-17 13:57:56 +00:00
|
|
|
%ifnarch %ix86
|
|
|
|
BuildRequires: criu-devel >= 3.15
|
|
|
|
%endif
|
2022-05-16 20:36:52 +00:00
|
|
|
%endif
|
2021-04-13 19:19:27 +00:00
|
|
|
Provides: oci-runtime
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%description
|
2022-03-31 17:28:16 +00:00
|
|
|
%{name} is a runtime for running OCI containers
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%prep
|
2022-05-16 20:36:52 +00:00
|
|
|
%autosetup -Sgit
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%build
|
2019-06-21 17:11:11 +00:00
|
|
|
./autogen.sh
|
|
|
|
%configure --disable-silent-rules
|
2019-06-21 17:01:30 +00:00
|
|
|
|
2019-06-21 17:11:11 +00:00
|
|
|
%make_build
|
2019-06-21 17:01:30 +00:00
|
|
|
|
2019-06-21 17:11:11 +00:00
|
|
|
%install
|
|
|
|
%make_install
|
2021-04-28 12:54:17 +00:00
|
|
|
rm -rf %{buildroot}%{_prefix}/lib*
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%files
|
2019-06-21 17:11:11 +00:00
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/*
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-05-16 20:36:52 +00:00
|
|
|
%if "%{_vendor}" != "debbuild"
|
2022-01-27 17:59:35 +00:00
|
|
|
%autochangelog
|
2022-05-16 20:36:52 +00:00
|
|
|
%endif
|