]> git.pld-linux.org Git - packages/criu.git/blob - criu.spec
- seems to be x8664 (+ few non th architectures)
[packages/criu.git] / criu.spec
1 Summary:        checkpoint/restore functionality for Linux in userspace
2 Name:           criu
3 Version:        1.3.1
4 Release:        2
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 ExclusiveArch:  %{x8664}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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
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
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
62 %prep
63 %setup -q
64 sed -i -e 's#-O2#$(OPT)#g' Makefile*
65
66 %build
67 %{__make} \
68         DEB_HOST_MULTIARCH= \
69         CC="%{__cc}" \
70         OPT="%{rpmcppflags} %{rpmcflags}" \
71         PREFIX=%{_prefix} \
72         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
73         SYSTEMDUNITDIR=%{systemdunitdir} \
74         V=1 \
75         WERROR=0
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 %{__make} install \
80         DEB_HOST_MULTIARCH= \
81         PREFIX="%{_prefix}" \
82         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
83         SYSTEMDUNITDIR=%{systemdunitdir} \
84         MANDIR=%{_mandir} \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91 %systemd_post criu.service
92
93 %preun
94 %systemd_preun criu.service
95
96 %postun
97 %systemd_reload
98
99 %post libs -p /sbin/ldconfig
100 %postun libs -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc CREDITS README
105 %attr(755,root,root) %{_sbindir}/criu
106 %{_mandir}/man8/criu.8*
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
This page took 0.145299 seconds and 3 git commands to generate.