LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ros-kinetic-roscpp-serialization.spec of Package ros-kinetic-roscpp-serialization (Project home:xtzh:ros:kinetic)

%define         ros_distro kinetic
%define         ros_root /opt/ros
%define         install_path %{ros_root}/%{ros_distro}
%define         src_name roscpp_core
%define         sub_pkg_name roscpp_serialization

Name:           ros-kinetic-roscpp-serialization
Version:        0.6.2
Release:        0%{?dist}
Summary:        ROS rostime package

Group:          Development/Libraries
License:        BSD
URL:            http://ros.org/wiki/roscpp_serialization
Source0:        https://github.com/ros/roscpp_core/archive/%{version}.tar.gz 

Source1:        cmake_manifest_parser

BuildRequires:  gcc-c++
BuildRequires:  boost-devel
BuildRequires:  ros-kinetic-catkin
BuildRequires:  ros-kinetic-cpp-common
BuildRequires:  ros-kinetic-roscpp-traits
BuildRequires:  ros-kinetic-rostime
BuildRequires:  pkgconfig(console_bridge)
Requires:  ros-kinetic-cpp-common
Requires:  ros-kinetic-roscpp-traits
Requires:  ros-kinetic-rostime
Requires:  libconsole_bridge0

%description
cpp_common contains C++ code for doing things that are not necessarily ROS
related, but are useful for multiple packages. This includes things like the
ROS_DEPRECATED and ROS_FORCE_INLINE macros, as well as code for getting
backtraces. This package is a component of roscpp.

%prep
%setup -q -n %{src_name}-%{version}

%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 "/usr/setup.sh" ]; then . "/usr/setup.sh"; fi

pushd %{sub_pkg_name}
mkdir build && cd build
cmake .. \
        -DCMAKE_INSTALL_PREFIX="%{install_path}" \
        -DCMAKE_PREFIX_PATH="%{install_path}" \
        -DSETUPTOOLS_DEB_LAYOUT=OFF \
        -DCATKIN_BUILD_BINARY_PACKAGE="1" \

make %{?_smp_mflags}
popd

%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 "/usr/setup.sh" ]; then . "/usr/setup.sh"; fi
pushd %{sub_pkg_name}
pushd build
make install DESTDIR=%{buildroot}
popd
popd
python %{SOURCE1} %{buildroot}

%files -f ros_install_manifest

%changelog
* Mon Apr  3 2017 Zhang Xingtao <xingtao.zhang@yahoo.com> - 0.6.2
* Fri May 09 2014 Dirk Thomas <dthomas@osrfoundation.org> - 0.3.16-0
- Autogenerated by Bloom