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


Name:           pyxml
BuildRequires:  python-devel python-xml
Summary:        XML Tools in Python
Version:        0.8.4
Release:        199.<RELEASE3>
# 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
%define pyver %(python -c 'import sys; print sys.version[:3]')
Requires:       python-xml python >= %pyver, python < %{pyver}.99
Provides:       PyXML
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         %{_prefix}
Url:            http://www.python.org/sigs/xml-sig/

%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.

The package currently contains:

* XML parsers: Pyexpat, xmlproc, and sgmlop

* SAX interface

* minidom, a DOM implementation

* 4DOM and 4XPath from Fourthought

* Schema implementations: TREX

* Various utility modules and functions

* Documentation and example programs

The code is being developed bazaar-style by contributors from the
Python XML Special Interest Group, so please send comments or questions
to <xml-sig@python.org>. Bug reports may be filed on SourceForge:


_6473&atid_


For more information about Python and XML, see:
http://www.python.org/topics/xml/



Authors:
--------
    Fredrik Lundh
    Jack Jansen
    Lars Marius Garshol <larsga@ifi.uio.no>
    Paul Prescod
    Uche Ogbuji
    Mike Olson
    James Tauber
    Andrew M. Kuchling <akuchlin@cnri.reston.va.us>
    Stefane Fermigier <fermigie@math.jussieu.fr>
    Fred L. Drake <fdrake@cnri.reston.va.us>
    Geir Ove Grønmo
    Martin von Löwis

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

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

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES \
  --with-xslt

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc ANNOUNCE CREDITS LICENCE README README.dom
%doc README.pyexpat README.sgmlop TODO
%doc demo
%doc doc
%doc test

%changelog
openSUSE Build Service is sponsored by