File crtools.spec of Package crtools

Name: crtools
Version: 3.8.1
Release: 1
Summary: Utility to checkpoint/restore tasks
License: GPL-2.0
Group: System/Configuration/Other
URL: http://criu.org
Source: %name-%version.tar.xz
Source9: %name-rpmlintrc
#Patch0: %name-%version-git.patch
Patch2: %name-2.8-fix-test.patch
Provides: criu = %version-%release
ExclusiveArch: x86_64 armv7hl armv7hnl aarch64 ppc64

BuildRequires: pkgconfig(protobuf) protobuf-c libprotobuf-c-devel
BuildRequires: asciidoc xmlto python-base libcap-devel libnet-devel
BuildRequires: pkg-config pkgconfig(libnl-3.0)

%description
An utility to checkpoint/restore tasks.


%package -n libcriu
Summary: Shared library of checkpoint/restore
Group: System/Libraries
Provides: libcriu1 = %version-%release

%description -n libcriu
Shared library of checkpoint/restore.


%package -n libcriu-devel
Summary: Files for development with libcriu
Group: Development/C
Requires: libcriu = %version-%release

%description -n libcriu-devel
Files for development with libcriu.


%package -n crit
Summary: CRiu Image Tool
Group: System/Configuration/Other
BuildArch: noarch
Provides: pycriu = %version-%release
Requires: python-protobuf python-ipaddr

%description -n crit
CRiu Image Tool for convert criu image from binary to json and from json to
binary.


%prep
%setup -q
#patch0 -p1
%patch2 -p1
sed -i '1d' lib/py/images/images.py


%build
export CFLAGS="%optflags"
%make_build PREFIX=%_prefix V=1 all docs


%install
%make_install PREFIX=%_prefix LIBDIR=%_libdir SYSTEMDUNITDIR=%_unitdir
ln -sf service %buildroot%_sbindir/rccriu


%post -n libcriu -p /sbin/ldconfig
%postun -n libcriu -p /sbin/ldconfig


%files
%defattr(-,root,root)
%doc README*
%_sbindir/*
%_mandir/man8/*
%exclude %_prefix/libexec


%files -n libcriu
%defattr(-,root,root)
%_libdir/*.so.*


%files -n libcriu-devel
%defattr(-,root,root)
%_includedir/*
%_libdir/*.so
%exclude %_libdir/*.a
%_pkgconfigdir/*


%files -n crit
%defattr(-,root,root)
%_bindir/*
%_mandir/man1/*
%python_sitelib/*


%changelog
* Sat Apr 21 2018 Led <ledest@gmail.com> 3.8.1-1
- 3.8.1

* Tue Mar 27 2018 Led <ledest@gmail.com> 3.8-1
- 3.8

* Tue Jan 02 2018 Led <ledest@gmail.com> 3.7-1
- 3.7

* Tue Oct 23 2017 Led <ledest@gmail.com> 3.6-1
- 3.6

* Sat Sep 30 2017 Led <ledest@gmail.com> 3.5-1
- 3.5

* Mon Aug 21 2017 Led <ledest@gmail.com> 3.4-1
- 3.4

* Thu Jul 18 2017 Led <ledest@gmail.com> 3.3-1
- 3.3

* Fri Jun 30 2017 Led <ledest@gmail.com> 3.2.1-1
- 3.2.1

* Sat Jun 24 2017 Led <ledest@gmail.com> 3.2-1
- 3.2

* Fri May 26 2017 Led <ledest@gmail.com> 3.1-1
- 3.1

* Tue May 02 2017 Led <ledest@gmail.com> 3.0-1
- 3.0

* Thu Mar 30 2017 Led <ledest@gmail.com> 2.12.1-1
- 2.12.1

* Sun Mar 19 2017 Led <ledest@gmail.com> 2.12-1
- 2.12

* Sun Mar 19 2017 Led <ledest@gmail.com> 2.11.1-1
- 2.11.1
- remove patches:
  + crtools-2.10-logrotatedir.patch

* Tue Feb 07 2017 Led <ledest@gmail.com> 2.10-1
- 2.10
- update patches:
  + crtools-2.10-logrotatedir.patch
- update BuildRequires

* Sun Dec 18 2016 Led <ledest@gmail.com> 2.9-1
- 2.9

* Sun Nov 20 2016 Led <ledest@gmail.com> 2.8-1
- 2.8
- git 9117dd6
- update patches:
  + crtools-2.8-fix-test.patch

* Thu Oct 27 2016 Led <ledest@gmail.com> 2.7-1
- 2.7

* Tue Sep 13 2016 Led <ledest@gmail.com> 2.6-1
- 2.6

* Fri Aug 19 2016 Led <ledest@gmail.com> 2.5-1
- 2.5

* Tue Jul 12 2016 Led <ledest@gmail.com> 2.4-1
- 2.4
- update patches:
  + crtools-2.4-logrotatedir.patch

* Sat Jun 25 2016 Led <ledest@gmail.com> 2.3-1
- 2.3

* Mon May 23 2016 Led <ledest@gmail.com> 2.2-2
- add patches:
  + crtools-2.2-fix-test.patch

* Sun May 22 2016 Led <ledest@gmail.com> 2.2-1
- 2.2

* Mon Apr 11 2016 Led <ledest@gmail.com> 2.1-1
- 2.1

* Sat Apr 02 2016 Led <ledest@gmail.com> 2.0-1
- 2.0
- update patches:
  + crtools-2.0-logrotatedir.patch
- update BuildRequires

* Sat Apr 02 2016 Led <ledest@gmail.com> 1.8-1
- 1.8
- update patches:
  + crtools-1.8-logrotatedir.patch

* Sun Nov 29 2015 Led <ledest@gmail.com> 1.7.2-1
- 1.7.2

* Sun Oct 25 2015 Led <ledest@gmail.com> 1.7.1-1
- 1.7.1

* Sat Sep 12 2015 Led <ledest@gmail.com> 1.7-1
- 1.7

* Tue Aug 18 2015 Led <ledest@gmail.com> 1.6.1-1
- 1.6.1
- remove patches:
  + crtools-1.6-git.patch

* Tue Aug 11 2015 Led <ledest@gmail.com> 1.6-1
- 1.6
- add patches:
  + crtools-1.6-git.patch

* Tue Apr 28 2015 Led <ledest@gmail.com> 1.5.2-1
- 1.5.2
- remove patches:
  + crtools-1.5.1-git.patch

* Thu Apr 23 2015 Led <ledest@gmail.com> 1.5.1-2
- add patches:
  + crtools-1.5.1-git.patch

* Sat Apr 11 2015 Led <ledest@gmail.com> 1.5.1-1
- 1.5.1

* Mon Mar 16 2015 Led <ledest@gmail.com> 1.5-3
- clean up requires of crit subpackage

* Mon Mar 16 2015 Led <ledest@gmail.com> 1.5-2
- fix BuildRequires

* Mon Mar 16 2015 Led <ledest@gmail.com> 1.5-1
- 1.5
- add subpackage crit
- update BuildRequires
- remove patches:
  * crtools-1.4-tty.patch

* Thu Dec 11 2014 Led <ledest@gmail.com> 1.4-1
- 1.4 with upstream fixes

* Tue Oct 28 2014 Led <ledest@gmail.com> 1.3.1-2
- upstream fixes

* Sat Oct 18 2014 Led <ledest@gmail.com> 1.3.1-1
- 1.3.1

* Thu Sep 11 2014 Led <ledest@gmail.com> 1.3-1
- 1.3 release

* Mon Sep 01 2014 Led <ledest@gmail.com> 1.3-0.1
- initial build for OBS

* Sat Aug 30 2014 Led <led@altlinux.ru> 1.3-alt0.22
- upstream updates and fixes

* Thu Aug 28 2014 Led <led@altlinux.ru> 1.3-alt0.21
- upstream updates and fixes

* Tue Aug 26 2014 Led <led@altlinux.ru> 1.3-alt0.20
- upstream updates and fixes

* Sun Aug 17 2014 Led <led@altlinux.ru> 1.3-alt0.19
- upstream updates and fixes

* Sun Aug 10 2014 Led <led@altlinux.ru> 1.3-alt0.18
- upstream updates and fixes
- fixed build with protobuf-c >= 1.0

* Sat Jul 26 2014 Led <led@altlinux.ru> 1.3-alt0.17
- upstream updates and fixes

* Fri Jul 11 2014 Led <led@altlinux.ru> 1.3-alt0.16
- upstream updates and fixes

* Sun Jul 06 2014 Led <led@altlinux.ru> 1.3-alt0.15
- upstream updates and fixes

* Thu Jul 03 2014 Led <led@altlinux.ru> 1.3-alt0.14
- upstream updates and fixes

* Tue Jul 01 2014 Led <led@altlinux.ru> 1.3-alt0.13
- upstream updates and fixes

* Fri Jun 20 2014 Led <led@altlinux.ru> 1.3-alt0.12
- upstream updates and fixes

* Wed Jun 18 2014 Led <led@altlinux.ru> 1.3-alt0.11
- 1.3-rc2

* Thu Jun 12 2014 Led <led@altlinux.ru> 1.3-alt0.10
- upstream fixes

* Sun Jun 08 2014 Led <led@altlinux.ru> 1.3-alt0.9
- upstream fixes

* Fri Jun 06 2014 Led <led@altlinux.ru> 1.3-alt0.8
- mnt: Relax checks for top-mount in validate_mounts
- mnt: Fix validation of dumpable mountpoints

* Wed Jun 04 2014 Led <led@altlinux.ru> 1.3-alt0.7
- mnt: Devpts options get corrupted on dump (v2)

* Sat May 31 2014 Led <led@altlinux.ru> 1.3-alt0.6
- upstream fixes

* Sun May 25 2014 Led <led@altlinux.ru> 1.3-alt0.5
- upstream fixes

* Thu May 15 2014 Led <led@altlinux.ru> 1.3-alt0.4
- upstream fixes

* Mon May 12 2014 Led <led@altlinux.ru> 1.3-alt0.3
- upstream fixes

* Thu May 08 2014 Led <led@altlinux.ru> 1.3-alt0.2
- upstream fixes

* Sat Apr 26 2014 Led <led@altlinux.ru> 1.3-alt0.1
- 1.3-rc1

* Wed Feb 26 2014 Led <led@altlinux.ru> 1.2-alt1
- 1.2

* Sat Feb 01 2014 Led <led@altlinux.ru> 1.1-alt1
- 1.1 release

* Sat Jan 25 2014 Led <led@altlinux.ru> 1.1-alt0.3
- upstream fixes

* Thu Jan 23 2014 Led <led@altlinux.ru> 1.1-alt0.2
- 1.1-rc2

* Wed Jan 08 2014 Led <led@altlinux.ru> 1.1-alt0.1
- 1.1-rc1

* Sat Dec 14 2013 Led <led@altlinux.ru> 1.0-alt5
- upstream fixes

* Sat Dec 07 2013 Led <led@altlinux.ru> 1.0-alt4
- upstream fixes

* Sun Dec 01 2013 Led <led@altlinux.ru> 1.0-alt3
- upstream fixes

* Tue Nov 26 2013 Led <led@altlinux.ru> 1.0-alt2
- added TTY_MAJOR to known tty char devices group

* Tue Nov 26 2013 Led <led@altlinux.ru> 1.0-alt1
- initial build
openSUSE Build Service is sponsored by