diff --git a/python-SecretStorage.changes b/python-SecretStorage.changes index 01f026e..c93f152 100644 --- a/python-SecretStorage.changes +++ b/python-SecretStorage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 14:53:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:21:20 UTC 2023 - Dirk Müller diff --git a/python-SecretStorage.spec b/python-SecretStorage.spec index f149c5c..55ff6c8 100644 --- a/python-SecretStorage.spec +++ b/python-SecretStorage.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-SecretStorage # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" @@ -34,7 +33,9 @@ Summary: Python bindings to FreeDesktoporg Secret Service API License: BSD-3-Clause URL: https://github.com/mitya57/secretstorage Source: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cryptography @@ -44,10 +45,10 @@ BuildArch: noarch BuildRequires: %{python_module SecretStorage = %{version}} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module jeepney >= 0.6} +BuildRequires: gnome-keyring %if %{?suse_version} >= 1550 BuildRequires: dbus-1-daemon %endif -BuildRequires: gnome-keyring %endif %python_subpackages @@ -74,11 +75,11 @@ The documentation can be found on `pythonhosted.org`_. %setup -q -n SecretStorage-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -93,7 +94,8 @@ mkdir -p $HOME/.cache %files %{python_files} %license LICENSE %doc changelog README.rst -%{python_sitelib}/* +%{python_sitelib}/[Ss]ecret[Ss]torage +%{python_sitelib}/[Ss]ecret[Ss]torage-%{version}*-info %endif %changelog