diff --git a/pynvml-11.4.1.tar.gz b/pynvml-11.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4f9cbd026cd11cf74bd38bd3c1614ff6d863fa8b Binary files /dev/null and b/pynvml-11.4.1.tar.gz differ diff --git a/python-pynvml.spec b/python-pynvml.spec new file mode 100644 index 0000000000000000000000000000000000000000..44560dd21274628442f07e7323401eb0ca83cb50 --- /dev/null +++ b/python-pynvml.spec @@ -0,0 +1,48 @@ +%global pypi_name pynvml +%global pypi_version 11.4.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Python Bindings for the NVIDIA Management Library + +License: BSD +URL: http://www.nvidia.com/ +Source0: https://files.pythonhosted.org/packages/source/%/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Python bindings to the NVIDIA Management Library Provides a Python interface to +GPU management and monitoring functions. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Python bindings to the NVIDIA Management Library Provides a Python interface to +GPU management and monitoring functions. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Thu Jan 27 2022 zhangkea - 11.4.1-1 +- Initial package. \ No newline at end of file