2007-01-15 14:34:46 +00:00
|
|
|
#
|
2011-09-05 15:08:29 +00:00
|
|
|
# spec file for package python-xmldiff
|
2007-01-15 14:34:46 +00:00
|
|
|
#
|
2025-08-04 20:20:51 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 14:34:46 +00:00
|
|
|
#
|
2009-06-17 22:20:11 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-10 06:21:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 14:34:46 +00:00
|
|
|
#
|
|
|
|
|
2009-06-17 22:20:11 +00:00
|
|
|
|
2019-04-12 08:12:52 +00:00
|
|
|
%define oldpython python
|
2007-01-15 14:34:46 +00:00
|
|
|
Name: python-xmldiff
|
2024-11-05 15:33:50 +00:00
|
|
|
Version: 2.7.0
|
2019-04-10 06:21:40 +00:00
|
|
|
Release: 0
|
2019-04-10 08:43:52 +00:00
|
|
|
Summary: Tree to tree correction between XML documents
|
2019-04-10 06:21:40 +00:00
|
|
|
License: MIT
|
2019-04-23 11:51:01 +00:00
|
|
|
URL: https://github.com/Shoobx/xmldiff
|
2019-04-10 06:21:40 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/x/xmldiff/xmldiff-%{version}.tar.gz
|
2025-08-04 20:20:51 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-error-type.patch taken from https://github.com/Shoobx/xmldiff/commit/57e16ce3d92067c6246c3de04f2d4b9803f6f25b
|
|
|
|
Patch0: fix-error-type.patch
|
2024-03-05 04:35:32 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-04-10 06:21:40 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-05 04:35:32 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-04-23 11:51:01 +00:00
|
|
|
BuildRequires: fdupes
|
2019-04-10 06:21:40 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-23 11:51:01 +00:00
|
|
|
Requires: python-lxml >= 3.1.0
|
|
|
|
Requires: python-setuptools
|
2020-05-15 17:42:51 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-03-05 04:35:32 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-04-23 11:51:01 +00:00
|
|
|
Conflicts: %{oldpython}-xmldiff < %{version}
|
|
|
|
BuildArch: noarch
|
2019-04-10 06:21:40 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module lxml >= 3.1.0}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
2007-01-15 14:34:46 +00:00
|
|
|
|
|
|
|
%description
|
2019-04-10 08:43:52 +00:00
|
|
|
XMLdiff shows the differences between two similar XML files in the same
|
|
|
|
way `diff` does with text files. It can also be used as a library or as
|
|
|
|
a command line tool and can work either with XML files or DOM trees.
|
|
|
|
The implementation is based on "Change detection in hierarchically
|
|
|
|
structured information", by S. Chawathe, A. Rajaraman, H.
|
|
|
|
Garcia-Molina, and J. Widom, Stanford University, 1996.
|
2007-01-15 14:34:46 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-05 04:35:32 +00:00
|
|
|
%autosetup -p1 -n xmldiff-%{version}
|
2007-01-15 14:34:46 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-05 04:35:32 +00:00
|
|
|
%pyproject_wheel
|
2007-01-15 14:34:46 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-05 04:35:32 +00:00
|
|
|
%pyproject_install
|
2020-05-15 17:42:51 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/xmlpatch
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/xmldiff
|
2019-04-10 06:21:40 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2007-01-15 14:34:46 +00:00
|
|
|
|
2019-04-10 06:21:40 +00:00
|
|
|
%check
|
2021-06-03 13:47:32 +00:00
|
|
|
%pyunittest discover -v
|
2007-01-15 14:34:46 +00:00
|
|
|
|
2020-05-15 17:42:51 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative xmlpatch
|
|
|
|
%python_install_alternative xmldiff
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative xmlpatch
|
|
|
|
%python_uninstall_alternative xmldiff
|
|
|
|
|
2019-04-10 06:21:40 +00:00
|
|
|
%files %{python_files}
|
2024-11-05 15:33:50 +00:00
|
|
|
%doc CHANGES.rst README.rst
|
2019-04-10 06:21:40 +00:00
|
|
|
%license LICENSE.txt
|
2020-05-15 17:42:51 +00:00
|
|
|
%python_alternative %{_bindir}/xmldiff
|
|
|
|
%python_alternative %{_bindir}/xmlpatch
|
2024-03-05 04:35:32 +00:00
|
|
|
%{python_sitelib}/xmldiff
|
|
|
|
%{python_sitelib}/xmldiff-%{version}.dist-info
|
2007-01-15 14:34:46 +00:00
|
|
|
|
2009-06-17 22:20:11 +00:00
|
|
|
%changelog
|