From 13af82433831462fe9ff769cd1624aa73b4dfbf620ac157e92a616d9f0dbe430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 15:56:07 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hkdf?expand=0&rev=5 --- python-hkdf.changes | 5 +++++ python-hkdf.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-hkdf.changes b/python-hkdf.changes index 3517cd0..a6e65ab 100644 --- a/python-hkdf.changes +++ b/python-hkdf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 15:55:53 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Dec 4 12:48:54 UTC 2018 - Matej Cepl diff --git a/python-hkdf.spec b/python-hkdf.spec index 4e8fb0e..fcfbf7c 100644 --- a/python-hkdf.spec +++ b/python-hkdf.spec @@ -1,7 +1,7 @@ # # spec file for package python-hkdf # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,20 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-hkdf Version: 0.0.3 Release: 0 Summary: HMAC-based Extract-and-Expand Key Derivation Function (HKDF) License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/casebeer/python-hkdf +URL: https://github.com/casebeer/python-hkdf Source: https://files.pythonhosted.org/packages/source/h/hkdf/hkdf-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -39,13 +39,14 @@ This module implements the HMAC Key Derivation function. %setup -q -n hkdf-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/hkdf +%{python_sitelib}/hkdf-%{version}*-info %changelog From 030c1f81ceb8a646c466a5d654fd90e5f466e1eb08f15ec45f3c5eeb0d9b1c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 16:14:01 +0000 Subject: [PATCH 2/2] Accepting request 1280679 from home:mcalabkova:branches:devel:languages:python fix files OBS-URL: https://build.opensuse.org/request/show/1280679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hkdf?expand=0&rev=6 --- python-hkdf.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-hkdf.spec b/python-hkdf.spec index fcfbf7c..adb6314 100644 --- a/python-hkdf.spec +++ b/python-hkdf.spec @@ -46,7 +46,8 @@ This module implements the HMAC Key Derivation function. %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/hkdf +%{python_sitelib}/hkdf.py %{python_sitelib}/hkdf-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/hkdf* %changelog