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