981213
%global py_prefix python3
981213
%global py_binary %{py_prefix}
981213
981213
# With annobin enabled, CRIU does not work anymore. It seems CRIU's
981213
# parasite code breaks if annobin is enabled.
981213
%undefine _annotated_build
981213
981213
%global git0 https://github.com/checkpoint-restore/criu/
981213
%global commit0 f68da4a86fee62af216e9e7520f4916aa29e797b
981213
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
981213
981213
Name: criu
981213
Version: 3.15
981213
Release: 1%{?dist}
981213
Provides: crtools = %{version}-%{release}
981213
Obsoletes: crtools <= 1.0-2
981213
Summary: Tool for Checkpoint/Restore in User-space
981213
License: GPLv2
981213
URL: http://criu.org/
981213
Source0: %{git0}/archive/%{commit0}/v%{version}.tar.gz
981213
Source1: criu-tmpfiles.conf
981213
BuildRequires: gcc
981213
BuildRequires: systemd
981213
BuildRequires: libnet-devel
981213
BuildRequires: protobuf-devel protobuf-c-devel %{py_prefix}-devel libnl3-devel libcap-devel
981213
BuildRequires: asciidoc xmlto
981213
BuildRequires: perl-interpreter
981213
BuildRequires: libselinux-devel
981213
BuildRequires: git
981213
# Checkpointing containers with a tmpfs requires tar
981213
Recommends: tar
981213
981213
# user-space and kernel changes are only available for x86_64, arm,
981213
# ppc64le, aarch64 and s390x
981213
# https://bugzilla.redhat.com/show_bug.cgi?id=902875
981213
ExclusiveArch: x86_64 %{arm} ppc64le aarch64 s390x
981213
981213
%description
981213
criu is the user-space part of Checkpoint/Restore in User-space
981213
(CRIU), a project to implement checkpoint/restore functionality for
981213
Linux in user-space.
981213
981213
%package -n %{py_prefix}-%{name}
981213
%{?python_provide:%python_provide %{py_prefix}-%{name}}
981213
Summary: Python bindings for %{name}
981213
Requires: %{py_prefix}-protobuf
981213
Obsoletes: python2-criu < 3.10-1
981213
981213
%description -n %{py_prefix}-%{name}
981213
%{py_prefix}-%{name} contains Python bindings for %{name}.
981213
981213
%package -n crit
981213
Summary: CRIU image tool
981213
Requires: %{py_prefix}-%{name} = %{version}-%{release}
981213
981213
%description -n crit
981213
crit is a tool designed to decode CRIU binary dump files and show
981213
their content in human-readable form.
981213
981213
%prep
981213
%autosetup -Sgit -n %{name}-%{commit0}
981213
981213
%build
981213
# %{?_smp_mflags} does not work
981213
# -fstack-protector breaks build
981213
CFLAGS+=`echo %{optflags} | sed -e 's,-fstack-protector\S*,,g'` make V=1 WERROR=0 PREFIX=%{_prefix} RUNDIR=/run/criu PYTHON=%{py_binary}
981213
make docs V=1
981213
981213
%install
981213
make install-criu DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
981213
make install-lib DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} PYTHON=%{py_binary}
981213
make install-man DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
981213
mkdir -p %{buildroot}%{_tmpfilesdir}
981213
install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
981213
install -d -m 0755 %{buildroot}/run/%{name}/
981213
981213
# remove devel and libs packages
981213
rm -rf $RPM_BUILD_ROOT%{_includedir}/criu
981213
rm $RPM_BUILD_ROOT%{_libdir}/*.so*
981213
rm $RPM_BUILD_ROOT%{_libdir}/*.a
981213
rm $RPM_BUILD_ROOT%{_mandir}/man1/compel.1*
981213
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
981213
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
981213
981213
%files
981213
%{_sbindir}/%{name}
981213
%{_mandir}/man8/criu.8*
981213
%dir /run/%{name}
981213
%{_tmpfilesdir}/%{name}.conf
981213
%doc README.md COPYING
981213
981213
%files -n %{py_prefix}-%{name}
981213
%{python3_sitelib}/pycriu/*
981213
%{python3_sitelib}/*egg-info
981213
981213
%files -n crit
981213
%{_bindir}/crit
981213
%doc %{_mandir}/man1/crit.1*
981213
981213
%changelog
981213
* Wed Nov 04 2020 Jindrich Novy <jnovy@redhat.com> - 3.15-1
981213
- update to https://github.com/checkpoint-restore/criu/releases/tag/v3.15
981213
- Related: #1883490
981213
981213
* Mon May 25 2020 Jindrich Novy <jnovy@redhat.com> - 3.14-2
981213
- fix "Need to fix bugs found by coverity."
981213
- Related: #1821193
981213
981213
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 3.14-1
981213
- synchronize containter-tools 8.3.0 with 8.2.1
981213
- Related: #1821193
981213
981213
* Mon May 13 2019 Adrian Reber <adrian@lisas.de> - 3.12-9
981213
- Added additional fixup patches for the socket labelling
981213
981213
* Sat May 04 2019 Adrian Reber <adrian@lisas.de> - 3.12-8
981213
- Patch for socket labelling has changed upstream
981213
981213
* Mon Apr 29 2019 Adrian Reber <adrian@lisas.de> - 3.12-4
981213
- Applied patch to correctly restore socket()s
981213
981213
* Sat Apr 27 2019 Adrian Reber <adrian@lisas.de> - 3.12-3
981213
- Correctly exclude libs and devel for RHEL
981213
981213
* Thu Apr 25 2019 Adrian Reber <adrian@lisas.de> - 3.12-2
981213
- Updated to official 3.12
981213
981213
* Tue Apr 23 2019 Adrian Reber <adrian@lisas.de> - 3.12-0.1
981213
- Updated to 3.12 (pre-release)
981213
- Create libs subpackage
981213
- Build against SELinux (Fedora and RHEL8)
981213
- Build against libbsd (Fedora)
981213
981213
* Thu Feb 14 2019 Adrian Reber <areber@redhat.com> -  3.11-2
981213
- Updated to 3.11
981213
- Removed upstreamed patches
981213
- Added patch for gcc-9
981213
981213
* Tue Dec 11 2018 Adrian Reber <adrian@lisas.de> - 3.10-7
981213
- Fix 'criu check --feature link_nsid' with more than 10 interfaces (#1652442)
981213
981213
* Tue Dec 11 2018 Adrian Reber <adrian@lisas.de> - 3.10-6
981213
- Make sure no iptables rules are left after restore (#1652471)
981213
981213
* Tue Oct 30 2018 Adrian Reber <adrian@lisas.de> - 3.10-5
981213
- Added Recommends: tar
981213
  It is necessary when checkpointing containers with a tmpfs
981213
981213
* Mon Jul 16 2018 Adrian Reber <adrian@lisas.de> - 3.10-4
981213
- Add patch to fix errors with read-only runc
981213
981213
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.10-3
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
981213
981213
* Wed Jul 11 2018 Adrian Reber <adrian@lisas.de> - 3.10-2
981213
- Disable annobin as it seems to break CRIU
981213
981213
* Tue Jul 10 2018 Adrian Reber <adrian@lisas.de> - 3.10-1
981213
- Update to 3.10 (#1599710)
981213
- Switch to python3
981213
981213
* Wed Jun 06 2018 Adrian Reber <adrian@lisas.de> - 3.9-2
981213
- Simplify ExclusiveArch now that there is no more F26
981213
981213
* Fri Jun 01 2018 Adrian Reber <adrian@lisas.de> - 3.9-1
981213
- Update to 3.9
981213
981213
* Tue Apr 03 2018 Adrian Reber <adrian@lisas.de> - 3.8.1-1
981213
- Update to 3.8.1
981213
981213
* Thu Mar 22 2018 Adrian Reber <adrian@lisas.de> - 3.8-2
981213
- Bump release for COPR
981213
981213
* Wed Mar 14 2018 Adrian Reber <adrian@lisas.de> - 3.8-1
981213
- Update to 3.8
981213
981213
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-5
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
981213
981213
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7-4
981213
- Switch to %%ldconfig_scriptlets
981213
981213
* Fri Jan 12 2018 Adrian Reber <adrian@lisas.de> - 3.7-3
981213
- Fix python/python2 dependencies accross all branches
981213
981213
* Wed Jan 03 2018 Merlin Mathesius <mmathesi@redhat.com> - 3.7-2
981213
- Cleanup spec file conditionals
981213
981213
* Sat Dec 30 2017 Adrian Reber <adrian@lisas.de> - 3.7-1
981213
- Update to 3.7
981213
981213
* Fri Dec 15 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6-2
981213
- Update Python 2 dependency declarations to new packaging standards
981213
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
981213
981213
* Thu Oct 26 2017 Adrian Reber <adrian@lisas.de> - 3.6-1
981213
- Update to 3.6
981213
981213
* Wed Oct 18 2017 Adrian Reber <adrian@lisas.de> - 3.5-5
981213
- Added patch to fix build on Fedora rawhide aarch64
981213
981213
* Tue Oct 10 2017 Adrian Reber <areber@redhat.com> - 3.5-4
981213
- Upgrade imported manpages to 3.5
981213
981213
* Mon Oct 09 2017 Adrian Reber <areber@redhat.com> - 3.5-3
981213
- Fix ExclusiveArch on RHEL
981213
981213
* Mon Oct 02 2017 Adrian Reber <adrian@lisas.de> - 3.5-2
981213
- Merge RHEL and Fedora spec file
981213
981213
* Thu Sep 28 2017 Adrian Reber <adrian@lisas.de> - 3.5-1
981213
- Update to 3.5 (#1496614)
981213
981213
* Sun Aug 27 2017 Adrian Reber <adrian@lisas.de> - 3.4-1
981213
- Update to 3.4 (#1483774)
981213
- Removed upstreamed patches
981213
- Added s390x (#1475719)
981213
981213
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3-5
981213
- Python 2 binary package renamed to python2-criu
981213
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
981213
981213
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-4
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
981213
981213
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-3
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
981213
981213
* Thu Jul 20 2017 Adrian Reber <adrian@lisas.de> - 3.3-2
981213
- Added patches to handle changes in glibc
981213
981213
* Wed Jul 19 2017 Adrian Reber <adrian@lisas.de> - 3.3-1
981213
- Update to 3.3
981213
981213
* Fri Jun 30 2017 Adrian Reber <adrian@lisas.de> - 3.2.1-2
981213
- Added patches to handle unified hierarchy and new glibc
981213
981213
* Wed Jun 28 2017 Adrian Reber <adrian@lisas.de> - 3.2.1-1
981213
- Update to 3.2.1-1
981213
981213
* Tue Jun 13 2017 Orion Poplawski <orion@cora.nwra.com> - 3.1-2
981213
- Rebuild for protobuf 3.3.1
981213
981213
* Mon May 22 2017 Adrian Reber <adrian@lisas.de> - 3.1-1
981213
- Update to 3.1
981213
981213
* Tue Apr 25 2017 Adrian Reber <adrian@lisas.de> - 3.0-1
981213
- Update to 3.0
981213
981213
* Thu Mar 09 2017 Adrian Reber <adrian@lisas.de> - 2.12-1
981213
- Update to 2.12
981213
981213
* Fri Feb 17 2017 Adrian Reber <adrian@lisas.de> - 2.11.1-1
981213
- Update to 2.11.1
981213
981213
* Thu Feb 16 2017 Adrian Reber <adrian@lisas.de> - 2.11-1
981213
- Update to 2.11
981213
981213
* Mon Feb 13 2017 Adrian Reber <adrian@lisas.de> - 2.10-4
981213
- Added patch to fix build on ppc64le
981213
981213
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-3
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
981213
981213
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 2.10-2
981213
- Rebuild for protobuf 3.2.0
981213
981213
* Mon Jan 16 2017 Adrian Reber <adrian@lisas.de> - 2.10-1
981213
- Update to 2.10
981213
981213
* Mon Dec 12 2016 Adrian Reber <adrian@lisas.de> - 2.9-1
981213
- Update to 2.9
981213
- Added crit manpage to crit subpackage
981213
981213
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 2.8-2
981213
- Rebuild for protobuf 3.1.0
981213
981213
* Tue Nov 15 2016 Adrian Reber <adrian@lisas.de> - 2.8-1
981213
- Update to 2.8
981213
- Dropped 'mount_resolve_path()' patch
981213
981213
* Wed Oct 19 2016 Adrian Reber <adrian@lisas.de> - 2.7-2
981213
- Added upstream patch to fix #1381351
981213
  ("criu: mount_resolve_path(): criu killed by SIGSEGV")
981213
981213
* Wed Oct 19 2016 Adrian Reber <adrian@lisas.de> - 2.7-1
981213
- Update to 2.7
981213
981213
* Tue Sep 13 2016 Adrian Reber <adrian@lisas.de> - 2.6-1
981213
- Update to 2.6
981213
981213
* Tue Aug 30 2016 Adrian Reber <adrian@lisas.de> - 2.5-1
981213
- Update to 2.5
981213
981213
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
981213
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
981213
981213
* Tue Jul 12 2016 Adrian Reber <adrian@lisas.de> - 2.4-1
981213
- Update to 2.4
981213
981213
* Tue Jun 14 2016 Adrian Reber <areber@redhat.com> - 2.3-1
981213
- Update to 2.3
981213
- Copy man-page from Fedora 24 for RHEL
981213
981213
* Mon May 23 2016 Adrian Reber <adrian@lisas.de> - 2.2-1
981213
- Update to 2.2
981213
981213
* Tue Apr 12 2016 Adrian Reber <adrian@lisas.de> - 2.1-2
981213
- Remove crtools symbolic link
981213
981213
* Mon Apr 11 2016 Adrian Reber <adrian@lisas.de> - 2.1-1
981213
- Update to 2.1
981213
981213
* Wed Apr 06 2016 Adrian Reber <areber@redhat.com> - 2.0-2
981213
- Merge changes from Fedora
981213
981213
* Thu Mar 10 2016 Andrey Vagin <avagin@openvz.org> - 2.0-1
981213
- Update to 2.0
981213
981213
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
981213
981213
* Mon Dec 07 2015 Adrian Reber <adrian@lisas.de> - 1.8-1
981213
- Update to 1.8
981213
981213
* Mon Nov 02 2015 Adrian Reber <adrian@lisas.de> - 1.7.2-1
981213
- Update to 1.7.2
981213
981213
* Mon Sep 7 2015 Andrey Vagin <avagin@openvz.org> - 1.7-1
981213
- Update to 1.7
981213
981213
* Thu Sep 3 2015 Andrey Vagin <avagin@openvz.org> - 1.6.1-3
981213
- Build only for power64le
981213
981213
* Thu Sep 3 2015 Andrey Vagin <avagin@openvz.org> - 1.6.1-2
981213
- Build for aarch64 and power64
981213
981213
* Thu Aug 13 2015 Adrian Reber <adrian@lisas.de> - 1.6.1-1
981213
- Update to 1.6.1
981213
- Merge changes for RHEL packaging
981213
981213
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
981213
981213
* Tue Jun 09 2015 Adrian Reber <areber@redhat.com> - 1.6-1.1
981213
- adapt to RHEL7
981213
981213
* Mon Jun 01 2015 Andrew Vagin <avagin@openvz.org> - 1.6-1
981213
- Update to 1.6
981213
981213
* Thu Apr 30 2015 Andrew Vagin <avagin@openvz.org> - 1.5.2-2
981213
- Require protobuf-python and python-ipaddr for python-criu
981213
981213
* Tue Apr 28 2015 Andrew Vagin <avagin@openvz.org> - 1.5.2
981213
- Update to 1.5.2
981213
981213
* Sun Apr 19 2015 Nikita Spiridonov <nspiridonov@odin.com> - 1.5.1-2
981213
- Create python-criu and crit subpackages
981213
981213
* Tue Mar 31 2015 Andrew Vagin <avagin@openvz.org> - 1.5.1
981213
- Update to 1.5.1
981213
981213
* Sat Dec 06 2014 Adrian Reber <adrian@lisas.de> - 1.4-1
981213
- Update to 1.4
981213
981213
* Tue Sep 23 2014 Adrian Reber <adrian@lisas.de> - 1.3.1-1
981213
- Update to 1.3.1 (#1142896)
981213
981213
* Tue Sep 02 2014 Adrian Reber <adrian@lisas.de> - 1.3-1
981213
- Update to 1.3
981213
- Dropped all upstreamed patches
981213
- included pkgconfig file in -devel
981213
981213
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
981213
981213
* Thu Aug 07 2014 Andrew Vagin <avagin@openvz.org> - 1.2-4
981213
- Include inttypes.h for PRI helpers
981213
981213
* Thu Aug 07 2014 Andrew Vagin <avagin@openvz.org> - 1.2-3
981213
- Rebuilt for https://bugzilla.redhat.com/show_bug.cgi?id=1126751
981213
981213
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
981213
981213
* Fri Feb 28 2014 Adrian Reber <adrian@lisas.de> - 1.2-1
981213
- Update to 1.2
981213
- Dropped all upstreamed patches
981213
981213
* Tue Feb 04 2014 Adrian Reber <adrian@lisas.de> - 1.1-4
981213
- Create -devel subpackage
981213
981213
* Wed Dec 11 2013 Andrew Vagin <avagin@openvz.org> - 1.0-3
981213
- Fix the epoch of crtools
981213
981213
* Tue Dec 10 2013 Andrew Vagin <avagin@openvz.org> - 1.0-2
981213
- Rename crtools to criu #1034677
981213
981213
* Wed Nov 27 2013 Andrew Vagin <avagin@openvz.org> - 1.0-1
981213
- Update to 1.0
981213
981213
* Thu Oct 24 2013 Andrew Vagin <avagin@openvz.org> - 0.8-1
981213
- Update to 0.8
981213
981213
* Tue Sep 10 2013 Andrew Vagin <avagin@openvz.org> - 0.7-1
981213
- Update to 0.7
981213
981213
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
981213
981213
* Wed Jul 24 2013 Andrew Vagin <avagin@openvz.org> - 0.6-3
981213
- Delete all kind of -fstack-protector gcc options
981213
981213
* Wed Jul 24 2013 Andrew Vagin <avagin@openvz.org> - 0.6-3
981213
- Added arm macro to ExclusiveArch
981213
981213
* Wed Jul 03 2013 Andrew Vagin <avagin@openvz.org> - 0.6-2
981213
- fix building on ARM
981213
- fix null pointer dereference
981213
981213
* Tue Jul 02 2013 Adrian Reber <adrian@lisas.de> - 0.6-1
981213
- updated to 0.6
981213
- upstream moved binaries to sbin
981213
- using upstream's make install
981213
981213
* Tue May 14 2013 Adrian Reber <adrian@lisas.de> - 0.5-1
981213
- updated to 0.5
981213
981213
* Fri Feb 22 2013 Adrian Reber <adrian@lisas.de> - 0.4-1
981213
- updated to 0.4
981213
981213
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
981213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
981213
981213
* Tue Jan 22 2013 Adrian Reber <adrian@lisas.de> - 0.3-3
981213
- added ExclusiveArch blocker bug
981213
981213
* Fri Jan 18 2013 Adrian Reber <adrian@lisas.de> - 0.3-2
981213
- improved Summary and Description
981213
981213
* Mon Jan 14 2013 Adrian Reber <adrian@lisas.de> - 0.3-1
981213
- updated to 0.3
981213
- fix building Documentation/
981213
981213
* Tue Aug 21 2012 Adrian Reber <adrian@lisas.de> - 0.2-2
981213
- remove macros like %%{__mkdir_p} and %%{__install}
981213
- add comment why it is only x86_64
981213
981213
* Tue Aug 21 2012 Adrian Reber <adrian@lisas.de> - 0.2-1
981213
- initial release