1 Summary: checkpoint/restore functionality for Linux in userspace
6 Group: Applications/System
7 Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
8 # Source0-md5: 72331377375c136abbfebcfa3f5d3f90
10 BuildRequires: autoconf >= 2.50
11 BuildRequires: protobuf-c-devel
12 BuildRequires: rpmbuild(macros) >= 1.228
13 BuildRequires: sed >= 4.0
14 Requires: %{name}-libs = %{version}-%{release}
15 Requires: iproute2 >= 3.6
16 Requires: uname(release) >= 3.9
17 Requires(post,preun,postun): systemd-units >= 38
18 Requires: systemd-units >= 38
19 ExclusiveArch: %{x8664}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
24 operating system. Using this tool, you can freeze a running
25 application (or part of it) and checkpoint it to a hard drive as a
26 collection of files. You can then use the files to restore and run the
27 application from the point it was frozen at. The distinctive feature
28 of the CRIU project is that it is mainly implemented in user space.
30 %description -l en.UTF-8
31 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
32 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
33 Using this tool, you can freeze a running application (or part of it)
34 and checkpoint it to a hard drive as a collection of files. You can
35 then use the files to restore and run the application from the point
36 it was frozen at. The distinctive feature of the CRIU project is that
37 it is mainly implemented in user space.
40 Summary: CRIU shared library
41 Summary(pl.UTF-8): Biblioteka współdzielona CRIU
47 %description libs -l pl.UTF-8
48 Biblioteka współdzielona CRIU.
51 Summary: Header file for CRIU library
52 Summary(pl.UTF-8): Plik nagłówkowy biblioteki CRIU
53 Group: Development/Libraries
54 Requires: %{name}-libs = %{version}-%{release}
57 Header file for CRIU library.
59 %description devel -l pl.UTF-8
60 Plik nagłówkowy biblioteki CRIU.
64 sed -i -e 's#-O2#$(OPT)#g' Makefile*
70 OPT="%{rpmcppflags} %{rpmcflags}" \
72 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
73 SYSTEMDUNITDIR=%{systemdunitdir} \
78 rm -rf $RPM_BUILD_ROOT
82 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
83 SYSTEMDUNITDIR=%{systemdunitdir} \
85 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
91 %systemd_post criu.service
94 %systemd_preun criu.service
99 %post libs -p /sbin/ldconfig
100 %postun libs -p /sbin/ldconfig
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_sbindir}/criu
106 %{_mandir}/man8/criu.8*
107 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/criu-service
108 %{systemdunitdir}/criu.service
109 %{systemdunitdir}/criu.socket
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libcriu.so
120 %{_pkgconfigdir}/criu.pc