2017-06-19 15:17:03 +00:00
|
|
|
#
|
2025-06-12 11:59:44 +00:00
|
|
|
# spec file for package python-signedjson
|
2017-06-19 15:17:03 +00:00
|
|
|
#
|
2025-06-12 11:59:44 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2017-06-19 15:17:03 +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 14:03:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-13 19:49:56 +00:00
|
|
|
#
|
2017-06-19 15:17:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
%global modname signedjson
|
2020-04-16 12:14:21 +00:00
|
|
|
%bcond_without python2
|
2023-06-11 18:00:41 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-06-19 15:17:03 +00:00
|
|
|
Name: python-%{modname}
|
2022-06-08 14:32:02 +00:00
|
|
|
Version: 1.1.4
|
2017-06-19 15:17:03 +00:00
|
|
|
Release: 0
|
2018-12-19 16:58:25 +00:00
|
|
|
Summary: Python module to sign JSON with Ed25519 signatures
|
2017-07-13 19:49:56 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:22:40 +00:00
|
|
|
URL: https://github.com/matrix-org/%{name}
|
2020-04-16 12:14:21 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/signedjson/%{modname}-%{version}.tar.gz
|
2025-06-12 11:59:44 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-04-16 12:14:21 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2025-06-12 11:59:44 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-19 15:17:03 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-16 12:14:21 +00:00
|
|
|
Requires: python-PyNaCl >= 0.3.0
|
|
|
|
Requires: python-canonicaljson >= 1.0.0
|
2020-04-16 12:57:12 +00:00
|
|
|
Requires: python-importlib-metadata
|
2020-04-16 12:14:21 +00:00
|
|
|
Requires: python-typing_extensions >= 3.5
|
|
|
|
Requires: python-unpaddedbase64 >= 1.0.1
|
2017-06-19 15:17:03 +00:00
|
|
|
BuildArch: noarch
|
2020-08-17 06:16:40 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module PyNaCl >= 0.3.0}
|
|
|
|
BuildRequires: %{python_module canonicaljson >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.5}
|
|
|
|
BuildRequires: %{python_module unpaddedbase64 >= 1.0.1}
|
|
|
|
# /SECTION
|
2020-04-16 12:14:21 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python2-typing >= 3.5
|
|
|
|
%endif
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-typing >= 3.5
|
|
|
|
%endif
|
2017-06-19 15:17:03 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Features:
|
|
|
|
|
|
|
|
* More than one entity can sign the same object.
|
|
|
|
* Each entity can sign the object with more than one key making it easier to
|
|
|
|
rotate keys
|
|
|
|
* ED25519 can be replaced with a different algorithm.
|
|
|
|
* Unprotected data can be added to the object under the "unsigned" key.
|
|
|
|
|
|
|
|
%prep
|
2020-04-16 12:14:21 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2017-06-19 15:17:03 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-12 11:59:44 +00:00
|
|
|
%pyproject_wheel
|
2017-06-19 15:17:03 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-12 11:59:44 +00:00
|
|
|
%pyproject_install
|
2020-08-17 06:16:40 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-06-19 15:17:03 +00:00
|
|
|
|
2020-04-16 12:14:21 +00:00
|
|
|
%check
|
2020-08-17 06:16:40 +00:00
|
|
|
%pytest
|
2020-04-16 12:14:21 +00:00
|
|
|
|
2017-06-19 15:17:03 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:22:40 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2023-02-21 14:19:24 +00:00
|
|
|
%{python_sitelib}/signedjson
|
|
|
|
%{python_sitelib}/signedjson-%{version}*-info
|
2017-06-19 15:17:03 +00:00
|
|
|
|
|
|
|
%changelog
|