File python-Coffin.spec of Package python-Coffin

# spec file for package python-Coffin
# Copyright (c) 2015 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

Name:           python-Coffin
Version:        2.0.1
Release:        0
Summary:        Jinja2 adapter for Django
License:        BSD-3-Clause
Group:          Development/Languages/Python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools
# Test build requirements:
#BuildRequires:  python-Jinja2
#BuildRequires:  python-django
#BuildRequires:  python-nose
Requires:       python-Jinja2
Requires:       python-django
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildArch:      noarch

This used to be a full-featured standalone adapter. With Django adding support
for other template backends, it's approach didn't make sense anymore. Please
use django_jinja instead - you won't regret it.

This module now is a lean collection of some Django tags that are not included
in django-jinja, namely:

{% url %}
{% spaceless %}
{% with %}
{% load %} (as a noop)
{% get_media_prefix %}
{% get_static_prefix %}
{% static %} (in a base variant, and with django.contrib.staticfiles support)

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

python build

python install --prefix=%{_prefix} --root=%{buildroot}


%exclude %python_sitelib/tests*