]> git.pld-linux.org Git - packages/criu.git/blob - criu.spec
- pl
[packages/criu.git] / criu.spec
1 Summary:        Checkpoint/restore functionality for Linux in userspace
2 Summary(pl.UTF-8):      Funkcja checkpoint/restore w przestrzeni użytkownika dla Linuksa
3 Name:           criu
4 Version:        1.4
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
9 # Source0-md5:  35c3904abcf297bd88b8f7bcd2a588d5
10 URL:            http://criu.org/
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  protobuf-c-devel
13 BuildRequires:  rpmbuild(macros) >= 1.228
14 BuildRequires:  sed >= 4.0
15 Requires:       %{name}-libs = %{version}-%{release}
16 Requires:       iproute2 >= 3.6
17 Requires:       uname(release) >= 3.9
18 Requires(post,preun,postun):    systemd-units >= 38
19 Requires:       systemd-units >= 38
20 ExclusiveArch:  %{x8664}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
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
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
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
72 %prep
73 %setup -q
74 sed -i -e 's#-O2#$(OPT)#g' Makefile*
75
76 %build
77 %{__make} \
78         DEB_HOST_MULTIARCH= \
79         CC="%{__cc}" \
80         OPT="%{rpmcppflags} %{rpmcflags}" \
81         PREFIX=%{_prefix} \
82         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
83         SYSTEMDUNITDIR=%{systemdunitdir} \
84         V=1 \
85         WERROR=0
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 %{__make} install \
90         DEB_HOST_MULTIARCH= \
91         PREFIX="%{_prefix}" \
92         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
93         SYSTEMDUNITDIR=%{systemdunitdir} \
94         MANDIR=%{_mandir} \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post
101 %systemd_post criu.service
102
103 %preun
104 %systemd_preun criu.service
105
106 %postun
107 %systemd_reload
108
109 %post   libs -p /sbin/ldconfig
110 %postun libs -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc CREDITS README
115 %attr(755,root,root) %{_sbindir}/criu
116 %{_mandir}/man8/criu.8*
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
This page took 0.074322 seconds and 4 git commands to generate.