Accepting request 29143 from devel:languages:python

Copy from devel:languages:python/python-lxml based on submit request 29143 from user coolo

OBS-URL: https://build.opensuse.org/request/show/29143
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=15
This commit is contained in:
OBS User autobuild 2010-01-12 11:52:54 +00:00 committed by Git OBS Bridge
parent 932dcd7862
commit 8bac1528a7
6 changed files with 93 additions and 36 deletions

View File

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

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

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

View File

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

3
lxmldoc-2.2.4.pdf Normal file
View File

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

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Fri Nov 13 21:50:52 UTC 2009 - toms@suse.de
- Updated to 2.2.4 (2009-11-11):
Features added
* None
Bugs fixed
* Static build of libxml2/libxslt was broken.
-------------------------------------------------------------------
Fri Oct 30 17:25:06 UTC 2009 - toms@suse.de
- Updated to 2.2.3 (2009-10-30):
Features added
None
Bugs fixed
* The resolve_entities option did not work in the incremental
feed parser.
* Looking up and deleting attributes without a namespace could
hit a namespaced attribute of the same name instead.
* Late errors during calls to SubElement() (e.g. attribute related
ones) could leave a partially initialised element in the tree.
* Modifying trees that contain parsed entity references could result
in an infinite loop.
* ObjectifiedElement.__setattr__ created an empty-string child
element when the attribute value was rejected as a non-unicode/non-ascii string
* Syntax errors in lxml.cssselect could result in misleading error messages.
* Invalid syntax in CSS expressions could lead to an infinite loop
in the parser of lxml.cssselect.
* CSS special character escapes were not properly handled in lxml.cssselect.
* CSS Unicode escapes were not properly decoded in lxml.cssselect.
* Select options in HTML forms that had no explicit value attribute
were not handled correctly. The HTML standard dictates that their value
is defined by their text content. This is now supported by lxml.html.
* XPath raised a TypeError when finding CDATA sections. This is now fully supported.
* Calling help(lxml.objectify) didn't work at the prompt.
* The ElementMaker in lxml.objectify no longer defines the default namespaces
when annotation is disabled.
* Feed parser failed to honour the 'recover' option on parse errors.
* Diverting the error logging to Python's logging system was broken.
-------------------------------------------------------------------
Wed Sep 23 17:37:53 CEST 2009 - toms@suse.de
- Improved spec file with help from Alexandre D. Rogoski. Thanks!
(debug_package macro)
-------------------------------------------------------------------
Mon Jul 20 14:04:56 CEST 2009 - toms@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-lxml (Version 2.2.2)
# spec file for package python-lxml (Version 2.2.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 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
@ -21,9 +21,9 @@
Name: python-lxml
Url: http://codespeak.net/lxml
Summary: A Pythonic Binding for the libxml2 and libxslt Libraries
Version: 2.2.2
Version: 2.2.4
Release: 1
License: BSD 3-clause (or similar)
License: BSD3c
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
Source1: %{modname}doc-%{version}.pdf
@ -33,6 +33,13 @@ 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
@ -49,23 +56,18 @@ Authors:
Martijn Faassen - creator of lxml and initial main developer
and others
%package doc
Group: Development/Libraries/Python
Summary: Documentation for python-lxml Package
License: BSD 3-clause (or similar)
Summary: Documentation for %{name}
License: BSD3c
%description doc
Documentation for python-lxml package
Documentation for %{modname} (HTML and PDF).
Authors:
--------
Stefan Behnel - main developer and maintainer
Martijn Faassen - creator of lxml and initial main developer
and others
% ---------------------------------
%prep
%setup -q -n %{modname}-%{version}
@ -76,15 +78,19 @@ export CFLAGS="$RPM_OPT_FLAGS"
%install
%{__python} setup.py install \
--optimize 1 \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \
--record-rpm=INSTALLED_FILES.txt
# Avoid warnings from rpmlint:
--record-rpm=INSTALLED_FILES.txt \
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
--install-lib=%{python_sitelib}
%endif
[ -e doc/rest2html.py ] && %{__mkdir} doc/examples && %{__mv} doc/rest2html.py doc/examples/
# Remove any duplicate files:
# 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}