From 6be8c1d202a82d52984e899c53ea85a8e8d01a33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 25 Nov 2013 19:19:37 +0100 Subject: [PATCH] - initial --- criu.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 criu.spec diff --git a/criu.spec b/criu.spec new file mode 100644 index 0000000..9090d09 --- /dev/null +++ b/criu.spec @@ -0,0 +1,49 @@ +Summary: checkpoint/restore functionality for Linux in userspace +Name: criu +Version: 1.0 +Release: 1 +License: GPL v2 +Group: Applications/System +Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2 +# Source0-md5: 67c4ca5ca36a3514f247e86743c9ceee +URL: http://criu.org/ +BuildRequires: autoconf >= 2.50 +BuildRequires: protobuf-c-devel +BuildRequires: rpmbuild(macros) >= 1.228 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA: +/krɪʊ/, Russian: криу), 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. The distinctive feature of the CRIU project is that +it is mainly implemented in user space. + +%prep +%setup -q +sed -i -e 's#-O2#$(OPT)#g' Makefile* + +%build +%{__make} \ + CC="%{__cc}" \ + OPT="%{rpmcppflags} %{rpmcflags}" \ + V=1 \ + WERROR=0 + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + SBINDIR=/sbin \ + MANDIR=%{_mandir} \ + DESTDIR=$RPM_BUILD_ROOT +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CREDITS README +%attr(755,root,root) /sbin/criu +%{_mandir}/man8/criu.8* -- 2.44.0