Name: python-amd-debug-tools Version: 0.2.10 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 Source0: %{url}/snapshot/amd-debug-tools-%{version}.tar.gz # Missing for the git tarball, recreate by # pip install build # make # And then untaring the dist/amd_debug_tools-* Source1: PKG-INFO BuildArch: noarch ExclusiveArch: x86_64 BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: pyproject-rpm-macros %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} Requires: acpica-tools Requires: ethtool Requires: libdisplay-info-tools Requires: v4l-utils %description -n python3-amd-debug-tools %_description %prep %autosetup -p1 -n amd-debug-tools-%{version} cp %{SOURCE1} . # 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 %generate_buildrequires %pyproject_buildrequires %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