/[packages]/cauldron/python-django-evolution/current/SPECS/python-django-evolution.spec
ViewVC logotype

Contents of /cauldron/python-django-evolution/current/SPECS/python-django-evolution.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389213 - (show annotations) (download)
Thu Jan 17 21:29:26 2013 UTC (11 years, 2 months ago) by pterjan
Original Path: obsolete/cauldron/python-django-evolution/current/SPECS/python-django-evolution.spec
File size: 1965 byte(s)
Drop 
1
2 Name: python-django-evolution
3 Version: 0.6.7
4 Release: %mkrel 2
5 Summary: Schema evolution for Django
6
7 Group: Development/Python
8 License: BSD
9 URL: http://code.google.com/p/django-evolution/
10 # svn export -%{alphatag} http://django-evolution.googlecode.com/svn/trunk/ django-evolution-%{alphatag}
11 # tar zcf django-evolution-%{alphatag}.tar.gz django-evolution-%{alphatag}
12 #Source0: %{realname}-%{alphatag}.tar.gz
13 Source0: http://pypi.python.org/packages/source/d/django_evolution/django_evolution-%{version}.tar.gz
14 # Patches from Fedora
15 Patch0001: FED01-Disable-ez_setup-when-installing-by-RPM.patch
16
17
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19
20 BuildArch: noarch
21 BuildRequires: python-devel
22 BuildRequires: python-setuptools
23 BuildRequires: python-nose
24 BuildRequires: python-coverage
25 BuildRequires: pyflakes
26 BuildRequires: python-sqlite
27 BuildRequires: python-django
28 Requires: python-django
29
30 %description
31 When you run ./manage.py syncdb, Django will look for any new models that
32 have been defined, and add a database table to represent those new models.
33 However, if you make a change to an existing model, ./manage.py syncdb will
34 not make any changes to the database.
35
36 This is where Django Evolution fits in. Django Evolution is an extension to
37 Django that allows you to track changes in your models over time, and to
38 update the database to reflect those changes.
39
40 %prep
41 %setup -q -n django_evolution-%{version}
42 %patch0001 -p1
43
44 %build
45 %{__python} setup.py build
46
47 %install
48 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
49 # Delete tests. They aren't useful in an installed system
50 rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/tests
51
52 %check
53 %{__python} tests/runtests.py
54 %{__python} tests/run-pyflakes.py
55
56 %files
57 %doc AUTHORS LICENSE README docs/
58 %{python_sitelib}/django_evolution/*
59 %{python_sitelib}/django_evolution-%{version}*.egg-info
60
61

  ViewVC Help
Powered by ViewVC 1.1.30