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