Blame SOURCES/dnf-plugin-spacewalk-2.8.5-4-el8-to-dnf-plugin-spacewalk-2.8.5-5-el8.patch

051232
diff --git a/dnf-plugin-spacewalk.spec b/dnf-plugin-spacewalk.spec
051232
index e73ef9b..41ff4e5 100644
051232
--- a/dnf-plugin-spacewalk.spec
051232
+++ b/dnf-plugin-spacewalk.spec
051232
@@ -12,7 +12,7 @@
051232
 Summary: DNF plugin for Spacewalk
051232
 Name: dnf-plugin-spacewalk
051232
 Version: 2.8.5
051232
-Release: 4%{?dist}
051232
+Release: 5%{?dist}
051232
 License: GPLv2
051232
 Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
051232
 URL:     https://github.com/spacewalkproject/spacewalk
051232
@@ -29,6 +29,9 @@ Requires: librepo >= 1.7.15
051232
 %if 0%{?fedora}
051232
 Obsoletes: yum-rhn-plugin < 2.7
051232
 %endif
051232
+%if 0%{?rhel} >= 8
051232
+Provides: yum-rhn-plugin = %{version}
051232
+%endif
051232
 
051232
 %description
051232
 This DNF plugin provides access to a Spacewalk server for software updates.
051232
@@ -71,6 +74,8 @@ install -d %{buildroot}%{_mandir}/man{5,8}
051232
 install -m 644 spacewalk.conf %{buildroot}%{_sysconfdir}/dnf/plugins/
051232
 install -m 644 man/spacewalk.conf.5 %{buildroot}%{_mandir}/man5/
051232
 install -m 644 man/dnf.plugin.spacewalk.8 %{buildroot}%{_mandir}/man8/
051232
+ln -sf dnf.plugin.spacewalk.8 $RPM_BUILD_ROOT%{_mandir}/man8/dnf-plugin-spacewalk.8
051232
+ln -sf dnf.plugin.spacewalk.8 $RPM_BUILD_ROOT%{_mandir}/man8/yum-rhn-plugin.8
051232
 
051232
 # python2
051232
 %if 0%{?build_py2}
051232
@@ -112,6 +117,12 @@ install -m 644 actions/errata.py %{buildroot}%{python3_sitelib}/rhn/actions/
051232
 %endif
051232
 
051232
 %changelog
051232
+* Tue Jul 24 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-5
051232
+- Related: #1581665 - provide useful symlinks to a manpage
051232
+  (tkasparek@redhat.com)
051232
+- Resolves: #1581665 - provide yum-rhn-plugin on new RHEL systems
051232
+  (tkasparek@redhat.com)
051232
+
051232
 * Tue Mar 20 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-4
051232
 - don't build python2 subpackages on systems with default python2
051232
   (tkasparek@redhat.com)