File python-django-simple-history.spec of Package python-django-simple-history
#
# spec file for package python-django-simple-history
#
# 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-%{**}}
Name: python-django-simple-history
Version: 1.8.2
Release: 0
License: BSD-3-Clause
Summary: Store model history and view/revert changes from admin site
Url: https://github.com/treyhunner/django-simple-history
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/d/django-simple-history/django-simple-history-%{version}.tar.gz
# PATCH-FIX-OBS disable-testing-in-setup.patch bear454@opensuse.org -- tests require network access
Patch1: disable-testing-in-setup.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# No testing yet, Django modules not yet converted to singlespec
# Testing
#Buildrequires: %{python_module django-webtest >= 1.8.0}
#BuildRequires: %{python_module mock >= 1.0.1}
#BuildRequires: %{python_module WebTest >= 2.0.24}
#BuildRequires: python-Django >= 1.6
Requires: python-Django >= 1.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
django-simple-history stores Django model state on every create/update/delete.
This app requires Django 1.6 or greater and Python 2.7, 3.3, or greater.
%prep
%setup -q -n django-simple-history-%{version}
%patch1 -p1
%build
%python_build
%install
%python_install
%files %python_files
%defattr(-,root,root,-)
%doc README.rst AUTHORS.rst LICENSE.txt CHANGES.rst
%{python_sitelib}/*
%changelog