From 84127c3abc69cafc2420cee409cd7ec61749a9419675c3fe825bfe783405b3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 09:00:53 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonslicer?expand=0&rev=13 --- python-jsonslicer.changes | 5 +++++ python-jsonslicer.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-jsonslicer.changes b/python-jsonslicer.changes index 375586a..88b3b20 100644 --- a/python-jsonslicer.changes +++ b/python-jsonslicer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 09:00:34 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Oct 28 17:55:08 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-jsonslicer.spec b/python-jsonslicer.spec index a4be0c7..b9e4c3a 100644 --- a/python-jsonslicer.spec +++ b/python-jsonslicer.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonslicer # -# Copyright (c) 2022 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-jsonslicer Version: 0.1.8 Release: 0 @@ -26,7 +24,9 @@ License: MIT URL: https://github.com/AMDmi3/jsonslicer Source: https://files.pythonhosted.org/packages/source/j/jsonslicer/jsonslicer-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -48,10 +48,10 @@ given path as complete Python objects. %setup -q -n jsonslicer-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -60,6 +60,7 @@ given path as complete Python objects. %files %{python_files} %license LICENSE %doc README.md CHANGELOG.md -%{python_sitearch}/* +%{python_sitearch}/jsonslicer +%{python_sitearch}/jsonslicer-%{version}*-info %changelog From 85d9f03b70aee99366805ce1023c7ff5bfd8dce9adb603fbfa94fa5893eac63d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 09:03:29 +0000 Subject: [PATCH 2/2] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonslicer?expand=0&rev=14 --- python-jsonslicer.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-jsonslicer.spec b/python-jsonslicer.spec index b9e4c3a..b2f92f4 100644 --- a/python-jsonslicer.spec +++ b/python-jsonslicer.spec @@ -62,5 +62,6 @@ given path as complete Python objects. %doc README.md CHANGELOG.md %{python_sitearch}/jsonslicer %{python_sitearch}/jsonslicer-%{version}*-info +%{python_sitearch}/jsonslicer.cpython* %changelog