3c50238
# Created by pyp2rpm-3.3.2
3c50238
%global pypi_name py3nvml
3c50238
3c50238
Name:           python-%{pypi_name}
339b923
Version:        0.2.7
8f0e824
Release:        10%{?dist}
3c50238
Summary:        Python 3 Bindings for the NVIDIA Management Library
3c50238
e3f2197
License:        BSD-3-Clause
3c50238
URL:            https://github.com/fbcotter/py3nvml
3c50238
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
3c50238
BuildArch:      noarch
cf1e473
3c50238
BuildRequires:  python3-devel
3c50238
BuildRequires:  python3dist(setuptools)
3c50238
3c50238
%global _description \
3c50238
Python 3 compatible bindings to the NVIDIA Management Library. Can be used to \
3c50238
query the state of the GPUs on your system.
3c50238
3c50238
%description %{_description}
3c50238
b610a95
3c50238
%package -n     python3-%{pypi_name}
3c50238
Summary:        %{summary}
3c50238
%{?python_provide:%python_provide python3-%{pypi_name}}
cf1e473
3c50238
Requires:       python3dist(xmltodict)
3c50238
%description -n python3-%{pypi_name} %{_description}
3c50238
b610a95
3c50238
%package -n     python3-%{pypi_name}-doc
3c50238
Summary:        Documentation for %{pypi_name}
3c50238
3c50238
BuildRequires:  python3dist(sphinx)
3c50238
BuildRequires:  python3dist(sphinx-rtd-theme)
3c50238
3c50238
%description -n python3-%{pypi_name}-doc %{_description}
3c50238
3c50238
This package contains the documentation for %{pypi_name}.
3c50238
b610a95
3c50238
%prep
3c50238
%autosetup -n %{pypi_name}-%{version}
b610a95
3c50238
# Remove bundled egg-info
3c50238
rm -rf %{pypi_name}.egg-info
3c50238
b610a95
3c50238
%build
3c50238
%py3_build
3c50238
3c50238
# Generate html docs
3c50238
PYTHONPATH=${PWD} sphinx-build-3 docs html
b610a95
3c50238
# Remove the sphinx-build leftovers
3c50238
rm -rf html/.{doctrees,buildinfo}
3c50238
b610a95
3c50238
%install
3c50238
%py3_install
3c50238
b610a95
3c50238
%files -n python3-%{pypi_name}
3c50238
%doc README.rst
3c50238
%license LICENSE
3c50238
%{_bindir}/py3smi
15f41f1
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
b610a95
%{python3_sitelib}/%{pypi_name}/
3c50238
3c50238
%files -n python3-%{pypi_name}-doc
3c50238
%doc html
3c50238
%license LICENSE
3c50238
b610a95
3c50238
%changelog
8f0e824
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.2.7-10
8f0e824
- Rebuilt for Python 3.13
8f0e824
28b8b99
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-9
28b8b99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
28b8b99
d3925df
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-8
d3925df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d3925df
9e54d83
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-7
9e54d83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9e54d83
4117b51
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.2.7-6
4117b51
- Rebuilt for Python 3.12
4117b51
e3f2197
* Fri Mar 03 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.2.7-5
e3f2197
- migrated to SPDX license
e3f2197
2a68177
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-4
2a68177
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2a68177
507386c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
507386c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
507386c
e9f6e7d
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.7-2
e9f6e7d
- Rebuilt for Python 3.11
e9f6e7d
339b923
* Tue Apr 05 2022 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.7-1
339b923
- chore(update): 0.2.7
339b923
89ebfb0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-7
89ebfb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
89ebfb0
599fe70
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-6
599fe70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
599fe70
f408354
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.6-5
f408354
- Rebuilt for Python 3.10
f408354
f0d8c8e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-4
f0d8c8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f0d8c8e
90b97bb
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
90b97bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
90b97bb
69f13b7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.6-2
69f13b7
- Rebuilt for Python 3.9
69f13b7
b610a95
* Tue Apr 07 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.6-1
b610a95
- Update to 0.2.6
b610a95
858a719
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-2
858a719
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
858a719
10f72c2
* Sat Oct 12 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.5-1
10f72c2
- Update to 0.2.5
10f72c2
cf1e473
* Fri Oct 11 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.4-1
cf1e473
- Update to 0.2.4
cf1e473
90c2c65
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-5
90c2c65
- Rebuilt for Python 3.8.0rc1 (#1748018)
90c2c65
fb4ceab
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-4
fb4ceab
- Rebuilt for Python 3.8
fb4ceab
293212d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-3
293212d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
293212d
3c50238
* Mon Mar 25 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.3-2
3c50238
- Added docs and spec file fixes.
3c50238
3c50238
* Wed Mar 20 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.3-1
cf1e473
- Initial package.