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