File python-pyamdgpuinfo.spec of Package python-pyamdgpuinfo
#
# spec file for package python-pyamdgpuinfo
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-pyamdgpuinfo
Version: 2.1.6
Release: 0
Summary: AMD GPU stats
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0-only
URL: https://github.com/mark9064/pyamdgpuinfo
Source: https://github.com/mark9064/pyamdgpuinfo/archive/refs/tags/v%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module Cython >= 3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: libdrm-devel
BuildRequires: fdupes
%python_subpackages
%description
%prep
%autosetup -p1 -n pyamdgpuinfo-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}/%{$python_sitearch}/pyamdgpuinfo
%check
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/pyamdgpuinfo*
%changelog