Accepting request 703805 from home:swulf:branches:devel:languages:python
Removing conflict with jsondiff OBS-URL: https://build.opensuse.org/request/show/703805 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpatch?expand=0&rev=33
This commit is contained in:
committed by
Git OBS Bridge
parent
074e0b521a
commit
0b895ee9dd
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jsonpatch
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,9 +31,6 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-jsonpointer >= 1.9
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
# provides jsondiff binary too
|
||||
Conflicts: python2-jsondiff
|
||||
Conflicts: python3-jsondiff
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -50,24 +47,22 @@ Python module to apply JSON-Patches (according to RFC 6902).
|
||||
%python_install
|
||||
|
||||
# Prepare for update-alternatives usage
|
||||
for p in jsonpatch jsondiff ; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||
done
|
||||
%python_clone -a %{buildroot}%{_bindir}/jsonpatch
|
||||
rm %{buildroot}%{_bindir}/jsondiff
|
||||
|
||||
%check
|
||||
%python_exec tests.py
|
||||
|
||||
%post
|
||||
%python_install_alternative jsonpatch jsondiff
|
||||
%python_install_alternative jsonpatch
|
||||
|
||||
%preun
|
||||
%python_uninstall_alternative jsonpatch jsondiff
|
||||
%python_uninstall_alternative jsonpatch
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc AUTHORS README.md
|
||||
%python_alternative %{_bindir}/jsonpatch
|
||||
%python_alternative %{_bindir}/jsondiff
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user