Accepting request 1084406 from devel:languages:python

Forwarded request #1084383 from dirkmueller

- Switch documentation to be within the main package.

OBS-URL: https://build.opensuse.org/request/show/1084406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=100
This commit is contained in:
Dominique Leuenberger 2023-05-04 15:09:04 +00:00 committed by Git OBS Bridge
commit 5ee21c2535
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 23 23:11:01 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch documentation to be within the main package.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Apr 23 01:04:31 UTC 2023 - Matej Cepl <mcepl@suse.com> Sun Apr 23 01:04:31 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -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, API. It extends the ElementTree API significantly to offer support for XPath,
RelaxNG, XML Schema, XSLT and C14N. RelaxNG, XML Schema, XSLT and C14N.
%if 0%{?suse_version} > 1500
%package -n %{name}-doc %package -n %{name}-doc
Summary: Documentation for python-lxml, an XML processing library Summary: Documentation for python-lxml, an XML processing library
Group: Documentation/Other 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. RelaxNG, XML Schema, XSLT and C14N.
This package contains documentation for lxml (HTML and PDF). This package contains documentation for lxml (HTML and PDF).
%endif
%package devel %package devel
Summary: Development files for python-lxml Summary: Development files for python-lxml
@ -125,14 +127,16 @@ export PYTHON3="$python"
%exclude %{python_sitearch}/lxml/*.h %exclude %{python_sitearch}/lxml/*.h
%exclude %{python_sitearch}/lxml/includes/*.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} %files %{python_files devel}
%license LICENSES.txt %license LICENSES.txt
%{python_sitearch}/lxml/*.h %{python_sitearch}/lxml/*.h
%{python_sitearch}/lxml/includes/*.h %{python_sitearch}/lxml/includes/*.h
%files -n %{name}-doc
%license LICENSES.txt
%doc doc/html
%doc lxmldoc-*.pdf
%changelog %changelog