File python-django-picklefield.spec of Package python-django-picklefield
#
# spec file for package python-django-picklefield
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-django-picklefield
Version: 1.0.0
Release: 0
Summary: Pickled object field for Django
License: MIT
Group: Development/Languages/Python
Url: http://github.com/gintas/django-picklefield
Source: https://files.pythonhosted.org/packages/source/d/django-picklefield/django-picklefield-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module Django}
%endif
Requires: python-Django
BuildArch: noarch
%python_subpackages
%description
django-picklefield provides an implementation of a pickled object field.
Such fields can contain any picklable objects.
The implementation is taken and adopted from Django snippet #1694
<http://www.djangosnippets.org/snippets/1694/> by Taavi Taijala, which is in
turn based on Django snippet #513 <http://www.djangosnippets.org/snippets/513/>
by Oliver Beattie.
%prep
%setup -q -n django-picklefield-%{version}
%build
%python_build
%install
%python_install
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/*
%changelog