17
0

2 Commits

2 changed files with 17 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 30 08:58:07 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 27 19:10:53 UTC 2023 - Dirk Müller <dmueller@suse.com> Mon Nov 27 19:10:53 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-jsonpatch # spec file for package python-jsonpatch
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,6 @@
%else %else
%bcond_with libalternatives %bcond_with libalternatives
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-jsonpatch Name: python-jsonpatch
Version: 1.33 Version: 1.33
@@ -32,18 +31,20 @@ Group: Development/Languages/Python
URL: https://github.com/stefankoegl/python-json-patch URL: https://github.com/stefankoegl/python-json-patch
Source: https://files.pythonhosted.org/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz
BuildRequires: %{python_module jsonpointer >= 1.9} BuildRequires: %{python_module jsonpointer >= 1.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929 BuildRequires: python-rpm-macros >= 20210929
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(preun):update-alternatives
%endif
Requires: python-jsonpointer >= 1.9 Requires: python-jsonpointer >= 1.9
BuildArch: noarch BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(preun): update-alternatives
%endif
%python_subpackages %python_subpackages
%description %description
@@ -53,10 +54,10 @@ Python module to apply JSON-Patches (according to RFC 6902).
%setup -q -n jsonpatch-%{version} %setup -q -n jsonpatch-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# Prepare for update-alternatives usage # Prepare for update-alternatives usage