File python-hwdata.spec of Package python-hwdata
#
# spec file for package python-hwdata
#
# 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-hwdata
Version: 2.4.1
Release: 0
Summary: Python bindings to hwdata package
BuildArch: noarch
License: GPL-2.0-or-later
URL: https://github.com/xsuchy/python-hwdata
Source: https://github.com/xsuchy/python-hwdata/archive/refs/tags/python-hwdata-python-hwdata-%{version}-1.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pylint}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: hwdata
%python_subpackages
%description
Provide python interface to database stored in hwdata package. It allows you to get human readable description of USB and PCI devices.
%prep
%setup -q -n %{name}-%{name}-%{version}-1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
pylint-3 hwdata.py example.py || :
%files %{python_files}
%license LICENSE
%doc README.md example.py
%doc html
%{python_sitelib}/hwdata.py*
%pycache_only %{python_sitelib}/__pycache__/hwdata*
%{python_sitelib}/hwdata-%{version}-*info
%changelog