forked from pool/python-lxml
Accepting request 574238 from home:mimi_vx:branches:devel:languages:python
- update to 4.1.1
- ElementPath supports text predicates for current node, like "[.='text']".
- ElementPath allows spaces in predicates.
- Custom Element classes and XPath functions can now be registered with
a decorator rather than explicit dict assignments.
- LP#1722776: Requesting non-Element objects like comments from
a document with PythonElementClassLookup could fail with a TypeError.
OBS-URL: https://build.opensuse.org/request/show/574238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=103
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-lxml
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,26 +18,23 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-lxml
|
||||
Version: 4.0.0
|
||||
Version: 4.1.1
|
||||
Release: 0
|
||||
Summary: Pythonic XML processing library
|
||||
License: BSD-3-Clause and GPL-2.0+
|
||||
License: BSD-3-Clause AND GPL-2.0+
|
||||
Group: Development/Languages/Python
|
||||
Url: https://lxml.de/
|
||||
Source: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz
|
||||
Source1: http://lxml.de/lxmldoc-%{version}.pdf
|
||||
BuildRequires: %{python_module Cython >= 0.22.1}
|
||||
BuildRequires: %{python_module Cython >= 0.26.1}
|
||||
BuildRequires: %{python_module cssselect >= 0.9.1}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libxml2-devel >= 2.7.0
|
||||
BuildRequires: libxslt-devel >= 1.1.23
|
||||
BuildRequires: python-rpm-macros
|
||||
# Needed for test cases:
|
||||
BuildRequires: %{python_module cssselect >= 0.9.1}
|
||||
Requires: python-cssselect >= 0.9.1
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -93,10 +90,10 @@ export CFLAGS="%{optflags}"
|
||||
export LANG=en_US.UTF-8
|
||||
export PYTHONUNBUFFERED=x
|
||||
%if 0%{?have_python2}
|
||||
make test
|
||||
make %{?_smp_mflags} test
|
||||
%endif
|
||||
%if 0%{?have_python3}
|
||||
make test3
|
||||
make %{?_smp_mflags} test3
|
||||
%endif
|
||||
|
||||
%install
|
||||
@@ -104,7 +101,6 @@ make test3
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.txt CREDITS.txt LICENSES.txt README.rst
|
||||
%{python_sitearch}/lxml/
|
||||
%{python_sitearch}/lxml-%{version}-py%{python_version}.egg-info
|
||||
@@ -112,12 +108,10 @@ make test3
|
||||
%exclude %{python_sitearch}/lxml/includes/*.h
|
||||
|
||||
%files %{python_files devel}
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/lxml/*.h
|
||||
%{python_sitearch}/lxml/includes/*.h
|
||||
|
||||
%files %{python_files doc}
|
||||
%defattr(-,root,root)
|
||||
%doc doc/html lxmldoc-%{version}.pdf
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user