Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.

Last commit

avatar
ilfat has added 645186165e
Update to 1.14.4

Files in

100644 | 72 lines (64 sloc) | 2.17 KB
Name:		crun
Summary:	OCI Container Runtime fully written in C
Version:	1.14.4
Group:		System/Base
Release:	1
License:	GPLv3+/LGPLv3+
Source0:	https://github.com/containers/crun/archive/%{version}/%{name}-%{version}.tar.gz
# Those are pulled in with "git submodule" in upstream git
Source1:	https://github.com/containers/libocispec/archive/19c05670c37a42c217caa7b141bcaada7867cc15.tar.gz
Source2:	https://github.com/opencontainers/image-spec/archive/0b40f0f367c396cc5a7d6a2e8c8842271d3d3844.tar.gz
Source3:	https://github.com/opencontainers/runtime-spec/archive/55ae2744e3a034668fa2c40687251095a69ed63e.tar.gz
Source4:	https://github.com/containers/yajl/archive/49923ccb2143e36850bcdeb781e2bcdf5ce22f15.tar.gz
Patch0:		add-flag-keep-to-run.patch
BuildRequires:	automake
BuildRequires:	autoconf
# Only for man page, might be worth excluding from bootstrap builds
BuildRequires:	go-md2man
BuildRequires:	gperf
BuildRequires:	libtool
BuildRequires:	make
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(yajl)
Conflicts:	runc

%description
A fast and low-memory footprint OCI Container Runtime fully written in C.

crun conforms to the OCI Container Runtime specifications
(https://github.com/opencontainers/runtime-spec).

%files
%doc NEWS README.md
%license COPYING*
%{_bindir}/%{name}
%{_bindir}/runc
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
rmdir libocispec
mv libocispec-* libocispec
cd libocispec
rmdir image-spec runtime-spec yajl
tar xf %{SOURCE2}
tar xf %{SOURCE3}
tar xf %{SOURCE4}
mv image-spec-* image-spec
mv runtime-spec-* runtime-spec
mv yajl-* yajl
cd ..
autoreconf -fis

%configure
sed -i '/git-version.h/d' src/crun.c
sed -i '/git-version.h/d' src/libcrun/container.c
sed -i -e 's,GIT_VERSION,"%{version}-%{release}",g' src/crun.c
sed -i -e 's,GIT_VERSION,"%{version}-%{release}",g' src/libcrun/container.c

%build
%make_build

%install
%make_install
# No point in shipping a static library if the headers
# aren't installed...
rm %{buildroot}%{_libdir}/*.a
ln -s %{name} %{buildroot}%{_bindir}/runc