]>
Commit | Line | Data |
---|---|---|
5c2bc50e ER |
1 | # TODO |
2 | # - unpackaged: /usr/libexec/criu/scripts/systemd-autofs-restart.sh | |
e769518e JB |
3 | Summary: Checkpoint/restore functionality for Linux in userspace |
4 | Summary(pl.UTF-8): Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa | |
6be8c1d2 | 5 | Name: criu |
db5fa3a6 | 6 | Version: 2.5 |
83bc7f40 | 7 | Release: 1 |
1d80f334 | 8 | License: GPL v2 (tools), LGPL v2.1 (library) |
6be8c1d2 AM |
9 | Group: Applications/System |
10 | Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2 | |
db5fa3a6 | 11 | # Source0-md5: 5d5115454d110adb744e885d82d2c1f6 |
1d80f334 | 12 | Patch0: %{name}-python.patch |
6be8c1d2 | 13 | URL: http://criu.org/ |
6e51e7f7 ER |
14 | BuildRequires: asciidoc |
15 | BuildRequires: libcap-devel | |
16 | BuildRequires: libnl-devel >= 1:3.2 | |
17 | BuildRequires: pkgconfig | |
6be8c1d2 | 18 | BuildRequires: protobuf-c-devel |
6e51e7f7 ER |
19 | BuildRequires: protobuf |
20 | BuildRequires: protobuf-devel | |
1d80f334 | 21 | BuildRequires: python >= 2 |
6e51e7f7 ER |
22 | BuildRequires: python-modules |
23 | BuildRequires: rpm-pythonprov | |
6be8c1d2 | 24 | BuildRequires: rpmbuild(macros) >= 1.228 |
7a8067bd | 25 | BuildRequires: sed >= 4.0 |
aa51aa10 | 26 | Requires: %{name}-libs = %{version}-%{release} |
db5fa3a6 ER |
27 | Requires: iproute2 >= 3.5 |
28 | Requires: uname(release) >= 3.11 | |
83bc7f40 | 29 | ExclusiveArch: %{x8664} arm aarch64 ppc64 |
6be8c1d2 AM |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
7a8067bd ER |
33 | Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux |
34 | operating system. Using this tool, you can freeze a running | |
35 | application (or part of it) and checkpoint it to a hard drive as a | |
36 | collection of files. You can then use the files to restore and run the | |
37 | application from the point it was frozen at. The distinctive feature | |
38 | of the CRIU project is that it is mainly implemented in user space. | |
39 | ||
40 | %description -l en.UTF-8 | |
6be8c1d2 AM |
41 | Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA: |
42 | /krɪʊ/, Russian: криу), is a software tool for Linux operating system. | |
43 | Using this tool, you can freeze a running application (or part of it) | |
44 | and checkpoint it to a hard drive as a collection of files. You can | |
45 | then use the files to restore and run the application from the point | |
46 | it was frozen at. The distinctive feature of the CRIU project is that | |
47 | it is mainly implemented in user space. | |
48 | ||
e769518e JB |
49 | %description -l pl.UTF-8 |
50 | CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla | |
51 | systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą | |
52 | aplikację (lub jej część) i zapisać migawkę na twardym dysku jako | |
53 | zestaw plików. Następnie można użyć tych plików do odtworzenia i | |
54 | uruchomienia aplikacji od miejsca, w którym została zamrożona. | |
55 | Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie | |
56 | w przestrzeni użytkownika. | |
57 | ||
aa51aa10 AM |
58 | %package libs |
59 | Summary: CRIU shared library | |
60 | Summary(pl.UTF-8): Biblioteka współdzielona CRIU | |
1d80f334 | 61 | License: LGPL v2.1 |
aa51aa10 AM |
62 | Group: Libraries |
63 | ||
64 | %description libs | |
65 | CRIU shared library. | |
66 | ||
67 | %description libs -l pl.UTF-8 | |
68 | Biblioteka współdzielona CRIU. | |
69 | ||
70 | %package devel | |
1d80f334 JB |
71 | Summary: Header files for CRIU library |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRIU | |
73 | License: LGPL v2.1 | |
aa51aa10 AM |
74 | Group: Development/Libraries |
75 | Requires: %{name}-libs = %{version}-%{release} | |
76 | ||
77 | %description devel | |
1d80f334 | 78 | Header files for CRIU library. |
aa51aa10 AM |
79 | |
80 | %description devel -l pl.UTF-8 | |
1d80f334 JB |
81 | Pliki nagłówkowe biblioteki CRIU. |
82 | ||
83 | %package -n python-pycriu | |
84 | Summary: Python interface to CRIU | |
85 | Summary(pl.UTF-8): Pythonowy interfejs do CRIU | |
86 | Group: Libraries/Python | |
87 | Requires: %{name}-libs = %{version}-%{release} | |
88 | ||
89 | %description -n python-pycriu | |
90 | Python interface to CRIU. This package contains also crit utility. | |
91 | ||
92 | %description -n python-pycriu -l pl.UTF-8 | |
93 | Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit. | |
aa51aa10 | 94 | |
6be8c1d2 AM |
95 | %prep |
96 | %setup -q | |
1d80f334 JB |
97 | %patch0 -p1 |
98 | ||
83bc7f40 | 99 | %{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile |
6be8c1d2 AM |
100 | |
101 | %build | |
102 | %{__make} \ | |
d0e0f9de | 103 | DEB_HOST_MULTIARCH= \ |
6be8c1d2 AM |
104 | CC="%{__cc}" \ |
105 | OPT="%{rpmcppflags} %{rpmcflags}" \ | |
aa51aa10 | 106 | PREFIX=%{_prefix} \ |
83bc7f40 | 107 | LIBDIR=%{_libdir} \ |
aa51aa10 | 108 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ |
6be8c1d2 AM |
109 | V=1 \ |
110 | WERROR=0 | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
6be8c1d2 | 114 | %{__make} install \ |
d0e0f9de | 115 | DEB_HOST_MULTIARCH= \ |
83bc7f40 JB |
116 | PREFIX=%{_prefix} \ |
117 | LIBDIR=%{_libdir} \ | |
118 | PYSITESCRIPTDIR=%{py_sitescriptdir} \ | |
aa51aa10 | 119 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ |
6be8c1d2 AM |
120 | MANDIR=%{_mandir} \ |
121 | DESTDIR=$RPM_BUILD_ROOT | |
7a8067bd | 122 | |
1d80f334 JB |
123 | %py_postclean |
124 | ||
6be8c1d2 AM |
125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
af06864b | 128 | %post libs -p /sbin/ldconfig |
aa51aa10 AM |
129 | %postun libs -p /sbin/ldconfig |
130 | ||
6be8c1d2 AM |
131 | %files |
132 | %defattr(644,root,root,755) | |
e7b45b13 | 133 | %doc CREDITS README.md |
aa51aa10 | 134 | %attr(755,root,root) %{_sbindir}/criu |
6be8c1d2 | 135 | %{_mandir}/man8/criu.8* |
aa51aa10 AM |
136 | |
137 | %files libs | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_libdir}/libcriu.so.*.* | |
140 | %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1 | |
141 | ||
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libcriu.so | |
145 | %{_includedir}/criu | |
146 | %{_pkgconfigdir}/criu.pc | |
1d80f334 JB |
147 | |
148 | %files -n python-pycriu | |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_bindir}/crit | |
151 | %{py_sitescriptdir}/pycriu | |
152 | %{py_sitescriptdir}/crit-0.0.1-py*.egg-info |