2016-11-15 22:04:09 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-jwcrypto
|
|
|
|
|
#
|
2022-11-18 17:14:01 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-11-15 22:04:09 +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.
|
|
|
|
|
|
2018-12-04 13:36:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-15 22:04:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-06-25 14:06:57 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-06-12 18:19:38 +00:00
|
|
|
|
2021-08-06 07:13:11 +00:00
|
|
|
%define skip_python2 1
|
|
|
|
|
|
2016-11-15 22:04:09 +00:00
|
|
|
Name: python-jwcrypto
|
2022-11-18 17:14:01 +00:00
|
|
|
Version: 1.4.2
|
2016-11-15 22:04:09 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python module package implementing JOSE Web standards
|
2018-06-25 14:06:57 +00:00
|
|
|
License: LGPL-3.0-only
|
|
|
|
|
URL: https://github.com/latchset/jwcrypto
|
2016-11-15 22:04:09 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jwcrypto/jwcrypto-%{version}.tar.gz
|
2021-06-12 18:19:38 +00:00
|
|
|
BuildRequires: %{python_module Deprecated}
|
2020-09-06 19:25:10 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 2.3}
|
2021-12-08 14:48:14 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-06-25 14:06:57 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-06-12 18:19:38 +00:00
|
|
|
Requires: python-Deprecated
|
2020-09-06 19:25:10 +00:00
|
|
|
Requires: python-cryptography >= 2.3
|
2016-11-15 22:04:09 +00:00
|
|
|
BuildArch: noarch
|
2018-06-25 14:06:57 +00:00
|
|
|
%python_subpackages
|
2016-11-15 22:04:09 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A Python implementation of the JOSE Working Group documents:
|
|
|
|
|
RFC 7515 - JSON Web Signature (JWS)
|
|
|
|
|
RFC 7516 - JSON Web Encryption (JWE)
|
|
|
|
|
RFC 7517 - JSON Web Key (JWK)
|
|
|
|
|
RFC 7518 - JSON Web Algorithms (JWA)
|
|
|
|
|
RFC 7519 - JSON Web Token (JWT)
|
|
|
|
|
RFC 7520 - Examples of Protecting Content Using JSON Object Signing and Encryption (JOSE)
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n jwcrypto-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2018-06-25 14:06:57 +00:00
|
|
|
%python_build
|
2016-11-15 22:04:09 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-06-25 14:06:57 +00:00
|
|
|
%python_install
|
|
|
|
|
rm -rv %{buildroot}%{_datadir}/doc/jwcrypto
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-11-15 22:04:09 +00:00
|
|
|
|
2018-06-25 14:06:57 +00:00
|
|
|
%check
|
2020-09-06 19:26:29 +00:00
|
|
|
%pytest jwcrypto
|
2018-06-25 14:06:57 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2016-11-15 22:04:09 +00:00
|
|
|
%{python_sitelib}/*
|
2018-06-25 14:06:57 +00:00
|
|
|
%license LICENSE
|
2022-11-18 17:14:01 +00:00
|
|
|
%doc README.md
|
2016-11-15 22:04:09 +00:00
|
|
|
|
|
|
|
|
%changelog
|