yifengyou / rpms / spacewalk-usix

Forked from rpms/spacewalk-usix 3 years ago
Clone

Blame SOURCES/spacewalk-usix-2.8.1-4-el8-to-spacewalk-usix-2.8.1-5-el8.patch

463904
diff --git a/spacewalk-usix.spec b/spacewalk-usix.spec
463904
index 2bf8720..1b550d5 100644
463904
--- a/spacewalk-usix.spec
463904
+++ b/spacewalk-usix.spec
463904
@@ -18,7 +18,7 @@
463904
 
463904
 Name:	    spacewalk-usix
463904
 Version:	2.8.1
463904
-Release:	4%{?dist}
463904
+Release:	5%{?dist}
463904
 Summary:	Spacewalk server and client nano six library
463904
 
463904
 License:	GPLv2
463904
@@ -33,16 +33,6 @@ Obsoletes: spacewalk-backend-usix < 2.8
463904
 %description
463904
 Library for writing code that runs on Python 2 and 3
463904
 
463904
-%package -n python2-%{name}
463904
-Summary: Spacewalk client micro six library
463904
-Provides: python2-spacewalk-backend-usix = %{version}-%{release}
463904
-Obsoletes: python2-spacewalk-backend-usix < 2.8
463904
-BuildRequires: python-devel
463904
-
463904
-%description -n python2-%{name}
463904
-Library for writing code that runs on Python 2 and 3
463904
-
463904
-%if 0%{?build_py3}
463904
 %package -n python3-%{name}
463904
 Summary: Spacewalk client micro six library
463904
 Provides: python3-spacewalk-backend-usix = %{version}-%{release}
463904
@@ -52,8 +42,6 @@ BuildRequires: python3-devel
463904
 %description -n python3-%{name}
463904
 Library for writing code that runs on Python 2 and 3
463904
 
463904
-%endif
463904
-
463904
 %prep
463904
 %setup -q
463904
 
463904
@@ -62,35 +50,16 @@ Library for writing code that runs on Python 2 and 3
463904
 %define debug_package %{nil}
463904
 
463904
 %install
463904
-install -m 0755 -d $RPM_BUILD_ROOT%{pythonrhnroot}/common
463904
-install -m 0644 __init__.py $RPM_BUILD_ROOT%{pythonrhnroot}/__init__.py
463904
-install -m 0644 common/__init__.py $RPM_BUILD_ROOT%{pythonrhnroot}/common/__init__.py
463904
-install -m 0644 common/usix.py* $RPM_BUILD_ROOT%{pythonrhnroot}/common/usix.py
463904
-
463904
-%if 0%{?build_py3}
463904
-install -d $RPM_BUILD_ROOT%{python3rhnroot}/common
463904
-cp $RPM_BUILD_ROOT%{pythonrhnroot}/__init__.py $RPM_BUILD_ROOT%{python3rhnroot}
463904
-cp $RPM_BUILD_ROOT%{pythonrhnroot}/common/__init__.py $RPM_BUILD_ROOT%{python3rhnroot}/common
463904
-cp $RPM_BUILD_ROOT%{pythonrhnroot}/common/usix.py $RPM_BUILD_ROOT%{python3rhnroot}/common
463904
-%endif
463904
+install -m 0755 -d $RPM_BUILD_ROOT%{python3rhnroot}/common
463904
+install -m 0644 __init__.py $RPM_BUILD_ROOT%{python3rhnroot}/__init__.py
463904
+install -m 0644 common/__init__.py $RPM_BUILD_ROOT%{python3rhnroot}/common/__init__.py
463904
+install -m 0644 common/usix.py* $RPM_BUILD_ROOT%{python3rhnroot}/common/usix.py
463904
+
463904
 
463904
 %clean
463904
 
463904
 %files
463904
 
463904
-%files -n python2-%{name}
463904
-%dir %{pythonrhnroot}
463904
-%dir %{pythonrhnroot}/common
463904
-%{pythonrhnroot}/__init__.py
463904
-%{pythonrhnroot}/common/__init__.py
463904
-%{pythonrhnroot}/common/usix.py*
463904
-%exclude %{pythonrhnroot}/__init__.pyc
463904
-%exclude %{pythonrhnroot}/__init__.pyo
463904
-%exclude %{pythonrhnroot}/common/__init__.pyc
463904
-%exclude %{pythonrhnroot}/common/__init__.pyo
463904
-
463904
-%if 0%{?build_py3}
463904
-
463904
 %files -n python3-%{name}
463904
 %dir %{python3rhnroot}
463904
 %dir %{python3rhnroot}/common
463904
@@ -100,9 +69,11 @@ cp $RPM_BUILD_ROOT%{pythonrhnroot}/common/usix.py $RPM_BUILD_ROOT%{python3rhnroo
463904
 %{python3rhnroot}/common/__pycache__/*
463904
 %exclude %{python3rhnroot}/__pycache__/*
463904
 %exclude %{python3rhnroot}/common/__pycache__/__init__.*
463904
-%endif
463904
 
463904
 %changelog
463904
+* Mon Apr 16 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.1-5
463904
+- build spacewalk-usix just on python3 (tkasparek@redhat.com)
463904
+
463904
 * Thu Mar 01 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.1-4
463904
 - empty %%files section is required for a package to build as a metapackage
463904
   (tkasparek@redhat.com)