|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-ajsonrpc
|
|
|
|
# spec file for package python-ajsonrpc
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
%bcond_without libalternatives
|
|
|
|
Name: python-ajsonrpc
|
|
|
|
Name: python-ajsonrpc
|
|
|
|
Version: 1.2.0
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
@@ -24,10 +24,14 @@ Summary: Async JSON-RPC 20 protocol + server powered by asyncio
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/pavlov99/ajsonrpc
|
|
|
|
URL: https://github.com/pavlov99/ajsonrpc
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/ajsonrpc/ajsonrpc-%{version}.tar.gz
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/ajsonrpc/ajsonrpc-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
|
|
Requires: alts
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
@@ -35,32 +39,24 @@ BuildArch: noarch
|
|
|
|
Async JSON-RPC 2.0 protocol + server powered by asyncio.
|
|
|
|
Async JSON-RPC 2.0 protocol + server powered by asyncio.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n ajsonrpc-%{version}
|
|
|
|
%autosetup -p1 -n ajsonrpc-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/async-json-rpc-server
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/async-json-rpc-server
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# 1 test fails on python 3.6
|
|
|
|
%pytest
|
|
|
|
# See https://github.com/pavlov99/ajsonrpc/issues/19
|
|
|
|
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
if [ %{$python_version} != "3.6" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
rm -rf _build*
|
|
|
|
|
|
|
|
$python -m pytest -v
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%pre
|
|
|
|
%python_install_alternative async-json-rpc-server
|
|
|
|
# If libalternatives is used: Removing old update-alternatives entries.
|
|
|
|
|
|
|
|
%python_libalternatives_reset_alternative async-json-rpc-server
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
# post and postun macro call is not needed with only libalternatives
|
|
|
|
%python_uninstall_alternative async-json-rpc-server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
|