Blame SOURCES/dnf-plugin-spacewalk-2.8.5-2-el8-to-dnf-plugin-spacewalk-2.8.5-3-el8.patch

051232
diff --git a/dnf-plugin-spacewalk.spec b/dnf-plugin-spacewalk.spec
051232
index 8a4516e..d0533dc 100644
051232
--- a/dnf-plugin-spacewalk.spec
051232
+++ b/dnf-plugin-spacewalk.spec
051232
@@ -1,4 +1,4 @@
051232
-%if 0%{?fedora}
051232
+%if 0%{?fedora} || 0%{?rhel} >= 8
051232
 %global build_py3   1
051232
 %global default_py3 1
051232
 %endif
051232
@@ -8,14 +8,14 @@
051232
 Summary: DNF plugin for Spacewalk
051232
 Name: dnf-plugin-spacewalk
051232
 Version: 2.8.5
051232
-Release: 2%{?dist}
051232
+Release: 3%{?dist}
051232
 License: GPLv2
051232
 Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
051232
 URL:     https://github.com/spacewalkproject/spacewalk
051232
 BuildArch: noarch
051232
 
051232
 Requires: %{pythonX}-%{name} = %{version}-%{release}
051232
-%if 0%{?fedora} <= 25
051232
+%if 0%{?fedora} && 0%{?fedora} <= 25
051232
 Requires: dnf >= 0.5.3
051232
 %else
051232
 Requires: dnf >= 2.0.0
051232
@@ -54,7 +54,7 @@ Python 3 specific files for %{name}.
051232
 %setup -q
051232
 
051232
 %build
051232
-%if 0%{?fedora} <= 25
051232
+%if 0%{?fedora} && 0%{?fedora} <= 25
051232
 patch -p4 < dnf-plugin-spacewalk-revert-to-1.0.patch
051232
 %endif
051232
 
051232
@@ -102,6 +102,10 @@ install -m 644 actions/errata.py %{buildroot}%{python3_sitelib}/rhn/actions/
051232
 %endif
051232
 
051232
 %changelog
051232
+* Tue Feb 20 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-3
051232
+- %%if 0%%{?fedora} <= 25 is always true on rhel (tkasparek@redhat.com)
051232
+- rhel8 utilizes python3 (tkasparek@redhat.com)
051232
+
051232
 * Mon Feb 19 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-2
051232
 - rebuild for rhel8
051232