Blame SOURCES/rhnlib-2.8.6-3-el8-to-rhnlib-2.8.6-4-el8.patch

6489f9
diff --git a/Makefile.rhnlib b/Makefile.rhnlib
6489f9
index 03e27d0..e666769 100644
6489f9
--- a/Makefile.rhnlib
6489f9
+++ b/Makefile.rhnlib
6489f9
@@ -1,7 +1,7 @@
6489f9
 # Makefile for the rhn modules
6489f9
 #
6489f9
 
6489f9
-PYTHON      = /usr/bin/python
6489f9
+PYTHON      = /usr/bin/python3
6489f9
 
6489f9
 NAME	    = rhnlib
6489f9
 VERSION	    = $(call _get_tag,VERSION)
6489f9
diff --git a/rhnlib.spec b/rhnlib.spec
6489f9
index f5eb7fd..1581072 100644
6489f9
--- a/rhnlib.spec
6489f9
+++ b/rhnlib.spec
6489f9
@@ -7,7 +7,7 @@
6489f9
 Summary: Python libraries for the Spacewalk project
6489f9
 Name: rhnlib
6489f9
 Version: 2.8.6
6489f9
-Release: 3%{?dist}
6489f9
+Release: 4%{?dist}
6489f9
 URL:     https://github.com/spacewalkproject/spacewalk
6489f9
 Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
6489f9
 
6489f9
@@ -16,18 +16,8 @@ License: GPLv2
6489f9
 %if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
6489f9
 BuildArch: noarch
6489f9
 %endif
6489f9
-BuildRequires: python-devel
6489f9
-Provides: python2-rhnlib = %{version}-%{release}
6489f9
-%{?python_provide:%python_provide python2-rhnlib}
6489f9
 
6489f9
-Requires: pyOpenSSL 
6489f9
-Conflicts: rhncfg < 5.10.45
6489f9
-Conflicts: spacewalk-proxy-installer < 1.3.2
6489f9
-Conflicts: rhn-client-tools < 1.3.3
6489f9
-Conflicts: rhn-custom-info < 5.4.7
6489f9
-Conflicts: rhnpush < 5.5.10
6489f9
-Conflicts: rhnclient < 0.10
6489f9
-Conflicts: spacewalk-proxy < 1.3.6
6489f9
+Requires: python3-rhnlib
6489f9
 
6489f9
 %description
6489f9
 rhnlib is a collection of python modules used by the Spacewalk (http://spacewalk.redhat.com) software.
6489f9
@@ -67,7 +57,6 @@ make -f Makefile.rhnlib
6489f9
 
6489f9
 
6489f9
 %install
6489f9
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
6489f9
 %if 0%{?build_py3}
6489f9
 %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
6489f9
 %endif
6489f9
@@ -77,8 +66,6 @@ make -f Makefile.rhnlib
6489f9
 
6489f9
 
6489f9
 %files
6489f9
-%doc ChangeLog COPYING README TODO
6489f9
-%{python_sitelib}/*
6489f9
 
6489f9
 %if 0%{?build_py3}
6489f9
 %files -n python3-rhnlib
6489f9
@@ -87,6 +74,11 @@ make -f Makefile.rhnlib
6489f9
 %endif
6489f9
 
6489f9
 %changelog
6489f9
+* Tue Apr 17 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.6-4
6489f9
+- don't package python2 files for rhnlib (tkasparek@redhat.com)
6489f9
+- be compliant with new packaging guidelines when requiring python2 packages
6489f9
+  (tkasparek@redhat.com)
6489f9
+
6489f9
 * Tue Feb 20 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.6-3
6489f9
 - rhel8 utilizes python3 (tkasparek@redhat.com)
6489f9