Takashi Iwai
f39a2bc1d2
- Update to version 1.1-rc2: Bugs fixed, * Crash in criu check * RPC check always fail on 3.11 kernel * Failed fork() didn't abort restore * Dump fail not reported via RPC * RPC client disconnect wasn't handled * Page server could connect to self for writing images * Hang on pre-dumping task livig in net-namespace * VDSO page mis-handle on pre-dump * FPU state loss on pre-dump * Memory tracking turns ON w/o request * Various fixes (and improvements) in build system - Fix missing struct ptrace_peeksiginfo_args on FACTORY: always-define-ptrace_peeksiginfo_args.diff OBS-URL: https://build.opensuse.org/request/show/214574 OBS-URL: https://build.opensuse.org/package/show/devel:tools/criu?expand=0&rev=6
85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package criu
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
%define package_version 1.1-rc2
|
|
Name: criu
|
|
Version: 1.0.99.2
|
|
Release: 0
|
|
Summary: Checkpoint/Restore In Userspace Tools
|
|
License: GPL-2.0
|
|
Group: System/Console
|
|
Url: http://criu.org/
|
|
BuildRequires: asciidoc
|
|
BuildRequires: protobuf-c
|
|
BuildRequires: xmlto
|
|
BuildRequires: pkgconfig(systemd)
|
|
Source0: http://download.openvz.org/criu/criu-%{package_version}.tar.bz2
|
|
Patch1: always-define-ptrace_peeksiginfo_args.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: x86_64
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{package_version}
|
|
%if 0%{suse_version} > 1310
|
|
%patch1 -p1
|
|
%endif
|
|
|
|
%build
|
|
export CFLAGS="%optflags"
|
|
make V=1 %{?_smp_mflags} PREFIX=%{_prefix}
|
|
|
|
%install
|
|
make V=1 %{?_smp_mflags} PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT install
|
|
# for compatiblity
|
|
ln -s criu $RPM_BUILD_ROOT%{_sbindir}/crtools
|
|
ln -s criu.8 $RPM_BUILD_ROOT%{_mandir}/man8/crtools.8
|
|
# fix up wrong permissions
|
|
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man*/*
|
|
|
|
%pre
|
|
%service_add_pre criu.service criu.socket
|
|
exit 0
|
|
|
|
%preun
|
|
%service_del_preun criu.service criu.socket
|
|
exit 0
|
|
|
|
%post
|
|
%service_add_post criu.service criu.socket
|
|
exit 0
|
|
|
|
%postun
|
|
%service_del_postun criu.service criu.socket
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README COPYING
|
|
%{_sbindir}/*
|
|
%{_mandir}/man*/*
|
|
%{_unitdir}/criu.*
|
|
|
|
%changelog
|