forked from pool/python-lxml
81 lines
2.7 KiB
RPMSpec
81 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-lxml (Version 1.1.2)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-lxml
|
|
%define modname lxml
|
|
URL: http://codespeak.net/lxml
|
|
Summary: A Pythonic binding for the libxml2 and libxslt libraries
|
|
Version: 1.1.2
|
|
Release: 1
|
|
License: BSD License and BSD-like
|
|
Group: Development/Libraries/Python
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{py_requires}
|
|
Requires: pyxml
|
|
BuildRequires: libxml2-devel libxslt-devel pyrex python-devel pyxml
|
|
|
|
%description
|
|
lxml is a Pythonic binding for the libxml2 and libxslt libraries. It
|
|
follows the ElementTree API as much as possible, building it on top of
|
|
the native libxml2 tree. It also extends this API to expose libxml2 and
|
|
libxslt specific functionality, such as XPath, Relax NG, XML Schema,
|
|
XSLT, and c14n.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Stefan Behnel - main developer and maintainer
|
|
Martijn Faassen - creator of lxml and initial main developer
|
|
and others
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
python setup.py build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%doc doc CHANGES.txt CREDITS.txt LICENSES.txt README.txt TODO.txt
|
|
%{py_sitedir}/lxml
|
|
|
|
%changelog -n python-lxml
|
|
* Fri Jan 19 2007 - toms@suse.de
|
|
Updated to 1.1.2 with the following changes:
|
|
Features added:
|
|
* Data elements in objectify support repr(), which is now used by dump()
|
|
* Source distribution now ships with a patched Pyrex
|
|
* New C-API function makeElement() to create new elements with text, tail, attributes and namespaces
|
|
* Reuse original parser flags for XInclude
|
|
* Simplified support for handling XSLT processing instructions
|
|
Bugs fixed:
|
|
* Parser resources were not freed before the next parser run
|
|
* Open files and XML strings returned by Python resolvers were not closed/freed
|
|
* Crash in the IDDict returned by XMLDTDID
|
|
* Copying Comments and ProcessingInstructions failed
|
|
* Memory leak for external URLs in _XSLTProcessingInstruction.parseXSL()
|
|
* Memory leak when garbage collecting tailed root elements
|
|
* HTML script/style content was not propagated to .text
|
|
* Show text xincluded between text nodes correctly in .text and .tail
|
|
* 'integer * objectify.StringElement' operation was not supported
|
|
* Fri Dec 01 2006 - toms@suse.de
|
|
- New package 1.1.2 moved from openSUSE build server
|