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
|
|
|
#
|
2011-09-05 15:08:29 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
2007-01-15 14:34:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2009-06-17 22:20:11 +00:00
|
|
|
|
2011-09-05 15:08:29 +00:00
|
|
|
|
2007-01-15 14:34:46 +00:00
|
|
|
Name: python-xmldiff
|
2011-09-05 15:08:13 +00:00
|
|
|
%define _name xmldiff
|
|
|
|
|
Version: 0.6.10
|
|
|
|
|
Release: 1
|
2011-12-06 17:58:20 +00:00
|
|
|
License: GPL-2.0+
|
2011-09-05 15:08:13 +00:00
|
|
|
Summary: Tree to tree correction between xml documents
|
|
|
|
|
Url: http://www.logilab.org/projects/xmldiff/
|
2007-01-15 14:34:46 +00:00
|
|
|
Group: Productivity/Publishing/XML
|
2011-09-05 15:08:13 +00:00
|
|
|
Source: http://ftp.logilab.org/pub/xmldiff/%{_name}-%{version}.tar.gz
|
|
|
|
|
Patch0: xmldiff-0.6.7-clean-tmp.patch
|
2007-01-15 14:34:46 +00:00
|
|
|
Patch1: xmldiff-0.6.7-xsldata.patch
|
2011-09-05 15:08:13 +00:00
|
|
|
BuildRequires: python-devel
|
2007-01-15 14:34:46 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Requires: file opensp libxslt python-xml
|
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
XMLdiff shows the differences between two similar XML files in the same
|
2009-06-17 22:20:11 +00:00
|
|
|
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.
|
2007-01-15 14:34:46 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-09-05 15:08:13 +00:00
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
%patch0
|
2007-01-15 14:34:46 +00:00
|
|
|
%patch1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
2011-09-05 15:08:13 +00:00
|
|
|
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm %{name}.record-rpm
|
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/%{_name}/test/data/
|
2007-01-15 14:34:46 +00:00
|
|
|
|
|
|
|
|
%clean
|
2011-09-05 15:08:13 +00:00
|
|
|
%{?buildroot:%__rm -rf %{buildroot}}
|
2007-01-15 14:34:46 +00:00
|
|
|
|
2011-09-05 15:08:13 +00:00
|
|
|
%files -f %{name}.record-rpm
|
2007-01-15 14:34:46 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc ChangeLog TODO README* doc/
|
|
|
|
|
|
2009-06-17 22:20:11 +00:00
|
|
|
%changelog
|