14
0
forked from pool/python-pyu2f

- Switch to pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyu2f?expand=0&rev=16
This commit is contained in:
2025-06-11 06:30:46 +00:00
committed by Git OBS Bridge
parent fd8ac32438
commit 98799d0d9e
2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 11 05:57:12 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 17 07:32:00 UTC 2023 - Daniel Garcia Moreno <daniel.garcia@suse.com> Tue Oct 17 07:32:00 UTC 2023 - Daniel Garcia Moreno <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyu2f # spec file for package python-pyu2f
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 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,7 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pip_version 0.1.5
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pyu2f Name: python-pyu2f
Version: 0.1.5a Version: 0.1.5a
@@ -33,7 +33,9 @@ Patch1: python-pyu2f-no-six.patch
Patch2: python312-1.patch Patch2: python312-1.patch
# PATCH-FIX-UPSTREAM python312-2.patch gh#google/pyu2f@dad654010a03 # PATCH-FIX-UPSTREAM python312-2.patch gh#google/pyu2f@dad654010a03
Patch3: python312-2.patch Patch3: python312-2.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module pyfakefs >= 2.4} BuildRequires: %{python_module pyfakefs >= 2.4}
@@ -51,18 +53,19 @@ U2F host library for interacting with a U2F device over USB.
sed -i 's/import mock/from unittest import mock/' pyu2f/tests/*_test.py pyu2f/tests/hid/*_test.py sed -i 's/import mock/from unittest import mock/' pyu2f/tests/*_test.py pyu2f/tests/hid/*_test.py
%build %build
%python_build %pyproject_wheel
%check %check
%pytest %pytest
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/pyu2f
%{python_sitelib}/pyu2f-%{pip_version}.dist-info
%changelog %changelog