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