|
 |
c920d37 |
%global commit 5949f2b1fe0e27f65a961769855140d3be3c6267
|
|
 |
c2f8e54 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
 |
4918e8f |
%global module_name wstool
|
|
 |
4918e8f |
|
|
 |
e8fd82e |
%if 0%{?fedora} > 12
|
|
 |
e8fd82e |
%global with_python3 1
|
|
 |
e8fd82e |
%else
|
|
 |
e8fd82e |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
 |
e8fd82e |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
 |
e8fd82e |
%endif
|
|
 |
e8fd82e |
|
|
 |
4918e8f |
Name: python-%{module_name}
|
|
 |
c920d37 |
Version: 0.1.10
|
|
 |
831dd19 |
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}
|
|
 |
ce98654 |
Source0: https://github.com/vcstools/%{module_name}/archive/%{commit}/%{module_name}-%{commit}.tar.gz
|
|
 |
831dd19 |
# Patch to remove a duplicate installed file. Not submitted upstream
|
|
 |
831dd19 |
Patch0: %{module_name}-0.1.9-fedora.patch
|
|
 |
c920d37 |
# Patch to fix a unit test failure with subversion 1.9
|
|
 |
c920d37 |
Patch1: %{module_name}-0.1.10-svn1.9.patch
|
|
 |
4918e8f |
|
|
 |
4918e8f |
BuildArch: noarch
|
|
 |
4918e8f |
|
|
 |
e8fd82e |
BuildRequires: bzr
|
|
 |
e8fd82e |
BuildRequires: git
|
|
 |
e8fd82e |
BuildRequires: mercurial
|
|
 |
e8fd82e |
BuildRequires: python-coverage
|
|
 |
e8fd82e |
BuildRequires: python-dateutil
|
|
 |
e8fd82e |
BuildRequires: python2-devel
|
|
 |
e8fd82e |
BuildRequires: python-mock
|
|
 |
e8fd82e |
BuildRequires: python-nose
|
|
 |
e8fd82e |
BuildRequires: python-rosinstall
|
|
 |
e8fd82e |
BuildRequires: python-setuptools
|
|
 |
c920d37 |
BuildRequires: python-sphinx
|
|
 |
831dd19 |
BuildRequires: python-vcstools >= 0.1.37
|
|
 |
e8fd82e |
BuildRequires: PyYAML
|
|
 |
e8fd82e |
BuildRequires: subversion
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
Requires: bzr
|
|
 |
e8fd82e |
Requires: git
|
|
 |
e8fd82e |
Requires: mercurial
|
|
 |
4918e8f |
Requires: python-dateutil
|
|
 |
e8fd82e |
Requires: python-rosinstall
|
|
 |
831dd19 |
Requires: python-vcstools >= 0.1.37
|
|
 |
5693f30 |
Requires: PyYAML
|
|
 |
e8fd82e |
Requires: subversion
|
|
 |
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}
|
|
 |
e8fd82e |
%package -n python3-%{module_name}
|
|
 |
4918e8f |
Summary: Tool for managing a workspace of multiple heterogeneous SCM repositories
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
BuildRequires: python3-coverage
|
|
 |
e8fd82e |
BuildRequires: python3-dateutil
|
|
 |
e8fd82e |
BuildRequires: python3-devel
|
|
 |
e8fd82e |
BuildRequires: python3-mock
|
|
 |
e8fd82e |
BuildRequires: python3-nose
|
|
 |
e8fd82e |
BuildRequires: python-rosinstall
|
|
 |
e8fd82e |
BuildRequires: python3-setuptools
|
|
 |
e8fd82e |
BuildRequires: python3-vcstools >= 0.1.34
|
|
 |
e8fd82e |
BuildRequires: python3-PyYAML
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
Requires: bzr
|
|
 |
e8fd82e |
Requires: git
|
|
 |
e8fd82e |
Requires: mercurial
|
|
 |
4918e8f |
Requires: python3-dateutil
|
|
 |
e8fd82e |
Requires: python-rosinstall
|
|
 |
e8fd82e |
Requires: python3-vcstools >= 0.1.34
|
|
 |
5693f30 |
Requires: python3-PyYAML
|
|
 |
e8fd82e |
Requires: subversion
|
|
 |
4918e8f |
|
|
 |
e8fd82e |
%description -n python3-%{module_name}
|
|
 |
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}
|
|
 |
831dd19 |
%patch0 -p0 -b .fedora
|
|
 |
c920d37 |
%patch1 -p0 -b .svn1.9
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%if 0%{?with_python3}
|
|
 |
4918e8f |
rm -rf %{py3dir}
|
|
 |
4918e8f |
cp -a . %{py3dir}
|
|
 |
4918e8f |
%endif # with_python3
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%build
|
|
 |
e8fd82e |
%{__python2} setup.py build
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%if 0%{?with_python3}
|
|
 |
4918e8f |
pushd %{py3dir}
|
|
 |
4918e8f |
%{__python3} setup.py build
|
|
 |
e8fd82e |
mv -v build/scripts-%{python3_version}/%{module_name} build/scripts-%{python3_version}/python3-%{module_name}
|
|
 |
4918e8f |
popd
|
|
 |
4918e8f |
%endif # with_python3
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%install
|
|
 |
831dd19 |
%{__python2} setup.py install --skip-build --root %{buildroot} --prefix %{_usr}
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%if 0%{?with_python3}
|
|
 |
4918e8f |
pushd %{py3dir}
|
|
 |
831dd19 |
%{__python3} setup.py install --skip-build --root %{buildroot} --prefix %{_usr}
|
|
 |
e8fd82e |
popd
|
|
 |
e8fd82e |
%endif # with_python3
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
%check
|
|
 |
e8fd82e |
export BZR_EMAIL="Foo Bar <foo@example.com>"
|
|
 |
e8fd82e |
export GIT_AUTHOR_EMAIL="foo@example.com"
|
|
 |
e8fd82e |
export GIT_AUTHOR_NAME="Foo Bar"
|
|
 |
e8fd82e |
export GIT_COMMITTER_EMAIL="foo@example.com"
|
|
 |
e8fd82e |
export GIT_COMMITTER_NAME="Foo Bar"
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
nosetests --with-coverage --cover-package=%{module_name} -w test
|
|
 |
e8fd82e |
|
|
 |
e8fd82e |
%if 0%{?with_python3}
|
|
 |
e8fd82e |
pushd %{py3dir}
|
|
 |
e8fd82e |
nosetests-%{python3_version} --with-coverage --cover-package=%{module_name} -w test
|
|
 |
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/
|
|
 |
831dd19 |
%{_mandir}/man1/*.1.*
|
|
 |
831dd19 |
# bash completion
|
|
 |
831dd19 |
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
|
|
 |
831dd19 |
# zsh completion
|
|
 |
831dd19 |
%dir %{_datadir}/zsh/
|
|
 |
831dd19 |
%dir %{_datadir}/zsh/site-functions/
|
|
 |
831dd19 |
%{_datadir}/zsh/site-functions/_wstool
|
|
 |
831dd19 |
|
|
 |
4918e8f |
|
|
 |
4918e8f |
%if 0%{?with_python3}
|
|
 |
e8fd82e |
%files -n python3-%{module_name}
|
|
 |
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
|
|
 |
c920d37 |
* Wed Sep 16 2015 Rich Mattes <richmattes@gmail.com> - 0.1.10-1
|
|
 |
c920d37 |
- Update to release 0.1.10 (rhbz#1261684)
|
|
 |
c920d37 |
|
|
 |
831dd19 |
* Sun Sep 13 2015 Rich Mattes <richmattes@gmail.com> - 0.1.9-1
|
|
 |
831dd19 |
- Update to release 0.1.9 (rhbz#1261684)
|
|
 |
831dd19 |
|
|
 |
0527a44 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
|
|
 |
0527a44 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
 |
0527a44 |
|
|
 |
ce98654 |
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 0.1.6-1
|
|
 |
ce98654 |
- Update to release 0.1.6 (rhbz#1195537)
|
|
 |
ce98654 |
|
|
 |
e8fd82e |
* Sun Dec 14 2014 Scott K Logan <logans@cottsay.net> - 0.1.5-1
|
|
 |
e8fd82e |
- Update to 0.1.5
|
|
 |
e8fd82e |
- Update to python packaging guidelines
|
|
 |
e8fd82e |
- Add check section
|
|
 |
e8fd82e |
|
|
 |
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 |
|