File python-pyramid_mako-doc.spec of Package python-pyramid_mako

# spec file for package python-pyramid_mako-doc
# Copyright (c) 2020 SUSE LLC
# 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.

# Please submit bugfixes or comments via

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyramid_mako-doc
Version:        1.1.0
Release:        0
Summary:        Documentation for python3-pyramid_mako
License:        SUSE-Repoze
Group:          Documentation/HTML
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  python3-Sphinx
BuildRequires:  python3-pylons-sphinx-themes
Provides:       %{python_module pyramid_mako-doc = %{version}}
BuildArch:      noarch

This package contains documentation files for python3-pyramid_mako.

%setup -q -n pyramid_mako-%{version}

python3 build_sphinx && rm build/sphinx/html/.buildinfo

mkdir -p %{buildroot}%{_docdir}/python-pyramid_tm
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-pyramid_tm
%fdupes %{buildroot}%{_docdir}/python-pyramid_tm

%license LICENSE.txt
%dir %{_docdir}/python-pyramid_tm/