4ba9ad
%global srcname catkin_lint
39525b
4ba9ad
Name:           python-%{srcname}
be4701
Version:        1.6.2
e675d0
Release:        2%{?dist}
39525b
Summary:        Check catkin packages for common errors
39525b
39525b
License:        BSD
4ba9ad
URL:            https://pypi.python.org/pypi/%{srcname}
4ba9ad
Source0:        https://github.com/fkie/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
39525b
39525b
BuildArch:      noarch
39525b
a6a47c
%description
a6a47c
catkin_lint checks package configurations for the catkin build system of ROS.
42a9b9
It runs a static analysis of the package.xml and CMakeLists.txt files in your
42a9b9
package, and it will detect and report a number of common problems.
a6a47c
a6a47c
4ba9ad
%package -n python%{python3_pkgversion}-%{srcname}
4ba9ad
Summary:        %{summary}
4ba9ad
BuildRequires:  python%{python3_pkgversion}-catkin_pkg
4ba9ad
BuildRequires:  python%{python3_pkgversion}-devel
4ba9ad
BuildRequires:  python%{python3_pkgversion}-mock
4ba9ad
BuildRequires:  python%{python3_pkgversion}-nose
4ba9ad
BuildRequires:  python%{python3_pkgversion}-rosdep
4ba9ad
BuildRequires:  python%{python3_pkgversion}-rosdistro
57acb5
BuildRequires:  python%{python3_pkgversion}-rospkg
4ba9ad
BuildRequires:  python%{python3_pkgversion}-setuptools
4ba9ad
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
4ba9ad
57acb5
%if %{undefined __pythondist_requires}
57acb5
Requires:       python%{python3_pkgversion}-catkin_pkg
57acb5
%endif # __pythondist_requires
57acb5
57acb5
%if 0%{?fedora} || 0%{?rhel} >= 8
57acb5
Recommends:     python%{python3_pkgversion}-rosdep
57acb5
Recommends:     python%{python3_pkgversion}-rosdistro
57acb5
Recommends:     python%{python3_pkgversion}-rospkg
57acb5
%endif # fedora || rhel >= 8
4ba9ad
4ba9ad
%description -n python%{python3_pkgversion}-%{srcname}
0b60a0
catkin_lint checks package configurations for the catkin build system of ROS.
42a9b9
It runs a static analysis of the package.xml and CMakeLists.txt files in your
42a9b9
package, and it will detect and report a number of common problems.
0b60a0
0b60a0
39525b
%prep
4ba9ad
%autosetup -n %{srcname}-%{version}
39525b
39525b
39525b
%build
a6a47c
%py3_build
57acb5
mv build/scripts-%{python3_version}/%{srcname} build/scripts-%{python3_version}/%{srcname}-%{python3_version}
57acb5
ln -s %{srcname}-%{python3_version} build/scripts-%{python3_version}/%{srcname}-3
57acb5
ln -s %{srcname}-%{python3_version} build/scripts-%{python3_version}/%{srcname}
57acb5
39525b
39525b
%install
a6a47c
%py3_install
57acb5
b5cd7b
install -p -D -m0644 bash/%{srcname} %{buildroot}%{_sysconfdir}/bash_completion.d/%{srcname}
0b60a0
0b60a0
0b60a0
%check
42a9b9
%{__python3} setup.py test
0b60a0
0b60a0
4ba9ad
%files -n python%{python3_pkgversion}-%{srcname}
42a9b9
%license LICENSE
4ba9ad
%doc changelog.txt README.rst
4ba9ad
%{python3_sitelib}/%{srcname}/
4ba9ad
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
b5cd7b
%{_bindir}/%{srcname}
57acb5
%{_bindir}/%{srcname}-3
57acb5
%{_bindir}/%{srcname}-%{python3_version}
b5cd7b
%{_datadir}/bash-completion/completions/%{srcname}
3490c6
%{_sysconfdir}/bash_completion.d/%{srcname}
0b60a0
0b60a0
39525b
%changelog
e675d0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
e675d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e675d0
be4701
* Thu Oct 31 2019 Scott K Logan <logans@cottsay.net> - 1.6.2-1
be4701
- Update to 1.6.2 (rhbz#1767353)
be4701
a09413
* Mon Sep 16 2019 Scott K Logan <logans@cottsay.net> - 1.6.1-1
a09413
- Update to 1.6.1 (rhbz#1748135)
a09413
722da9
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-3
722da9
- Rebuilt for Python 3.8
722da9
1f42d4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
1f42d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1f42d4
57acb5
* Fri Apr 12 2019 Scott K Logan <logans@cottsay.net> - 1.6.0-1
57acb5
- Update to 1.6.0
57acb5
- Handle automatic dependency generation (f30+)
57acb5
3490c6
* Tue Feb 12 2019 Scott K Logan <logans@cottsay.net> - 1.5.6-1
3490c6
- Update to 1.5.6
3490c6
b5cd7b
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.4-3
b5cd7b
- Subpackage python2-catkin_lint has been removed
b5cd7b
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b5cd7b
9d6005
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
9d6005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9d6005
4ba9ad
* Mon Nov 26 2018 Scott K Logan <logans@cottsay.net> - 1.5.4-1
4ba9ad
- Update to 1.5.4
4ba9ad
- Align spec with current python examples
4ba9ad
42a9b9
* Mon Sep 17 2018 Scott K Logan <logans@cottsay.net> - 1.5.3-1
42a9b9
- Update to 1.5.3 (rhbz#1591523)
42a9b9
cf3e1e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.21-3
cf3e1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cf3e1e
6b28da
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.21-2
6b28da
- Rebuilt for Python 3.7
6b28da
b355c1
* Mon Jun 25 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 1.4.21-1
b355c1
- Update to 1.4.21
b355c1
f94bba
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.20-2
f94bba
- Rebuilt for Python 3.7
f94bba
ca9fbb
* Sat Jun 09 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 1.4.20-1
ca9fbb
- Update to latest release
ca9fbb
9708d5
* Sun Mar 04 2018 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 1.4.19-1
9708d5
- Update to latest release
9708d5
41f906
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.17-3
41f906
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
41f906
b55e0a
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.17-2
b55e0a
- Update Python 2 dependency declarations to new packaging standards
b55e0a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
b55e0a
6415d2
* Sun Dec 17 2017 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 1.4.17-1
6415d2
- Update to release 1.4.17 (rhbz#1509944)
6415d2
bcc6af
* Wed Oct 25 2017 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> - 1.4.16-1
bcc6af
- Update to release 1.4.16 (rhbz#1443069)
bcc6af
85cdec
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.13-5
85cdec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
85cdec
6c69c9
* Sun Apr 09 2017 Rich Mattes <richmattes@gmail.com> - 1.4.13-1
6c69c9
- Update to release 1.4.13 (rhbz#1440346)
6c69c9
8bf39b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-4
8bf39b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8bf39b
3d9acc
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.6-3
3d9acc
- Rebuild for Python 3.6
3d9acc
e60eb0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
e60eb0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e60eb0
382f93
* Sat Apr 16 2016 Scott K Logan <logans@cottsay.net> - 1.4.6-1
382f93
- Update to 1.4.6
382f93
a6a47c
* Thu Apr 07 2016 Scott K Logan <logans@cottsay.net> - 1.4.5-1
a6a47c
- Update to 1.4.5
a6a47c
- Update to latest packaging guidelines
a6a47c
4a99fd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-3
4a99fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4a99fd
d44bf6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-2
d44bf6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d44bf6
96841c
* Thu Sep 17 2015 Rich Mattes <richmattes@gmail.com> - 1.4.3-1
96841c
- Update to release 1.4.3 (rhbz#1240452)
96841c
7076fa
* Sat Jul 04 2015 Scott K Logan <logans@cottsay.net> - 1.4.0-1
7076fa
- Update to 1.4.0
7076fa
- Update to latest packaging guidelines
7076fa
e42c4c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.11-2
e42c4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e42c4c
157439
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 1.3.11-1
157439
- Update to release 1.3.11 (rhbz#1175223)
157439
0b60a0
* Tue Dec 02 2014 Scott K Logan <logans@cottsay.net> - 1.3.8-1
0b60a0
- Update to release 1.3.8
0b60a0
- Add python3 package
0b60a0
- Enable check section
0b60a0
750d15
* Wed Jul 16 2014 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 1.3.7-1
750d15
- Update to latest upstream release
750d15
b3e9ba
* Mon Jun 09 2014 Scott K Logan <logans@cottsay.net> - 1.3.6-1
b3e9ba
- Update to release 1.3.6
b3e9ba
1391d9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
1391d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1391d9
aa1fa9
* Mon May 19 2014 Scott K Logan <logans@cottsay.net> 1.3.5-1
aa1fa9
- Update to release 1.3.5
aa1fa9
39525b
* Tue Apr 15 2014 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 1.3.4-1
39525b
- Correct requires
39525b
39525b
* Sat Apr 05 2014 Ankur Sinha <ankursinha at="" fedoraproject="" dot="" org=""> 1.3.4-1
39525b
- Initial package build