Accepting request 1089048 from devel:languages:python

- Switch documentation to be within the main package on SLE15

OBS-URL: https://build.opensuse.org/request/show/1089048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-marshmallow?expand=0&rev=22
This commit is contained in:
Dominique Leuenberger 2023-05-26 18:15:23 +00:00 committed by Git OBS Bridge
commit 1c827531a6
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 23 23:12:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch documentation to be within the main package on SLE15
-------------------------------------------------------------------
Fri Apr 21 12:28:05 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -57,18 +57,20 @@ BuildRequires: %{python_module simplejson}
# /SECTION
%python_subpackages
%description
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
datatypes, such as objects, to and from native Python datatypes.
%if 0%{?suse_version} > 1500
%package -n %{name}-doc
Summary: Documentation files for %{name}
Group: Documentation/Other
Provides: %{name}-docs = %{version}
Obsoletes: %{name}-docs < %{version}
%description
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
datatypes, such as objects, to and from native Python datatypes.
%description -n %{name}-doc
HTML Documentation and examples for %{name}.
%endif
%prep
%setup -q -n marshmallow-%{version}
@ -91,7 +93,9 @@ rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
%license LICENSE NOTICE
%{python_sitelib}/*
%if 0%{?suse_version} > 1500
%files -n %{name}-doc
%endif
%doc examples docs/_build/html/
%changelog