14
0
Files
python-xmldiff/python-xmldiff.spec

67 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-xmldiff
#
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
# 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
# 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.
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-xmldiff
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
Version: 2.3
Release: 0
Summary: Creates diffs of XML files
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Shoobx/xmldiff
Source: https://files.pythonhosted.org/packages/source/x/xmldiff/xmldiff-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module lxml >= 3.1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
# /SECTION
BuildRequires: fdupes
Requires: python-lxml >= 3.1.0
Requires: python-setuptools
Requires: python-six
BuildArch: noarch
%python_subpackages
%description
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
Creates diffs of XML files
%prep
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%setup -q -n xmldiff-%{version}
%build
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%python_build
%install
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%check
%python_exec setup.py test
Accepting request 692774 from home:pgajdos - package reworked from scratch - version update to 2.3 - A complete, bottom-up, pure-python rewrit - A new default output format with new actions - A format intended to be parseable by anyone parsing the old format. - XML with changes marked though tags and attributes - Added options for faster node comparisons. The "middle" option is now default, it had very few changes in matches, but is much faster. - Implemented a Fast Match algorithm for even faster diffing. - Speed improvements through caching - Fixed a bug where MoveNode actions sometimes was in the wrong order - Added an InsertComment action, as comments require different handling, so it's easier to deal with them this way. You can still use DeleteNode and UpdateTextIn for them with no special handling. - When renaming tags the XMLFormatter will mark them with "diff:rename" instead of making a new tag and deleting the old. - Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. - Changed the substitution unicode character area to use the Private Use Area in BMP(0), to support narrow Python builds - Added --unique-attributes argument. - A workaround for dealing with top level comments and the xml formatter - Added a simple ``xmlpatch`` command and API. - Multiple updates to documentation and code style - deleted patches - xmldiff-0.6.7-clean-tmp.patch (not needed) - xmldiff-0.6.7-xsldata.patch (not needed) OBS-URL: https://build.opensuse.org/request/show/692774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=5
2019-04-10 06:21:40 +00:00
%files %{python_files}
%doc CHANGES.rst README.rst README.txt
%license LICENSE.txt
%python3_only %{_bindir}/xmldiff
%python3_only %{_bindir}/xmlpatch
%{python_sitelib}/*
%changelog