Skip to content

Commit

Permalink
Generated RPM files for 32
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbovbel committed Aug 28, 2020
1 parent 3bb3334 commit fb1a243
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 67 deletions.
Empty file added .write_tar
Empty file.
74 changes: 74 additions & 0 deletions rpm/template.spec
@@ -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

67 changes: 0 additions & 67 deletions rpm/template.spec.em

This file was deleted.

0 comments on commit fb1a243

Please sign in to comment.