From 8ddca29e772412f247a73d55569e650bd468f7cc Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Aug 17 2017 07:54:13 +0000 Subject: rename rpm-python to python*-rpm for EOL of F24 Related Issue: https://pagure.io/koji/issue/454 --- diff --git a/koji.spec b/koji.spec index 93f257c..a7c3055 100644 --- a/koji.spec +++ b/koji.spec @@ -64,7 +64,11 @@ Summary: Build system tools python library %{?python_provide:%python_provide python2-%{name}} BuildRequires: python-devel Requires: python-krbV >= 1.0.13 +%if 0%{?fedora} >= 25 || 0%{?redhat} >= 8 +Requires: python2-rpm +%else Requires: rpm-python +%endif Requires: pyOpenSSL Requires: python-pycurl Requires: python-requests @@ -80,7 +84,11 @@ desc Summary: Build system tools python library %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} BuildRequires: python%{python3_pkgversion}-devel +%if 0%{?fedora} >= 25 || 0%{?redhat} >= 8 +Requires: python%{python3_pkgversion}-rpm +%else Requires: rpm-python%{python3_pkgversion} +%endif Requires: python%{python3_pkgversion}-pycurl Requires: python%{python3_pkgversion}-pyOpenSSL Requires: python%{python3_pkgversion}-requests