From d378fdbef0613960297ff251c5e69fdc62779c2c Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 08 2019 08:27:48 +0000 Subject: in f30+ python-devel defaults to python3 Fixes: https://pagure.io/koji/issue/1585 --- diff --git a/koji.spec b/koji.spec index 9f538d3..2887dbd 100644 --- a/koji.spec +++ b/koji.spec @@ -113,7 +113,11 @@ contains shared libraries and the command-line interface. %package -n python2-%{name} Summary: Build system tools python library %{?python_provide:%python_provide python2-%{name}} +%if 0%{?fedora} >= 30 +BuildRequires: python2-devel +%else BuildRequires: python-devel +%endif %if 0%{?fedora} >= 25 || 0%{?rhel} >= 8 Requires: python2-rpm %else