File python-xmldiff.spec of Package python-xmldiff

#
# spec file for package python-xmldiff (Version 0.6.8)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           python-xmldiff
BuildRequires:  python-devel
Summary:        Python Tool for Detecting Differences Between XML Files
License:        GPL v2 or later
Version:        0.6.8
Release:        181
Group:          Productivity/Publishing/XML
Source:         ftp://ftp.logilab.org/pub/xmldiff/xmldiff-%{version}.tar.gz
Patch:          xmldiff-0.6.7-clean-tmp.patch
Patch1:         xmldiff-0.6.7-xsldata.patch
Patch2:         xmldiff-0.6.8-python2.5.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.logilab.org/projects/xmldiff/
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.



Authors:
--------
    Sylvain Thenault <sylvain.thenault@logilab.fr>

%prep
%setup -q -n xmldiff-%{version}
%patch
%patch1
%patch2

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ChangeLog TODO README* doc/
%{py_sitedir}/xmldiff
%{_datadir}/xml/xmldiff
%{_bindir}/*
%{py_sitedir}/*egg-info

%changelog
* Mon Jan 15 2007 ke@suse.de
- Remove /usr/share/xml from the files list.
* Tue Sep 26 2006 cthiel@suse.de
- fix build with python 2.5
- update to version 0.6.8
  * various fixes
- removed xmldiff-0.6.7-x64safe.patch
* Fri Jun 02 2006 cthiel@suse.de
- specfile cleanup, added Requires
- imported 3 patches from Fedora
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 07 2005 ke@suse.de
- Update to version 0.6.7.
- Drop obsolete tmp file patch.
* Thu Oct 23 2003 ke@suse.de
- New package: version 0.6.4.
openSUSE Build Service is sponsored by