From 83bf27f716301e4e43a003431a43a7683254941f642f537cd39d5630c9532987 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 03:47:59 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zxcvbn?expand=0&rev=6 --- python-zxcvbn.changes | 6 ++++++ python-zxcvbn.spec | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/python-zxcvbn.changes b/python-zxcvbn.changes index fc00ba4..43b772e 100644 --- a/python-zxcvbn.changes +++ b/python-zxcvbn.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 6 03:08:58 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Dec 1 16:43:22 UTC 2023 - Antonio Larrosa diff --git a/python-zxcvbn.spec b/python-zxcvbn.spec index f6098d5..5ad3bc5 100644 --- a/python-zxcvbn.spec +++ b/python-zxcvbn.spec @@ -1,7 +1,7 @@ # # spec file for package python-zxcvbn # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,10 +25,14 @@ Summary: Python password strength estimator License: MIT URL: https://github.com/dwolfhub/zxcvbn-python Source: https://github.com/dwolfhub/zxcvbn-python/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -39,10 +43,10 @@ Python password strength estimator. %setup -q -n %{modname}-python-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/zxcvbn @@ -58,7 +62,8 @@ Python password strength estimator. %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}.dist-info %python_alternative %{_bindir}/zxcvbn %changelog