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
1 parent
3bb3334
commit fb1a243
Showing
3 changed files
with
74 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,74 @@ | ||
%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-catkin-virtualenv | ||
Version: 0.6.1 | ||
Release: 2%{?dist}%{?release_suffix} | ||
Summary: ROS catkin_virtualenv package | ||
|
||
License: GPL | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
Requires: python2-devel | ||
Requires: python3-devel | ||
Requires: python3-libs | ||
Requires: python3-nose | ||
Requires: python3-rospkg | ||
Requires: ros-noetic-rosbash | ||
Requires: virtualenv | ||
BuildRequires: ros-noetic-catkin | ||
BuildRequires: ros-noetic-roslint | ||
Provides: %{name}-devel = %{version}-%{release} | ||
Provides: %{name}-doc = %{version}-%{release} | ||
Provides: %{name}-runtime = %{version}-%{release} | ||
|
||
%description | ||
Bundle python requirements in a catkin package via virtualenv. | ||
|
||
%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 | ||
* Fri Aug 28 2020 Paul Bovbel <pbovbel@locusrobotics.com> - 0.6.1-2 | ||
- Autogenerated by Bloom | ||
|
||
* Mon Aug 24 2020 Paul Bovbel <pbovbel@locusrobotics.com> - 0.6.1-1 | ||
- Autogenerated by Bloom | ||
|
||
* Tue Jul 14 2020 Paul Bovbel <pbovbel@locusrobotics.com> - 0.6.0-1 | ||
- Autogenerated by Bloom | ||
|
This file was deleted.
Oops, something went wrong.