Accepting request 33723 from devel:languages:python

Copy from devel:languages:python/python-lxml based on submit request 33723 from user thomas-schraitle

OBS-URL: https://build.opensuse.org/request/show/33723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=16
This commit is contained in:
OBS User autobuild 2010-03-02 00:44:48 +00:00 committed by Git OBS Bridge
parent 8bac1528a7
commit b960ea3107
7 changed files with 52 additions and 18 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13c14899fffc203cfd1f4d975a5c0e3f7f5b4c901233d0889baaf1cbabd7ff5c
size 2076451

3
lxml-2.2.5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:103980c9053b829237da79b428bc90d4742e3df0b814fd91feb4c68f03503f48
size 2058195

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0e2697efec78eb40b3685e8f144a4bb195984cfa5875104d553eed65eb84fb4
size 1900634

3
lxmldoc-2.2.5.pdf Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bbfdf244e84a640962660d47e818f6f2f169f696f0c2691fb79e6790dfc7b49
size 2037974

View File

@ -1,3 +1,13 @@
#
addFilter("files-duplicate .*/toc-lxml.html.usedoctest-module.html")
addFilter("files-duplicate .*/html/api/frames.html")
addFilter("files-duplicate .*/html/api/frames.html")
# Fix false positives:
addFilter("files-duplicate .*/lxml/html/.*")
addFilter("files-duplicate .*/lxml/sax.py?")
addFilter("files-duplicate .*/lxml/usedoctest.py?")
addFilter("files-duplicate .*/lxml/pyclasslookup.py?")
addFilter("files-duplicate .*/lxml/ElementInclude.py?")
addFilter("files-duplicate .*/lxml/__init__.py?")
addFilter("files-duplicate .*/lxml/_elementpath.py?")
addFilter("files-duplicate .*/lxml/doctestcompare.py?")

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Mon Mar 1 21:56:05 UTC 2010 - toms@suse.de
- Updated to 2.2.5 (2010-02-28):
Features added
* Support for running XSLT extension elements on the input root
node (e.g. in a template matching on "/").
Bugs fixed
* Crash in XPath evaluation when reading smart strings from a
document other than the original context document.
* Support recent versions of html5lib by not requiring its
XHTMLParser in htmlparser.py anymore.
* Manually instantiating the custom element classes in
lxml.objectify could crash.
* Invalid XML text characters were not rejected by the API when
they appeared in unicode strings directly after non-ASCII characters.
* lxml.html.open_http_urllib() did not work in Python 3.
* The functions strip_tags() and strip_elements() in lxml.etree
did not remove all occurrences of a tag in all cases.
* Crash in XSLT extension elements when the XSLT context
node is not an element.
- Fixed .changes file to match order from factory
-------------------------------------------------------------------
Fri Nov 13 21:50:52 UTC 2009 - toms@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package python-lxml (Version 2.2.4)
# spec file for package python-lxml (Version 2.2.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -21,7 +21,7 @@
Name: python-lxml
Url: http://codespeak.net/lxml
Summary: A Pythonic Binding for the libxml2 and libxslt Libraries
Version: 2.2.4
Version: 2.2.5
Release: 1
License: BSD3c
Group: Development/Libraries/Python
@ -33,14 +33,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: pyxml
# Requires: libxml2 libxslt
BuildRequires: libxslt-devel pyrex python-devel pyxml
BuildRequires: fdupes
# Use test as told in http://lists.opensuse.org/opensuse-packaging/2009-08/msg00110.html
#%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
#BuildArch: noarch
#%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
#%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
#%endif
#
%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
@ -66,8 +68,7 @@ License: BSD3c
Documentation for %{modname} (HTML and PDF).
# ---------------------------------
%prep
%setup -q -n %{modname}-%{version}
@ -81,16 +82,13 @@ export CFLAGS="$RPM_OPT_FLAGS"
--optimize 1 \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \
--record-rpm=INSTALLED_FILES.txt \
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
--install-lib=%{python_sitelib}
%endif
--record-rpm=INSTALLED_FILES.txt
[ -e doc/rest2html.py ] && %{__mkdir} doc/examples && %{__mv} doc/rest2html.py doc/examples/
# Avoid warnings from rpmlint:
for i in doc/html/pubkey.asc ; do
[ -e "$i" ] && %{__rm} "$i"
done
%fdupes $RPM_BUILD_ROOT%{py_sitedir} $RPM_BUILD_ROOT%{python_sitelib}
%clean
%{__rm} -rf %{buildroot}