Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
67 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
%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 | ||
|
This file was deleted.
Oops, something went wrong.