ac9a0f3
%global commit 7566552db130c2f2a3f5b43c4eab1d78fc4f3c4d
f2177ba
%global shortcommit %(c=%{commit}; echo ${c:0:7})
f2177ba
f2177ba
Name:           rospack
ac9a0f3
Version:        2.0.14
Petr Machata a1e0759
Release:        2%{?dist}
f2177ba
Summary:        ROS package and stack tools
f2177ba
f2177ba
License:        BSD
f2177ba
URL:            http://www.ros.org/wiki/rospack
f2177ba
Source0:        https://github.com/ros/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
f2177ba
# Unbundle tinyxml and install libraries to lib${LIB_SUFFIX}.  Not submitted upstream
ac9a0f3
Patch0:         %{name}-2.0.14-tinyxml.patch
f2177ba
# Set library version and soversion to 0. Not submitted upstream
f2177ba
Patch1:         %{name}-2.0.13-soname.patch
f2177ba
f2177ba
BuildRequires:  cmake
f2177ba
BuildRequires:  doxygen
f2177ba
BuildRequires:  gtest
f2177ba
BuildRequires:  boost-devel
f2177ba
BuildRequires:  ros-catkin-devel
f2177ba
BuildRequires:  texlive-epstopdf-bin
f2177ba
BuildRequires:  tinyxml-devel
f2177ba
f2177ba
%description
f2177ba
rospack is a command-line tool for retrieving information about ROS packages 
f2177ba
available on the file system. It implements a wide variety of commands 
f2177ba
ranging from locating ROS packages in the file system, to listing available 
f2177ba
stacks, to calculating the dependency tree of stacks.
f2177ba
f2177ba
%package devel
f2177ba
Requires: %{name}%{?_isa} = %{version}-%{release}
f2177ba
Summary:  Development files for %{name}
f2177ba
f2177ba
%description devel
f2177ba
The %{name}-devel package contains libraries and header files for
f2177ba
developing applications that use %{name}.
f2177ba
f2177ba
%prep
f2177ba
%setup -qn %{name}-%{commit}
f2177ba
rm -r tinyxml-2.5.3
f2177ba
%patch0 -p0 -b .tinyxml
f2177ba
%patch1 -p0 -b .soname
f2177ba
%build
f2177ba
mkdir build
f2177ba
pushd build
f2177ba
%cmake -DSETUPTOOLS_DEB_LAYOUT=OFF ..
f2177ba
popd
f2177ba
doxygen Doxyfile
f2177ba
f2177ba
%install
f2177ba
make -C build install DESTDIR=%{buildroot}
f2177ba
f2177ba
%post -p /sbin/ldconfig
f2177ba
f2177ba
%postun -p /sbin/ldconfig
f2177ba
f2177ba
%files
f2177ba
%{_bindir}/*
f2177ba
%{_libdir}/*.so.*
f2177ba
%{_datadir}/%{name}/stack.xml
f2177ba
%{_datadir}/%{name}/manifest.xml
f2177ba
f2177ba
%files devel
f2177ba
%doc doxygen_output/html
f2177ba
%{_includedir}/*
f2177ba
%{_libdir}/*.so
f2177ba
%{_libdir}/pkgconfig/*
f2177ba
%{_datadir}/%{name}/cmake
f2177ba
f2177ba
%changelog
Petr Machata a1e0759
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 2.0.14-2
Petr Machata a1e0759
- Rebuild for boost 1.55.0
Petr Machata a1e0759
ac9a0f3
* Sun Aug 25 2013 Rich Mattes <richmattes@gmail.com> - 2.0.14-1
ac9a0f3
- Update to release 2.0.14
ac9a0f3
f2177ba
* Sun Jul 21 2013 Rich Mattes <richmattes@gmail.com> - 2.0.13-4.20130605git671c3cb
f2177ba
- Added patch to set soversion to 0
f2177ba
f2177ba
* Wed Jun 05 2013 Rich Mattes <richmattes@gmail.com> - 2.0.13-3.20130605git671c3cb
f2177ba
- Change upstream to match github guidelines
f2177ba
f2177ba
* Mon Mar 25 2013 Rich Mattes <richmattes@gmail.com> - 2.0.13-2.git671c3cb
f2177ba
- Update to not provide ros-fuerte-rospack
f2177ba
- Unbundle tinyxml
f2177ba
- Include doxygen html docs in devel package
f2177ba
f2177ba
* Sun Jan 13 2013 Rich Mattes <richmattes@gmail.com> - 2.0.13-1.git671c3cb
f2177ba
- Initial fuerte release
f2177ba