File python-pyramid_jinja2.spec of Package python-pyramid_jinja2

# spec file for package python-pyramid_jinja2
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyramid_jinja2
Version:        2.7
Release:        0
Summary:        Jinja2 template bindings for the Pyramid web framework
#License:        BSD-4-Clause AND ZPL-2.1 AND MIT
License:        SUSE-Repoze
Group:          Development/Languages/Python
Source2:        pyramid.inv
Source3:        pyramid_zcml.inv
Source4:        jinja2.inv
Patch0:         pyramid_jinja2-local-intersphinx-files.patch
BuildRequires:  %{python_module Jinja2} >= 2.5.0
BuildRequires:  %{python_module MarkupSafe}
BuildRequires:  %{python_module Sphinx}
BuildRequires:  %{python_module WebTest}
BuildRequires:  %{python_module coverage}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module hupper}
BuildRequires:  %{python_module nose} >= 1.2.0
BuildRequires:  %{python_module plaster-pastedeploy}
BuildRequires:  %{python_module plaster}
BuildRequires:  %{python_module pylons-sphinx-themes}
BuildRequires:  %{python_module pyramid} >= 1.3.0
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module zope.deprecation}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  unzip
Requires:       python-Jinja2 >= 2.5.0
Requires:       python-pyramid >= 1.3.0
BuildArch:      noarch
%if %{have_python2}
BuildRequires:  python2-typing
%if %{have_python3} && %{python3_version_nodots} < 35
BuildRequires:  python3-typing

These are bindings for the Jinja2 templating system for the Pyramid web

See for
documentation or the -doc package.

%package doc
Summary:        Jinja2 template bindings for the Pyramid web framework
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description doc
This package contains documentation files for %{name}.

%setup -q -n pyramid_jinja2-%{version}
%patch0 -p1
# Remove any precompiled source files
find . -iname "*.pyc" -delete

%python_exec build_sphinx && rm build/sphinx/html/.buildinfo

%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%python_exec nosetests

%files %{python_files}
%license LICENSE.txt

%files %{python_files doc}
%license LICENSE.txt
%doc build/sphinx/html