File virtme.spec of Package virtme.18205
#
# spec file for package virtme
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pythons python3
%define skip_python39 1
%define skip_python310 1
%{?sle15_python_module_pythons}
Name: virtme
Version: 1.18
Release: 0
Summary: Tools for virtualize the running distro or a rootfs
License: GPL-2.0-only
Group: Development/Tools/Other
URL: https://github.com/arighi/virtme-ng
Source0: https://github.com/arighi/virtme-ng/archive/v%{version}.tar.gz#/%{name}-ng-%{version}.tar.gz
BuildRequires: %{python_module argcomplete}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: busybox-static
Requires: qemu
%if 0%{?suse_version} == 1500 && 0%{?sle_version} <= 150500
Requires: qemu-tools
%else
Requires: virtiofsd
%endif
BuildArch: noarch
%description
Virtme is a set of tools to run a virtualized Linux kernel that
uses the host Linux distribution or a rootfs instead of a whole
disk image.
%prep
%autosetup -n %{name}-ng-%{version} -p1
%build
%python_build
# remove pycache directories
find . -name __pycache__ -type d -exec rm -fr {} +
%install
export PYTHONDONTWRITEBYTECODE=1 %python_install
%files
%{_bindir}/virtme-configkernel
%{_bindir}/virtme-ng
%{_bindir}/virtme-mkinitramfs
%{_bindir}/virtme-prep-kdir-mods
%{_bindir}/virtme-run
%{_bindir}/vng
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}_ng
%{python_sitelib}/%{name}_ng-%{version}-py*.egg-info
%{_datadir}/bash-completion
%config(noreplace) %{_sysconfdir}/%{name}-ng.conf
%changelog