Downstream workaround for the %fedora macro

Signed-off-by: Petr Šabata <contyk@redhat.com>
This commit is contained in:
Petr Šabata 2020-12-09 19:42:29 +01:00
parent 9c95955568
commit ab4eb9e25e

View File

@ -6,7 +6,7 @@ License: MIT
# Keep the version at zero and increment only release
Version: 0
Release: 24%{?dist}
Release: 24.1%{?dist}
# Macro files
Source001: macros.pyproject
@ -36,7 +36,7 @@ BuildArch: noarch
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pyyaml)
BuildRequires: python3dist(packaging)
%if 0%{fedora} < 32
%if 0%{?fedora} < 32
# The %%if should not be needed, it works around:
# https://github.com/rpm-software-management/mock/issues/336
BuildRequires: (python3dist(importlib-metadata) if python3 < 3.8)
@ -88,6 +88,9 @@ export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856
%license LICENSE
%changelog
* Wed Dec 09 2020 Petr Šabata <contyk@redhat.com> - 0-24.1
- Downstream workaround for the %%fedora macro
* Tue Aug 11 2020 Miro Hrončok <mhroncok@redhat.com> - 0-24
- Allow multiple, comma-separated extras in %%pyproject_buildrequires -x