Sync from SUSE:SLFO:Main python-python-xlib revision b4c6a83b123a26d1f2065c060f047ee7
This commit is contained in:
parent
756bae7a8a
commit
f352f19e45
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 4 04:17:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject and patch macros.
|
||||||
|
- Less globs in %files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 3 14:07:42 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 23 16:27:15 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
Sun Apr 23 16:27:15 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-python-xlib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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
|
||||||
@ -16,12 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%if !0%{?sle_version} || 0%{?sle_version} > 150300
|
|
||||||
%define skip_python2 1
|
|
||||||
%else
|
|
||||||
%define oldpython python
|
|
||||||
%endif
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@ -31,18 +25,20 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%bcond_with wheel
|
%bcond_with wheel
|
||||||
%endif
|
%endif
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-python-xlib%{psuffix}
|
Name: python-python-xlib%{psuffix}
|
||||||
Version: 0.33
|
Version: 0.33
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python X11 interface
|
Summary: Python X11 interface
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Libraries/Python
|
|
||||||
URL: https://github.com/python-xlib/python-xlib
|
URL: https://github.com/python-xlib/python-xlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.gz
|
||||||
# PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#python-xlib/python-xlib#186
|
# PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#python-xlib/python-xlib#186
|
||||||
Patch0: remove-mock.patch
|
Patch0: remove-mock.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module pytest-xvfb}
|
BuildRequires: %{python_module pytest-xvfb}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@ -72,10 +68,10 @@ library for Python programs.
|
|||||||
%setup -q -n python-xlib-%{version}
|
%setup -q -n python-xlib-%{version}
|
||||||
dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
|
dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
|
||||||
# patch only applies to unix endings
|
# patch only applies to unix endings
|
||||||
%patch0 -p1
|
%patch -P 0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
@ -84,14 +80,14 @@ dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
|
|||||||
%else
|
%else
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md README.rst TODO
|
%doc CHANGELOG.md README.rst TODO
|
||||||
%{python_sitelib}/Xlib/
|
%{python_sitelib}/Xlib
|
||||||
%{python_sitelib}/python_xlib-*
|
%{python_sitelib}/python_xlib-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user