A new user interface for you! Read more...

File python-pyramid_mako.spec of Package python-pyramid_mako

#
# spec file for package python-pyramid_mako
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, 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 http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyramid_mako
Version:        1.0.2
Release:        0
Summary:        Mako template bindings for the Pyramid web framework
License:        SUSE-Repoze
Group:          Development/Languages/Python
URL:            https://github.com/Pylons/pyramid_mako
Source:         https://files.pythonhosted.org/packages/source/p/pyramid_mako/pyramid_mako-%{version}.tar.gz
BuildRequires:  %{python_module Mako} >= 0.8
# Testing requirements
BuildRequires:  %{python_module WebTest} >= 1.3.1
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module hupper}
BuildRequires:  %{python_module nose}
# Not yet packaged
BuildRequires:  %{python_module plaster-pastedeploy}
BuildRequires:  %{python_module pyramid}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-Mako >= 0.8
Requires:       python-pyramid
BuildArch:      noarch
%python_subpackages

%description
pyramid_mako is a set of bindings that makes templates written for the
Mako templating system work under the Pyramid web framework.
Mako is a templating system written by Mike Bayer.

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

%build
%python_build

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

%check
# Not done missing plaster-pastedeploy
%python_exec setup.py nosetests

%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE.txt
%doc CHANGES.txt CONTRIBUTORS.txt COPYRIGHT.txt
%{python_sitelib}/*

%changelog