Name: crun Summary: OCI Container Runtime fully written in C Version: 1.14.3 Release: 1 Source0: https://github.com/containers/crun/releases/download/%{version}/%{name}-%{version}.tar.xz # Those are pulled in with "git submodule" in upstream git # They're not needed when using an official release tarball, but # needed when using a git checkout. %if 0 Source1: https://github.com/giuseppe/libocispec/archive/5dfe2f406dc2d0f244aec621292e4e0a52149240.tar.gz Source2: https://github.com/opencontainers/image-spec/archive/79b036d80240ae530a8de15e1d21c7ab9292c693.tar.gz Source3: https://github.com/opencontainers/runtime-spec/archive/f9c09b4ea1dfa7379d70df3c30d6efa346c225d4.tar.gz %endif Group: Servers License: GPLv3+/LGPLv3+ BuildRequires: pkgconfig(yajl) BuildRequires: pkgconfig(libseccomp) BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libsystemd) BuildRequires: gperf # Only for man page, might be worth excluding from bootstrap builds BuildRequires: go-md2man # Let's turn crun into a drop-in replacement for runc Obsoletes: runc < 2:1.0.0-240 Provides: runc = 2:1.0.0-240 %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). %prep %autosetup -p1 %if 0 rmdir libocispec cd libocispec rmdir image-spec runtime-spec tar xf %{S:2} tar xf %{S:3} mv image-spec-* image-spec mv runtime-spec-* runtime-spec cd .. %endif autoreconf -fis %configure sed -i '/git-version.h/d' src/crun.c sed -i -e 's,GIT_VERSION,"%{version}-%{release}",g' src/crun.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 crun %{buildroot}%{_bindir}/runc %files %{_bindir}/crun %{_bindir}/runc %doc %{_mandir}/man1/crun.1*