1 |
%define alphatag r164 |
2 |
%define realname django-evolution |
3 |
|
4 |
Name: python-django-evolution |
5 |
Version: 0.0 |
6 |
Release: 1.svn%{alphatag}.%mkrel 3 |
7 |
Summary: Schema evolution for Django |
8 |
|
9 |
Group: Development/Python |
10 |
License: BSD |
11 |
URL: http://code.google.com/p/django-evolution/ |
12 |
# svn export -%{alphatag} http://django-evolution.googlecode.com/svn/trunk/ django-evolution-%{alphatag} |
13 |
# tar zcf django-evolution-%{alphatag}.tar.gz django-evolution-%{alphatag} |
14 |
Source0: %{realname}-%{alphatag}.tar.gz |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
|
17 |
BuildArch: noarch |
18 |
BuildRequires: python-devel |
19 |
Requires: python-django |
20 |
|
21 |
%description |
22 |
When you run ./manage.py syncdb, Django will look for any new models that |
23 |
have been defined, and add a database table to represent those new models. |
24 |
However, if you make a change to an existing model, ./manage.py syncdb will |
25 |
not make any changes to the database. |
26 |
|
27 |
This is where Django Evolution fits in. Django Evolution is an extension to |
28 |
Django that allows you to track changes in your models over time, and to |
29 |
update the database to reflect those changes. |
30 |
|
31 |
%prep |
32 |
%setup -q -n %{realname}-%{alphatag} |
33 |
|
34 |
%build |
35 |
%{__python} setup.py build |
36 |
|
37 |
%install |
38 |
rm -rf $RPM_BUILD_ROOT |
39 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
40 |
|
41 |
%clean |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
|
44 |
%files |
45 |
%defattr(-,root,root,-) |
46 |
%doc AUTHORS LICENSE README docs/ |
47 |
%{py_puresitedir}/* |
48 |
|
49 |
|