File klp-build.spec of Package failed_klp-build
```
Name: klp-build
Version: 0~20250108.8e6c7f6
Release: 1.1
Summary: Tool for building Kernel Live Patching packages
License: MIT
URL: https://example.com/klp-build
Source0: %{name}-%{version}.tar.xz
BuildRequires: python313-devel
BuildRequires: python313-setuptools
Requires: python313
%description
A tool for building Kernel Live Patching packages.
%prep
%setup -q
%build
%py3_build
%install
%py3_install
%files
%license LICENSE
%doc README.md
%{python3_sitelib}/klpbuild/
%{python3_sitelib}/klp_build-*.egg-info
%changelog
* Sun Aug 10 2025 Your Name <your.email@example.com> - 0~20250108.8e6c7f6-1.1
- Updated to support Python 3.13
- Fixed directory mismatch in RPM build process
```
---
### Explanation of Changes:
1. **Python Version Update:**
- Replaced `python311` with `python313` in `BuildRequires`, `Requires`, and `%py3_build`/`%py3_install` macros to ensure compatibility with Python 3.13.
2. **File Path Correction:**
- The `%files` section now dynamically references the correct Python site-packages directory using `%{python3_sitelib}`. This ensures that the `.egg-info` directory matches the installed Python version.
3. **Changelog Entry:**
- Added a changelog entry to document the fix for Python version compatibility.
---
By applying these changes, the RPM build process should no longer encounter the "Directory not found" error, as it will correctly reference Python 3.13 paths.