]>
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 |
af06864b TP |
4 | Version: 1.4 |
5 | Release: 1 | |
6be8c1d2 AM |
6 | License: GPL v2 |
7 | Group: Applications/System | |
8 | Source0: http://download.openvz.org/criu/%{name}-%{version}.tar.bz2 | |
af06864b | 9 | # Source0-md5: 35c3904abcf297bd88b8f7bcd2a588d5 |
6be8c1d2 AM |
10 | URL: http://criu.org/ |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: protobuf-c-devel | |
13 | BuildRequires: rpmbuild(macros) >= 1.228 | |
7a8067bd | 14 | BuildRequires: sed >= 4.0 |
aa51aa10 | 15 | Requires: %{name}-libs = %{version}-%{release} |
5d7ea5ea | 16 | Requires: iproute2 >= 3.6 |
3d5585be | 17 | Requires: uname(release) >= 3.9 |
aa51aa10 AM |
18 | Requires(post,preun,postun): systemd-units >= 38 |
19 | Requires: systemd-units >= 38 | |
ead91485 | 20 | ExclusiveArch: %{x8664} |
6be8c1d2 AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
7a8067bd ER |
24 | Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux |
25 | operating system. Using this tool, you can freeze a running | |
26 | application (or part of it) and checkpoint it to a hard drive as a | |
27 | collection of files. You can then use the files to restore and run the | |
28 | application from the point it was frozen at. The distinctive feature | |
29 | of the CRIU project is that it is mainly implemented in user space. | |
30 | ||
31 | %description -l en.UTF-8 | |
6be8c1d2 AM |
32 | Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA: |
33 | /krɪʊ/, Russian: криу), is a software tool for Linux operating system. | |
34 | Using this tool, you can freeze a running application (or part of it) | |
35 | and checkpoint it to a hard drive as a collection of files. You can | |
36 | then use the files to restore and run the application from the point | |
37 | it was frozen at. The distinctive feature of the CRIU project is that | |
38 | it is mainly implemented in user space. | |
39 | ||
e769518e JB |
40 | %description -l pl.UTF-8 |
41 | CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla | |
42 | systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą | |
43 | aplikację (lub jej część) i zapisać migawkę na twardym dysku jako | |
44 | zestaw plików. Następnie można użyć tych plików do odtworzenia i | |
45 | uruchomienia aplikacji od miejsca, w którym została zamrożona. | |
46 | Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie | |
47 | w przestrzeni użytkownika. | |
48 | ||
aa51aa10 AM |
49 | %package libs |
50 | Summary: CRIU shared library | |
51 | Summary(pl.UTF-8): Biblioteka współdzielona CRIU | |
52 | Group: Libraries | |
53 | ||
54 | %description libs | |
55 | CRIU shared library. | |
56 | ||
57 | %description libs -l pl.UTF-8 | |
58 | Biblioteka współdzielona CRIU. | |
59 | ||
60 | %package devel | |
61 | Summary: Header file for CRIU library | |
62 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki CRIU | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-libs = %{version}-%{release} | |
65 | ||
66 | %description devel | |
67 | Header file for CRIU library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Plik nagłówkowy biblioteki CRIU. | |
71 | ||
6be8c1d2 AM |
72 | %prep |
73 | %setup -q | |
74 | sed -i -e 's#-O2#$(OPT)#g' Makefile* | |
75 | ||
76 | %build | |
77 | %{__make} \ | |
d0e0f9de | 78 | DEB_HOST_MULTIARCH= \ |
6be8c1d2 AM |
79 | CC="%{__cc}" \ |
80 | OPT="%{rpmcppflags} %{rpmcflags}" \ | |
aa51aa10 AM |
81 | PREFIX=%{_prefix} \ |
82 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ | |
83 | SYSTEMDUNITDIR=%{systemdunitdir} \ | |
6be8c1d2 AM |
84 | V=1 \ |
85 | WERROR=0 | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
6be8c1d2 | 89 | %{__make} install \ |
d0e0f9de | 90 | DEB_HOST_MULTIARCH= \ |
aa51aa10 AM |
91 | PREFIX="%{_prefix}" \ |
92 | LOGROTATEDIR=%{_sysconfdir}/logrotate.d \ | |
93 | SYSTEMDUNITDIR=%{systemdunitdir} \ | |
6be8c1d2 AM |
94 | MANDIR=%{_mandir} \ |
95 | DESTDIR=$RPM_BUILD_ROOT | |
7a8067bd | 96 | |
6be8c1d2 AM |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
aa51aa10 AM |
100 | %post |
101 | %systemd_post criu.service | |
102 | ||
103 | %preun | |
104 | %systemd_preun criu.service | |
105 | ||
106 | %postun | |
107 | %systemd_reload | |
108 | ||
af06864b | 109 | %post libs -p /sbin/ldconfig |
aa51aa10 AM |
110 | %postun libs -p /sbin/ldconfig |
111 | ||
6be8c1d2 AM |
112 | %files |
113 | %defattr(644,root,root,755) | |
114 | %doc CREDITS README | |
aa51aa10 | 115 | %attr(755,root,root) %{_sbindir}/criu |
6be8c1d2 | 116 | %{_mandir}/man8/criu.8* |
aa51aa10 AM |
117 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/criu-service |
118 | %{systemdunitdir}/criu.service | |
119 | %{systemdunitdir}/criu.socket | |
120 | ||
121 | %files libs | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_libdir}/libcriu.so.*.* | |
124 | %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1 | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libcriu.so | |
129 | %{_includedir}/criu | |
130 | %{_pkgconfigdir}/criu.pc |