File project.diff of Package python-hidapi

--- python-hidapi.changes.orig
+++ python-hidapi.changes
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Tue Sep 17 03:32:59 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
+
+- Update to 0.14.0.post2 
+
+-------------------------------------------------------------------
+Fri Jan 19 23:14:08 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
+
+- Updating to upstream version 0.14.0
+
+-------------------------------------------------------------------
 Wed Jan 18 21:32:26 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
 
 - Updating to upstream version 0.13.1
--- python-hidapi.spec.orig
+++ python-hidapi.spec
@@ -15,9 +15,8 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-
 Name:           python-hidapi
-Version:        0.13.1
+Version:        0.14.0.post2
 Release:        0
 Summary:        A Cython interface to the hidapi from https://githubcom/libusb/hidapi
 License:        BSD-3-Clause AND GPL-3.0
@@ -26,14 +25,20 @@ URL:            https://github.com/trezo
 Source:         https://files.pythonhosted.org/packages/source/h/hidapi/hidapi-%{version}.tar.gz
 BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module flit-core}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module wheel}
+BuildRequires:  %{python_module poetry}
+BuildRequires:  %{python_module Cython0}
 # SECTION test requirements
 BuildRequires:  %{python_module setuptools >= 19.0}
 # /SECTION
 BuildRequires:  fdupes
 BuildRequires:  libusb-1_0-devel
 BuildRequires:  libgudev-1_0-devel
-Requires:       python-setuptools >= 19.0
+BuildRequires:  pkgconfig(hidapi-hidraw)
+Requires:       python-Cython0
+
 %python_subpackages
 
 %description
@@ -43,18 +48,16 @@ A Cython interface to the hidapi from ht
 %setup -q -n hidapi-%{version}
 
 %build
-export CFLAGS="%{optflags}"
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
-%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE-bsd.txt LICENSE-gpl3.txt LICENSE-orig.txt LICENSE.txt
 %{python_sitearch}/hid.*
-%{python_sitearch}/hidraw.*
-%{python_sitearch}/hidapi-%{version}-*
+%{python_sitearch}/hidapi-%{version}*
 
 %changelog
openSUSE Build Service is sponsored by