File python3-pynest2d.spec of Package failed_python3-pynest2d
```
#
# spec file for package python3-pynest2d
#
# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
Name: python3-pynest2d
Version: 4.12.0
Release: 1.1
Summary: Python bindings for libnest2d
License: LGPL-2.1-or-later
Group: Development/Languages/Python
URL: https://github.com/tamasmeszaros/libnest2d
Source0: %{name}-%{version}.tar.gz
Patch0: pynest2d-PyQt5.sip.patch
Patch1: Retrieve-required-flags-from-Libnest2D-target.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libnest2d-devel
BuildRequires: python313-devel
BuildRequires: python313-sip4-devel
BuildRequires: python313-distutils
Requires: python313-sip4
%description
Python bindings for libnest2d, a 2D nesting library.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
mkdir -p build
cd build
cmake %{_sourcedir}/%{name}-%{version} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%files
%license LICENSE
%doc README.md
%{_libdir}/python3.13/site-packages/pynest2d*
%{_includedir}/pynest2d*
%changelog
* Fri Aug 08 2025 Your Name <your.email@example.com> - 4.12.0-1.1
- Add python313-distutils as BuildRequires to fix missing distutils module
* Thu Jul 24 2025 Your Name <your.email@example.com> - 4.12.0-1
- Initial package
```
---
### Explanation of Changes
1. **Added `BuildRequires: python313-distutils`:**
- This ensures that the `distutils` module is available during the build process. Without this module, the CMake configuration step fails when attempting to locate Python's `site-packages` directory.
2. **No Other Changes Made:**
- The rest of the `.spec` file remains unchanged, as the issue is solely related to the missing `distutils` module.
### Next Steps
After applying this fix, rebuild the package. The build should now succeed, as the `distutils` module will be available for the CMake configuration step.