1374be
%global srcname wstool
e8fd82
e9f11b
Name:           python-%{srcname}
c5ff9f
Version:        0.1.17
8a90d1
Release:        14%{?dist}
4918e8
Summary:        Tool for managing a workspace of multiple heterogeneous SCM repositories
4918e8
4918e8
License:        BSD
e9f11b
URL:            http://www.ros.org/wiki/%{srcname}
e9f11b
Source0:        https://github.com/vcstools/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
1374be
831dd1
# Patch to remove a duplicate installed file.  Not submitted upstream
e9f11b
Patch0:         %{srcname}-0.1.9-fedora.patch
1374be
# Merged upstream in vcstools/wstool#134
1374be
Patch1:         %{srcname}-0.1.17-yaml-safe-load.patch
1374be
# Merged upstream in vcstools/wstool#133
1374be
Patch2:         %{srcname}-0.1.17-yaml-flow-style.patch
e9f11b
4918e8
BuildArch:      noarch
4918e8
e8fd82
BuildRequires:  bzr
e8fd82
BuildRequires:  git
e8fd82
BuildRequires:  mercurial
d23173
BuildRequires:  python%{python3_pkgversion}-sphinx
e8fd82
BuildRequires:  subversion
e8fd82
e74d2c
%global _description\
e74d2c
wstool provides commands to manage several local SCM repositories (supports\
e74d2c
git, mercurial, subversion, bazaar) based on a single workspace definition file\
e74d2c
(.rosinstall).\
e74d2c
\
e74d2c
wstool replaces the rosws tool for catkin workspaces. As catkin workspaces\
e74d2c
create their own setup file and environment, wstool is reduced to version\
e74d2c
control functions only. So wstool does not have a "regenerate" command, and\
e74d2c
does not allow adding non-version controlled elements to workspaces. In all\
e74d2c
other respects, it behaves the same as rosws.
e74d2c
e74d2c
%description %_description
e74d2c
e9f11b
e9f11b
%package -n python%{python3_pkgversion}-%{srcname}
1374be
Summary:        %{summary}
e9f11b
BuildRequires:  python%{python3_pkgversion}-dateutil
e9f11b
BuildRequires:  python%{python3_pkgversion}-devel
e9f11b
BuildRequires:  python%{python3_pkgversion}-mock
e9f11b
BuildRequires:  python%{python3_pkgversion}-nose
1374be
BuildRequires:  python%{python3_pkgversion}-PyYAML
e9f11b
BuildRequires:  python%{python3_pkgversion}-setuptools
e9f11b
BuildRequires:  python%{python3_pkgversion}-vcstools >= 0.1.38
e8fd82
Requires:       bzr
e8fd82
Requires:       git
e8fd82
Requires:       mercurial
e8fd82
Requires:       subversion
e9f11b
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
8a90d1
Obsoletes:      python2-%{srcname} < 0.1.17-14
4918e8
1374be
%if %{undefined __pythondist_requires}
1374be
Requires:       python%{python3_pkgversion}-dateutil
1374be
Requires:       python%{python3_pkgversion}-PyYAML
1374be
Requires:       python%{python3_pkgversion}-vcstools >= 0.1.38
1374be
%endif # __pythondist_requires
1374be
e9f11b
%description -n python%{python3_pkgversion}-%{srcname} %_description
4918e8
1374be
4918e8
%prep
e9f11b
%autosetup -p1 -n %{srcname}-%{version}
4918e8
1374be
4918e8
%build
e9f11b
%py3_build
4918e8
1374be
4918e8
%install
e9f11b
%py3_install
e8fd82
1374be
e8fd82
%check
e8fd82
export BZR_EMAIL="Foo Bar <foo@example.com>"
e8fd82
export GIT_AUTHOR_EMAIL="foo@example.com"
e8fd82
export GIT_AUTHOR_NAME="Foo Bar"
e8fd82
export GIT_COMMITTER_EMAIL="foo@example.com"
e8fd82
export GIT_COMMITTER_NAME="Foo Bar"
e8fd82
1374be
%{__python3} -m nose test
4918e8
1374be
8a90d1
%files -n python%{python3_pkgversion}-%{srcname}
839c93
%license LICENSE
e9f11b
%doc README.rst doc/changelog.rst
8a90d1
%{python3_sitelib}/%{srcname}/
8a90d1
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
e9f11b
%{_bindir}/%{srcname}
e9f11b
%{_mandir}/man1/%{srcname}.1.gz
831dd1
# bash completion
e9f11b
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{srcname}-completion.bash
831dd1
# zsh completion
831dd1
%dir %{_datadir}/zsh/
831dd1
%dir %{_datadir}/zsh/site-functions/
831dd1
%{_datadir}/zsh/site-functions/_wstool
4918e8
1374be
4918e8
%changelog
8a90d1
* Tue Sep 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-14
8a90d1
- Remove the Python 2 subpackage, the Python 3 package provides the CLI now
8a90d1
f06903
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-13
f06903
- Rebuilt for Python 3.8
f06903
1374be
* Mon Jul 29 2019 Scott K Logan <logans@cottsay.net> - 0.1.17-12
1374be
- Add upstream patches for newer PyYAML compatibility (rhbz#1712544)
1374be
- Drop test coverage
1374be
- Handle automatic dependency generation (f30+)
1374be
9683ec
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-11
9683ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9683ec
6c27ed
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-10
6c27ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6c27ed
e9f11b
* Thu Nov 15 2018 Scott K Logan <logans@cottsay.net> - 0.1.17-9
e9f11b
- Remove rosinstall requriement entirely (not needed after 0.1.1)
e9f11b
- Switch from {commit} to {version} for source archive
e9f11b
- Align spec with python templates
e9f11b
9f0824
* Mon Nov 12 2018 Scott K Logan <logans@cottsay.net> - 0.1.17-8
9f0824
- Require python3-rosinstall for /usr/bin/rosinstall (PR #2)
9f0824
839c93
* Tue Jul 24 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 0.1.17-7
839c93
- Correct macro usage
839c93
6e1e0f
* Fri Jul 20 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 0.1.17-6
6e1e0f
- Rebuild for https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
6e1e0f
22af5f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-5
22af5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
22af5f
11ef0b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-4
11ef0b
- Rebuilt for Python 3.7
11ef0b
c829bd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-3
c829bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c829bd
42777c
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1.17-2
42777c
- Update Python 2 dependency declarations to new packaging standards
42777c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
42777c
c5ff9f
* Thu Jan 11 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 0.1.17-1
c5ff9f
- Update to latest release (rhbz#1533303)
c5ff9f
e74d2c
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.13-5
e74d2c
- Python 2 binary package renamed to python2-wstool
e74d2c
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
e74d2c
3203eb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-4
3203eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3203eb
f84e1d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-3
f84e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f84e1d
35829f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.13-2
35829f
- Rebuild for Python 3.6
35829f
14176f
* Sun Aug 28 2016 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 0.1.13-1
14176f
- Update to lastest upstream release
14176f
0b4386
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.12-3
0b4386
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b4386
4a3d54
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-2
4a3d54
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4a3d54
49b86e
* Tue Oct 20 2015 Rich Mattes <richmattes@gmail.com> - 0.1.12-1
49b86e
- Update to release 0.1.12 (rhbz#1271029)
49b86e
c920d3
* Wed Sep 16 2015 Rich Mattes <richmattes@gmail.com> - 0.1.10-1
c920d3
- Update to release 0.1.10 (rhbz#1261684)
c920d3
831dd1
* Sun Sep 13 2015 Rich Mattes <richmattes@gmail.com> - 0.1.9-1
831dd1
- Update to release 0.1.9 (rhbz#1261684)
831dd1
0527a4
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
0527a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0527a4
ce9865
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 0.1.6-1
ce9865
- Update to release 0.1.6 (rhbz#1195537)
ce9865
e8fd82
* Sun Dec 14 2014 Scott K Logan <logans@cottsay.net> - 0.1.5-1
e8fd82
- Update to 0.1.5
e8fd82
- Update to python packaging guidelines
e8fd82
- Add check section
e8fd82
d495e8
* Thu Jul 31 2014 Scott K Logan <logans@cottsay.net> - 0.1.4-1
d495e8
- Update to 0.1.4
d495e8
7990ca
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
7990ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7990ca
ce346a
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.3-2
ce346a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
ce346a
5693f3
* Mon May 19 2014 Scott K Logan <logans@cottsay.net> - 0.1.3-1
5693f3
- Update to 0.1.3
5693f3
- Add depend on PyYAML
5693f3
6ec956
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.1-2
6ec956
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6ec956
c2f8e5
* Sun Jan 12 2014 Rich Mattes <richmattes@gmail.com> - 0.1.1-1
c2f8e5
- Update to 0.1.1
c2f8e5
4918e8
* Mon Aug 26 2013 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 0.0.3-1
4918e8
- Rename python3 bin script
4918e8
4918e8
* Sun Aug 25 2013 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 0.0.3-1
4918e8
- Update source to github source
4918e8
- Add py3 support
4918e8
4918e8
* Sat Mar 16 2013 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 0.0.3-1
4918e8
- Initial rpmbuild
4918e8