Accepting request 808778 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsondiff?expand=0&rev=5
This commit is contained in:
Yuchen Lin 2020-05-26 15:48:51 +00:00 committed by Git OBS Bridge
commit f714c660f1
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 4 15:22:38 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com> Fri Oct 4 15:22:38 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-jsondiff # spec file for package python-jsondiff
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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
@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -44,16 +46,26 @@ Package to show differences between JSON and JSON-like structures in Python
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/jsondiff
%python_clone -a %{buildroot}%{_bindir}/jdiff
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand nosetests-%{$python_bin_suffix} %python_expand nosetests-%{$python_bin_suffix}
%post
%python_install_alternative jsondiff
%python_install_alternative jdiff
%postun
%python_uninstall_alternative jsondiff
%python_uninstall_alternative jdiff
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*
%python3_only %{_bindir}/jdiff %python_alternative %{_bindir}/jdiff
%python3_only %{_bindir}/jsondiff %python_alternative %{_bindir}/jsondiff
%changelog %changelog