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: asciidoc
13 BuildRequires: libcap-devel
14 BuildRequires: libnl-devel >= 1:3.2
15 BuildRequires: pkgconfig
16 BuildRequires: protobuf-c-devel
17 BuildRequires: protobuf
18 BuildRequires: protobuf-devel
19 BuildRequires: python >= 2
20 BuildRequires: python-modules
21 BuildRequires: rpm-pythonprov
22 BuildRequires: rpmbuild(macros) >= 1.228
23 BuildRequires: sed >= 4.0
24 Requires: %{name}-libs = %{version}-%{release}
25 Requires: iproute2 >= 3.6
26 Requires: uname(release) >= 3.9
27 ExclusiveArch: %{x8664} arm aarch64 ppc64
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
32 operating system. Using this tool, you can freeze a running
33 application (or part of it) and checkpoint it to a hard drive as a
34 collection of files. You can then use the files to restore and run the
35 application from the point it was frozen at. The distinctive feature
36 of the CRIU project is that it is mainly implemented in user space.
38 %description -l en.UTF-8
39 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
40 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
41 Using this tool, you can freeze a running application (or part of it)
42 and checkpoint it to a hard drive as a collection of files. You can
43 then use the files to restore and run the application from the point
44 it was frozen at. The distinctive feature of the CRIU project is that
45 it is mainly implemented in user space.
47 %description -l pl.UTF-8
48 CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla
49 systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą
50 aplikację (lub jej część) i zapisać migawkę na twardym dysku jako
51 zestaw plików. Następnie można użyć tych plików do odtworzenia i
52 uruchomienia aplikacji od miejsca, w którym została zamrożona.
53 Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie
54 w przestrzeni użytkownika.
57 Summary: CRIU shared library
58 Summary(pl.UTF-8): Biblioteka współdzielona CRIU
65 %description libs -l pl.UTF-8
66 Biblioteka współdzielona CRIU.
69 Summary: Header files for CRIU library
70 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRIU
72 Group: Development/Libraries
73 Requires: %{name}-libs = %{version}-%{release}
76 Header files for CRIU library.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe biblioteki CRIU.
81 %package -n python-pycriu
82 Summary: Python interface to CRIU
83 Summary(pl.UTF-8): Pythonowy interfejs do CRIU
84 Group: Libraries/Python
85 Requires: %{name}-libs = %{version}-%{release}
87 %description -n python-pycriu
88 Python interface to CRIU. This package contains also crit utility.
90 %description -n python-pycriu -l pl.UTF-8
91 Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit.
97 %{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile
101 DEB_HOST_MULTIARCH= \
103 OPT="%{rpmcppflags} %{rpmcflags}" \
106 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
111 rm -rf $RPM_BUILD_ROOT
113 DEB_HOST_MULTIARCH= \
116 PYSITESCRIPTDIR=%{py_sitescriptdir} \
117 LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
119 DESTDIR=$RPM_BUILD_ROOT
124 rm -rf $RPM_BUILD_ROOT
126 %post libs -p /sbin/ldconfig
127 %postun libs -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc CREDITS README.md
132 %attr(755,root,root) %{_sbindir}/criu
133 %{_mandir}/man8/criu.8*
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libcriu.so
144 %{_pkgconfigdir}/criu.pc
146 %files -n python-pycriu
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_bindir}/crit
149 %{py_sitescriptdir}/pycriu
150 %{py_sitescriptdir}/crit-0.0.1-py*.egg-info