# Created by pyp2rpm-3.3.2 %global pypi_name py3nvml Name: python-%{pypi_name} Version: 0.2.7 Release: 4%{?dist} Summary: Python 3 Bindings for the NVIDIA Management Library License: BSD URL: https://github.com/fbcotter/py3nvml Source0: %{url}/archive/%{version}/%{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} %package -n python3-%{pypi_name}-doc Summary: Documentation for %{pypi_name} BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) %description -n python3-%{pypi_name}-doc %{_description} This package contains the documentation for %{pypi_name}. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build # Generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # Remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{_bindir}/py3smi %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}/ %files -n python3-%{pypi_name}-doc %doc html %license LICENSE %changelog * Fri Jan 20 2023 Fedora Release Engineering - 0.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2.7-2 - Rebuilt for Python 3.11 * Tue Apr 05 2022 Artem Polishchuk - 0.2.7-1 - chore(update): 0.2.7 * Fri Jan 21 2022 Fedora Release Engineering - 0.2.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2.6-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.2.6-2 - Rebuilt for Python 3.9 * Tue Apr 07 2020 Artem Polishchuk - 0.2.6-1 - Update to 0.2.6 * Thu Jan 30 2020 Fedora Release Engineering - 0.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Oct 12 2019 Artem Polishchuk - 0.2.5-1 - Update to 0.2.5 * Fri Oct 11 2019 Artem Polishchuk - 0.2.4-1 - Update to 0.2.4 * Thu Oct 03 2019 Miro Hrončok - 0.2.3-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.2.3-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 25 2019 Artem Polishchuk - 0.2.3-2 - Added docs and spec file fixes. * Wed Mar 20 2019 Artem Polishchuk - 0.2.3-1 - Initial package.