python-fido2/python-fido2.spec
Karol Babioch 2b98c28c7d Accepting request 660556 from home:kbabioch:branches:devel:languages:python
- Version 0.5.0 (released 2018-12-21)
  * Changes to server classes, some backwards breaking.
  * Add ability to authenticate U2F credentials by using the appid extension.
  * Make verification of attestation more explicit.
  * Add support for Android SafetyNet attestation.
  * Make it easier to work with U2F/CTAP1 data formats.

OBS-URL: https://build.opensuse.org/request/show/660556
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fido2?expand=0&rev=9
2018-12-21 14:07:34 +00:00

69 lines
2.2 KiB
RPMSpec

#
# spec file for package python-fido2
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fido2
Version: 0.5.0
Release: 0
Summary: Python-based FIDO 2.0 library
License: BSD-2-Clause AND BSD-3-Clause AND Apache-2.0 AND MPL-2.0
Group: Development/Languages/Python
Url: https://github.com/Yubico/python-fido2
Source: https://github.com/Yubico/python-fido2/archive/%{version}.tar.gz#/python-fido2-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 1.0}
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module pyfakefs >= 2.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-enum34
Requires: python-cryptography >= 1.0
Requires: python-six
BuildArch: noarch
%ifpython2
Requires: python2-enum34
%endif
%python_subpackages
%description
This library supports the FIDO U2F and FIDO 2.0 protocols for communicating
with a USB authenticator via the Client-to-Authenticator Protocol (CTAP 1 and 2).
In addition to this low-level device access, classes defined in the fido2.client
implement higher level device operations.
%prep
%setup -q
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc NEWS* README*
%license COPYING*
%{python_sitelib}/*
%changelog