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