From 3bbb73f2b73608b8017cca3ce98dc5ac81bc9dae Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Jun 28 2017 08:02:12 +0000 Subject: epel-compatible macro in spec --- diff --git a/koji.spec b/koji.spec index e5d1fb3..c80ddd4 100644 --- a/koji.spec +++ b/koji.spec @@ -1,6 +1,5 @@ -# Enable Python 3 builds for Fedora + EPEL >5 -# NOTE: do **NOT** change 'epel' to 'rhel' here, as this spec is also -%if 0%{?fedora} || 0%{?epel} > 5 +# Enable Python 3 builds for Fedora +%if 0%{?fedora} %bcond_without python3 # If the definition isn't available for python3_pkgversion, define it %{?!python3_pkgversion:%global python3_pkgversion 3} @@ -103,13 +102,13 @@ Requires: %{name} = %{version}-%{release} Plugins to the koji command-line interface %if 0%{with python3} -%package -n python3-%{name}-cli-plugins +%package -n python%{python3_pkgversion}-%{name}-cli-plugins Summary: Koji client plugins Group: Applications/Internet License: LGPLv2 Requires: %{name} = %{version}-%{release} -%description -n python3-%{name}-cli-plugins +%description -n python%{python3_pkgversion}-%{name}-cli-plugins Plugins to the koji command-line interface %endif