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