From c418fdcdbc132d118554fa055c567dfe467f0bc0ad1352791728476753838731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 08:59:51 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpath-rw?expand=0&rev=15 --- python-jsonpath-rw.changes | 5 +++++ python-jsonpath-rw.spec | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/python-jsonpath-rw.changes b/python-jsonpath-rw.changes index c5d3cc7..a9c7454 100644 --- a/python-jsonpath-rw.changes +++ b/python-jsonpath-rw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 08:59:24 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Aug 12 17:11:58 UTC 2020 - Matej Cepl diff --git a/python-jsonpath-rw.spec b/python-jsonpath-rw.spec index 13bca54..e0bc023 100644 --- a/python-jsonpath-rw.spec +++ b/python-jsonpath-rw.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonpath-rw # -# Copyright (c) 2020 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 @@ -20,10 +20,7 @@ %define __os_install_post %(echo '%__os_install_post; \ rm -f %{buildroot}%{_sysconfdir}/alternatives/jsonpath.pyo; \ rm -f %{buildroot}%{_sysconfdir}/alternatives/jsonpath.pyc') - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname jsonpath-rw - Name: python-jsonpath-rw Version: 1.4.0 Release: 0 @@ -32,15 +29,17 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/kennknowles/python-jsonpath-rw Source: https://files.pythonhosted.org/packages/source/j/jsonpath-rw/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module ply} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros Requires: python-decorator Requires: python-ply >= 3.4 Requires: python-six -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -59,10 +58,10 @@ extend. (You can also execute them :-) sed -i '/^#!/ d' jsonpath_rw/bin/jsonpath.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/jsonpath.py %post @@ -74,6 +73,7 @@ sed -i '/^#!/ d' jsonpath_rw/bin/jsonpath.py %files %{python_files} %doc README.rst %python_alternative %{_bindir}/jsonpath.py -%{python_sitelib}/* +%{python_sitelib}/jsonpath[-_]rw +%{python_sitelib}/jsonpath[-_]rw-%{version}*-info %changelog