8f93f39
%global gitrev d1ba5af
f680e80
%global realname rospkg
f680e80
f680e80
Name:           python-rospkg
8f93f39
Version:        1.0.10
8f93f39
Release:        1%{?dist}
f680e80
Summary:        Utilities for ROS package, stack, and distribution information
f680e80
f680e80
License:        BSD
f680e80
URL:            http://ros.org/wiki/rospkg
8f93f39
# wget --content-disposition https://github.com/ros/rospkg/tarball/1.0.10
f680e80
Source0:        ros-%{realname}-%{version}-0-g%{gitrev}.tar.gz
f680e80
BuildArch:      noarch
f680e80
f680e80
BuildRequires:  python-devel
f680e80
BuildRequires:  python-setuptools-devel
f680e80
BuildRequires:  python-sphinx
f680e80
f680e80
%description
f680e80
The ROS packaging system simplifies development and distribution of code 
f680e80
libraries. It enable you to easily specify dependencies between code 
f680e80
libraries, easily interact with those libraries from the command-line, and 
f680e80
release your code for others to use.
f680e80
f680e80
%prep
f680e80
%setup -q -n ros-%{realname}-%{gitrev}
f680e80
f680e80
f680e80
%build
f680e80
%{__python} setup.py build
f680e80
pushd doc
f680e80
make man
f680e80
popd
f680e80
f680e80
%install
f680e80
rm -rf $RPM_BUILD_ROOT
f680e80
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
f680e80
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{realname}
f680e80
install -p -m 0644 manifest.xml $RPM_BUILD_ROOT%{_datadir}/%{realname}
f680e80
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
f680e80
install -p -m 0644 doc/man/rosversion.1 $RPM_BUILD_ROOT%{_mandir}/man1
f680e80
f680e80
sed -i 's|#!/usr/bin/env python||' $RPM_BUILD_ROOT%{python_sitelib}/%{realname}/*.py
f680e80
f680e80
%files
f680e80
%{_bindir}/*
f680e80
%{python_sitelib}/%{realname}-%{version}-py?.?.egg-info
f680e80
%{python_sitelib}/%{realname}
f680e80
%{_mandir}/man1/*.gz
f680e80
%{_datadir}/%{realname}
f680e80
f680e80
%changelog
8f93f39
* Fri Oct 26 2012 Rich Mattes <richmattes@gmail.com> - 1.0.10-1
8f93f39
- Update to version 1.0.10
8f93f39
f680e80
* Sat Sep 22 2012 Rich Mattes <richmattes@gmail.com> - 1.0.6-2
f680e80
- Moved build to build section
f680e80
- Finer-grained filenames in files section
f680e80
f680e80
* Sat Jun 16 2012 Rich Mattes <richmattes@gmail.com> - 1.0.6-1
f680e80
- Update to version 1.0.6
f680e80
f680e80
* Sat Jun 02 2012 Rich Mattes <richmattes@gmail.com> - 1.0.3-1
f680e80
- Update to version 1.0.3
f680e80
f680e80
* Wed Apr 25 2012 Rich Mattes <richmattes@gmail.com> - 1.0.2-1
f680e80
- Initial package