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