From fe0e5869416585a2836080db18b953cf61f6e774 Mon Sep 17 00:00:00 2001
From: StevenK <>
Date: Mar 05 2024 18:30:25 +0000
Subject: Update python-python-xlib to version 0.33 / rev 14 via SR 1154495


https://build.opensuse.org/request/show/1154495
by user StevenK + anag+factory
- Switch to pyproject and patch macros.
- Less globs in %files.

---

diff --git a/.files b/.files
index 466d908..857ceb2 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 4f105b8..6901113 100644
--- a/.rev
+++ b/.rev
@@ -127,4 +127,13 @@
     <comment></comment>
     <requestid>1102208</requestid>
   </revision>
+  <revision rev="14" vrev="3">
+    <srcmd5>b4c6a83b123a26d1f2065c060f047ee7</srcmd5>
+    <version>0.33</version>
+    <time>1709660820</time>
+    <user>anag+factory</user>
+    <comment>- Switch to pyproject and patch macros.
+- Less globs in %files.</comment>
+    <requestid>1154495</requestid>
+  </revision>
 </revisionlist>
diff --git a/python-python-xlib.changes b/python-python-xlib.changes
index 1df69bf..a84e60b 100644
--- a/python-python-xlib.changes
+++ b/python-python-xlib.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+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}
diff --git a/python-python-xlib.spec b/python-python-xlib.spec
index fe370f6..e1cc850 100644
--- a/python-python-xlib.spec
+++ b/python-python-xlib.spec
@@ -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
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,13 +31,14 @@ Version:        0.33
 Release:        0
 Summary:        Python X11 interface
 License:        LGPL-2.1-or-later
-Group:          Development/Libraries/Python
 URL:            https://github.com/python-xlib/python-xlib
 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
 Patch0:         remove-mock.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 %if %{with test}
 BuildRequires:  %{python_module pytest-xvfb}
 BuildRequires:  %{python_module pytest}
@@ -67,10 +68,10 @@ library for Python programs.
 %setup -q -n python-xlib-%{version}
 dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
 # patch only applies to unix endings
-%patch0 -p1
+%patch -P 0 -p1
 
 %build
-%python_build
+%pyproject_wheel
 
 %if %{with test}
 %check
@@ -79,14 +80,14 @@ dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
 %else
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %license LICENSE
 %doc CHANGELOG.md README.rst TODO
-%{python_sitelib}/Xlib/
-%{python_sitelib}/python_xlib-*
+%{python_sitelib}/Xlib
+%{python_sitelib}/python_xlib-%{version}.dist-info
 %endif
 
 %changelog