15
0

- Migrate to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ajsonrpc?expand=0&rev=8
This commit is contained in:
2025-06-04 15:18:49 +00:00
committed by Git OBS Bridge
commit 86577bfc0a
5 changed files with 125 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
ajsonrpc-1.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:791bac18f0bf0dee109194644f151cf8b7ff529c4b8d6239ac48104a3251a19f
size 22108

30
python-ajsonrpc.changes Normal file
View File

@@ -0,0 +1,30 @@
-------------------------------------------------------------------
Wed Jun 4 15:18:22 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Migrate to libalternatives
-------------------------------------------------------------------
Tue May 13 13:05:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed Jan 25 09:40:02 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Run test on all python versions but for python 3.6
-------------------------------------------------------------------
Sat Jan 15 16:24:57 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.2.0:
* add Quart backend
-------------------------------------------------------------------
Mon Apr 12 09:51:09 UTC 2021 - Mustafa Çalışkan <musfay@protonmail.com>
- Run tests only on python38 flavor
-------------------------------------------------------------------
Sun Apr 4 21:51:53 UTC 2021 - Mustafa Çalışkan <musfay@protonmail.com>
- Initial version 1.1.0

68
python-ajsonrpc.spec Normal file
View File

@@ -0,0 +1,68 @@
#
# spec file for package python-ajsonrpc
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%bcond_without libalternatives
Name: python-ajsonrpc
Version: 1.2.0
Release: 0
Summary: Async JSON-RPC 20 protocol + server powered by asyncio
License: MIT
URL: https://github.com/pavlov99/ajsonrpc
Source: https://files.pythonhosted.org/packages/source/a/ajsonrpc/ajsonrpc-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
BuildArch: noarch
%python_subpackages
%description
Async JSON-RPC 2.0 protocol + server powered by asyncio.
%prep
%autosetup -p1 -n ajsonrpc-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/async-json-rpc-server
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative async-json-rpc-server
# post and postun macro call is not needed with only libalternatives
%files %{python_files}
%doc README.md
%license LICENSE.txt
%python_alternative %{_bindir}/async-json-rpc-server
%{python_sitelib}/ajsonrpc
%{python_sitelib}/ajsonrpc-%{version}*-info
%changelog