d495e8b
%global commit f6f7ad01d518b1f6da19ce0469e6e3257771cd8e
c2f8e54
%global shortcommit %(c=%{commit}; echo ${c:0:7})
4918e8f
%global with_python3 1
4918e8f
%global module_name wstool
4918e8f
4918e8f
Name:           python-%{module_name}
d495e8b
Version:        0.1.4
d495e8b
Release:        1%{?dist}
4918e8f
Summary:        Tool for managing a workspace of multiple heterogeneous SCM repositories
4918e8f
4918e8f
License:        BSD
4918e8f
URL:            http://www.ros.org/wiki/%{module_name}
c2f8e54
Source0:        https://github.com/vcstools/%{module_name}/archive/%{commit}/%{module_name}-%{version}-%{shortcommit}.tar.gz
4918e8f
4918e8f
BuildArch:      noarch
4918e8f
BuildRequires:  python2-devel python-setuptools
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
BuildRequires:  python3-devel python3-setuptools
4918e8f
%endif # if with_python3
4918e8f
5693f30
Requires:       python-vcstools >= 0.1.34
4918e8f
Requires:       python-rosinstall
4918e8f
Requires:       python-dateutil
5693f30
Requires:       PyYAML
4918e8f
4918e8f
%description
4918e8f
wstool provides commands to manage several local SCM repositories (supports
4918e8f
git, mercurial, subversion, bazaar) based on a single workspace definition file
4918e8f
(.rosinstall).
4918e8f
4918e8f
wstool replaces the rosws tool for catkin workspaces. As catkin workspaces
4918e8f
create their own setup file and environment, wstool is reduced to version
4918e8f
control functions only. So wstool does not have a "regenerate" command, and
4918e8f
does not allow adding non-version controlled elements to workspaces. In all
4918e8f
other respects, it behaves the same as rosws.
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
%package -n python3-wstool
4918e8f
Summary:        Tool for managing a workspace of multiple heterogeneous SCM repositories
5693f30
Requires:       python3-vcstools >= 0.1.34
4918e8f
Requires:       python-rosinstall
4918e8f
Requires:       python3-dateutil
5693f30
Requires:       python3-PyYAML
4918e8f
4918e8f
%description -n python3-wstool
4918e8f
wstool provides commands to manage several local SCM repositories (supports
4918e8f
git, mercurial, subversion, bazaar) based on a single workspace definition file
4918e8f
(.rosinstall).
4918e8f
4918e8f
wstool replaces the rosws tool for catkin workspaces. As catkin workspaces
4918e8f
create their own setup file and environment, wstool is reduced to version
4918e8f
control functions only. So wstool does not have a "regenerate" command, and
4918e8f
does not allow adding non-version controlled elements to workspaces. In all
4918e8f
other respects, it behaves the same as rosws.
4918e8f
%endif # with_python3
4918e8f
4918e8f
%prep
c2f8e54
%setup -qn %{module_name}-%{commit}
4918e8f
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
rm -rf %{py3dir}
4918e8f
cp -a . %{py3dir}
4918e8f
%endif # with_python3
4918e8f
4918e8f
%build
4918e8f
%{__python} setup.py build
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
pushd %{py3dir}
4918e8f
%{__python3} setup.py build
6ec956f
mv -v build/scripts-%{python3_version}/wstool build/scripts-%{python3_version}/python3-wstool
4918e8f
popd
4918e8f
%endif # with_python3
4918e8f
4918e8f
%install
4918e8f
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
pushd %{py3dir}
4918e8f
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
4918e8f
popd
4918e8f
%endif # with_python3 
4918e8f
4918e8f
%files
4918e8f
%doc LICENSE README.rst doc/changelog.rst
4918e8f
%{_bindir}/%{module_name}
4918e8f
%{python_sitelib}/%{module_name}/
4918e8f
%{python_sitelib}/%{module_name}-%{version}-py?.?.egg-info/
4918e8f
4918e8f
%if 0%{?with_python3}
4918e8f
%files -n python3-wstool
4918e8f
%doc LICENSE README.rst doc/changelog.rst
4918e8f
%{_bindir}/python3-%{module_name}
4918e8f
%{python3_sitelib}/%{module_name}/
4918e8f
%{python3_sitelib}/%{module_name}-%{version}-py?.?.egg-info/
4918e8f
%endif # with_python3
4918e8f
4918e8f
%changelog
d495e8b
* Thu Jul 31 2014 Scott K Logan <logans@cottsay.net> - 0.1.4-1
d495e8b
- Update to 0.1.4
d495e8b
7990caa
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
7990caa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7990caa
ce346a2
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.3-2
ce346a2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
ce346a2
5693f30
* Mon May 19 2014 Scott K Logan <logans@cottsay.net> - 0.1.3-1
5693f30
- Update to 0.1.3
5693f30
- Add depend on PyYAML
5693f30
6ec956f
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.1-2
6ec956f
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6ec956f
c2f8e54
* Sun Jan 12 2014 Rich Mattes <richmattes@gmail.com> - 0.1.1-1
c2f8e54
- Update to 0.1.1
c2f8e54
4918e8f
* Mon Aug 26 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.0.3-1
4918e8f
- Rename python3 bin script
4918e8f
4918e8f
* Sun Aug 25 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.0.3-1
4918e8f
- Update source to github source
4918e8f
- Add py3 support
4918e8f
4918e8f
* Sat Mar 16 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.0.3-1
4918e8f
- Initial rpmbuild
4918e8f