]>
Commit | Line | Data |
---|---|---|
e769518e JB |
1 | Summary: Checkpoint/restore functionality for Linux in userspace |
2 | Summary(pl.UTF-8): Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa | |
6be8c1d2 | 3 | Name: criu |
83bc7f40 JB |
4 | Version: 2.3 |
5 | Release: 1 | |
1d80f334 | 6 | License: GPL v2 (tools), LGPL v2.1 (library) |
6be8c1d2 AM |
7 | Group: Applications/System |
8 | Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2 | |
83bc7f40 | 9 | # Source0-md5: ba8f3ba9aed1219f0569cc2958a4f171 |
1d80f334 | 10 | Patch0: %{name}-python.patch |
6be8c1d2 AM |
11 | URL: http://criu.org/ |
12 | BuildRequires: autoconf >= 2.50 | |
83bc7f40 | 13 | BuildRequires: libnl-devel >= 3.2 |
6be8c1d2 | 14 | BuildRequires: protobuf-c-devel |
1d80f334 | 15 | BuildRequires: python >= 2 |
6be8c1d2 | 16 | BuildRequires: rpmbuild(macros) >= 1.228 |
7a8067bd | 17 | BuildRequires: sed >= 4.0 |
aa51aa10 | 18 | Requires: %{name}-libs = %{version}-%{release} |
5d7ea5ea | 19 | Requires: iproute2 >= 3.6 |
3d5585be | 20 | Requires: uname(release) >= 3.9 |
83bc7f40 | 21 | ExclusiveArch: %{x8664} arm aarch64 ppc64 |
6be8c1d2 AM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
7a8067bd ER |
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. | |
31 | ||
32 | %description -l en.UTF-8 | |
6be8c1d2 AM |
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. | |
40 | ||
e769518e JB |
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. | |
49 | ||
aa51aa10 AM |
50 | %package libs |
51 | Summary: CRIU shared library | |
52 | Summary(pl.UTF-8): Biblioteka współdzielona CRIU | |
1d80f334 | 53 | License: LGPL v2.1 |
aa51aa10 AM |
54 | Group: Libraries |
55 | ||
56 | %description libs | |
57 | CRIU shared library. | |
58 | ||
59 | %description libs -l pl.UTF-8 | |
60 | Biblioteka współdzielona CRIU. | |
61 | ||
62 | %package devel | |
1d80f334 JB |
63 | Summary: Header files for CRIU library |
64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRIU | |
65 | License: LGPL v2.1 | |
aa51aa10 AM |
66 | Group: Development/Libraries |
67 | Requires: %{name}-libs = %{version}-%{release} | |
68 | ||
69 | %description devel | |
1d80f334 | 70 | Header files for CRIU library. |
aa51aa10 AM |
71 | |
72 | %description devel -l pl.UTF-8 | |
1d80f334 JB |
73 | Pliki nagłówkowe biblioteki CRIU. |
74 | ||
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} | |
80 | ||
81 | %description -n python-pycriu | |
82 | Python interface to CRIU. This package contains also crit utility. | |
83 | ||
84 | %description -n python-pycriu -l pl.UTF-8 | |
85 | Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit. | |
aa51aa10 | 86 | |
6be8c1d2 AM |
87 | %prep |
88 | %setup -q | |
1d80f334 JB |
89 | %patch0 -p1 |
90 | ||
83bc7f40 | 91 | %{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile |
6be8c1d2 AM |
92 | |
93 | %build | |
94 | %{__make} \ | |
d0e0f9de | 95 | DEB_HOST_MULTIARCH= \ |
6be8c1d2 AM |
96 | CC="%{__cc}" \ |
97 | OPT="%{rpmcppflags} %{rpmcflags}" \ | |
aa51aa10 | 98 | PREFIX=%{_prefix} \ |
83bc7f40 | 99 | LIBDIR=%{_libdir} \ |
aa51aa10 | 100 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ |
6be8c1d2 AM |
101 | V=1 \ |
102 | WERROR=0 | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
6be8c1d2 | 106 | %{__make} install \ |
d0e0f9de | 107 | DEB_HOST_MULTIARCH= \ |
83bc7f40 JB |
108 | PREFIX=%{_prefix} \ |
109 | LIBDIR=%{_libdir} \ | |
110 | PYSITESCRIPTDIR=%{py_sitescriptdir} \ | |
aa51aa10 | 111 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ |
6be8c1d2 AM |
112 | MANDIR=%{_mandir} \ |
113 | DESTDIR=$RPM_BUILD_ROOT | |
7a8067bd | 114 | |
1d80f334 JB |
115 | %py_postclean |
116 | ||
6be8c1d2 AM |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
af06864b | 120 | %post libs -p /sbin/ldconfig |
aa51aa10 AM |
121 | %postun libs -p /sbin/ldconfig |
122 | ||
6be8c1d2 AM |
123 | %files |
124 | %defattr(644,root,root,755) | |
e7b45b13 | 125 | %doc CREDITS README.md |
aa51aa10 | 126 | %attr(755,root,root) %{_sbindir}/criu |
6be8c1d2 | 127 | %{_mandir}/man8/criu.8* |
aa51aa10 AM |
128 | |
129 | %files libs | |
130 | %defattr(644,root,root,755) | |
131 | %attr(755,root,root) %{_libdir}/libcriu.so.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1 | |
133 | ||
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_libdir}/libcriu.so | |
137 | %{_includedir}/criu | |
138 | %{_pkgconfigdir}/criu.pc | |
1d80f334 JB |
139 | |
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 |