# Created by pyp2rpm-3.3.2 %global pypi_name py3nvml Name: python-%{pypi_name} Version: 0.2.3 Release: 1%{?dist} Summary: Python 3 Bindings for the NVIDIA Management Library License: BSD URL: https://github.com/fbcotter/py3nvml.git Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %global _description \ Python 3 compatible bindings to the NVIDIA Management Library. Can be used to \ query the state of the GPUs on your system. %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(xmltodict) %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{_bindir}/py3smi %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Mar 20 2019 Artem Polishchuk - 0.2.3-1 - Initial package.