1374be2
%global srcname wstool
e8fd82e
e9f11b9
Name:           python-%{srcname}
a2ee088
Version:        0.1.18
ec37aa9
Release:        8%{?dist}
4918e8f
Summary:        Tool for managing a workspace of multiple heterogeneous SCM repositories
4918e8f
4918e8f
License:        BSD
e9f11b9
URL:            http://www.ros.org/wiki/%{srcname}
e9f11b9
Source0:        https://github.com/vcstools/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
1374be2
831dd19
# Patch to remove a duplicate installed file.  Not submitted upstream
e9f11b9
Patch0:         %{srcname}-0.1.9-fedora.patch
e9f11b9
4918e8f
BuildArch:      noarch
4918e8f
e8fd82e
BuildRequires:  bzr
e8fd82e
BuildRequires:  git
e8fd82e
BuildRequires:  mercurial
d231739
BuildRequires:  python%{python3_pkgversion}-sphinx
e8fd82e
BuildRequires:  subversion
e8fd82e
e74d2ca
%global _description\
e74d2ca
wstool provides commands to manage several local SCM repositories (supports\
e74d2ca
git, mercurial, subversion, bazaar) based on a single workspace definition file\
e74d2ca
(.rosinstall).\
e74d2ca
\
e74d2ca
wstool replaces the rosws tool for catkin workspaces. As catkin workspaces\
e74d2ca
create their own setup file and environment, wstool is reduced to version\
e74d2ca
control functions only. So wstool does not have a "regenerate" command, and\
e74d2ca
does not allow adding non-version controlled elements to workspaces. In all\
e74d2ca
other respects, it behaves the same as rosws.
e74d2ca
e74d2ca
%description %_description
e74d2ca
e9f11b9
e9f11b9
%package -n python%{python3_pkgversion}-%{srcname}
1374be2
Summary:        %{summary}
e9f11b9
BuildRequires:  python%{python3_pkgversion}-dateutil
e9f11b9
BuildRequires:  python%{python3_pkgversion}-devel
e9f11b9
BuildRequires:  python%{python3_pkgversion}-mock
e9f11b9
BuildRequires:  python%{python3_pkgversion}-nose
1374be2
BuildRequires:  python%{python3_pkgversion}-PyYAML
e9f11b9
BuildRequires:  python%{python3_pkgversion}-setuptools
e9f11b9
BuildRequires:  python%{python3_pkgversion}-vcstools >= 0.1.38
e8fd82e
Requires:       bzr
e8fd82e
Requires:       git
e8fd82e
Requires:       mercurial
e8fd82e
Requires:       subversion
e9f11b9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
8a90d13
Obsoletes:      python2-%{srcname} < 0.1.17-14
4918e8f
1374be2
%if %{undefined __pythondist_requires}
1374be2
Requires:       python%{python3_pkgversion}-dateutil
1374be2
Requires:       python%{python3_pkgversion}-PyYAML
1374be2
Requires:       python%{python3_pkgversion}-vcstools >= 0.1.38
1374be2
%endif # __pythondist_requires
1374be2
e9f11b9
%description -n python%{python3_pkgversion}-%{srcname} %_description
4918e8f
1374be2
4918e8f
%prep
e9f11b9
%autosetup -p1 -n %{srcname}-%{version}
4918e8f
a2ee088
# Drop test coverage
a2ee088
sed -i '/^coverage/d' requirements-test.txt
a2ee088
1374be2
4918e8f
%build
e9f11b9
%py3_build
4918e8f
1374be2
4918e8f
%install
e9f11b9
%py3_install
e8fd82e
1374be2
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
1374be2
%{__python3} -m nose test
4918e8f
1374be2
8a90d13
%files -n python%{python3_pkgversion}-%{srcname}
839c93d
%license LICENSE
e9f11b9
%doc README.rst doc/changelog.rst
8a90d13
%{python3_sitelib}/%{srcname}/
8a90d13
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
e9f11b9
%{_bindir}/%{srcname}
e9f11b9
%{_mandir}/man1/%{srcname}.1.gz
831dd19
# bash completion
e9f11b9
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{srcname}-completion.bash
831dd19
# zsh completion
831dd19
%dir %{_datadir}/zsh/
831dd19
%dir %{_datadir}/zsh/site-functions/
831dd19
%{_datadir}/zsh/site-functions/_wstool
4918e8f
1374be2
4918e8f
%changelog
ec37aa9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-8
ec37aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ec37aa9
65eaba0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-7
65eaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
65eaba0
60faa97
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.18-6
60faa97
- Rebuilt for Python 3.10
60faa97
a0e3184
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-5
a0e3184
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a0e3184
9c428b8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-4
9c428b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9c428b8
59fd990
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.18-3
59fd990
- Rebuilt for Python 3.9
59fd990
b0f6d52
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-2
b0f6d52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b0f6d52
a2ee088
* Mon Sep 23 2019 Scott K Logan <logans@cottsay.net> - 0.1.18-1
a2ee088
- Update to 0.1.18 (rhbz#1754688)
a2ee088
8a90d13
* Tue Sep 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-14
8a90d13
- Remove the Python 2 subpackage, the Python 3 package provides the CLI now
8a90d13
f069036
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-13
f069036
- Rebuilt for Python 3.8
f069036
1374be2
* Mon Jul 29 2019 Scott K Logan <logans@cottsay.net> - 0.1.17-12
1374be2
- Add upstream patches for newer PyYAML compatibility (rhbz#1712544)
1374be2
- Drop test coverage
1374be2
- Handle automatic dependency generation (f30+)
1374be2
9683ec3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-11
9683ec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9683ec3
6c27ed8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-10
6c27ed8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6c27ed8
e9f11b9
* Thu Nov 15 2018 Scott K Logan <logans@cottsay.net> - 0.1.17-9
e9f11b9
- Remove rosinstall requriement entirely (not needed after 0.1.1)
e9f11b9
- Switch from {commit} to {version} for source archive
e9f11b9
- Align spec with python templates
e9f11b9
9f0824c
* Mon Nov 12 2018 Scott K Logan <logans@cottsay.net> - 0.1.17-8
9f0824c
- Require python3-rosinstall for /usr/bin/rosinstall (PR #2)
9f0824c
839c93d
* Tue Jul 24 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.17-7
839c93d
- Correct macro usage
839c93d
6e1e0f7
* Fri Jul 20 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.17-6
6e1e0f7
- Rebuild for https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
6e1e0f7
22af5fb
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-5
22af5fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
22af5fb
11ef0b3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.17-4
11ef0b3
- Rebuilt for Python 3.7
11ef0b3
c829bd7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-3
c829bd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c829bd7
42777c4
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1.17-2
42777c4
- Update Python 2 dependency declarations to new packaging standards
42777c4
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
42777c4
c5ff9fb
* Thu Jan 11 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.17-1
c5ff9fb
- Update to latest release (rhbz#1533303)
c5ff9fb
e74d2ca
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.13-5
e74d2ca
- Python 2 binary package renamed to python2-wstool
e74d2ca
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
e74d2ca
3203ebd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-4
3203ebd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3203ebd
f84e1d5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-3
f84e1d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f84e1d5
35829ff
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.13-2
35829ff
- Rebuild for Python 3.6
35829ff
14176f8
* Sun Aug 28 2016 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.13-1
14176f8
- Update to lastest upstream release
14176f8
0b43863
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.12-3
0b43863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b43863
4a3d549
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-2
4a3d549
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4a3d549
49b86ee
* Tue Oct 20 2015 Rich Mattes <richmattes@gmail.com> - 0.1.12-1
49b86ee
- Update to release 0.1.12 (rhbz#1271029)
49b86ee
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