2021-04-28 12:54:17 +00:00
|
|
|
%global git0 https://github.com/containers/crun
|
|
|
|
|
2022-01-26 09:07:12 +00:00
|
|
|
%global built_tag 1.4.2
|
2022-01-27 17:59:35 +00:00
|
|
|
%global gen_version %(b=%{built_tag}; echo ${b/-/"~"})
|
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-01-27 17:59:35 +00:00
|
|
|
Version: %{gen_version}
|
|
|
|
Release: %autorelease
|
2021-04-28 12:54:17 +00:00
|
|
|
URL: %{git0}
|
|
|
|
# Source0 generated using `make dist` in upstream repo
|
2021-08-10 19:44:32 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2021-04-16 16:15:40 +00:00
|
|
|
License: GPLv2+
|
2019-06-21 17:11:11 +00:00
|
|
|
|
|
|
|
# We always run autogen.sh
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: python
|
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
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: go-md2man
|
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
|
2021-04-13 19:19:27 +00:00
|
|
|
Provides: oci-runtime
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%description
|
2019-07-18 12:10:44 +00:00
|
|
|
crun is a runtime for running OCI containers
|
2019-06-21 17:01:30 +00:00
|
|
|
|
|
|
|
%prep
|
2021-08-10 19:44:32 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{version}
|
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-01-27 17:59:35 +00:00
|
|
|
%autochangelog
|