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