15
0

Accepting request 924851 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/924851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpatch?expand=0&rev=26
This commit is contained in:
2021-10-25 13:16:59 +00:00
committed by Git OBS Bridge
2 changed files with 32 additions and 2 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Oct 12 08:43:55 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Fix requirements
-------------------------------------------------------------------
Tue Oct 5 14:30:43 UTC 2021 - schubi <schubi@localhost>
- Added BuildRequires: alts
-------------------------------------------------------------------
Thu Sep 30 13:32:40 UTC 2021 - Stefan Schubert <schubi@suse.de>
- Use libalternatives instead of update-alternatives.
-------------------------------------------------------------------
Fri Sep 17 21:02:26 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -16,6 +16,12 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jsonpatch
Version: 1.32
@@ -28,10 +34,15 @@ Source: https://files.pythonhosted.org/packages/source/j/jsonpatch/jsonp
BuildRequires: %{python_module jsonpointer >= 1.9}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonpointer >= 1.9
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
BuildArch: noarch
%python_subpackages
@@ -55,6 +66,10 @@ rm %{buildroot}%{_bindir}/jsondiff
%check
%pyunittest -v tests
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative jsonpatch
%post
%python_install_alternative jsonpatch