9ae9183
%global commit 7effcc53209eb7e9882219aeec7b30519ba870d5
c79b922
%global shortcommit %(c=%{commit}; echo ${c:0:7})
cc832d2
%global realname vcstools
cc832d2
cc832d2
Name:           python-%{realname}
9ae9183
Version:        0.1.32
c79b922
Release:        1%{?dist}
cc832d2
Summary:        Version Control System tools for Python
cc832d2
cc832d2
License:        BSD
30795f6
URL:            http://www.ros.org/wiki/vcstools
c79b922
Source0:        https://github.com/%{realname}/%{realname}/archive/%{commit}/%{realname}-%{version}-%{shortcommit}.tar.gz
cc832d2
BuildArch:      noarch
cc832d2
cc832d2
BuildRequires:  python-devel
cc832d2
BuildRequires:  python-setuptools-devel
cc832d2
BuildRequires:  python-sphinx
cc832d2
61cea4c
cc832d2
%description
cc832d2
The vcstools module provides a Python API for interacting with different 
cc832d2
version control systems (VCS/SCMs). The VcsClient class provides an API 
cc832d2
for seamless interacting with Git, Mercurial (Hg), Bzr and SVN. The focus 
cc832d2
of the API is manipulating on-disk checkouts of source-controlled trees. 
cc832d2
Its main use is to support the rosinstall tool.
cc832d2
cc832d2
%prep
c79b922
%setup -qn %{realname}-%{commit}
cc832d2
sed -i 's/haiku/default/' doc/conf.py
cc832d2
sed -i 's/:special-members://' doc/vcstools.rst
cc832d2
cc832d2
%build
cc832d2
pushd doc
cc832d2
make html
cc832d2
%if ! 0%{?rhel}
cc832d2
make man
cc832d2
%endif
cc832d2
popd
cc832d2
cc832d2
%install
cc832d2
%{__python} setup.py install --root $RPM_BUILD_ROOT
cc832d2
%if ! 0%{?rhel}
cc832d2
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
cc832d2
chmod -x doc/_build/man/vcstools.1
cc832d2
install -p -m 0644 doc/_build/man/vcstools.1 $RPM_BUILD_ROOT%{_mandir}/man1/
cc832d2
%endif
cc832d2
rm -rf doc/_build/html/.buildinfo
cc832d2
cc832d2
%files
61cea4c
%doc doc/_build/html LICENSE 
cc832d2
%{python_sitelib}/%{realname}
cc832d2
%{python_sitelib}/%{realname}-*.egg-info
cc832d2
%if ! 0%{?rhel}
cc832d2
%{_mandir}/man1/*.gz
cc832d2
%endif
cc832d2
cc832d2
%changelog
9ae9183
* Sat Feb 08 2014 Rich Mattes <richmattes@gmail.com> - 0.1.32-1
9ae9183
- Update to release 0.1.32
9ae9183
c79b922
* Mon Aug 19 2013 Rich Mattes <richmattes@gmail.com> - 0.1.31-1
c79b922
- Update to release 0.1.31
c79b922
- Update to github sourceurl guidelines
c79b922
30795f6
* Mon Mar 18 2013 Rich Mattes <richmattes@gmail.com> - 0.1.30-1.20130318git963c121
30795f6
- Update to release 0.1.30
30795f6
- Updated upstream URL
30795f6
063f730
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.26-2.20130102gitd41568f
063f730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
063f730
4016710
* Wed Jan 02 2013 Rich Mattes <richmattes@gmail.com> - 0.1.26-1.20130102gitd41568f
4016710
- Update to release 0.1.26
61cea4c
* Fri Oct 26 2012 Rich Mattes <richmattes@gmail.com> - 0.1.24-1.20121026gitba30262
61cea4c
- Update to release 0.1.24
61cea4c
c79b922
* Tue Aug 28 2012 Rich Mattes <richmattes@gmail.com> - 0.1.21-1.20120828hg0fba0588
e6d742a
- Update to release 0.1.21
e6d742a
db41a50
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.17-4.20120606hg6205f4fc
db41a50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
db41a50
cc832d2
* Fri Jun 08 2012 Rich Mattes <richmattes@gmail.com> - 0.1.17-3.20120606hg6205f4fc
cc832d2
- Added el6 support
cc832d2
- Enabled unit tests
cc832d2
cc832d2
* Wed Jun 06 2012 Rich Mattes <richmattes@gmail.com> - 0.1.17-2.20120606hg6205f4fc
cc832d2
- Update package release to include hg checkout info
cc832d2
- Remove el5 specific RPM_BUILD_ROOT removal from install section
cc832d2
cc832d2
* Tue Jun 05 2012 Rich Mattes <richmattes@gmail.com> - 0.1.17-1
cc832d2
- Update to release 0.1.17
cc832d2
cc832d2
* Wed Apr 25 2012 Rich Mattes <richmattes@gmail.com> - 0.1.4-1
cc832d2
- Initial package