14
0

Accepting request 805851 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/805851
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=12
This commit is contained in:
Tomáš Chvátal
2020-05-15 17:42:51 +00:00
committed by Git OBS Bridge
parent db2cf0be59
commit 888ab32240
2 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 15 12:55:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Oct 30 12:37:21 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-xmldiff
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@ BuildRequires: python-rpm-macros
Requires: python-lxml >= 3.1.0
Requires: python-setuptools
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: %{oldpython}-xmldiff < %{version}
BuildArch: noarch
# SECTION test requirements
@@ -56,16 +58,26 @@ Garcia-Molina, and J. Widom, Stanford University, 1996.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/xmlpatch
%python_clone -a %{buildroot}%{_bindir}/xmldiff
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%post
%python_install_alternative xmlpatch
%python_install_alternative xmldiff
%postun
%python_uninstall_alternative xmlpatch
%python_uninstall_alternative xmldiff
%files %{python_files}
%doc CHANGES.rst README.rst README.txt
%license LICENSE.txt
%python3_only %{_bindir}/xmldiff
%python3_only %{_bindir}/xmlpatch
%python_alternative %{_bindir}/xmldiff
%python_alternative %{_bindir}/xmlpatch
%{python_sitelib}/*
%changelog