From cf286cee190638176c6c688ac217bb516b8b0a1c Mon Sep 17 00:00:00 2001 From: James Antill Date: Mar 10 2021 02:04:56 +0000 Subject: Workaround epel7 py3 problems. --- diff --git a/centpkg.spec b/centpkg.spec index f6603ab..445d916 100644 --- a/centpkg.spec +++ b/centpkg.spec @@ -8,8 +8,11 @@ Source0: https://git.centos.org/centos/centpkg/archive/%{version}/centpkg BuildArch: noarch BuildRequires: python3-devel +%if 0%{?rhel} > 0 && 0%{?rhel} < 8 +BuildRequires: python-setuptools +%else BuildRequires: %{py3_dist setuptools} - +%endif %description Provides the centpkg command for working with dist-git