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