1 |
Name: crtools |
2 |
Version: 0.6 |
3 |
Release: %mkrel 1 |
4 |
Summary: Tool for Checkpoint/Restore in User-space |
5 |
Group: System Environment/Base |
6 |
License: GPLv2 |
7 |
URL: http://criu.org/ |
8 |
Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2 |
9 |
Patch0: 0001-arm-added-ARM-versions-of-the-POSIX-timer-syscalls.patch |
10 |
Patch1: 0001-posix-timers-don-t-call-ferror-for-NULL.patch |
11 |
Patch2: 0001-posix-times-don-t-fail-if-proc-PID-times-is-absent.patch |
12 |
|
13 |
BuildRequires: protobuf-c-devel asciidoc xmlto |
14 |
|
15 |
# user-space and kernel changes are only available for x86_64 and ARM |
16 |
# code is very architecture specific |
17 |
# once imported in RCS it needs a bug openend explaining the ExclusiveArch |
18 |
# https://bugzilla.redhat.com/show_bug.cgi?id=902875 |
19 |
ExclusiveArch: x86_64 %{arm} |
20 |
|
21 |
%description |
22 |
crtools is the user-space part of Checkpoint/Restore in User-space |
23 |
(CRIU), a project to implement checkpoint/restore functionality for |
24 |
Linux in user-space. |
25 |
|
26 |
|
27 |
%prep |
28 |
%setup -q -n criu-%{version} |
29 |
%patch0 -p1 |
30 |
%patch1 -p1 |
31 |
%patch2 -p1 |
32 |
|
33 |
%build |
34 |
# %{?_smp_mflags} does not work |
35 |
# -fstack-protector breaks build |
36 |
CFLAGS+=`echo %{optflags} | sed -e 's,-fstack-protector\S*,,g'` make V=1 WERROR=0 PREFIX=%{_prefix} |
37 |
make docs V=1 |
38 |
|
39 |
|
40 |
%install |
41 |
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} |
42 |
|
43 |
# upstream renamed to binary to criu |
44 |
ln -s %{_sbindir}/criu $RPM_BUILD_ROOT%{_sbindir}/crtools |
45 |
|
46 |
%files |
47 |
%{_sbindir}/%{name} |
48 |
%{_sbindir}/criu |
49 |
%{_mandir}/man8/* |
50 |
%doc README COPYING |
51 |
|