import criu-3.15-2.module+el8.5.0+11957+18363336

This commit is contained in:
CentOS Sources 2021-07-28 05:20:55 +00:00 committed by Andrew Lukoshko
parent 1269fbb18b
commit bd4fdb779d
3 changed files with 36 additions and 15 deletions

View File

@ -1 +1 @@
b79142b186cfff9e5b43d9d7057fdd88560cbe76 SOURCES/v3.15.tar.gz 91eb1ccac61a7d538db14884091883c6dab5481a SOURCES/criu-3.15.tar.bz2

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/v3.15.tar.gz SOURCES/criu-3.15.tar.bz2

View File

@ -5,19 +5,15 @@
# parasite code breaks if annobin is enabled. # parasite code breaks if annobin is enabled.
%undefine _annotated_build %undefine _annotated_build
%global git0 https://github.com/checkpoint-restore/criu/
%global commit0 f68da4a86fee62af216e9e7520f4916aa29e797b
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: criu Name: criu
Version: 3.15 Version: 3.15
Release: 1%{?dist} Release: 2%{?dist}
Provides: crtools = %{version}-%{release} Provides: crtools = %{version}-%{release}
Obsoletes: crtools <= 1.0-2 Obsoletes: crtools <= 1.0-2
Summary: Tool for Checkpoint/Restore in User-space Summary: Tool for Checkpoint/Restore in User-space
License: GPLv2 License: GPLv2
URL: http://criu.org/ URL: http://criu.org/
Source0: %{git0}/archive/%{commit0}/v%{version}.tar.gz Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
Source1: criu-tmpfiles.conf Source1: criu-tmpfiles.conf
BuildRequires: gcc BuildRequires: gcc
BuildRequires: systemd BuildRequires: systemd
@ -26,7 +22,9 @@ BuildRequires: protobuf-devel protobuf-c-devel %{py_prefix}-devel libnl3-devel l
BuildRequires: asciidoc xmlto BuildRequires: asciidoc xmlto
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: git BuildRequires: gnutls-devel
BuildRequires: nftables-devel
BuildRequires: make
# Checkpointing containers with a tmpfs requires tar # Checkpointing containers with a tmpfs requires tar
Recommends: tar Recommends: tar
@ -40,6 +38,20 @@ criu is the user-space part of Checkpoint/Restore in User-space
(CRIU), a project to implement checkpoint/restore functionality for (CRIU), a project to implement checkpoint/restore functionality for
Linux in user-space. Linux in user-space.
%package devel
Summary: Header files and libraries for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains header files and libraries for %{name}.
%package libs
Summary: Libraries for %{name}
Requires: %{name} = %{version}-%{release}
%description libs
This package contains the libraries for %{name}
%package -n %{py_prefix}-%{name} %package -n %{py_prefix}-%{name}
%{?python_provide:%python_provide %{py_prefix}-%{name}} %{?python_provide:%python_provide %{py_prefix}-%{name}}
Summary: Python bindings for %{name} Summary: Python bindings for %{name}
@ -58,7 +70,7 @@ crit is a tool designed to decode CRIU binary dump files and show
their content in human-readable form. their content in human-readable form.
%prep %prep
%autosetup -Sgit -n %{name}-%{commit0} %setup -q
%build %build
# %{?_smp_mflags} does not work # %{?_smp_mflags} does not work
@ -74,21 +86,26 @@ mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 0755 %{buildroot}/run/%{name}/ install -d -m 0755 %{buildroot}/run/%{name}/
# remove devel and libs packages # remove static libs
rm -rf $RPM_BUILD_ROOT%{_includedir}/criu
rm $RPM_BUILD_ROOT%{_libdir}/*.so*
rm $RPM_BUILD_ROOT%{_libdir}/*.a rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_mandir}/man1/compel.1*
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name} rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
%files %files
%{_sbindir}/%{name} %{_sbindir}/%{name}
%{_mandir}/man8/criu.8* %{_mandir}/man8/criu.8*
%{_mandir}/man1/compel.1*
%dir /run/%{name} %dir /run/%{name}
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%doc README.md COPYING %doc README.md COPYING
%files devel
%{_includedir}/criu
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files libs
%{_libdir}/*.so.*
%files -n %{py_prefix}-%{name} %files -n %{py_prefix}-%{name}
%{python3_sitelib}/pycriu/* %{python3_sitelib}/pycriu/*
%{python3_sitelib}/*egg-info %{python3_sitelib}/*egg-info
@ -98,6 +115,10 @@ rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
%doc %{_mandir}/man1/crit.1* %doc %{_mandir}/man1/crit.1*
%changelog %changelog
* Tue Jul 20 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-2
- add -devel and -libs subpackages
- Resolves: #1971718
* Wed Nov 04 2020 Jindrich Novy <jnovy@redhat.com> - 3.15-1 * Wed Nov 04 2020 Jindrich Novy <jnovy@redhat.com> - 3.15-1
- update to https://github.com/checkpoint-restore/criu/releases/tag/v3.15 - update to https://github.com/checkpoint-restore/criu/releases/tag/v3.15
- Related: #1883490 - Related: #1883490