]> git.pld-linux.org Git - packages/criu.git/blob - criu.spec
3b39d653ffc88fb7e47d7480e4d4815b7081e741
[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:        2.3
5 Release:        1
6 License:        GPL v2 (tools), LGPL v2.1 (library)
7 Group:          Applications/System
8 Source0:        http://download.openvz.org/criu/%{name}-%{version}.tar.bz2
9 # Source0-md5:  ba8f3ba9aed1219f0569cc2958a4f171
10 Patch0:         %{name}-python.patch
11 URL:            http://criu.org/
12 BuildRequires:  autoconf >= 2.50
13 BuildRequires:  libnl-devel >= 3.2
14 BuildRequires:  protobuf-c-devel
15 BuildRequires:  python >= 2
16 BuildRequires:  rpmbuild(macros) >= 1.228
17 BuildRequires:  sed >= 4.0
18 Requires:       %{name}-libs = %{version}-%{release}
19 Requires:       iproute2 >= 3.6
20 Requires:       uname(release) >= 3.9
21 ExclusiveArch:  %{x8664} arm aarch64 ppc64
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux
26 operating system. Using this tool, you can freeze a running
27 application (or part of it) and checkpoint it to a hard drive as a
28 collection of files. You can then use the files to restore and run the
29 application from the point it was frozen at. The distinctive feature
30 of the CRIU project is that it is mainly implemented in user space.
31
32 %description -l en.UTF-8
33 Checkpoint/Restore In Userspace, or CRIU (pronounced kree-oo, IPA:
34 /krɪʊ/, Russian: криу), is a software tool for Linux operating system.
35 Using this tool, you can freeze a running application (or part of it)
36 and checkpoint it to a hard drive as a collection of files. You can
37 then use the files to restore and run the application from the point
38 it was frozen at. The distinctive feature of the CRIU project is that
39 it is mainly implemented in user space.
40
41 %description -l pl.UTF-8
42 CRIU (Checkpoint/Restore In Userspace) to narzędzie programowe dla
43 systemu operacyjnego Linux. Przy jego użyciu można zamrozić działającą
44 aplikację (lub jej część) i zapisać migawkę na twardym dysku jako
45 zestaw plików. Następnie można użyć tych plików do odtworzenia i
46 uruchomienia aplikacji od miejsca, w którym została zamrożona.
47 Wyróżnikiem projektu CRIU jest to, że został zaimplementowany głównie
48 w przestrzeni użytkownika.
49
50 %package libs
51 Summary:        CRIU shared library
52 Summary(pl.UTF-8):      Biblioteka współdzielona CRIU
53 License:        LGPL v2.1
54 Group:          Libraries
55
56 %description libs
57 CRIU shared library.
58
59 %description libs -l pl.UTF-8
60 Biblioteka współdzielona CRIU.
61
62 %package devel
63 Summary:        Header files for CRIU library
64 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki CRIU
65 License:        LGPL v2.1
66 Group:          Development/Libraries
67 Requires:       %{name}-libs = %{version}-%{release}
68
69 %description devel
70 Header files for CRIU library.
71
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe biblioteki CRIU.
74
75 %package -n python-pycriu
76 Summary:        Python interface to CRIU
77 Summary(pl.UTF-8):      Pythonowy interfejs do CRIU
78 Group:          Libraries/Python
79 Requires:       %{name}-libs = %{version}-%{release}
80
81 %description -n python-pycriu
82 Python interface to CRIU. This package contains also crit utility.
83
84 %description -n python-pycriu -l pl.UTF-8
85 Pythonowy interfejs do CRIU. Ten pakiet zawiera także narzędzie crit.
86
87 %prep
88 %setup -q
89 %patch0 -p1
90
91 %{__sed} -i -e 's#-O2 -g#$(OPT)#g' Makefile
92
93 %build
94 %{__make} \
95         DEB_HOST_MULTIARCH= \
96         CC="%{__cc}" \
97         OPT="%{rpmcppflags} %{rpmcflags}" \
98         PREFIX=%{_prefix} \
99         LIBDIR=%{_libdir} \
100         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
101         V=1 \
102         WERROR=0
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 %{__make} install \
107         DEB_HOST_MULTIARCH= \
108         PREFIX=%{_prefix} \
109         LIBDIR=%{_libdir} \
110         PYSITESCRIPTDIR=%{py_sitescriptdir} \
111         LOGROTATEDIR=%{_sysconfdir}/logrotate.d \
112         MANDIR=%{_mandir} \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 %py_postclean
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post   libs -p /sbin/ldconfig
121 %postun libs -p /sbin/ldconfig
122
123 %files
124 %defattr(644,root,root,755)
125 %doc CREDITS README.md
126 %attr(755,root,root) %{_sbindir}/criu
127 %{_mandir}/man8/criu.8*
128
129 %files libs
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libcriu.so.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libcriu.so.1
133
134 %files devel
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libcriu.so
137 %{_includedir}/criu
138 %{_pkgconfigdir}/criu.pc
139
140 %files -n python-pycriu
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/crit
143 %{py_sitescriptdir}/pycriu
144 %{py_sitescriptdir}/crit-0.0.1-py*.egg-info
This page took 0.062396 seconds and 2 git commands to generate.