]>
Commit | Line | Data |
---|---|---|
6be8c1d2 AM |
1 | Summary: checkpoint/restore functionality for Linux in userspace |
2 | Name: criu | |
3 | Version: 1.0 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Applications/System | |
7 | Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 67c4ca5ca36a3514f247e86743c9ceee | |
9 | URL: http://criu.org/ | |
10 | BuildRequires: autoconf >= 2.50 | |
11 | BuildRequires: protobuf-c-devel | |
12 | BuildRequires: rpmbuild(macros) >= 1.228 | |
7a8067bd | 13 | BuildRequires: sed >= 4.0 |
6be8c1d2 AM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
7a8067bd ER |
17 | Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux |
18 | operating system. Using this tool, you can freeze a running | |
19 | application (or part of it) and checkpoint it to a hard drive as a | |
20 | collection of files. You can then use the files to restore and run the | |
21 | application from the point it was frozen at. The distinctive feature | |
22 | of the CRIU project is that it is mainly implemented in user space. | |
23 | ||
24 | %description -l en.UTF-8 | |
6be8c1d2 AM |
25 | Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA: |
26 | /krɪʊ/, Russian: криу), is a software tool for Linux operating system. | |
27 | Using this tool, you can freeze a running application (or part of it) | |
28 | and checkpoint it to a hard drive as a collection of files. You can | |
29 | then use the files to restore and run the application from the point | |
30 | it was frozen at. The distinctive feature of the CRIU project is that | |
31 | it is mainly implemented in user space. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | sed -i -e 's#-O2#$(OPT)#g' Makefile* | |
36 | ||
37 | %build | |
38 | %{__make} \ | |
39 | CC="%{__cc}" \ | |
40 | OPT="%{rpmcppflags} %{rpmcflags}" \ | |
41 | V=1 \ | |
42 | WERROR=0 | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
6be8c1d2 AM |
46 | %{__make} install \ |
47 | SBINDIR=/sbin \ | |
48 | MANDIR=%{_mandir} \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
7a8067bd | 50 | |
6be8c1d2 AM |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc CREDITS README | |
57 | %attr(755,root,root) /sbin/criu | |
58 | %{_mandir}/man8/criu.8* |