|
|
|
@ -1,8 +1,15 @@
|
|
|
|
|
# when bootstrapping Python, pytest-xdist is not yet available (also not yet in EPEL9)
|
|
|
|
|
%if ! 0%{?rhel} || 0%{?rhel} > 9
|
|
|
|
|
%bcond_without xdist
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with xdist
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global srcname rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: python-rpmautospec
|
|
|
|
|
Version: 0.2.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Package and CLI tool to generate release fields and changelogs
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -22,7 +29,9 @@ BuildRequires: python3-koji
|
|
|
|
|
BuildRequires: python3-pygit2
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-cov
|
|
|
|
|
%if %{with xdist}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pyyaml
|
|
|
|
|
|
|
|
|
|
Obsoletes: koji-hub-plugin-rpmautospec < 0.1.5-2
|
|
|
|
@ -118,9 +127,16 @@ mkdir -p %{buildroot}%{rpmmacrodir}
|
|
|
|
|
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} -m pytest -n auto
|
|
|
|
|
%{__python3} -m pytest \
|
|
|
|
|
%if %{with xdist}
|
|
|
|
|
--numprocesses=auto
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun May 15 2022 Nils Philippsen <nils@redhat.com> - 0.2.6-2
|
|
|
|
|
- Don't require python3-pytest-xdist for building on EL9
|
|
|
|
|
|
|
|
|
|
* Mon Apr 25 2022 Nils Philippsen <nils@redhat.com> - 0.2.6-1
|
|
|
|
|
- Update to 0.2.6
|
|
|
|
|
- Require python3-pytest-xdist for building
|
|
|
|
|