File pyxml.spec of Package pyxml

#
# spec file for package pyxml (Version 0.8.4)
#
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           pyxml
Summary:        XML Tools in Python
Version:        0.8.4
Release:        200
Url:            http://www.python.org/sigs/xml-sig/
# Source0:      http://switch.dl.sourceforge.net/sourceforge/pyxml/PyXML-%{version}.tar.gz
Source0:        http://ftp1.sourceforge.net/sourceforge/pyxml/PyXML-%{version}.tar.gz
Patch0:         pyxml-distutils.diff
Patch1:         pyxml-keyword_as.diff
Patch2:         bug-550664_expat-2.0.1-fix_bug_1990430.patch
Patch3:         xmlparse-2009-12-09.diff
License:        X11, BeOpen, Python License, Public Domain, Zope Public License
Group:          Development/Libraries/Python
BuildRequires:  %{python_module base >= 3.8}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
#BuildRequires:  python-xml
#Requires:       python-xml python >= %pyver, python < %{pyver}.99
Provides:       PyXML
%python_subpackages

%description
The Python/XML distribution contains the basic tools required for
processing XML data using the Python programming language. The
distribution includes parsers and standard interfaces such as SAX and
DOM, along with various other useful modules.

%prep
%setup -q -n PyXML-%{version}
##%patch -P 0
%patch -P 1
cd extensions/expat
%patch -P 2
cd lib
%patch -P 3
# patch -p 0 < %{P:2}
cd ../../..

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%defattr(-,root,root)
%doc ANNOUNCE CREDITS LICENCE README README.dom
%doc README.pyexpat README.sgmlop TODO
%doc demo
%doc doc
%doc test
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by