Name: python-amd-debug-tools Version: 0.2.8 Release: %autorelease Summary: Helpful tools for debugging AMD Zen systems License: MIT URL: https://web.git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git Source: %{url}/snapshot/amd-debug-tools-%{version}.tar.gz BuildArch: noarch ExclusiveArch: x86_64 BuildRequires: python3-devel BuildRequires: python3dist(jinja2) BuildRequires: python3dist(numpy) BuildRequires: python3dist(pandas) BuildRequires: python3dist(pip) BuildRequires: python3dist(pyudev) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-git-versioning) BuildRequires: python3dist(tabulate) Requires: libdisplay-info-tools %global _description %{expand: This repository hosts open tools that are useful for debugging issues on AMD systems.} %description %_description %package -n python3-amd-debug-tools Summary: %{summary} %description -n python3-amd-debug-tools %_description %prep %autosetup -p1 -n amd-debug-tools-%{version} # strip the version requirements sed -i -e 's@setuptools-git-versioning>=2.0,<3@setuptools-git-versioning@' pyproject.toml # remove cysystemd sed -i -e '/cysystemd/d' pyproject.toml # E: non-executable-script /usr/lib/python3.14/site-packages/amd_debug sed -i -e '/#!/d' src/amd_debug/*.py sed -i -e '/#!/d' src/amd_debug/s2idle-hook %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l amd_debug # remove test things rm -f %{buildroot}%{python3_sitelib}/{,__pycache__/}launcher* rm -f %{buildroot}%{python3_sitelib}/{,__pycache__/}test* %check %pyproject_check_import %files -n python3-amd-debug-tools -f %{pyproject_files} %doc docs/amd-*.md %{_bindir}/amd-* %changelog %autochangelog