diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-21 17:52:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-21 17:52:09 +0000 |
| commit | 881f779e258ca97b63d201bade1cf6cce17e5429 (patch) | |
| tree | c2a860d52cb8c4cdc05346bd04e22cd0d580db78 /proxsuite.spec | |
| parent | 907f3fa2564446f440ef899aedaefe99af6fe5c0 (diff) | |
automatic import of python-proxsuite
Diffstat (limited to 'proxsuite.spec')
| -rw-r--r-- | proxsuite.spec | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/proxsuite.spec b/proxsuite.spec index fbcf327..e808425 100644 --- a/proxsuite.spec +++ b/proxsuite.spec @@ -21,6 +21,12 @@ Summary: The Advanced Proximal Optimization Toolbox (QP/LP solvers) License: BSD-2-Clause URL: https://github.com/Simple-Robotics/proxsuite Source0: https://github.com/Simple-Robotics/proxsuite/archive/refs/tags/v%{version}/%{pypi_name}-%{version}.tar.gz +# The CMake configure step must not create directories inside the system-wide +# site-packages: the RPM build runs as an unprivileged user (mockbuild) and the +# root-owned /usr/lib64/python3.11/site-packages is not writable there, so +# `file(MAKE_DIRECTORY .../site-packages/proxsuite/torch)` aborts the configure. +# The directory is created by the install rules anyway (they honour DESTDIR). +Patch0: proxsuite-0.7.3-no-configure-time-mkdir.patch BuildRequires: cmake BuildRequires: make @@ -69,7 +75,7 @@ This package provides the header-only C++ library, the CMake package configuration (proxsuiteConfig.cmake) and the pkg-config file. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -p1 -n %{pypi_name}-%{version} %build export CFLAGS="%{optflags}" @@ -102,6 +108,11 @@ make install DESTDIR=%{buildroot} %license LICENSE %doc README.md %{python3_sitearch}/%{pypi_name}/ +# AMENT (ROS 2) metadata installed by jrl-cmakemodules' SETUP_PROJECT_FINALIZE +# (_install_project_ros2_ament_files): without these entries rpmbuild aborts +# with "Installed (but unpackaged) file(s) found". +%{_datadir}/ament_index/resource_index/packages/%{pypi_name} +%{_datadir}/%{pypi_name}/ %files -n %{pypi_name}-devel %license LICENSE |
