File virt-bootstrap.spec of Package virt-bootstrap.11862
#
# spec file for package virt-bootstrap
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: virt-bootstrap
Version: 1.0.0
Release: 0
Summary: System container rootfs creation tool
License: GPL-3.0+
Group: Productivity/Other
Url: https://github.com/virt-manager/virt-bootstrap
Source: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz
Patch0: 5cdf0c9c-Don-t-expose-the-root_password-via-command-line.patch
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
ExcludeArch: %ix86 s390
%python_subpackages
%description
Provides a way to create the root file system to use for
libvirt containers.
%prep
%setup -q
%patch0 -p1
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%files %python_files
%defattr(-,root,root)
%doc README.md LICENSE ChangeLog AUTHORS
%python3_only %{_bindir}/virt-bootstrap
%{python_sitelib}/virtBootstrap
%{python_sitelib}/virt_bootstrap-*.egg-info
%python3_only %{_mandir}/man1/virt-bootstrap*
%changelog