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

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