From 3a68ebd08adfe88c31952dc11b7286208ea7bf4513036afa7dfe4e7c70103c24 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 20 Jun 2025 06:04:13 +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-jsonpointer?expand=0&rev=40 --- python-jsonpointer.changes | 6 ++++++ python-jsonpointer.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-jsonpointer.changes b/python-jsonpointer.changes index 44fea2e..49c774a 100644 --- a/python-jsonpointer.changes +++ b/python-jsonpointer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 20 06:03:50 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Nov 19 15:39:07 UTC 2024 - Dirk Müller diff --git a/python-jsonpointer.spec b/python-jsonpointer.spec index c177623..bedf37c 100644 --- a/python-jsonpointer.spec +++ b/python-jsonpointer.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonpointer # -# 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 @@ -28,10 +28,11 @@ Version: 3.0.0 Release: 0 Summary: Module to identify specific nodes in a JSON document License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/stefankoegl/python-json-pointer Source: https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 %if %{with libalternatives} @@ -51,10 +52,10 @@ A module to identify specific nodes in a JSON document (according to draft 08). %setup -q -n jsonpointer-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/jsonpointer @@ -75,6 +76,8 @@ A module to identify specific nodes in a JSON document (according to draft 08). %doc README.md %license LICENSE.txt %python_alternative %{_bindir}/jsonpointer -%{python_sitelib}/* +%{python_sitelib}/jsonpointer.py +%pycache_only %{python_sitelib}/__pycache__/jsonpointer.*.pyc +%{python_sitelib}/jsonpointer-%{version}.dist-info %changelog