2012-02-01 11:55:23 +01:00
|
|
|
#
|
2024-03-16 10:03:47 +01:00
|
|
|
# spec file for package python-keyring
|
2012-02-01 11:55:23 +01:00
|
|
|
#
|
2024-03-16 10:03:47 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-02-01 11:55:23 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-02-11 10:21:32 +01:00
|
|
|
|
2018-10-14 10:49:34 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-01 11:55:23 +01:00
|
|
|
#
|
|
|
|
|
2013-02-11 10:21:32 +01:00
|
|
|
|
2022-08-29 06:51:03 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-07-19 13:10:39 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-08-29 06:51:03 +02:00
|
|
|
Name: python-keyring%{psuffix}
|
2024-04-06 21:39:16 +02:00
|
|
|
Version: 25.1.0
|
2012-02-01 11:55:23 +01:00
|
|
|
Release: 0
|
2019-03-29 10:21:19 +01:00
|
|
|
Summary: System keyring service access from Python
|
2023-01-02 19:38:01 +01:00
|
|
|
License: MIT
|
2018-10-14 10:49:34 +02:00
|
|
|
URL: https://github.com/jaraco/keyring
|
2017-05-03 18:04:18 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
2023-07-13 11:58:52 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-09-24 08:33:31 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools >= 56}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-08-23 07:22:48 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-24 08:33:31 +02:00
|
|
|
Requires: python-SecretStorage >= 3.2
|
2023-07-13 11:58:52 +02:00
|
|
|
Requires: python-jaraco.classes
|
2024-04-07 11:19:54 +02:00
|
|
|
Requires: python-jaraco.context
|
2024-04-07 11:29:42 +02:00
|
|
|
Requires: python-jaraco.functools
|
2023-07-13 11:58:52 +02:00
|
|
|
Requires: python-jeepney >= 0.4.2
|
|
|
|
Requires(post): update-alternatives
|
2024-03-16 10:03:47 +01:00
|
|
|
Requires(postun): update-alternatives
|
2023-07-13 11:58:52 +02:00
|
|
|
BuildArch: noarch
|
2023-07-19 13:10:39 +02:00
|
|
|
|
2023-01-03 13:47:35 +01:00
|
|
|
%if 0%{python_version_nodots} < 310
|
|
|
|
Requires: python-importlib-resources
|
|
|
|
%endif
|
2022-11-10 11:44:29 +01:00
|
|
|
%if 0%{python_version_nodots} < 312
|
|
|
|
Requires: python-importlib-metadata >= 4.11.4
|
2022-09-24 08:33:31 +02:00
|
|
|
%endif
|
2022-08-29 06:51:03 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module keyring = %{version}}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
|
|
%endif
|
2017-05-03 18:04:18 +02:00
|
|
|
%python_subpackages
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%description
|
2019-03-29 10:21:19 +01:00
|
|
|
The Python keyring lib provides a way to access the system keyring service
|
2012-02-01 11:55:23 +01:00
|
|
|
from python. It can be used in any application that needs safe password storage.
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%prep
|
2021-06-17 17:03:11 +02:00
|
|
|
%autosetup -p1 -n keyring-%{version}
|
|
|
|
|
2016-11-15 16:22:45 +01:00
|
|
|
# For rpmlint warning: remove shebang from python library:
|
|
|
|
sed -i '/^#!/d' keyring/cli.py
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%build
|
2022-09-24 08:33:31 +02:00
|
|
|
%if !%{with test}
|
|
|
|
%pyproject_wheel
|
|
|
|
%endif
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%install
|
2022-08-29 06:51:03 +02:00
|
|
|
%if !%{with test}
|
2022-09-24 08:33:31 +02:00
|
|
|
%pyproject_install
|
2020-05-25 11:26:37 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/keyring
|
2019-03-06 09:40:56 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2022-08-29 06:51:03 +02:00
|
|
|
%endif
|
2014-11-11 19:18:27 +01:00
|
|
|
|
2022-08-29 06:51:03 +02:00
|
|
|
%if %{with test}
|
2012-02-01 11:55:23 +01:00
|
|
|
%check
|
2020-04-16 12:27:32 +02:00
|
|
|
%pytest
|
2022-08-29 06:51:03 +02:00
|
|
|
%endif
|
2014-11-11 19:18:27 +01:00
|
|
|
|
2022-08-29 06:51:03 +02:00
|
|
|
%if !%{with test}
|
2020-05-25 11:26:37 +02:00
|
|
|
%post
|
|
|
|
%python_install_alternative keyring
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative keyring
|
|
|
|
|
2017-05-03 18:04:18 +02:00
|
|
|
%files %{python_files}
|
2023-07-13 11:58:52 +02:00
|
|
|
%doc README.rst NEWS.rst
|
2019-02-26 14:42:06 +01:00
|
|
|
%license LICENSE
|
2020-05-25 11:26:37 +02:00
|
|
|
%python_alternative %{_bindir}/keyring
|
2022-09-24 08:33:31 +02:00
|
|
|
%{python_sitelib}/keyring-%{version}*-info
|
2017-05-03 18:04:18 +02:00
|
|
|
%{python_sitelib}/keyring/
|
2022-08-29 06:51:03 +02:00
|
|
|
%endif
|
2009-09-07 11:09:43 +02:00
|
|
|
|
2012-02-01 11:55:23 +01:00
|
|
|
%changelog
|