File python-django-evolution.spec of Package python-django-evolution
#
# spec file for package python-django-evolution
#
# Copyright (c) 2013 SUSE LINUX Products 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/
%define mod_name django_evolution
Name: python-django-evolution
Summary: Schema Evolution for the Django Project
Version: 0.6.8
Release: 1
License: MIT
Group: Development/Libraries/Python
Url: http://code.google.com/p/django-evolution/
Source: %{mod_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools >= 0.6c8
Requires: python-django >= 1.1.1
%py_requires
Obsoletes: %{name} <= r207
%description
Django Evolution is an extension to Django that allows you to track changes in your models over time, and to update the database to reflect those changes.
%prep
%setup -n %{mod_name}-%{version}
%{__perl} -p -i -e 's|\r\n|\n|' django_evolution/db/postgresql.py django_evolution/models.py
%build
%install
export CFLAGS="%{optflags}"
%{__python} setup.py install \
--root=%{buildroot} \
--prefix="%{_prefix}" \
--record-rpm=INSTALLED_FILES
%clean
%files -f INSTALLED_FILES
%defattr(-, root, root)
%doc AUTHORS django_evolution docs/* LICENSE README
%changelog