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