]> git.pld-linux.org Git - packages/criu.git/blob - criu.spec
R iproute 3.6+
[packages/criu.git] / criu.spec
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
13 BuildRequires:  sed >= 4.0
14 Requires:       iproute2 >= 3.6
15 Requires:       uname(release) >= 3.9
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
20 operating system. Using this tool, you can freeze a running
21 application (or part of it) and checkpoint it to a hard drive as a
22 collection of files. You can then use the files to restore and run the
23 application from the point it was frozen at. The distinctive feature
24 of the CRIU project is that it is mainly implemented in user space.
25
26 %description -l en.UTF-8
27 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
28 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
29 Using this tool, you can freeze a running application (or part of it)
30 and checkpoint it to a hard drive as a collection of files. You can
31 then use the files to restore and run the application from the point
32 it was frozen at. The distinctive feature of the CRIU project is that
33 it is mainly implemented in user space.
34
35 %prep
36 %setup -q
37 sed -i -e 's#-O2#$(OPT)#g' Makefile*
38
39 %build
40 %{__make} \
41         CC="%{__cc}" \
42         OPT="%{rpmcppflags} %{rpmcflags}" \
43         V=1 \
44         WERROR=0
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 %{__make} install \
49         SBINDIR=/sbin \
50         MANDIR=%{_mandir} \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc CREDITS README
59 %attr(755,root,root) /sbin/criu
60 %{_mandir}/man8/criu.8*
This page took 0.042469 seconds and 4 git commands to generate.