27ae52f
%global srcname rosdistro
fa5f4e5
27ae52f
Name:           python-%{srcname}
191fede
Version:        0.8.3
167ec70
Release:        2%{?dist}
fa5f4e5
Summary:        File format for managing ROS Distributions
fa5f4e5
fa5f4e5
License:        BSD and MIT
fa5f4e5
URL:            http://www.ros.org/wiki/rosdistro
75d3539
Source0:        https://github.com/ros-infrastructure/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
fa5f4e5
fa5f4e5
BuildArch:      noarch
27ae52f
27ae52f
%description
27ae52f
The rosdistro tool allows you to get access to the full dependency tree and
27ae52f
the version control system information of all packages and repositories. To
27ae52f
increase performance, the rosdistro tool will automatically look for a cache
27ae52f
file on your local disk. If no cache file is found locally, it will try to
27ae52f
download the latest cache file from the server. The cache files are only used
27ae52f
to improve performance, and are not needed to get correct results. rosdistro
27ae52f
will automatically go to Github to find any dependencies that are not part
27ae52f
of the cache file. Note that operation without a cache file can be very slow,
27ae52f
depending on your own internet connection and the response times of Github.
27ae52f
The rosdistro tool will always write the latest dependency information to a
27ae52f
local cache file, to speed up performance for the next query.
27ae52f
3dbce7d
97f82a1
%package doc
97f82a1
Summary:        HTML documentation for '%{name}'
b8560d1
BuildRequires: make
3dbce7d
BuildRequires:  python%{python3_pkgversion}-catkin-sphinx
3dbce7d
BuildRequires:  python%{python3_pkgversion}-sphinx
97f82a1
97f82a1
%description doc
97f82a1
HTML documentation for the '%{srcname}' python module
3dbce7d
97f82a1
97f82a1
%package -n python%{python3_pkgversion}-%{srcname}
97f82a1
Summary:        %{summary}
97f82a1
BuildRequires:  git
97f82a1
BuildRequires:  python%{python3_pkgversion}-catkin_pkg
97f82a1
BuildRequires:  python%{python3_pkgversion}-devel
97f82a1
BuildRequires:  python%{python3_pkgversion}-nose
f590610
BuildRequires:  python%{python3_pkgversion}-PyYAML
97f82a1
BuildRequires:  python%{python3_pkgversion}-rospkg
97f82a1
BuildRequires:  python%{python3_pkgversion}-setuptools
3dbce7d
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
1069d65
Obsoletes:      python2-%{srcname} < 0.7.4-4
3dbce7d
1376044
%if %{undefined __pythondist_requires}
97f82a1
Requires:       python%{python3_pkgversion}-catkin_pkg
f590610
Requires:       python%{python3_pkgversion}-PyYAML
97f82a1
Requires:       python%{python3_pkgversion}-rospkg
97f82a1
Requires:       python%{python3_pkgversion}-setuptools
880b77b
%endif
a85f435
880b77b
%if !0%{?rhel} || 0%{?rhel} >= 8
3dbce7d
Suggests:       %{name}-doc = %{version}-%{release}
880b77b
%endif
97f82a1
97f82a1
%description -n python%{python3_pkgversion}-%{srcname}
d2fbc86
The rosdistro tool allows you to get access to the full dependency tree and
d2fbc86
the version control system information of all packages and repositories. To
d2fbc86
increase performance, the rosdistro tool will automatically look for a cache
d2fbc86
file on your local disk. If no cache file is found locally, it will try to
d2fbc86
download the latest cache file from the server. The cache files are only used
d2fbc86
to improve performance, and are not needed to get correct results. rosdistro
d2fbc86
will automatically go to Github to find any dependencies that are not part
d2fbc86
of the cache file. Note that operation without a cache file can be very slow,
d2fbc86
depending on your own internet connection and the response times of Github.
d2fbc86
The rosdistro tool will always write the latest dependency information to a
d2fbc86
local cache file, to speed up performance for the next query.
d2fbc86
3dbce7d
fa5f4e5
%prep
97f82a1
%autosetup -p1 -n %{srcname}-%{version}
97f82a1
3dbce7d
fa5f4e5
%build
97f82a1
%py3_build
97f82a1
3dbce7d
PYTHONPATH=$PWD/src \
1376044
  %make_build -C doc html SPHINXBUILD=sphinx-build-%{python3_version} SPHINXAPIDOC=sphinx-apidoc-%{python3_version}
a85f435
rm doc/_build/html/.buildinfo
3dbce7d
fa5f4e5
fa5f4e5
%install
97f82a1
%py3_install
d2fbc86
1069d65
# backwards compatibility symbolic links
1069d65
pushd %{buildroot}%{_bindir}
1069d65
for i in *; do
1069d65
  ln -s ./$i python%{python3_pkgversion}-$i
1069d65
done
1069d65
popd
3dbce7d
d2fbc86
1069d65
%check
3dbce7d
PYTHONPATH=%{buildroot}%{python3_sitelib} \
3dbce7d
  %{__python3} -m nose \
3dbce7d
  -e test_get_index_from_http_with_query_parameters \
3dbce7d
  -e test_manifest_providers* \
3dbce7d
  test
27ae52f
3dbce7d
97f82a1
%files doc
97f82a1
%license LICENSE.txt
97f82a1
%doc doc/_build/html
97f82a1
1069d65
%files -n python%{python3_pkgversion}-%{srcname}
97f82a1
%license LICENSE.txt
97f82a1
%doc README.md
1069d65
%{python3_sitelib}/%{srcname}/
1069d65
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
fa5f4e5
%{_bindir}/rosdistro_build_cache
3dbce7d
%{_bindir}/rosdistro_freeze_source
db0e778
%{_bindir}/rosdistro_migrate_to_rep_141
ad7e02b
%{_bindir}/rosdistro_migrate_to_rep_143
3dbce7d
%{_bindir}/rosdistro_reformat
a85f435
%{_bindir}/python%{python3_pkgversion}-rosdistro_build_cache
3dbce7d
%{_bindir}/python%{python3_pkgversion}-rosdistro_freeze_source
a85f435
%{_bindir}/python%{python3_pkgversion}-rosdistro_migrate_to_rep_141
a85f435
%{_bindir}/python%{python3_pkgversion}-rosdistro_migrate_to_rep_143
3dbce7d
%{_bindir}/python%{python3_pkgversion}-rosdistro_reformat
fa5f4e5
3dbce7d
fa5f4e5
%changelog
167ec70
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-2
167ec70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
167ec70
191fede
* Wed Sep 30 2020 Scott K Logan <logans@cottsay.net> - 0.8.3-1
191fede
- Update to 0.8.3 (rhbz#1883374)
191fede
8ae652a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
8ae652a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8ae652a
3ee1af6
* Fri May 29 2020 Scott K Logan <logans@cottsay.net> - 0.8.2-1
3ee1af6
- Update to 0.8.2 (rhbz#1838293)
3ee1af6
e56b40c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-2
e56b40c
- Rebuilt for Python 3.9
e56b40c
33b0c86
* Sat May 09 2020 Scott K Logan <logans@cottsay.net> - 0.8.1-1
33b0c86
- Update to 0.8.1 (rhbz#1824379)
33b0c86
880b77b
* Wed Apr 15 2020 Scott K Logan <logans@cottsay.net> - 0.8.0-1
880b77b
- Update to 0.8.0 (rhbz#1782354)
880b77b
901aeb0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-2
901aeb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
901aeb0
28a09f7
* Fri Oct 11 2019 Scott K Logan <logans@cottsay.net> - 0.7.5-1
28a09f7
- Update to 0.7.5 (rhbz#1761003)
28a09f7
1069d65
* Sat Sep 28 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.4-4
1069d65
- Subpackage python2-rosdistro has been removed
1069d65
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
1069d65
8a48285
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.4-3
8a48285
- Rebuilt for Python 3.8
8a48285
3bbf25e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-2
3bbf25e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3bbf25e
1376044
* Wed Jul 17 2019 Scott K Logan <logans@cottsay.net> - 0.7.4-1
1376044
- Update to 0.7.4 (rhbz#1702421)
1376044
3dbce7d
* Wed Mar 27 2019 Scott K Logan <logans@cottsay.net> - 0.7.3-1
3dbce7d
- Update to 0.7.3 (rhbz#1693483)
3dbce7d
- Switch to Python 3 Sphinx
3dbce7d
- Handle automatic dependency generation (f30+)
3dbce7d
- Make doc subpackage a weaker dependency
3dbce7d
06e5852
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
06e5852
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
06e5852
f590610
* Wed Jan 23 2019 Scott K Logan <logans@cottsay.net> - 0.7.2-1
f590610
- Update to 0.7.2 (rhbz#1668955)
f590610
a85f435
* Fri Jan 11 2019 Scott K Logan <logans@cottsay.net> - 0.7.1-1
a85f435
- Update to 0.7.1
a85f435
97f82a1
* Tue Nov 06 2018 Scott K Logan <logans@cottsay.net> - 0.7.0-1
97f82a1
- Update to 0.7.0
97f82a1
- Conditional python2 package
97f82a1
- Use python3_pkgversion
97f82a1
- Create a separate 'doc' package
97f82a1
75d3539
* Fri Sep 14 2018 Scott K Logan <logans@cottsay.net> - 0.6.9-1
75d3539
- Update to 0.6.9 (rhbz#1525745)
75d3539
49b0482
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
49b0482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
49b0482
edeb5bf
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-5
edeb5bf
- Rebuilt for Python 3.7
edeb5bf
e7f9878
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6.2-4
e7f9878
- Update Python 2 dependency declarations to new packaging standards
e7f9878
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e7f9878
8577fb5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
8577fb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8577fb5
0eba7b6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
0eba7b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0eba7b6
a7e7438
* Sun Apr 09 2017 Rich Mattes <richmattes@gmail.com> - 0.6.2-1
a7e7438
- Update to release 0.6.2 (rhbz#1425644)
a7e7438
51f9cdc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
51f9cdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
51f9cdc
bc830db
* Wed Dec 21 2016 Rich Mattes <richmattes@gmail.com> - 0.5.0-1
bc830db
- Update to release 0.5.0 (rhbz#1388280)
bc830db
3c3bc63
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.7-4
3c3bc63
- Rebuild for Python 3.6
3c3bc63
27ae52f
* Tue Sep 27 2016 Rich Mattes <richmattes@gmail.com> - 0.4.7-3
27ae52f
- Remove python-argparse requirement
27ae52f
885ecc5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.7-2
885ecc5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
885ecc5
40e675d
* Sun Apr 03 2016 Rich Mattes <richmattes@gmail.com> - 0.4.7-1
40e675d
- Update to release 0.4.7 (rhbz#1304921)
40e675d
e8eea36
* Wed Feb 10 2016 Rich Mattes <richmattes@gmail.com> - 0.4.4-1
e8eea36
- Update to release 0.4.4
e8eea36
8dc91a6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-4
8dc91a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8dc91a6
78103d4
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
78103d4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
78103d4
208fb74
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
208fb74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
208fb74
ad0425f
* Wed May 27 2015 Rich Mattes <richmattes@gmail.com> - 0.4.2-1
ad0425f
- Update to release 0.4.2 (#1207455)
ad0425f
e329fd5
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 0.4.1-1
e329fd5
- Update to release 0.4.1
e329fd5
ad7e02b
* Mon Dec 15 2014 Scott K Logan <logans@cottsay.net> - 0.4.0-1
ad7e02b
- Update to release 0.4.0
ad7e02b
d2fbc86
* Sat Oct 25 2014 Scott K Logan <logans@cottsay.net> - 0.3.7-1
d2fbc86
- Update to release 0.3.7
d2fbc86
- Remove argparse patch (fixed upstream)
d2fbc86
- Fix sphinx dependency in el6
d2fbc86
- Add check section
d2fbc86
- Add python3 package
d2fbc86
57eb2ba
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
57eb2ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
57eb2ba
0a68dd2
* Sun Apr 27 2014 Scott K Logan <logans@cottsay.net> - 0.3.5-1
0a68dd2
- Update to release 0.3.5
0a68dd2
- Remove argparse from python dependency list
0a68dd2
- Added missing install requirements
0a68dd2
- Remove patch for setuptools (merged upstream)
0a68dd2
d54600b
* Tue Apr 08 2014 Rich Mattes <richmattes@gmail.com> - 0.3.4-2
d54600b
- Depend on setuptools instead of distribute
d54600b
db0e778
* Sat Feb 08 2014 Rich Mattes <richmattes@gmail.com> - 0.3.4-1
db0e778
- Update to release 0.3.4
db0e778
b5502ce
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8-3.20130602git6e83551
b5502ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b5502ce
fa5f4e5
* Fri Jun 07 2013 Rich Mattes <richmattes@gmail.com> - 0.2.8-2.20130602git6e83551
fa5f4e5
- Update BuildRequires to python2-devel
fa5f4e5
- Remove cleanup of buildroot in install
fa5f4e5
fa5f4e5
* Sun Jun 02 2013 Rich Mattes <richmattes@gmail.com> - 0.2.8-1.20130602git6e83551
fa5f4e5
- Initial package