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