2013-11-29 16:54:31 +00:00
|
|
|
#
|
2014-01-08 15:51:34 +00:00
|
|
|
# spec file for package criu
|
2013-11-29 16:54:31 +00:00
|
|
|
#
|
2019-05-07 06:51:55 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-11-29 16:54:31 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-05-07 06:51:55 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-11-29 16:54:31 +00:00
|
|
|
#
|
|
|
|
|
2014-01-08 15:51:34 +00:00
|
|
|
|
2018-11-20 10:31:24 +00:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
%define use_asciidoctor 1
|
|
|
|
%define make_options USE_ASCIIDOCTOR=1
|
|
|
|
%endif
|
|
|
|
|
2013-11-29 16:51:21 +00:00
|
|
|
Name: criu
|
2019-05-07 06:51:55 +00:00
|
|
|
Version: 3.12
|
2014-01-08 15:51:34 +00:00
|
|
|
Release: 0
|
2013-11-29 16:51:21 +00:00
|
|
|
Summary: Checkpoint/Restore In Userspace Tools
|
2018-03-19 22:00:49 +00:00
|
|
|
License: GPL-2.0-only
|
2013-11-29 16:51:21 +00:00
|
|
|
Group: System/Console
|
2018-05-29 08:21:17 +00:00
|
|
|
URL: https://criu.org/
|
2018-03-19 22:00:49 +00:00
|
|
|
Source0: https://download.openvz.org/criu/%{name}-%{version}.tar.bz2
|
2017-06-21 16:06:38 +00:00
|
|
|
Patch1: criu-py-install-fix.diff
|
2016-03-10 07:36:25 +00:00
|
|
|
BuildRequires: libcap-devel
|
2017-01-25 16:04:31 +00:00
|
|
|
BuildRequires: libnet-devel
|
2016-03-10 07:36:25 +00:00
|
|
|
BuildRequires: libnl3-devel
|
2017-11-13 14:03:52 +00:00
|
|
|
BuildRequires: pkgconfig
|
2013-11-29 16:51:21 +00:00
|
|
|
BuildRequires: protobuf-c
|
2015-03-13 17:27:50 +00:00
|
|
|
BuildRequires: protobuf-devel
|
2018-11-20 10:31:24 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
%if 0%{?use_asciidoctor}
|
|
|
|
BuildRequires: rubygem(asciidoctor)
|
|
|
|
%else
|
|
|
|
BuildRequires: asciidoc
|
2013-11-29 16:51:21 +00:00
|
|
|
BuildRequires: xmlto
|
2018-11-20 10:31:24 +00:00
|
|
|
%endif
|
|
|
|
Requires: python3-ipaddr
|
|
|
|
Requires: python3-protobuf
|
2017-08-23 08:02:46 +00:00
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64le %{arm} s390x
|
2017-11-13 14:03:52 +00:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: libbsd-devel
|
|
|
|
%endif
|
2013-11-29 16:51:21 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2019-05-07 06:51:55 +00:00
|
|
|
%package -n libcriu2
|
2014-02-26 16:28:21 +00:00
|
|
|
Summary: Library for CRIU
|
2018-03-19 22:00:49 +00:00
|
|
|
License: LGPL-2.1-only
|
2014-02-26 16:28:21 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-05-07 06:51:55 +00:00
|
|
|
%description -n libcriu2
|
2014-02-26 16:28:21 +00:00
|
|
|
This package contains the library for CRIU, Checkpoint/Restore In
|
|
|
|
Userspace Tools.
|
|
|
|
|
2017-04-26 08:00:05 +00:00
|
|
|
%package -n libcompel1
|
|
|
|
Summary: Compel library for CRIU
|
2018-03-19 22:00:49 +00:00
|
|
|
License: LGPL-2.1-only
|
2017-04-26 08:00:05 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libcompel1
|
|
|
|
This package contains the compel library for CRIU to execute a parasite code.
|
|
|
|
|
2014-02-26 16:28:21 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2018-03-19 22:00:49 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2014-02-26 16:28:21 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
2017-04-26 08:00:05 +00:00
|
|
|
Requires: libcompel1 = %{version}
|
2019-05-07 06:51:55 +00:00
|
|
|
Requires: libcriu2 = %{version}
|
2014-02-26 16:28:21 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications with CRIU library.
|
|
|
|
|
2013-11-29 16:51:21 +00:00
|
|
|
%prep
|
2016-06-16 09:26:16 +00:00
|
|
|
%setup -q
|
2017-06-21 16:06:38 +00:00
|
|
|
%patch1 -p1
|
2016-11-14 21:08:37 +00:00
|
|
|
# default off
|
|
|
|
echo "BINFMT_MISC_VIRTUALIZED" > .config
|
2013-11-29 16:51:21 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-05 07:07:07 +00:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2014-03-01 08:46:14 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2018-11-20 10:31:24 +00:00
|
|
|
make V=1 %{?_smp_mflags} %{?make_options}
|
2013-11-29 16:51:21 +00:00
|
|
|
|
|
|
|
%install
|
2018-11-20 10:31:24 +00:00
|
|
|
%make_install V=1 %{?make_options} \
|
2018-03-19 22:00:49 +00:00
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
LIBEXECDIR=%{_libexecdir}
|
2017-04-26 08:00:05 +00:00
|
|
|
# remove static libs
|
2018-03-19 22:00:49 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/lib*.a \
|
|
|
|
%{buildroot}%{_libexecdir}/compel/*.a
|
|
|
|
|
2017-04-26 08:00:05 +00:00
|
|
|
# remove stable files
|
|
|
|
rm -f %{buildroot}%{_includedir}/compel/plugins/std/asm/.gitignore
|
2013-11-29 16:51:21 +00:00
|
|
|
# for compatiblity
|
2014-03-01 08:46:14 +00:00
|
|
|
ln -s criu %{buildroot}%{_sbindir}/crtools
|
|
|
|
ln -s criu.8 %{buildroot}%{_mandir}/man8/crtools.8
|
2014-01-08 15:51:34 +00:00
|
|
|
|
2019-05-07 06:51:55 +00:00
|
|
|
%post -n libcriu2 -p /sbin/ldconfig
|
|
|
|
%postun -n libcriu2 -p /sbin/ldconfig
|
2017-04-26 08:00:05 +00:00
|
|
|
%post -n libcompel1 -p /sbin/ldconfig
|
|
|
|
%postun -n libcompel1 -p /sbin/ldconfig
|
|
|
|
|
2013-11-29 16:51:21 +00:00
|
|
|
%files
|
2018-03-19 22:00:49 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_sbindir}/criu
|
|
|
|
%{_sbindir}/crtools
|
|
|
|
%{_bindir}/compel
|
|
|
|
%{_bindir}/crit
|
|
|
|
%{_mandir}/man1/crit.1%{?ext_man}
|
|
|
|
%{_mandir}/man8/criu.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/crtools.8%{?ext_man}
|
2016-07-12 11:08:19 +00:00
|
|
|
%{_libexecdir}/criu
|
2017-04-26 08:00:05 +00:00
|
|
|
%{_libexecdir}/compel
|
2018-05-29 08:21:17 +00:00
|
|
|
%{_libexecdir}/python*/site-packages/crit-*.egg-info
|
|
|
|
%{_libexecdir}/python*/site-packages/pycriu
|
2014-02-26 16:28:21 +00:00
|
|
|
|
2019-05-07 06:51:55 +00:00
|
|
|
%files -n libcriu2
|
2014-02-26 16:28:21 +00:00
|
|
|
%{_libdir}/libcriu.so.*
|
|
|
|
|
2017-04-26 08:00:05 +00:00
|
|
|
%files -n libcompel1
|
|
|
|
%{_libdir}/libcompel.so.*
|
|
|
|
|
2014-02-26 16:28:21 +00:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/criu
|
2017-04-26 08:00:05 +00:00
|
|
|
%{_includedir}/compel
|
2014-02-26 16:28:21 +00:00
|
|
|
%{_libdir}/libcriu.so
|
2017-04-26 08:00:05 +00:00
|
|
|
%{_libdir}/libcompel.so
|
2014-09-02 05:48:08 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2013-11-29 16:51:21 +00:00
|
|
|
|
|
|
|
%changelog
|