3 %bcond_with tests # do not perform "make test"
5 %define module django-evolution
6 Summary: Schema evolution for Django
7 Name: python-django-evolution
11 Group: Development/Languages
12 URL: http://code.google.com/p/django-evolution/
13 Source0: http://pypi.python.org/packages/source/d/django_evolution/django_evolution-%{version}.tar.gz
14 # Source0-md5: e3393e745810ecffc7bbe647effcf86a
15 BuildRequires: python-coverage
16 BuildRequires: python-devel
17 BuildRequires: python-django >= 1.1.1
18 BuildRequires: python-nose
19 BuildRequires: python-pyflakes
20 BuildRequires: python-setuptools
21 BuildRequires: python-sqlite
22 BuildRequires: rpmbuild(macros) >= 1.710
23 BuildRequires: sed >= 4.0
24 Requires: python-django >= 1.1.1
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 When you run ./manage.py syncdb, Django will look for any new models
30 that have been defined, and add a database table to represent those
31 new models. However, if you make a change to an existing model,
32 ./manage.py syncdb will not make any changes to the database.
34 This is where Django Evolution fits in. Django Evolution is an
35 extension to Django that allows you to track changes in your models
36 over time, and to update the database to reflect those changes.
39 %setup -q -n django_evolution-%{version}
40 %{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py
41 %{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py
49 %{__python} tests/runtests.py
50 %{__python} tests/run-pyflakes.py
54 rm -rf $RPM_BUILD_ROOT
56 --root $RPM_BUILD_ROOT
60 # Delete tests. They aren't useful in an installed system
61 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/django_evolution/tests
62 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc AUTHORS LICENSE README docs
70 %{py_sitescriptdir}/django_evolution
71 %if "%{py_ver}" > "2.4"
72 %{py_sitescriptdir}/django_evolution-%{version}-*.egg-info