2007-01-16 00:34:06 +01:00
|
|
|
#
|
2009-07-21 12:34:26 +02:00
|
|
|
# spec file for package python-lxml (Version 2.2.2)
|
2007-01-16 00:34:06 +01:00
|
|
|
#
|
2009-04-24 22:02:40 +02:00
|
|
|
# Copyright (c) 2009 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.
|
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-06-06 00:28:19 +02:00
|
|
|
%define modname lxml
|
2008-04-03 02:15:51 +02:00
|
|
|
|
2007-01-16 00:34:06 +01:00
|
|
|
Name: python-lxml
|
2007-10-30 12:29:31 +01:00
|
|
|
Url: http://codespeak.net/lxml
|
2007-08-30 23:33:16 +02:00
|
|
|
Summary: A Pythonic Binding for the libxml2 and libxslt Libraries
|
2009-07-21 12:34:26 +02:00
|
|
|
Version: 2.2.2
|
2007-01-16 00:34:06 +01:00
|
|
|
Release: 1
|
2009-07-21 12:34:26 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2007-01-16 00:34:06 +01:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Source: %{modname}-%{version}.tar.bz2
|
2009-06-06 00:28:19 +02:00
|
|
|
Source1: %{modname}doc-%{version}.pdf
|
2009-04-24 22:02:40 +02:00
|
|
|
Source2: %{name}-rpmlintrc
|
2007-01-16 00:34:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{py_requires}
|
2009-04-24 22:02:40 +02:00
|
|
|
Requires: pyxml
|
2009-06-06 00:28:19 +02:00
|
|
|
# Requires: libxml2 libxslt
|
2008-09-26 16:55:39 +02:00
|
|
|
BuildRequires: libxslt-devel pyrex python-devel pyxml
|
2007-01-16 00:34:06 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2008-04-03 02:15:51 +02:00
|
|
|
%package doc
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Summary: Documentation for python-lxml Package
|
2009-07-21 12:34:26 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2008-04-03 02:15:51 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for python-lxml package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Stefan Behnel - main developer and maintainer
|
|
|
|
Martijn Faassen - creator of lxml and initial main developer
|
|
|
|
and others
|
|
|
|
|
|
|
|
% ---------------------------------
|
2007-01-16 00:34:06 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-06-06 00:28:19 +02:00
|
|
|
%{__python} setup.py build
|
|
|
|
%{__cp} %{S:1} .
|
2007-01-16 00:34:06 +01:00
|
|
|
|
|
|
|
%install
|
2009-06-06 00:28:19 +02:00
|
|
|
%{__python} setup.py install \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--root=$RPM_BUILD_ROOT \
|
|
|
|
--record-rpm=INSTALLED_FILES.txt
|
|
|
|
# Avoid warnings from rpmlint:
|
|
|
|
[ -e doc/rest2html.py ] && %{__mkdir} doc/examples && %{__mv} doc/rest2html.py doc/examples/
|
|
|
|
# Remove any duplicate files:
|
|
|
|
for i in doc/html/pubkey.asc ; do
|
|
|
|
[ -e "$i" ] && %{__rm} "$i"
|
|
|
|
done
|
2007-01-16 00:34:06 +01:00
|
|
|
|
|
|
|
%clean
|
2009-06-06 00:28:19 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-01-16 00:34:06 +01:00
|
|
|
|
2009-06-06 00:28:19 +02:00
|
|
|
%files -f INSTALLED_FILES.txt
|
2007-01-16 00:34:06 +01:00
|
|
|
%defattr(-,root,root)
|
2008-09-26 16:55:39 +02:00
|
|
|
%doc CHANGES.txt CREDITS.txt LICENSES.txt README.txt TODO.txt
|
2008-04-03 02:15:51 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2009-06-06 00:28:19 +02:00
|
|
|
%doc doc/html doc/examples doc/*.* benchmark %{modname}doc-%{version}.pdf
|
2008-04-03 02:15:51 +02:00
|
|
|
|
2007-07-30 20:58:23 +02:00
|
|
|
%changelog
|