summaryrefslogtreecommitdiff
path: root/proxsuite.spec
diff options
context:
space:
mode:
Diffstat (limited to 'proxsuite.spec')
-rw-r--r--proxsuite.spec13
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