|
|
d2fbc86 |
%if 0%{?fedora} > 12
|
|
|
d2fbc86 |
%global with_python3 1
|
|
|
d2fbc86 |
%else
|
|
|
d2fbc86 |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
d2fbc86 |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
|
d2fbc86 |
%endif
|
|
|
d2fbc86 |
|
|
|
a7e7438 |
%global commit f6a87bf67a39c64ed962c3f79d7b45256e0c14a7
|
|
|
fa5f4e5 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
27ae52f |
%global srcname rosdistro
|
|
|
fa5f4e5 |
|
|
|
27ae52f |
Name: python-%{srcname}
|
|
|
a7e7438 |
Version: 0.6.2
|
|
|
8577fb5 |
Release: 3%{?dist}
|
|
|
fa5f4e5 |
Summary: File format for managing ROS Distributions
|
|
|
fa5f4e5 |
|
|
|
fa5f4e5 |
License: BSD and MIT
|
|
|
fa5f4e5 |
URL: http://www.ros.org/wiki/rosdistro
|
|
|
27ae52f |
Source0: https://github.com/ros-infrastructure/%{srcname}/archive/%{commit}/%{srcname}-%{commit}.tar.gz
|
|
|
fa5f4e5 |
|
|
|
fa5f4e5 |
BuildArch: noarch
|
|
|
e1f7947 |
BuildRequires: PyYAML
|
|
|
0a68dd2 |
BuildRequires: git
|
|
|
fa5f4e5 |
BuildRequires: python2-devel
|
|
|
d2fbc86 |
BuildRequires: python-catkin_pkg
|
|
|
fa5f4e5 |
BuildRequires: python-catkin-sphinx
|
|
|
d2fbc86 |
BuildRequires: python-rospkg
|
|
|
d2fbc86 |
BuildRequires: python-setuptools
|
|
|
d2fbc86 |
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
d2fbc86 |
BuildRequires: python-nose1.1
|
|
|
d2fbc86 |
BuildRequires: python-sphinx10
|
|
|
d2fbc86 |
%else
|
|
|
d2fbc86 |
BuildRequires: python-nose
|
|
|
d2fbc86 |
BuildRequires: python-sphinx
|
|
|
d2fbc86 |
%endif
|
|
|
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 |
|
|
|
27ae52f |
%package -n python2-%{srcname}
|
|
|
27ae52f |
Summary: %{summary}
|
|
|
27ae52f |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
0a68dd2 |
Requires: PyYAML
|
|
|
0a68dd2 |
Requires: python-catkin_pkg
|
|
|
0a68dd2 |
Requires: python-rospkg
|
|
|
0a68dd2 |
Requires: python-setuptools
|
|
|
fa5f4e5 |
|
|
|
27ae52f |
%description -n python2-%{srcname}
|
|
|
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 |
|
|
|
ad0425f |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
27ae52f |
%package -n python3-%{srcname}
|
|
|
d2fbc86 |
Summary: File format for managing ROS Distributions
|
|
|
bc830db |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
d2fbc86 |
BuildRequires: python3-PyYAML
|
|
|
d2fbc86 |
BuildRequires: python3-catkin_pkg
|
|
|
d2fbc86 |
BuildRequires: python3-devel
|
|
|
d2fbc86 |
BuildRequires: python3-nose
|
|
|
d2fbc86 |
BuildRequires: python3-rospkg
|
|
|
d2fbc86 |
BuildRequires: python3-setuptools
|
|
|
d2fbc86 |
BuildRequires: python3-sphinx
|
|
|
d2fbc86 |
Requires: python3-PyYAML
|
|
|
d2fbc86 |
Requires: python3-catkin_pkg
|
|
|
d2fbc86 |
Requires: python3-rospkg
|
|
|
d2fbc86 |
Requires: python3-setuptools
|
|
|
d2fbc86 |
|
|
|
27ae52f |
%description -n python3-%{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 |
%endif
|
|
|
d2fbc86 |
|
|
|
fa5f4e5 |
%prep
|
|
|
27ae52f |
%setup -qn %{srcname}-%{commit}
|
|
|
fa5f4e5 |
sed -i 's|#!/usr/bin/env python||' src/rosdistro/external/appdirs.py
|
|
|
fa5f4e5 |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
d2fbc86 |
rm -rf %{py3dir}
|
|
|
d2fbc86 |
cp -a . %{py3dir}
|
|
|
d2fbc86 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
d2fbc86 |
%endif
|
|
|
d2fbc86 |
|
|
|
d2fbc86 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
|
d2fbc86 |
|
|
|
fa5f4e5 |
%build
|
|
|
d2fbc86 |
%{__python2} setup.py build
|
|
|
d2fbc86 |
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
d2fbc86 |
make -C doc html SPHINXBUILD=sphinx-1.0-build
|
|
|
d2fbc86 |
%else
|
|
|
d2fbc86 |
make -C doc html
|
|
|
d2fbc86 |
%endif
|
|
|
d2fbc86 |
rm -f doc/_build/html/.buildinfo
|
|
|
d2fbc86 |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
d2fbc86 |
pushd %{py3dir}
|
|
|
d2fbc86 |
%{__python3} setup.py build
|
|
|
d2fbc86 |
# TODO: Disabled until python3-catkin-sphinx is built
|
|
|
d2fbc86 |
#make -C doc html man SPHINXBUILD=sphinx-build-%{python3_version}
|
|
|
d2fbc86 |
#rm -f doc/_build/html/.buildinfo
|
|
|
d2fbc86 |
pushd build/scripts-%{python3_version}
|
|
|
d2fbc86 |
for f in *; do mv $f python3-$f; done
|
|
|
fa5f4e5 |
popd
|
|
|
d2fbc86 |
popd
|
|
|
d2fbc86 |
%endif
|
|
|
fa5f4e5 |
|
|
|
fa5f4e5 |
%install
|
|
|
d2fbc86 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
fa5f4e5 |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
d2fbc86 |
pushd %{py3dir}
|
|
|
d2fbc86 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
d2fbc86 |
popd
|
|
|
d2fbc86 |
%endif
|
|
|
d2fbc86 |
|
|
|
d2fbc86 |
%check
|
|
|
d2fbc86 |
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
818a4c5 |
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests1.1 -w test -e test_get_index_from_http_with_query_parameters -e test_manifest_providers*
|
|
|
d2fbc86 |
%else
|
|
|
818a4c5 |
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests -w test -e test_get_index_from_http_with_query_parameters -e test_manifest_providers*
|
|
|
d2fbc86 |
%endif
|
|
|
d2fbc86 |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
d2fbc86 |
pushd %{py3dir}
|
|
|
818a4c5 |
PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} -w test -e test_get_index_from_http_with_query_parameters -e test_manifest_providers*
|
|
|
d2fbc86 |
popd
|
|
|
d2fbc86 |
%endif
|
|
|
27ae52f |
|
|
|
27ae52f |
%files -n python2-%{srcname}
|
|
|
fa5f4e5 |
%doc README.md LICENSE.txt doc/_build/html
|
|
|
fa5f4e5 |
%{_bindir}/rosdistro_build_cache
|
|
|
fa5f4e5 |
%{_bindir}/rosdistro_reformat
|
|
|
db0e778 |
%{_bindir}/rosdistro_migrate_to_rep_141
|
|
|
ad7e02b |
%{_bindir}/rosdistro_migrate_to_rep_143
|
|
|
40e675d |
%{_bindir}/rosdistro_freeze_source
|
|
|
27ae52f |
%{python2_sitelib}/%{srcname}
|
|
|
27ae52f |
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
|
|
d2fbc86 |
|
|
|
d2fbc86 |
%if 0%{?with_python3}
|
|
|
27ae52f |
%files -n python3-%{srcname}
|
|
|
d2fbc86 |
%doc README.md LICENSE.txt doc/_build/html
|
|
|
d2fbc86 |
%{_bindir}/python3-rosdistro_build_cache
|
|
|
d2fbc86 |
%{_bindir}/python3-rosdistro_reformat
|
|
|
d2fbc86 |
%{_bindir}/python3-rosdistro_migrate_to_rep_141
|
|
|
ad7e02b |
%{_bindir}/python3-rosdistro_migrate_to_rep_143
|
|
|
40e675d |
%{_bindir}/python3-rosdistro_freeze_source
|
|
|
27ae52f |
%{python3_sitelib}/%{srcname}
|
|
|
27ae52f |
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
|
|
d2fbc86 |
%endif
|
|
|
fa5f4e5 |
|
|
|
fa5f4e5 |
%changelog
|
|
|
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
|