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