File soliddriver-checks.spec of Package soliddriver-checks

#
# spec file for package python-soliddriver-checks
#
# Copyright (c) 2021 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

Name:           python-soliddriver-checks
Version:        3.0.0
Release:        0
Summary:        Check RPM(s) and Drivers information
License:        GPL-2.0-or-later
URL:            https://github.com/suse/soliddriver-checks
Source:         https://files.pythonhosted.org/packages/source/s/soliddriver-checks/soliddriver-checks-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
# SECTION test requirements
# /SECTION
BuildRequires:  fdupes
Requires:       python-click
Requires:       python-paramiko
Requires:       python-pandas
Requires:       python-dominate
# minimal version of jinja2 exist on leap 15.4
Requires:       python-jinja2 >= 2.10.1
Requires:       python-rich
Requires:       python-pdfkit
Requires:       python-openpyxl
BuildArch:      noarch
%python_subpackages

%description
Check RPM(s) and Drivers information

%prep
%setup -q -n soliddriver-checks-%{version}

%build
%python_build

%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/soliddriver-checks
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative soliddriver-checks

%postun
%python_uninstall_alternative soliddriver-checks

%files %{python_files}
%doc README.md
%python_alternative %{_bindir}/soliddriver-checks
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by