File python-hardware.spec of Package python-hardware

#
# spec file for package python-hardware
#
# 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/
#


Name:           python-hardware
Version:        0.30.0
Release:        0
Summary:        Hardware detection and classification utilities
License:        Apache-2.0
URL:            https://github.com/redhat-cip/hardware
Source0:        https://files.pythonhosted.org/packages/source/h/hardware/hardware-%{version}.tar.gz
BuildRequires:  %{python_module Babel}
BuildRequires:  %{python_module pexpect}
BuildRequires:  %{python_module stestr}
BuildRequires:  %{python_module testtools}
BuildRequires:  python-rpm-macros
Requires:       python-pbr
Requires:       python-pexpect
BuildArch:      noarch
%python_subpackages

%description
Hardware detection and classification utilities

%prep
%autosetup -p1 -n hardware-%{version}

%build
%python_build

%install
%python_install

%check
%python_exec -m stestr.cli --test-path hardware/tests run

%files %{python_files}
%license LICENSE
%doc README.rst
%{_bindir}/hardware-detect
%{python_sitelib}/hardware
%{python_sitelib}/hardware-%{version}*-info

%changelog
openSUSE Build Service is sponsored by