2007-01-16 00:34:06 +01:00
|
|
|
#
|
2011-03-08 10:39:28 +01:00
|
|
|
# spec file for package python-lxml
|
2007-01-16 00:34:06 +01:00
|
|
|
#
|
2014-01-28 10:22:08 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:34:06 +01:00
|
|
|
#
|
2008-09-26 16:55:39 +02:00
|
|
|
# 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.
|
2011-12-12 10:03:16 +01:00
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-12 10:03:16 +01:00
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
Name: python-lxml
|
2014-01-28 10:22:08 +01:00
|
|
|
Version: 3.3.0
|
2012-03-09 22:29:46 +01:00
|
|
|
Release: 0
|
2011-09-02 13:25:24 +02:00
|
|
|
Summary: Powerful and Pythonic XML processing library
|
2011-09-03 21:00:29 +02:00
|
|
|
License: BSD-3-Clause and GPL-2.0+
|
2011-09-02 13:25:24 +02:00
|
|
|
Group: Development/Languages/Python
|
2012-03-09 22:29:46 +01:00
|
|
|
Url: http://lxml.de/
|
2011-09-02 13:25:24 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
|
2012-03-09 22:29:46 +01:00
|
|
|
Source1: http://lxml.de/lxmldoc-%{version}.pdf
|
2012-11-23 17:24:32 +01:00
|
|
|
BuildRequires: libxml2-devel
|
2011-09-02 13:25:24 +02:00
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: python-Cython
|
2012-03-09 22:29:46 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2011-09-02 13:25:24 +02:00
|
|
|
%endif
|
2010-03-02 01:44:48 +01:00
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
%description
|
2011-09-02 13:25:24 +02:00
|
|
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
|
|
|
provides safe and convenient access to these libraries using the ElementTree
|
|
|
|
API. It extends the ElementTree API significantly to offer support for XPath,
|
|
|
|
RelaxNG, XML Schema, XSLT, C14N and much more.
|
2007-01-16 00:34:06 +01:00
|
|
|
|
2008-04-03 02:15:51 +02:00
|
|
|
%package doc
|
2011-09-02 13:25:24 +02:00
|
|
|
Summary: Powerful and Pythonic XML processing library - Documentation
|
2010-09-14 13:17:03 +02:00
|
|
|
Group: Development/Libraries/Python
|
2013-01-02 18:55:51 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
2012-12-19 16:46:10 +01:00
|
|
|
BuildArch: noarch
|
2013-01-02 18:55:51 +01:00
|
|
|
%endif
|
2008-04-03 02:15:51 +02:00
|
|
|
|
|
|
|
%description doc
|
2011-09-02 13:25:24 +02:00
|
|
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
|
|
|
provides safe and convenient access to these libraries using the ElementTree
|
|
|
|
API. It extends the ElementTree API significantly to offer support for XPath,
|
|
|
|
RelaxNG, XML Schema, XSLT, C14N and much more.
|
|
|
|
|
|
|
|
This package contains documentation for lxml (HTML and PDF).
|
2008-04-03 02:15:51 +02:00
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
%prep
|
2011-09-02 13:25:24 +02:00
|
|
|
%setup -q -n lxml-%{version}
|
2011-09-02 14:10:18 +02:00
|
|
|
cp %{SOURCE1} .
|
2007-01-16 00:34:06 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-02 13:25:24 +02:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2007-01-16 00:34:06 +01:00
|
|
|
|
|
|
|
%install
|
2011-09-02 13:25:24 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2008-04-03 02:15:51 +02:00
|
|
|
|
2012-03-09 22:29:46 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES.txt CREDITS.txt LICENSES.txt README.rst
|
2012-05-25 09:07:29 +02:00
|
|
|
%{python_sitearch}/lxml/
|
|
|
|
%{python_sitearch}/lxml-%{version}-py%{py_ver}.egg-info
|
2013-04-02 11:02:25 +02:00
|
|
|
%exclude %{python_sitearch}/lxml/*.h
|
|
|
|
%exclude %{python_sitearch}/lxml/includes/*.h
|
2012-03-09 22:29:46 +01:00
|
|
|
|
2008-04-03 02:15:51 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2011-09-02 14:10:18 +02:00
|
|
|
%doc doc/html lxmldoc-%{version}.pdf
|
2011-09-02 13:25:24 +02:00
|
|
|
|
2007-07-30 20:58:23 +02:00
|
|
|
%changelog
|