2012-02-01 11:55:23 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-keyring
|
|
|
|
#
|
2020-04-16 12:27:32 +02:00
|
|
|
# Copyright (c) 2020 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
|
|
|
|
2017-05-03 18:04:18 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-04-16 12:27:32 +02:00
|
|
|
%define skip_python2 1
|
2012-02-01 11:55:23 +01:00
|
|
|
Name: python-keyring
|
2020-06-02 18:33:36 +02:00
|
|
|
Version: 21.2.1
|
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
|
2017-11-28 18:08:29 +01:00
|
|
|
License: Python-2.0 AND MIT
|
2020-09-30 19:23:20 +02:00
|
|
|
Group: Development/Languages/Python
|
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
|
2020-09-30 19:23:20 +02:00
|
|
|
Patch: fix-kwallet-tests.patch
|
2020-04-16 12:27:32 +02:00
|
|
|
BuildRequires: %{python_module SecretStorage >= 3}
|
2018-06-23 09:38:04 +02:00
|
|
|
BuildRequires: %{python_module entrypoints}
|
2020-05-28 09:17:20 +02:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
2018-06-23 09:38:04 +02:00
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
2017-05-03 18:04:18 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
2020-04-16 12:27:32 +02:00
|
|
|
BuildRequires: %{python_module toml}
|
2017-08-23 07:22:48 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-16 12:27:32 +02:00
|
|
|
Requires: python-SecretStorage >= 3
|
2018-06-23 09:38:04 +02:00
|
|
|
Requires: python-entrypoints
|
2020-05-28 09:17:20 +02:00
|
|
|
Requires: python-importlib-metadata
|
2020-04-16 12:27:32 +02:00
|
|
|
Requires: python-jeepney >= 0.4.2
|
2017-11-28 18:08:29 +01:00
|
|
|
Requires: python-setuptools
|
2020-05-25 11:26:37 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2017-11-28 18:08:29 +01:00
|
|
|
BuildArch: noarch
|
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
|
2012-02-01 11:55:23 +01:00
|
|
|
%setup -q -n keyring-%{version}
|
2020-09-30 19:23:20 +02:00
|
|
|
%patch -p1
|
2016-11-15 16:22:45 +01:00
|
|
|
# For rpmlint warning: remove shebang from python library:
|
|
|
|
sed -i '/^#!/d' keyring/cli.py
|
2020-04-16 12:27:32 +02:00
|
|
|
sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-03 18:04:18 +02:00
|
|
|
%python_build
|
2009-09-07 11:09:43 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-03 18:04:18 +02:00
|
|
|
%python_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}
|
2014-11-11 19:18:27 +01:00
|
|
|
|
2012-02-01 11:55:23 +01:00
|
|
|
%check
|
2020-04-16 12:27:32 +02:00
|
|
|
%pytest
|
2014-11-11 19:18:27 +01:00
|
|
|
|
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}
|
2015-12-17 14:43:06 +01:00
|
|
|
%doc README.rst CHANGES.rst
|
2019-02-26 14:42:06 +01:00
|
|
|
%license LICENSE
|
2020-05-25 11:26:37 +02:00
|
|
|
%python_alternative %{_bindir}/keyring
|
2017-05-03 18:04:18 +02:00
|
|
|
%{python_sitelib}/keyring-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/keyring/
|
2009-09-07 11:09:43 +02:00
|
|
|
|
2012-02-01 11:55:23 +01:00
|
|
|
%changelog
|