15
0

Accepting request 1281326 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonslicer?expand=0&rev=7
This commit is contained in:
2025-05-31 17:15:52 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 30 09:00:34 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Oct 28 17:55:08 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -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,8 @@ 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
%{python_sitearch}/jsonslicer.cpython*
%changelog