%global srcname colcon-rerun
Name: python-%{srcname}
Version: 0.0.1
Release: 2%{?dist}
Summary: Extension for colcon to quickly re-run a recently executed verb
License: ASL 2.0
URL: https://colcon.readthedocs.io
Source0: https://github.com/colcon/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
An extension for colcon-core to quickly re-run a recently executed verb.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-setuptools >= 30.3.0
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%if %{undefined __pythondist_requires}
Requires: python%{python3_pkgversion}-colcon-core
Requires: python%{python3_pkgversion}-filelock
Requires: python%{python3_pkgversion}-PyYAML
%endif
%description -n python%{python3_pkgversion}-%{srcname}
An extension for colcon-core to quickly re-run a recently executed verb.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m pytest \
--ignore=test/test_spell_check.py \
--ignore=test/test_flake8.py \
test
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/colcon_rerun/
%{python3_sitelib}/colcon_rerun-%{version}-py%{python3_version}.egg-info/
%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Mar 16 2022 Scott K Logan <logans@cottsay.net> - 0.0.1-1
- Initial package (rhbz#2064943)