diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-29 04:40:21 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-29 04:40:21 +0000 |
| commit | 14b2f17cb5210558f0f25e8f8cea5a7d69779593 (patch) | |
| tree | f51ca043e6553e7ea9986fc022b06b04c6e9386e /control-box-rst.spec | |
| parent | 9df36ff15201d73e12ff84dd49ef59148a2d28bf (diff) | |
automatic import of ros-humble-control-box-rst
Diffstat (limited to 'control-box-rst.spec')
| -rw-r--r-- | control-box-rst.spec | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/control-box-rst.spec b/control-box-rst.spec new file mode 100644 index 0000000..067c1f7 --- /dev/null +++ b/control-box-rst.spec @@ -0,0 +1,62 @@ +%define ros_distro humble +%define RosPkgName control-box-rst +%define src_version 0.0.7-1 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.0.7 +Release: 1%{?dist} +Summary: The control_box_rst package provides C++ libraries for predictive control, dire +License: GPLv3 +URL: https://github.com/rst-tu-dortmund/control_box_rs/tree/foxy-devel +Source0: %{RosPkgName}-%{src_version}.tar.gz + +%global debug_package %{nil} +%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') +%global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ +%global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ + +BuildRequires: eigen3-devel +BuildRequires: cmake + +Requires: ros-%{ros_distro}-ros-workspace +Requires: eigen3-devel + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +The control_box_rst package provides C++ libraries for predictive control, + direct optimal control, optimization and simulation. + +%prep +%autosetup -n %{RosPkgName}-%{src_version} + +%build +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} +export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} +mkdir -p .obj && cd .obj +%cmake3 \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ + -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \ + .. +make %{?_smp_mflags} + +%install +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} +export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Tue Sep 29 2026 ai-importer <ai-importer@openeuler.org> - 0.0.7-1 +- Initial import (ROS batch) |
