1 Summary: Checkpoint/restore functionality for Linux in userspace
2 Summary(pl.UTF-8): Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa
7 Group: Applications/System
8 Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
9 # Source0-md5: 35c3904abcf297bd88b8f7bcd2a588d5
11 BuildRequires: autoconf >= 2.50
12 BuildRequires: protobuf-c-devel
13 BuildRequires: rpmbuild(macros) >= 1.228
14 BuildRequires: sed >= 4.0
15 Requires: %{name}-libs = %{version}-%{release}
16 Requires: iproute2 >= 3.6
17 Requires: uname(release) >= 3.9
18 Requires(post,preun,postun): systemd-units >= 38
19 Requires: systemd-units >= 38
20 ExclusiveArch: %{x8664}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
25 operating system. Using this tool, you can freeze a running
26 application (or part of it) and checkpoint it to a hard drive as a
27 collection of files. You can then use the files to restore and run the
28 application from the point it was frozen at. The distinctive feature
29 of the CRIU project is that it is mainly implemented in user space.
31 %description -l en.UTF-8
32 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
33 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
34 Using this tool, you can freeze a running application (or part of it)
35 and checkpoint it to a hard drive as a collection of files. You can
36 then use the files to restore and run the application from the point
37 it was frozen at. The distinctive feature of the CRIU project is that
38 it is mainly implemented in user space.
40 %description -l pl.UTF-8
41 CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla
42 systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą
43 aplikację (lub jej część) i zapisać migawkę na twardym dysku jako
44 zestaw plików. Następnie można użyć tych plików do odtworzenia i
45 uruchomienia aplikacji od miejsca, w którym została zamrożona.
46 Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie
47 w przestrzeni użytkownika.
50 Summary: CRIU shared library
51 Summary(pl.UTF-8): Biblioteka współdzielona CRIU
57 %description libs -l pl.UTF-8
58 Biblioteka współdzielona CRIU.
61 Summary: Header file for CRIU library
62 Summary(pl.UTF-8): Plik nagłówkowy biblioteki CRIU
63 Group: Development/Libraries
64 Requires: %{name}-libs = %{version}-%{release}
67 Header file for CRIU library.
69 %description devel -l pl.UTF-8
70 Plik nagłówkowy biblioteki CRIU.
74 sed -i -e 's#-O2#$(OPT)#g' Makefile*
80 OPT="%{rpmcppflags} %{rpmcflags}" \
82 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
83 SYSTEMDUNITDIR=%{systemdunitdir} \
88 rm -rf $RPM_BUILD_ROOT
92 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
93 SYSTEMDUNITDIR=%{systemdunitdir} \
95 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
101 %systemd_post criu.service
104 %systemd_preun criu.service
109 %post libs -p /sbin/ldconfig
110 %postun libs -p /sbin/ldconfig
113 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_sbindir}/criu
116 %{_mandir}/man8/criu.8*
117 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/criu-service
118 %{systemdunitdir}/criu.service
119 %{systemdunitdir}/criu.socket
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libcriu.so
130 %{_pkgconfigdir}/criu.pc