14
0

Accepting request 911813 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/911813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-xlib?expand=0&rev=9
This commit is contained in:
Richard Brown
2021-08-16 08:08:34 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 12 11:29:05 UTC 2021 - Yifan Jiang <yfjiang@suse.com>
- Completely remove python2 build for TW, Leap 15.4 and SLE 15 SP4.
-------------------------------------------------------------------
Thu Aug 12 11:26:42 UTC 2021 - Yifan Jiang <yfjiang@suse.com>
- Add buildrequires xauth to successfully build on SLE.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 11 23:39:19 UTC 2020 - Benjamin Greiner <code@bnavigator.de> Fri Dec 11 23:39:19 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-xlib # spec file for package python-python-xlib
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if !0%{?sle_version} || 0%{?sle_version} > 150300
%define skip_python2 1
%else
%define oldpython python %define oldpython python
%endif
Name: python-python-xlib Name: python-python-xlib
Version: 0.29 Version: 0.29
Release: 0 Release: 0
@@ -35,6 +39,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0} BuildRequires: %{python_module six >= 1.10.0}
%if 0%{suse_version} < 1550 %if 0%{suse_version} < 1550
BuildRequires: python-mock BuildRequires: python-mock
BuildRequires: xauth
%endif %endif
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
@@ -43,7 +48,7 @@ Requires: python-six >= 1.10.0
BuildArch: noarch BuildArch: noarch
Provides: python-xlib = %{version} Provides: python-xlib = %{version}
Obsoletes: python-xlib < %{version} Obsoletes: python-xlib < %{version}
%ifpython2 %if 0%{?sle_version} && 0%{?sle_version} <= 150300 && "%{python_flavor}" == "python2"
Provides: %{oldpython}-xlib = %{version} Provides: %{oldpython}-xlib = %{version}
Obsoletes: %{oldpython}-xlib < %{version} Obsoletes: %{oldpython}-xlib < %{version}
%endif %endif