[python-django-mptt] initial version after rename

Matthias Runge mrunge at fedoraproject.org
Wed Mar 28 20:38:25 UTC 2012


commit 790f711b4d072c215e0dcd24aa3a7dac9017b7a9
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Wed Mar 28 22:38:05 2012 +0200

    initial version after rename

 .gitignore                        |    1 +
 python-django-mptt-settings.patch |   17 ++++++++
 python-django-mptt.spec           |   80 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4687813 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-mptt-0.5.2.tar.gz
diff --git a/python-django-mptt-settings.patch b/python-django-mptt-settings.patch
new file mode 100644
index 0000000..b0ebc61
--- /dev/null
+++ b/python-django-mptt-settings.patch
@@ -0,0 +1,17 @@
+diff -up ./tests/settings.py.old ./tests/settings.py
+--- ./tests/settings.py.old	2012-03-27 13:16:50.612893062 +0200
++++ ./tests/settings.py	2012-03-27 13:19:25.955893595 +0200
+@@ -4,7 +4,12 @@ DIRNAME = os.path.dirname(__file__)
+ 
+ DEBUG = True
+ 
+-DATABASE_ENGINE = 'sqlite3'
++DATABASES = {
++		'default': {
++			'ENGINE': 'django.db.backends.sqlite3',
++			'NAME':'mptt_test'
++		}
++}
+ 
+ #DATABASE_ENGINE = 'mysql'
+ #DATABASE_NAME = 'mptt_test'
diff --git a/python-django-mptt.spec b/python-django-mptt.spec
new file mode 100644
index 0000000..c0ae3df
--- /dev/null
+++ b/python-django-mptt.spec
@@ -0,0 +1,80 @@
+%global pkgname django-mptt
+%global obs_ver 0.4.2-4
+
+Summary:	Utilities for implementing Modified Preorder Tree Traversal
+Name:		python-django-mptt
+Version:	0.5.2
+Release:	3%{?dist}
+License:	MIT
+Group:		Development/Libraries
+URL:		http://github.com/django-mptt/django-mptt
+Source:		http://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz
+Patch0:		python-django-mptt-settings.patch
+BuildArch:	noarch
+
+BuildRequires:	python2-devel 
+BuildRequires:	python-setuptools
+
+# required for check-section
+BuildRequires:	python-django
+
+Requires:		python-django
+
+
+Provides:		%{pkgname} = %{version}-%{release}
+Obsoletes:		%{pkgname} < %{obs_ver}
+
+
+%description
+Utilities for implementing Modified Preorder Tree Traversal (MPTT) 
+with your Django Model classes and working with trees of Model instances.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 
+#remove unnecessary language ressources:
+# de dk,fr, pl 
+rm mptt/locale/??/LC_MESSAGES/django.po 
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
+
+%find_lang django
+
+%check
+cd tests
+sh runtests.sh
+
+%files -f django.lang
+%doc LICENSE README.rst NOTES
+%{python_sitelib}/django_mptt-%{version}-py2.*.egg-info
+%dir %{python_sitelib}/mptt
+%{python_sitelib}/mptt/*.py*
+%{python_sitelib}/mptt/templates
+%{python_sitelib}/mptt/templatetags
+
+%changelog
+* Wed Mar 28 2012 Matthias Runge <mrunge at matthias-runge.de> - 0.5.2-3
+- fix double included language files
+- fix license
+
+* Tue Mar 27 2012 Matthias Runge <mrunge at matthias-runge.de> - 0.5.2-1
+- renamed to python-django-mptt
+- update to version 0.5.2
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Mon Nov 29 2010 Dave Riches <dcr226 at fedorapeople.org> - 0.4.2-2
+- removed redundant comments from spec
+
+
+* Sun Nov 28 2010 Clint Savage <herlo at fedorapeople.org> - 0.4.2-1
+- Updated the package to 0.4.2 and removed a couple unneeded lines from the spec
+
+* Thu Oct 21 2010 Dave Riches <dcr226 at fedorapeople.org> - 0.4.1-1
+- Packaged for Fedora
+
diff --git a/sources b/sources
index e69de29..a8047a9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6ec68521dd456311546ed6cf29f84f14  django-mptt-0.5.2.tar.gz


More information about the scm-commits mailing list