forked from pool/python-python-xlib
Accepting request 911582 from home:yfjiang:branches:devel:languages:python
- Completely remove python2 build for TW, Leap 15.4 and SLE 15 SP4. - Add buildrequires xauth to successfully build on SLE. OBS-URL: https://build.opensuse.org/request/show/911582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-xlib?expand=0&rev=18
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user