diff --git a/pynvml-11.4.1.tar.gz b/pynvml-11.4.1.tar.gz deleted file mode 100644 index 4f9cbd026cd11cf74bd38bd3c1614ff6d863fa8b..0000000000000000000000000000000000000000 Binary files a/pynvml-11.4.1.tar.gz and /dev/null differ diff --git a/pynvml-11.5.0.tar.gz b/pynvml-11.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d52e118418174e729ee9a47f27bcb22c7de4bf1b Binary files /dev/null and b/pynvml-11.5.0.tar.gz differ diff --git a/python-pynvml.spec b/python-pynvml.spec index 0f1870c52c7f5c66b5ced0804e0d0289639eecd7..51b15050c895ca5313e2556fff3cd6f1698e4ca7 100644 --- a/python-pynvml.spec +++ b/python-pynvml.spec @@ -1,49 +1,81 @@ -%global pypi_name pynvml -%global pypi_version 11.4.1 - -Name: python-%{pypi_name} -Version: %{pypi_version} -Release: 2 -Summary: Python Bindings for the NVIDIA Management Library - -License: BSD-3-Clause -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 +%global _empty_manifest_terminate_build 0 +Name: python-pynvml +Version: 11.5.0 +Release: 1 +Summary: Python Bindings for the NVIDIA Management Library +License: BSD-3-Clause +URL: http://www.nvidia.com/ +Source0: https://files.pythonhosted.org/packages/77/1b/dbc48e97c0c005a5ac4574dbea98465211e918dd79e6bdbde21ee77cccb9/pynvml-11.5.0.tar.gz +BuildArch: noarch %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}} +%package -n python3-pynvml +Summary: Python Bindings for the NVIDIA Management Library +Provides: python-pynvml = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-pynvml +Python bindings to the NVIDIA Management Library Provides a Python interface to +GPU management and monitoring functions. -%description -n python3-%{pypi_name} +%package help +Summary: Development documents and examples for pynvml +Provides: python3-pynvml-doc +%description help 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 +%autosetup -n pynvml-%{version} %build %py3_build %install %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%files -n python3-%{pypi_name} +%files -n python3-pynvml -f filelist.lst +%dir %{python3_sitelib}/* %license LICENSE.txt -%doc README.md -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Feb 28 2023 wangjunqi - 11.5.0-1 +- Update package to version 11.5.0 + * Wed May 11 2022 xigaoxinyan - 11.4.1-2 - License compliance rectification