File python-django-treemenus.spec of Package python-django-treemenus

#
# spec file for package python-django-treemenus
#
# Copyright (c) 2017 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/
#


Name:           python-django-treemenus
Version:        0.9.2
Release:        0
Summary:        Generic tree-structured menuing system for Django
License:        BSD-3-Clause
Group:          Development/Languages/Python
Url:            https://github.com/jphalip/django-treemenus
# From https://pypi.python.org/pypi/django-treemenus
Source:         django-treemenus-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-django
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}


%description
This is a simple and generic tree-structured menuing system for Django with an easy-to-use
admin interface. It covers all the essentials for building tree-structured menus and should
be enough for a lot of projects. However it is easily extendable if you need to add some
special behaviour.

%prep
%setup -q -n django-treemenus-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root)
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by