%global commit 38273848447047f7ac059b1ccb0bd88965ca3928 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: actionlib Version: 1.8.7 Release: 1.20130605git%{shortcommit}%{?dist} Summary: Interface for pre-emptible tasks License: BSD URL: http://www.ros.org/wiki/actionlib Source0: https://github.com/ros/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Patch0: %{name}-1.8.7-libdir.patch BuildRequires: cmake BuildRequires: doxygen BuildRequires: gtest BuildRequires: boost-devel BuildRequires: ros-catkin-devel BuildRequires: roscpp-devel BuildRequires: ros-actionlib_msgs-devel %description The actionlib package provides a standardized interface for interfacing with preemptible tasks. Examples of this include moving the base to a target location, performing a laser scan and returning the resulting point cloud, detecting the handle of a door, etc. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Development files for %{name} %description devel Development headers and libraries for %{name} %prep %setup -qn %{name}-%{commit} %patch0 -p0 -b .libdir %build mkdir build pushd build %cmake -DSETUPTOOLS_DEB_LAYOUT=OFF .. popd %install make -C build install DESTDIR=%{buildroot} chmod 0644 %{buildroot}%{_datadir}/%{name}/library.py find %{buildroot}%{python_sitelib} -name "*.py" -exec sed -i 's|#!|#|' {} \; %files %{_libdir}/*.so %{python_sitelib}/%{name}-%{version}-py?.?.egg-info %{python_sitelib}/%{name} %{_datadir}/common-lisp/ros/%{name} %{_datadir}/%{name} %files devel %{_includedir}/%{name} %{_libdir}/pkgconfig/%{name}.pc %changelog * Wed Jun 05 2013 Rich Mattes - 1.8.7-1.20130605git3827384 - Initial fuerte release