From 781acba016a84bd5889d97d8da5ca12d95e7219b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Aug 31 2019 21:13:54 +0000 Subject: Update to 0.10.0 Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index 7518819..1750c54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /django-mptt-0.7.4.tar.gz /django-mptt-0.8.6.tar.gz /python-django-mptt-0.9.0.tar.gz +/django-mptt-0.10.0.tar.gz diff --git a/python-django-mptt.spec b/python-django-mptt.spec index 15663df..5a544a6 100644 --- a/python-django-mptt.spec +++ b/python-django-mptt.spec @@ -1,41 +1,33 @@ -%global pkgname django-mptt -%global obs_ver 0.4.2-4 - -# share doc between python2 and python3 -%global _docdir_fmt %{name} +%global srcname django-mptt Summary: Utilities for implementing Modified Preorder Tree Traversal -Name: python-django-mptt -Version: 0.9.0 -Release: 9%{?dist} +Name: python-%{srcname} +Version: 0.10.0 +Release: 1%{?dist} License: MIT -URL: http://github.com/django-mptt/django-mptt -Source: https://github.com/%{pkgname}/%{pkgname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +URL: https://github.com/django-mptt/django-mptt +Source: %{pypi_source} BuildArch: noarch %global _description\ Utilities for implementing Modified Preorder Tree Traversal (MPTT)\ with your Django Model classes and working with trees of Model instances.\ - %description %_description -%package -n python3-django-mptt -Summary: Utilities for implementing Modified Preorder Tree Traversal - -Requires: python3-django +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools -# required for tests -BuildRequires: python3-django - Obsoletes: python2-django-mptt < 0.9.0-2 Obsoletes: python-django-mptt < 0.9.0-2 -%description -n python3-django-mptt %_description +%description -n python3-%{srcname} %_description %prep -%autosetup -n %{pkgname}-%{version} +%autosetup -n %{srcname}-%{version} +rm -vr *.egg-info/ # remove unnecessary language ressources: rm mptt/locale/*/LC_MESSAGES/django.po @@ -54,23 +46,20 @@ rm mptt/locale/*/LC_MESSAGES/django.po %check # tests require django-js-asset -cd tests +#cd tests #sh runtests.sh %files -n python3-django-mptt -f django.lang -%doc README.rst NOTES %license LICENSE -%{python3_sitelib}/django_mptt-%{version}-py3.*.egg-info -%dir %{python3_sitelib}/mptt -%{python3_sitelib}/mptt/*.py -%{python3_sitelib}/mptt/static -%{python3_sitelib}/mptt/templates -%{python3_sitelib}/mptt/templatetags -%{python3_sitelib}/mptt/__pycache__ - +%doc README.rst NOTES +%{python3_sitelib}/django_mptt-*.egg-info/ +%{python3_sitelib}/mptt/ %changelog +* Sat Aug 31 2019 Igor Gnatenko - 0.10.0-1 +- Update to 0.10.0 + * Mon Aug 19 2019 Miro HronĨok - 0.9.0-9 - Rebuilt for Python 3.8 diff --git a/sources b/sources index 440426f..0947c96 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-django-mptt-0.9.0.tar.gz) = 7a5356b4c2a242f716b3b481d318b2a5741817fd40b79f54ec5a74fcc3cc0e4469c0a28601b3139cebc9a5ec4da0ef8f4f24476065fc8230fb8de94343852000 +SHA512 (django-mptt-0.10.0.tar.gz) = 8d20232f1a24991187321b680aff40a34ff06d43ed7231d43be1576bc51c61941b01ec0123efd4500097e0baee7fd31da16560d22e34f30e9e57fb217350fec7