# # spec file for package python-xmldiff # # Copyright (c) 2011 SUSE LINUX Products 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-xmldiff %define _name xmldiff Version: 0.6.10 Release: 1 License: GPLv2+ Summary: Tree to tree correction between xml documents Url: http://www.logilab.org/projects/xmldiff/ Group: Productivity/Publishing/XML Source: http://ftp.logilab.org/pub/xmldiff/%{_name}-%{version}.tar.gz Patch0: xmldiff-0.6.7-clean-tmp.patch Patch1: xmldiff-0.6.7-xsldata.patch BuildRequires: python-devel 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 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. %prep %setup -q -n %{_name}-%{version} %patch0 %patch1 %build python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm %{name}.record-rpm rm -rf %{buildroot}%{python_sitearch}/%{_name}/test/data/ %clean %{?buildroot:%__rm -rf %{buildroot}} %files -f %{name}.record-rpm %defattr(-, root, root) %doc ChangeLog TODO README* doc/ %changelog