Hello community, here is the log from the commit of package virt-bootstrap for openSUSE:Factory checked in at 2020-04-16 23:04:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virt-bootstrap (Old) and /work/SRC/openSUSE:Factory/.virt-bootstrap.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virt-bootstrap" Thu Apr 16 23:04:11 2020 rev:7 rq:794529 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/virt-bootstrap/virt-bootstrap.changes 2019-07-13 14:00:48.286890529 +0200 +++ /work/SRC/openSUSE:Factory/.virt-bootstrap.new.2738/virt-bootstrap.changes 2020-04-16 23:04:14.319727399 +0200 @@ -1,0 +2,5 @@ +Tue Mar 31 19:43:08 UTC 2020 - Matej Cepl <[email protected]> + +- Don't use %python3_only command, but properly use alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virt-bootstrap.spec ++++++ --- /var/tmp/diff_new_pack.fwIatn/_old 2020-04-16 23:04:14.867727887 +0200 +++ /var/tmp/diff_new_pack.fwIatn/_new 2020-04-16 23:04:14.871727891 +0200 @@ -1,7 +1,7 @@ # # spec file for package virt-bootstrap # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,21 +23,20 @@ Summary: System container rootfs creation tool License: GPL-3.0-or-later Group: Productivity/Other -Url: https://github.com/virt-manager/virt-bootstrap +URL: https://github.com/virt-manager/virt-bootstrap Source: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module libguestfs} BuildRequires: %{python_module passlib} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: python-libguestfs Requires: python-passlib Requires: skopeo Requires: virt-sandbox BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64 powerpc64le - %python_subpackages %description @@ -52,14 +51,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/virt-bootstrap +%python_clone -a %{buildroot}%{_mandir}/man1/virt-bootstrap.1 %fdupes %{buildroot}%{_prefix} -%files %python_files -%defattr(-,root,root) -%doc README.md LICENSE ChangeLog AUTHORS -%python3_only %{_bindir}/virt-bootstrap +%post +%python_install_alternative virt-bootstrap virt-bootstrap.1 + +%postun +%python_uninstall_alternative virt-bootstrap virt-bootstrap.1 + +%files %{python_files} +%license LICENSE +%doc README.md ChangeLog AUTHORS +%python_alternative %{_bindir}/virt-bootstrap %{python_sitelib}/virtBootstrap %{python_sitelib}/virt_bootstrap-*.egg-info -%python3_only %{_mandir}/man1/virt-bootstrap* +%python_alternative %{_mandir}/man1/virt-bootstrap.1%{ext_man} %changelog
