- Update to criu 2.10: New features: * C/R of SOCK_PACKET sockets * Libsoccr -- library for C/R of TCP sockets Optimizations/improvements: * Logs cleaned up (removed bunch of useless, fixed '\n' in perrors) * Action scripts errors are printed in logs * Removed several iovec-s copying over the pagemap code * Restore degraded linearly on Xen guests. Breakpoints disabled until solution Fixes: * Py bindings fault on restore error delivery * Fd leaked on file restore error path * Fd leaked when restoring invisible files (gets closed with criu exit though) * Link remap restore could fail on kernels 4.8 and higher * Impossible to restore after restore error with link remap file in images * When going daemon a descriptor could be leaked * Custom setting of mmap_min_addr could make restore to fail * Sending pages over UNIX socket could race and fail with EAGAIN * Error getting ID of /proc/pid/ns/foo link not propagated and could result in bogus NS ID generated - Add libnet-devel to buildreq for dependency OBS-URL: https://build.opensuse.org/request/show/452443 OBS-URL: https://build.opensuse.org/package/show/devel:tools/criu?expand=0&rev=56
113 lines
3.2 KiB
RPMSpec
113 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package criu
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: criu
|
|
Version: 2.10
|
|
Release: 0
|
|
Summary: Checkpoint/Restore In Userspace Tools
|
|
License: GPL-2.0
|
|
Group: System/Console
|
|
Url: http://criu.org/
|
|
Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
|
|
BuildRequires: asciidoc
|
|
%if 0%{suse_version} > 1320
|
|
BuildRequires: libbsd-devel
|
|
%endif
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libnet-devel
|
|
BuildRequires: libnl3-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: protobuf-c
|
|
BuildRequires: protobuf-devel
|
|
BuildRequires: xmlto
|
|
Requires: python-ipaddr
|
|
Requires: python-protobuf
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: x86_64 aarch64 ppc64le %{arm}
|
|
|
|
%description
|
|
Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
|
|
operating system. Using this tool, you can freeze a running application
|
|
(or part of it) and checkpoint it to a hard drive as a collection of
|
|
files. You can then use the files to restore and run the application from
|
|
the point it was frozen at.
|
|
|
|
%package -n libcriu1
|
|
Summary: Library for CRIU
|
|
License: LGPL-2.1
|
|
Group: System/Libraries
|
|
|
|
%description -n libcriu1
|
|
This package contains the library for CRIU, Checkpoint/Restore In
|
|
Userspace Tools.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libcriu1 = %{version}
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications with CRIU library.
|
|
|
|
%prep
|
|
%setup -q
|
|
# default off
|
|
echo "BINFMT_MISC_VIRTUALIZED" > .config
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
make V=1 %{?_smp_mflags} PREFIX=%{_prefix} \
|
|
LIBDIR=%{_libdir} LIBEXECDIR=%{_libexecdir}
|
|
|
|
%install
|
|
make V=1 %{?_smp_mflags} PREFIX=%{_prefix} \
|
|
LIBDIR=%{_libdir} LIBEXECDIR=%{_libexecdir} \
|
|
DESTDIR=%{buildroot} install
|
|
# for compatiblity
|
|
ln -s criu %{buildroot}%{_sbindir}/crtools
|
|
ln -s criu.8 %{buildroot}%{_mandir}/man8/crtools.8
|
|
|
|
%post -n libcriu1 -p /sbin/ldconfig
|
|
|
|
%postun -n libcriu1 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md COPYING
|
|
%{_sbindir}/*
|
|
%{_bindir}/*
|
|
%{_mandir}/man*/*
|
|
%{_libexecdir}/criu
|
|
/usr/lib/python*/site-packages/crit-*.egg-info
|
|
/usr/lib/python*/site-packages/pycriu
|
|
|
|
%files -n libcriu1
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libcriu.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/criu
|
|
%{_libdir}/libcriu.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|