/[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 334329 - (show annotations) (download)
Sun Dec 23 18:08:10 2012 UTC (11 years, 3 months ago) by philippem
File size: 1935 byte(s)
SILENT typo on name
1
2 Name: python-django-evolution
3 Version: 0.6.7
4 Release: %mkrel 1
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 Requires: python-django
28
29 %description
30 When you run ./manage.py syncdb, Django will look for any new models that
31 have been defined, and add a database table to represent those new models.
32 However, if you make a change to an existing model, ./manage.py syncdb will
33 not make any changes to the database.
34
35 This is where Django Evolution fits in. Django Evolution is an extension to
36 Django that allows you to track changes in your models over time, and to
37 update the database to reflect those changes.
38
39 %prep
40 %setup -q -n django_evolution-%{version}
41 %patch0001 -p1
42
43 %build
44 %{__python} setup.py build
45
46 %install
47 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
48 # Delete tests. They aren't useful in an installed system
49 rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/tests
50
51 %check
52 %{__python} tests/runtests.py
53 %{__python} tests/run-pyflakes.py
54
55 %files
56 %doc AUTHORS LICENSE README docs/
57 %{python_sitelib}/django_evolution/*
58 %{python_sitelib}/django_evolution-%{version}*.egg-info
59
60

  ViewVC Help
Powered by ViewVC 1.1.30