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

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



Name:           python-django-south
Version:        0.7.2
Release:        1
License:        Apache License 2.0
Summary:        Intelligent Schema Migrations for Django Apps
Url:            http://south.aeracode.org
Group:          Development/Languages/Python
Source:         http://www.aeracode.org/releases/south/south-%{version}.tar.gz
BuildRequires:  fdupes
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

%description
South, intelligent schema migrations for Django apps.

South is:

* Intelligent; it knows if you've missed out a migration or two
* Database independent, so there's no hassle if you need to move databases.
* Easy; it can write migrations for you, and it takes about a minute to convert your app over to use South.
* Designed for a pluggable Django world; you can declare dependencies between
  apps so they all migrate together correctly, and you can still use syncdb for
  your non-migrated apps without it interfering.
* Useful for data too; you can write migrations to transform legacy data.
* Better (we think, anyway) than the alternatives.

Author:
-------
    Andrew Godwin & Andy McCurdy <south@aeracode.org>

%prep
%setup -q -n south

%build
export CFLAGS="%{optflags}"
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix="%{_prefix}" --record-rpm=INSTALLED_FILES
%fdupes %{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-, root, root)
%doc docs/*

%changelog
openSUSE Build Service is sponsored by