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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (hide annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (11 years, 2 months ago) by pterjan
File size: 1965 byte(s)
oops
1 ahmad 42369
2     Name: python-django-evolution
3 philippem 334323 Version: 0.6.7
4 umeabot 378670 Release: %mkrel 2
5 ahmad 42369 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 philippem 334323 #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 ahmad 42369 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19    
20     BuildArch: noarch
21     BuildRequires: python-devel
22 philippem 174579 BuildRequires: python-setuptools
23 philippem 334323 BuildRequires: python-nose
24     BuildRequires: python-coverage
25     BuildRequires: pyflakes
26     BuildRequires: python-sqlite
27 philippem 334331 BuildRequires: python-django
28 ahmad 42369 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 philippem 334329 %setup -q -n django_evolution-%{version}
42 philippem 334323 %patch0001 -p1
43 ahmad 42369
44     %build
45     %{__python} setup.py build
46    
47     %install
48     %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
49 philippem 334329 # Delete tests. They aren't useful in an installed system
50     rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/tests
51 ahmad 42369
52 philippem 334323 %check
53     %{__python} tests/runtests.py
54     %{__python} tests/run-pyflakes.py
55    
56 ahmad 42369 %files
57     %doc AUTHORS LICENSE README docs/
58 philippem 334329 %{python_sitelib}/django_evolution/*
59     %{python_sitelib}/django_evolution-%{version}*.egg-info
60 ahmad 42369
61    

  ViewVC Help
Powered by ViewVC 1.1.30