File python-pyramid_tm-doc.spec of Package python-pyramid_tm
#
# spec file for package python-pyramid_tm-doc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyramid_tm-doc
Version: 2.5
Release: 0
Summary: Documentation for python-pyramid_tm
License: BSD-4-Clause AND ZPL-2.1 AND MIT
Group: Documentation/HTML
URL: http://docs.pylonsproject.org
Source: https://files.pythonhosted.org/packages/source/p/pyramid_tm/pyramid_tm-%{version}.tar.gz
Source1: fetch-intersphinx-files.sh
Source2: pyramid.inv
# Documentation requirements:
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pylons-sphinx-themes}
BuildRequires: %{python_module pyramid_tm} = %{version}
BuildRequires: python-rpm-macros
Recommends: %{python_module pyramid_tm} = %{version}
BuildArch: noarch
%python_subpackages
%description
This package contains documentation files for python-pyramid_tm.
%prep
%setup -q -n pyramid_tm-%{version}
# patch in local intersphinx file
sed -i "s|'\(.*\)', None|'\1', 'pyramid.inv'|g" docs/conf.py
cp %{SOURCE2} docs/
%build
# Not needed
%install
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%files %python_files
%defattr(-,root,root,-)
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt README.rst
%doc build/sphinx/html
%changelog