From bd27330eac3781e240d4bdffccee60ffbdd69e72 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: May 10 2022 21:39:59 +0000 Subject: Add support for epel9: make pytest-xdist optional --- diff --git a/python-rpmautospec.spec b/python-rpmautospec.spec index 05317ec..365e92a 100644 --- a/python-rpmautospec.spec +++ b/python-rpmautospec.spec @@ -2,7 +2,7 @@ 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 +22,9 @@ BuildRequires: python3-koji BuildRequires: python3-pygit2 BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-cov +%if %{undefined el9} BuildRequires: python%{python3_pkgversion}-pytest-xdist +%endif BuildRequires: python%{python3_pkgversion}-pyyaml Obsoletes: koji-hub-plugin-rpmautospec < 0.1.5-2 @@ -118,9 +120,13 @@ mkdir -p %{buildroot}%{rpmmacrodir} install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/ %check -%{__python3} -m pytest -n auto +%{__python3} -m pytest%{?!el9: -n auto} %changelog +* Tue May 10 2022 Maxwell G - 0.2.6-2 +- Add support for epel9: make pytest-xdist optional. +- Resolves: rhbz#2031940. + * Mon Apr 25 2022 Nils Philippsen - 0.2.6-1 - Update to 0.2.6 - Require python3-pytest-xdist for building