1 Summary: Checkpoint/restore functionality for Linux in userspace
2 Summary(pl.UTF-8): Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa
6 License: GPL v2 (tools), LGPL v2.1 (library)
7 Group: Applications/System
8 Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
9 # Source0-md5: ba8f3ba9aed1219f0569cc2958a4f171
10 Patch0: %{name}-python.patch
12 BuildRequires: autoconf >= 2.50
13 BuildRequires: libnl-devel >= 3.2
14 BuildRequires: protobuf-c-devel
15 BuildRequires: python >= 2
16 BuildRequires: rpmbuild(macros) >= 1.228
17 BuildRequires: sed >= 4.0
18 Requires: %{name}-libs = %{version}-%{release}
19 Requires: iproute2 >= 3.6
20 Requires: uname(release) >= 3.9
21 ExclusiveArch: %{x8664} arm aarch64 ppc64
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
26 operating system. Using this tool, you can freeze a running
27 application (or part of it) and checkpoint it to a hard drive as a
28 collection of files. You can then use the files to restore and run the
29 application from the point it was frozen at. The distinctive feature
30 of the CRIU project is that it is mainly implemented in user space.
32 %description -l en.UTF-8
33 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
34 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
35 Using this tool, you can freeze a running application (or part of it)
36 and checkpoint it to a hard drive as a collection of files. You can
37 then use the files to restore and run the application from the point
38 it was frozen at. The distinctive feature of the CRIU project is that
39 it is mainly implemented in user space.
41 %description -l pl.UTF-8
42 CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla
43 systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą
44 aplikację (lub jej część) i zapisać migawkę na twardym dysku jako
45 zestaw plików. Następnie można użyć tych plików do odtworzenia i
46 uruchomienia aplikacji od miejsca, w którym została zamrożona.
47 Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie
48 w przestrzeni użytkownika.
51 Summary: CRIU shared library
52 Summary(pl.UTF-8): Biblioteka współdzielona CRIU
59 %description libs -l pl.UTF-8
60 Biblioteka współdzielona CRIU.
63 Summary: Header files for CRIU library
64 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRIU
66 Group: Development/Libraries
67 Requires: %{name}-libs = %{version}-%{release}
70 Header files for CRIU library.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe biblioteki CRIU.
75 %package -n python-pycriu
76 Summary: Python interface to CRIU
77 Summary(pl.UTF-8): Pythonowy interfejs do CRIU
78 Group: Libraries/Python
79 Requires: %{name}-libs = %{version}-%{release}
81 %description -n python-pycriu
82 Python interface to CRIU. This package contains also crit utility.
84 %description -n python-pycriu -l pl.UTF-8
85 Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit.
91 %{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile
97 OPT="%{rpmcppflags} %{rpmcflags}" \
100 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
105 rm -rf $RPM_BUILD_ROOT
107 DEB_HOST_MULTIARCH= \
110 PYSITESCRIPTDIR=%{py_sitescriptdir} \
111 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
113 DESTDIR=$RPM_BUILD_ROOT
118 rm -rf $RPM_BUILD_ROOT
120 %post libs -p /sbin/ldconfig
121 %postun libs -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc CREDITS README.md
126 %attr(755,root,root) %{_sbindir}/criu
127 %{_mandir}/man8/criu.8*
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libcriu.so
138 %{_pkgconfigdir}/criu.pc
140 %files -n python-pycriu
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/crit
143 %{py_sitescriptdir}/pycriu
144 %{py_sitescriptdir}/crit-0.0.1-py*.egg-info