From 5efd90fd4d04fc8e2f631ad7c337c2627bc5f3383763647fc704f3083bfbc394 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 May 2023 14:42:26 +0000 Subject: [PATCH] Accepting request 1084383 from home:dirkmueller:acdc:as_python3_module - Switch documentation to be within the main package. OBS-URL: https://build.opensuse.org/request/show/1084383 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=179 --- python-lxml.changes | 5 +++++ python-lxml.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-lxml.changes b/python-lxml.changes index 55ac261..6f684c6 100644 --- a/python-lxml.changes +++ b/python-lxml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 23:11:01 UTC 2023 - Matej Cepl + +- Switch documentation to be within the main package. + ------------------------------------------------------------------- Sun Apr 23 01:04:31 UTC 2023 - Matej Cepl diff --git a/python-lxml.spec b/python-lxml.spec index 1494964..e861c88 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -55,6 +55,7 @@ provides convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT and C14N. +%if 0%{?suse_version} > 1500 %package -n %{name}-doc Summary: Documentation for python-lxml, an XML processing library Group: Documentation/Other @@ -67,6 +68,7 @@ API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT and C14N. This package contains documentation for lxml (HTML and PDF). +%endif %package devel Summary: Development files for python-lxml @@ -125,14 +127,16 @@ export PYTHON3="$python" %exclude %{python_sitearch}/lxml/*.h %exclude %{python_sitearch}/lxml/includes/*.h +%if 0%{?suse_version} > 1500 +%files -n %{name}-doc +%license LICENSES.txt +%endif +%doc doc/html +%doc lxmldoc-*.pdf + %files %{python_files devel} %license LICENSES.txt %{python_sitearch}/lxml/*.h %{python_sitearch}/lxml/includes/*.h -%files -n %{name}-doc -%license LICENSES.txt -%doc doc/html -%doc lxmldoc-*.pdf - %changelog