/
ros-noetic-kobuki-ftdi.spec
76 lines (63 loc) · 2.55 KB
/
ros-noetic-kobuki-ftdi.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
%bcond_without weak_deps
%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/noetic/.*$
%global __requires_exclude_from ^/opt/ros/noetic/.*$
Name: ros-noetic-kobuki-ftdi
Version: 0.7.12
Release: 1%{?dist}%{?release_suffix}
Summary: ROS kobuki_ftdi package
License: BSD
URL: http://ros.org/wiki/kobuki_ftdi
Source0: %{name}-%{version}.tar.gz
Requires: libftdi-c++-devel
Requires: libftdi-devel
Requires: libusb-devel
Requires: ros-noetic-ecl-command-line
BuildRequires: libftdi-c++-devel
BuildRequires: libftdi-devel
BuildRequires: libusb-devel
BuildRequires: pkgconfig
BuildRequires: ros-noetic-catkin
BuildRequires: ros-noetic-ecl-command-line
Provides: %{name}-devel = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
Provides: %{name}-runtime = %{version}-%{release}
%description
Utilities for flashing and enabling Kobuki's USB connection. This package
contains tools for flashing the Kobuki's FTDI chip (usually done at the
factory). The special firmware for the FTDI chip (USB to serial converter)
enables it to appear as /dev/kobuki on the user's PC.
%prep
%autosetup
%build
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/noetic/setup.sh" ]; then . "/opt/ros/noetic/setup.sh"; fi
mkdir -p obj-%{_target_platform} && cd obj-%{_target_platform}
%cmake3 \
-UINCLUDE_INSTALL_DIR \
-ULIB_INSTALL_DIR \
-USYSCONF_INSTALL_DIR \
-USHARE_INSTALL_PREFIX \
-ULIB_SUFFIX \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_PREFIX="/opt/ros/noetic" \
-DCMAKE_PREFIX_PATH="/opt/ros/noetic" \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
-DCATKIN_BUILD_BINARY_PACKAGE="1" \
..
%make_build
%install
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/noetic/setup.sh" ]; then . "/opt/ros/noetic/setup.sh"; fi
%make_install -C obj-%{_target_platform}
%files
/opt/ros/noetic
%changelog
* Tue Sep 15 2020 Younghun Ju <yhju@yujinrobot.com> - 0.7.12-1
- Autogenerated by Bloom
* Sun Sep 13 2020 Younghun Ju <yhju@yujinrobot.com> - 0.7.10-1
- Autogenerated by Bloom