Matthias Runge 790f711
%global pkgname django-mptt
Matthias Runge 790f711
%global obs_ver 0.4.2-4
Matthias Runge 790f711
Matthias Runge 790f711
Summary:	Utilities for implementing Modified Preorder Tree Traversal
Matthias Runge 790f711
Name:		python-django-mptt
Matthias Runge 790f711
Version:	0.5.2
1d5ca0d
Release:	4%{?dist}
Matthias Runge 790f711
License:	MIT
Matthias Runge 790f711
Group:		Development/Libraries
Matthias Runge 790f711
URL:		http://github.com/django-mptt/django-mptt
Matthias Runge 790f711
Source:		http://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz
Matthias Runge 790f711
Patch0:		python-django-mptt-settings.patch
Matthias Runge 790f711
BuildArch:	noarch
Matthias Runge 790f711
Matthias Runge 790f711
BuildRequires:	python2-devel 
Matthias Runge 790f711
BuildRequires:	python-setuptools
Matthias Runge 790f711
Matthias Runge 790f711
# required for check-section
Matthias Runge 790f711
BuildRequires:	python-django
Matthias Runge 790f711
Matthias Runge 790f711
Requires:		python-django
Matthias Runge 790f711
Matthias Runge 790f711
Matthias Runge 790f711
Provides:		%{pkgname} = %{version}-%{release}
Matthias Runge 790f711
Obsoletes:		%{pkgname} < %{obs_ver}
Matthias Runge 790f711
Matthias Runge 790f711
Matthias Runge 790f711
%description
Matthias Runge 790f711
Utilities for implementing Modified Preorder Tree Traversal (MPTT) 
Matthias Runge 790f711
with your Django Model classes and working with trees of Model instances.
Matthias Runge 790f711
Matthias Runge 790f711
%prep
Matthias Runge 790f711
%setup -q -n %{pkgname}-%{version}
Matthias Runge 790f711
%patch0 
Matthias Runge 790f711
#remove unnecessary language ressources:
Matthias Runge 790f711
# de dk,fr, pl 
Matthias Runge 790f711
rm mptt/locale/??/LC_MESSAGES/django.po 
Matthias Runge 790f711
Matthias Runge 790f711
%build
Matthias Runge 790f711
%{__python} setup.py build
Matthias Runge 790f711
Matthias Runge 790f711
%install
Matthias Runge 790f711
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
Matthias Runge 790f711
Matthias Runge 790f711
%find_lang django
Matthias Runge 790f711
Matthias Runge 790f711
%check
Matthias Runge 790f711
cd tests
Matthias Runge 790f711
sh runtests.sh
Matthias Runge 790f711
Matthias Runge 790f711
%files -f django.lang
Matthias Runge 790f711
%doc LICENSE README.rst NOTES
Matthias Runge 790f711
%{python_sitelib}/django_mptt-%{version}-py2.*.egg-info
Matthias Runge 790f711
%dir %{python_sitelib}/mptt
Matthias Runge 790f711
%{python_sitelib}/mptt/*.py*
Matthias Runge 790f711
%{python_sitelib}/mptt/templates
Matthias Runge 790f711
%{python_sitelib}/mptt/templatetags
Matthias Runge 790f711
Matthias Runge 790f711
%changelog
1d5ca0d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
1d5ca0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1d5ca0d
Matthias Runge 790f711
* Wed Mar 28 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.5.2-3
Matthias Runge 790f711
- fix double included language files
Matthias Runge 790f711
- fix license
Matthias Runge 790f711
Matthias Runge 790f711
* Tue Mar 27 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.5.2-1
Matthias Runge 790f711
- renamed to python-django-mptt
Matthias Runge 790f711
- update to version 0.5.2
Matthias Runge 790f711
Matthias Runge 790f711
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
Matthias Runge 790f711
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Matthias Runge 790f711
Matthias Runge 790f711
* Mon Nov 29 2010 Dave Riches <dcr226@fedorapeople.org> - 0.4.2-2
Matthias Runge 790f711
- removed redundant comments from spec
Matthias Runge 790f711
Matthias Runge 790f711
Matthias Runge 790f711
* Sun Nov 28 2010 Clint Savage <herlo@fedorapeople.org> - 0.4.2-1
Matthias Runge 790f711
- Updated the package to 0.4.2 and removed a couple unneeded lines from the spec
Matthias Runge 790f711
Matthias Runge 790f711
* Thu Oct 21 2010 Dave Riches <dcr226@fedorapeople.org> - 0.4.1-1
Matthias Runge 790f711
- Packaged for Fedora
Matthias Runge 790f711