Author: glen                         Date: Thu Feb 17 07:10:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fedora spec

---- Files affected:
packages/python-django-evolution:
   python-django-evolution.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-django-evolution/python-django-evolution.spec
diff -u /dev/null 
packages/python-django-evolution/python-django-evolution.spec:1.1
--- /dev/null   Thu Feb 17 08:10:12 2011
+++ packages/python-django-evolution/python-django-evolution.spec       Thu Feb 
17 08:10:07 2011
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  django-evolution
+Summary:       Schema evolution for Django
+Name:          python-django-evolution
+Version:       0.6.2
+Release:       1
+License:       BSD
+Group:         Development/Languages
+URL:           http://code.google.com/p/django-evolution/
+Source0:       
http://pypi.python.org/packages/source/d/django_evolution/django_evolution-%{version}.tar.gz
+# Source0-md5: 8cc00d8247e8a612deaa355044b59939
+BuildRequires: python-coverage
+BuildRequires: python-devel
+BuildRequires: python-django
+BuildRequires: python-nose
+BuildRequires: python-pyflakes
+BuildRequires: python-setuptools
+BuildRequires: python-sqlite
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: sed >= 4.0
+Requires:      python-django
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+When you run ./manage.py syncdb, Django will look for any new models
+that have been defined, and add a database table to represent those
+new models. However, if you make a change to an existing model,
+./manage.py syncdb will not make any changes to the database.
+
+This is where Django Evolution fits in. Django Evolution is an
+extension to Django that allows you to track changes in your models
+over time, and to update the database to reflect those changes.
+
+%prep
+%setup -q -n django_evolution-%{version}
+%{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py
+%{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py
+
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+%{__python} tests/runtests.py
+%{__python} tests/run-pyflakes.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --skip-build \
+       --root $RPM_BUILD_ROOT
+
+%py_postclean
+
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/django_evolution/tests
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE README docs
+%{py_sitescriptdir}/django_evolution
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/django_evolution-%{version}-*.egg-info
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/02/17 07:10:07  glen
+- new, based on fedora spec
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to