criu/criu.spec

46 lines
1.2 KiB
RPMSpec

Name: criu
Version: 1.0
Release: 1
Summary: Checkpoint/Restore In Userspace Tools
License: GPL-2.0
Group: System/Console
Url: http://criu.org/
BuildRequires: asciidoc
BuildRequires: protobuf-c
BuildRequires: xmlto
Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
Patch1: criu-fix-PTRACE_LISTEN-define.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
%patch1 -p1
%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*/*
%files
%defattr(-,root,root)
%doc README COPYING
%{_sbindir}/*
%{_mandir}/man*/*
%changelog