diff --git a/.gitignore b/.gitignore index e69de29..8819c4b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rosinstall-0.6.19.tar.bz2 diff --git a/python-rosinstall.spec b/python-rosinstall.spec new file mode 100644 index 0000000..f00e7bf --- /dev/null +++ b/python-rosinstall.spec @@ -0,0 +1,65 @@ +%global realname rosinstall + +Name: python-rosinstall +Version: 0.6.19 +Release: 2%{?dist} +Summary: ROS installation utilities + +License: BSD +URL: http://www.ros.org/wiki/rosinstall +BuildArch: noarch +#source obtained from hg snapshot: +#hg clone https://kforge.ros.org/vcstools/rosinstall; cd rosinstall +#hg checkout 0.6.19; rm -rf .hg*; cd ..; mv rosinstall rosinstall-0.6.19 +#tar cjf rosinstall-0.6.19.tar.bz2 rosinstall-0.6.19 +Source0: %{realname}-%{version}.tar.bz2 + +BuildRequires: python-devel +BuildRequires: python-setuptools-devel +BuildRequires: python-sphinx +Requires: python-vcstools + +%description +rosinstall is a tool to check out ROS source code (or any source code, really) +from multiple version control repositories and updating these checkouts. Given +a *.rosinstall file that specifies where to get code, rosinstall will check +out a working copy for you. + + +%prep +%setup -q -n %{realname}-%{version} + + +%build +%{__python} setup.py build +pushd doc +make html +make man +popd + +%install +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +install -p -m 0644 doc/_build/man/%{realname}.1 $RPM_BUILD_ROOT%{_mandir}/man1/ +rm -rf doc/_build/html/.buildinfo + +%files +%doc doc/_build/html LICENSE README +%{_bindir}/* +%{python_sitelib}/%{realname} +%{python_sitelib}/%{realname}-%{version}-py?.?.egg-info +%{_mandir}/man1/%{realname}.1.gz + +%changelog +* Mon Oct 08 2012 Rich Mattes - 0.6.19-2 +- Separated build and install steps for setup.py +- Added README and LICENSE + +* Sun Sep 02 2012 Rich Mattes - 0.6.19-1 +- Update to release 0.6.19 + +* Wed Jun 06 2012 Rich Mattes - 0.6.17-1 +- Update to release 0.6.17 + +* Wed Apr 25 2012 Rich Mattes - 0.6.15-1 +- Initial package diff --git a/sources b/sources index e69de29..6e0ac44 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +aa91a5cfcf82f7ab5fc36a9be4a3254c rosinstall-0.6.19.tar.bz2