Accepting request 770735 from home:jfehlig:branches:Virtualization
Drop py2 support - Stop building for python2 Dropped patches: revert-b22e4f24.patch OBS-URL: https://build.opensuse.org/request/show/770735 OBS-URL: https://build.opensuse.org/package/show/Virtualization/python-libvirt-python?expand=0&rev=65
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
# No longer build for python2. Support was dropped upstream in the 6.0.0 release
|
||||
%define skip_python2 1
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define srcname libvirt-python
|
||||
Name: python-libvirt-python
|
||||
@@ -28,7 +31,6 @@ Group: Development/Languages/Python
|
||||
Source0: %{srcname}-%{version}.tar.gz
|
||||
Source1: %{srcname}-%{version}.tar.gz.asc
|
||||
Source2: python-libvirt-python.keyring
|
||||
Patch0: revert-b22e4f24.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libvirt-devel = %{version}
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -50,7 +52,6 @@ of recent versions of Linux (v2.6.20+).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
# Unset execute bit for example scripts; it can introduce spurious
|
||||
# RPM dependencies, like /usr/bin/python which can pull in python2
|
||||
|
||||
Reference in New Issue
Block a user