From 8f755e45d06ca6b994bcd42c12944ef04d2f47a8939c078760482fb107a9ebd9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 27 Jun 2025 02:55:53 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonrpclib-pelix?expand=0&rev=13 --- python-jsonrpclib-pelix.changes | 6 ++++++ python-jsonrpclib-pelix.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-jsonrpclib-pelix.changes b/python-jsonrpclib-pelix.changes index f2eb64e..72c6a7b 100644 --- a/python-jsonrpclib-pelix.changes +++ b/python-jsonrpclib-pelix.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 27 02:48:04 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Jun 19 07:09:22 UTC 2024 - Dirk Müller diff --git a/python-jsonrpclib-pelix.spec b/python-jsonrpclib-pelix.spec index ad8eed7..70873bc 100644 --- a/python-jsonrpclib-pelix.spec +++ b/python-jsonrpclib-pelix.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonrpclib-pelix # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jsonrpclib-pelix Version: 0.4.3.3 Release: 0 @@ -24,8 +23,10 @@ Summary: JSPN-RPC over HTTP Library for Pelix Remote Services License: Apache-2.0 URL: https://github.com/tcalmant/jsonrpclib/ Source: https://github.com/tcalmant/jsonrpclib/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,17 +40,18 @@ A Python (2 & 3) JSON-RPC over HTTP that mirrors xmlrpclib syntax. sed -i -e 's:python$:python3:' tests/cgi-bin/cgi_server.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/jsonrpclib +%{python_sitelib}/jsonrpclib_pelix-%{version}.dist-info %license LICENSE %doc README.md