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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
23 operating system. Using this tool, you can freeze a running
24 application (or part of it) and checkpoint it to a hard drive as a
25 collection of files. You can then use the files to restore and run the
26 application from the point it was frozen at. The distinctive feature
27 of the CRIU project is that it is mainly implemented in user space.
29 %description -l en.UTF-8
30 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
31 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
32 Using this tool, you can freeze a running application (or part of it)
33 and checkpoint it to a hard drive as a collection of files. You can
34 then use the files to restore and run the application from the point
35 it was frozen at. The distinctive feature of the CRIU project is that
36 it is mainly implemented in user space.
39 Summary: CRIU shared library
40 Summary(pl.UTF-8): Biblioteka współdzielona CRIU
46 %description libs -l pl.UTF-8
47 Biblioteka współdzielona CRIU.
50 Summary: Header file for CRIU library
51 Summary(pl.UTF-8): Plik nagłówkowy biblioteki CRIU
52 Group: Development/Libraries
53 Requires: %{name}-libs = %{version}-%{release}
56 Header file for CRIU library.
58 %description devel -l pl.UTF-8
59 Plik nagłówkowy biblioteki CRIU.
63 sed -i -e 's#-O2#$(OPT)#g' Makefile*
68 OPT="%{rpmcppflags} %{rpmcflags}" \
70 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
71 SYSTEMDUNITDIR=%{systemdunitdir} \
76 rm -rf $RPM_BUILD_ROOT
79 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
80 SYSTEMDUNITDIR=%{systemdunitdir} \
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
88 %systemd_post criu.service
91 %systemd_preun criu.service
96 %post libs -p /sbin/ldconfig
97 %postun libs -p /sbin/ldconfig
100 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_sbindir}/criu
103 %{_mandir}/man8/criu.8*
104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/criu-service
105 %{systemdunitdir}/criu.service
106 %{systemdunitdir}/criu.socket
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libcriu.so
117 %{_pkgconfigdir}/criu.pc