17
0

2 Commits

2 changed files with 14 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 12 14:53:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:21:20 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:21:20 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -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 # 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,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
@@ -34,7 +33,9 @@ Summary: Python bindings to FreeDesktoporg Secret Service API
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/mitya57/secretstorage URL: https://github.com/mitya57/secretstorage
Source: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-cryptography Requires: python-cryptography
@@ -44,10 +45,10 @@ BuildArch: noarch
BuildRequires: %{python_module SecretStorage = %{version}} BuildRequires: %{python_module SecretStorage = %{version}}
BuildRequires: %{python_module cryptography} BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module jeepney >= 0.6} BuildRequires: %{python_module jeepney >= 0.6}
BuildRequires: gnome-keyring
%if %{?suse_version} >= 1550 %if %{?suse_version} >= 1550
BuildRequires: dbus-1-daemon BuildRequires: dbus-1-daemon
%endif %endif
BuildRequires: gnome-keyring
%endif %endif
%python_subpackages %python_subpackages
@@ -74,11 +75,11 @@ The documentation can be found on `pythonhosted.org`_.
%setup -q -n SecretStorage-%{version} %setup -q -n SecretStorage-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@@ -93,7 +94,8 @@ mkdir -p $HOME/.cache
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc changelog README.rst %doc changelog README.rst
%{python_sitelib}/* %{python_sitelib}/[Ss]ecret[Ss]torage
%{python_sitelib}/[Ss]ecret[Ss]torage-%{version}*-info
%endif %endif
%changelog %changelog