2012-02-01 10:55:23 +00:00
|
|
|
#
|
2022-08-29 04:51:03 +00:00
|
|
|
# spec file
|
2012-02-01 10:55:23 +00:00
|
|
|
#
|
2023-01-02 18:38:01 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-02-01 10:55:23 +00: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 09:21:32 +00:00
|
|
|
|
2018-10-14 08:49:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-01 10:55:23 +00:00
|
|
|
#
|
|
|
|
|
2013-02-11 09:21:32 +00:00
|
|
|
|
2022-08-29 04:51:03 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
|
|
|
Name: python-keyring%{psuffix}
|
2023-01-02 18:38:01 +00:00
|
|
|
Version: 23.13.1
|
2012-02-01 10:55:23 +00:00
|
|
|
Release: 0
|
2019-03-29 09:21:19 +00:00
|
|
|
Summary: System keyring service access from Python
|
2023-01-02 18:38:01 +00:00
|
|
|
License: MIT
|
2018-10-14 08:49:34 +00:00
|
|
|
URL: https://github.com/jaraco/keyring
|
2017-05-03 16:04:18 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
2022-09-24 06:33:31 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools >= 56}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-08-23 05:22:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-24 06:33:31 +00:00
|
|
|
Requires: python-SecretStorage >= 3.2
|
2023-01-03 12:47:35 +00:00
|
|
|
%if 0%{python_version_nodots} < 310
|
|
|
|
Requires: python-importlib-resources
|
|
|
|
%endif
|
2022-09-20 19:13:52 +00:00
|
|
|
Requires: python-jaraco.classes
|
2020-04-16 10:27:32 +00:00
|
|
|
Requires: python-jeepney >= 0.4.2
|
2022-11-10 10:44:29 +00:00
|
|
|
%if 0%{python_version_nodots} < 312
|
|
|
|
Requires: python-importlib-metadata >= 4.11.4
|
2022-09-24 06:33:31 +00:00
|
|
|
%endif
|
2020-05-25 09:26:37 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-06-17 15:03:11 +00:00
|
|
|
Requires(postun):update-alternatives
|
2017-11-28 17:08:29 +00:00
|
|
|
BuildArch: noarch
|
2022-08-29 04:51:03 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module keyring = %{version}}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
|
|
%endif
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_subpackages
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%description
|
2019-03-29 09:21:19 +00:00
|
|
|
The Python keyring lib provides a way to access the system keyring service
|
2012-02-01 10:55:23 +00:00
|
|
|
from python. It can be used in any application that needs safe password storage.
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%prep
|
2021-06-17 15:03:11 +00:00
|
|
|
%autosetup -p1 -n keyring-%{version}
|
|
|
|
|
2016-11-15 15:22:45 +00:00
|
|
|
# For rpmlint warning: remove shebang from python library:
|
|
|
|
sed -i '/^#!/d' keyring/cli.py
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%build
|
2022-09-24 06:33:31 +00:00
|
|
|
%if !%{with test}
|
|
|
|
%pyproject_wheel
|
|
|
|
%endif
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%install
|
2022-08-29 04:51:03 +00:00
|
|
|
%if !%{with test}
|
2022-09-24 06:33:31 +00:00
|
|
|
%pyproject_install
|
2020-05-25 09:26:37 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/keyring
|
2019-03-06 08:40:56 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2022-08-29 04:51:03 +00:00
|
|
|
%endif
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2022-08-29 04:51:03 +00:00
|
|
|
%if %{with test}
|
2012-02-01 10:55:23 +00:00
|
|
|
%check
|
2020-04-16 10:27:32 +00:00
|
|
|
%pytest
|
2022-08-29 04:51:03 +00:00
|
|
|
%endif
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2022-08-29 04:51:03 +00:00
|
|
|
%if !%{with test}
|
2020-05-25 09:26:37 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative keyring
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative keyring
|
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%files %{python_files}
|
2015-12-17 13:43:06 +00:00
|
|
|
%doc README.rst CHANGES.rst
|
2019-02-26 13:42:06 +00:00
|
|
|
%license LICENSE
|
2020-05-25 09:26:37 +00:00
|
|
|
%python_alternative %{_bindir}/keyring
|
2022-09-24 06:33:31 +00:00
|
|
|
%{python_sitelib}/keyring-%{version}*-info
|
2017-05-03 16:04:18 +00:00
|
|
|
%{python_sitelib}/keyring/
|
2022-08-29 04:51:03 +00:00
|
|
|
%endif
|
2009-09-07 09:09:43 +00:00
|
|
|
|
2012-02-01 10:55:23 +00:00
|
|
|
%changelog
|