2012-02-01 10:55:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-keyring
|
|
|
|
#
|
2017-01-18 13:46:53 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2012-02-01 10:55:23 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-11 09:21:32 +00:00
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-02-01 10:55:23 +00:00
|
|
|
Name: python-keyring
|
2017-08-23 05:22:48 +00:00
|
|
|
Version: 10.4.0
|
2012-02-01 10:55:23 +00:00
|
|
|
Release: 0
|
2016-11-15 15:22:45 +00:00
|
|
|
Url: https://github.com/jaraco/keyring
|
2012-02-01 10:55:23 +00:00
|
|
|
Summary: Store and access your passwords safely
|
2015-05-18 12:06:20 +00:00
|
|
|
License: Python-2.0 and MIT
|
2012-02-01 10:55:23 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-05-03 16:04:18 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
2012-02-01 10:55:23 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-03 16:04:18 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
2017-08-23 05:22:48 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2017-05-03 16:04:18 +00:00
|
|
|
%if %{with tests}
|
2013-02-11 09:21:32 +00:00
|
|
|
# Test requirements:
|
2017-05-03 16:04:18 +00:00
|
|
|
BuildRequires: %{python_module SecretStorage}
|
2017-08-23 05:22:48 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-05-03 16:04:18 +00:00
|
|
|
# Python 2 test requirements:
|
2013-02-11 09:21:32 +00:00
|
|
|
BuildRequires: python-mock
|
2014-09-09 09:11:56 +00:00
|
|
|
%endif
|
2016-07-04 08:17:41 +00:00
|
|
|
Requires: python-SecretStorage
|
2016-06-06 11:21:02 +00:00
|
|
|
Requires: python-setuptools
|
2012-02-01 10:55:23 +00:00
|
|
|
BuildArch: noarch
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_subpackages
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%description
|
2012-02-01 10:55:23 +00:00
|
|
|
The Python keyring lib provides a easy way to access the system keyring service
|
|
|
|
from python. It can be used in any application that needs safe password storage.
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%prep
|
2012-02-01 10:55:23 +00:00
|
|
|
%setup -q -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
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_build
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%if %{with tests}
|
2012-02-01 10:55:23 +00:00
|
|
|
%check
|
2017-05-03 16:04:18 +00:00
|
|
|
pushd docs
|
|
|
|
%{python_expand export PYTHONPATH="%{buildroot}%{$python_sitelib}"
|
|
|
|
py.test-%{$python_bin_suffix} --pyargs keyring.tests
|
|
|
|
}
|
|
|
|
popd
|
|
|
|
%endif
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%files %{python_files}
|
2009-09-07 09:09:43 +00:00
|
|
|
%defattr(-,root,root)
|
2015-12-17 13:43:06 +00:00
|
|
|
%doc README.rst CHANGES.rst
|
2017-05-03 16:04:18 +00:00
|
|
|
%python3_only %{_bindir}/keyring
|
|
|
|
%{python_sitelib}/keyring-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/keyring/
|
2009-09-07 09:09:43 +00:00
|
|
|
|
2012-02-01 10:55:23 +00:00
|
|
|
%changelog
|