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