diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6a4fb24..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/python-django-avatar-2.0a1.20120609git097ed8.tar.xz -/django-avatar-3.0.0.tar.gz -/django-avatar-3.1.0.tar.gz -/django-avatar-4.1.0.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..48c41dd --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +python-django-avatar fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675726 diff --git a/python-django-avatar.patch b/python-django-avatar.patch deleted file mode 100644 index eb9d060..0000000 --- a/python-django-avatar.patch +++ /dev/null @@ -1,67 +0,0 @@ -From cd7401dc4fa6519a62c4f8e6b3cb688c77738f51 Mon Sep 17 00:00:00 2001 -From: Cristiano Valente -Date: Wed, 8 Aug 2012 21:24:43 +0200 -Subject: [PATCH] Updated to support django <=1.4 - ---- - avatar/views.py | 10 ++++------ - setup.py | 2 +- - 2 files changed, 5 insertions(+), 7 deletions(-) - -diff --git a/avatar/views.py b/avatar/views.py -index 68ae338..1ae46e7 100644 ---- a/avatar/views.py -+++ b/avatar/views.py -@@ -3,6 +3,7 @@ - from django.template import RequestContext - from django.utils.translation import ugettext as _ - from django.conf import settings -+from django.contrib import messages - - from django.contrib.auth.decorators import login_required - -@@ -68,8 +69,7 @@ def add(request, extra_context=None, next_override=None, - image_file = request.FILES['avatar'] - avatar.avatar.save(image_file.name, image_file) - avatar.save() -- request.user.message_set.create( -- message=_("Successfully uploaded a new avatar.")) -+ messages.success(request, _("Successfully uploaded a new avatar.")) - avatar_updated.send(sender=Avatar, user=request.user, avatar=avatar) - return HttpResponseRedirect(next_override or _get_next(request)) - return render_to_response( -@@ -106,8 +106,7 @@ def change(request, extra_context=None, next_override=None, - avatar.primary = True - avatar.save() - updated = True -- request.user.message_set.create( -- message=_("Successfully updated your avatar.")) -+ messages.success(request, _("Successfully updated your avatar.")) - if updated: - avatar_updated.send(sender=Avatar, user=request.user, avatar=avatar) - return HttpResponseRedirect(next_override or _get_next(request)) -@@ -143,8 +142,7 @@ def delete(request, extra_context=None, next_override=None, *args, **kwargs): - avatar_updated.send(sender=Avatar, user=request.user, avatar=avatar) - break - Avatar.objects.filter(id__in=ids).delete() -- request.user.message_set.create( -- message=_("Successfully deleted the requested avatars.")) -+ messages.success(request, _("Successfully deleted the requested avatars.")) - return HttpResponseRedirect(next_override or _get_next(request)) - return render_to_response( - 'avatar/confirm_delete.html', -diff --git a/setup.py b/setup.py -index 7c3858a..9bf1a54 100644 ---- a/setup.py -+++ b/setup.py -@@ -1,6 +1,6 @@ - from setuptools import setup, find_packages - --version = '2.0a1' -+version = '2.0a2' - - LONG_DESCRIPTION = """ - Using django-avatar --- -1.7.10 - diff --git a/python-django-avatar.spec b/python-django-avatar.spec deleted file mode 100644 index 02763ed..0000000 --- a/python-django-avatar.spec +++ /dev/null @@ -1,159 +0,0 @@ -%global pypi_name django-avatar - -Name: python-%{pypi_name} -Version: 4.1.0 -Release: 6%{?dist} -Summary: A django module for handling user avatars - -License: BSD -URL: http://github.com/grantmcconnaughey/%{pypi_name}/ -Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz - -BuildArch: noarch - -%description -Django-avatar is a reusable application for handling user avatars. It has the -ability to default to Gravatar if no avatar is found for a certain user. -Django-avatar automatically generates thumbnails and stores them to your -default file storage back-end for retrieval later. - - -%package -n python3-%{pypi_name} -Summary: A django module for handling user avatars - Python 3 version - -BuildRequires: python3-setuptools -BuildRequires: python3-devel -# Test dependencies -BuildRequires: python3-coverage -BuildRequires: python3-django -BuildRequires: python3-django-appconf -BuildRequires: python3-imaging -BuildRequires: python3-six - -Requires: python3-django -Requires: python3-imaging - -Obsoletes: python-%{pypi_name} < 4 -Obsoletes: python2-%{pypi_name} < 4 - -%{?python_provide:%python_provide python3-%{pypi_name}} - -%description -n python3-%{pypi_name} -Django-avatar is a reusable application for handling user avatars. It has the -ability to default to Gravatar if no avatar is found for a certain user. -Django-avatar automatically generates thumbnails and stores them to your -default file storage back-end for retrieval later. -This package provides Python 3 build of %{pypi_name}. - -%prep -%autosetup -n %{pypi_name}-%{version} - -%build -%py3_build - -%install -%py3_install -%find_lang django - -%check -PYTHONPATH=. \ -DJANGO_SETTINGS_MODULE=tests.settings \ -python3-coverage run %{python3_sitelib}/django/bin/django-admin.py test tests - -%files -f django.lang -n python3-%{pypi_name} -%license LICENSE.txt -%doc PKG-INFO CONTRIBUTORS.txt README.rst -%dir %{python3_sitelib}/avatar/ -%{python3_sitelib}/avatar/*.py* -%{python3_sitelib}/avatar/management/ -%{python3_sitelib}/avatar/media/ -%{python3_sitelib}/avatar/migrations/ -%{python3_sitelib}/avatar/templates/ -%{python3_sitelib}/avatar/locale/*/*/*.po -%{python3_sitelib}/avatar/templatetags/ -%{python3_sitelib}/avatar/__pycache__/ -%{python3_sitelib}/*.egg-info/ - -%changelog -* Fri Jul 26 2019 Fedora Release Engineering - 4.1.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 4.1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 4.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 4.1.0-3 -- Rebuilt for Python 3.7 - -* Fri Mar 16 2018 Miro Hrončok - 4.1.0-2 -- Rebuilt to fix repo tag mishmash - -* Tue Feb 20 2018 Miro Hrončok - 4.1.0-1 -- Update to 4.1.0 -- Removed python2 subpackage for https://fedoraproject.org/wiki/Changes/Django20 - -* Fri Feb 09 2018 Fedora Release Engineering - 3.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 3.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 3.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Thu Jan 12 2017 Adam Williamson - 3.1.0-1 -- Update to 3.1.0 (Django 1.10 compatible) - -* Mon Dec 19 2016 Miro Hrončok -- Rebuild for Python 3.6 - -* Fri Aug 5 2016 Jan Beran - 3.0.0-1 -- update to version 3.0.0 -- url and source update -- tests are included now -- modernized specfile with Python 3 packaging - -* Tue Jul 19 2016 Fedora Release Engineering - 2.0a1-9.20120609git097ed8 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Thu Feb 04 2016 Fedora Release Engineering - 2.0a1-8.20120609git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 2.0a1-7.20120609git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2.0a1-6.20120609git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue Sep 10 2013 Michael Schwendt - 2.0a1-5.20120609git097ed8 -- correct django-avatar obs_ver - -* Sun Aug 04 2013 Fedora Release Engineering - 2.0a1-4.20120609git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 2.0a1-3.20120609git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Aug 25 2012 Praveen Kumar - 2.0a1-2.20120609git097ed8 -- Added patch for support django>=1.4 functionality - -* Sat Jun 09 2012 Praveen Kumar - 2.0a1-1.20120609git097ed8 -- Renamed from django-avatar to python-django-avatar - -* Fri Jan 13 2012 Fedora Release Engineering - 2.0a1-5.20110709git097ed8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Sun Jul 31 2011 Rahul Sundaram - 2.0a1-4.20110709git097ed8 -- add requires on python-imaging - -* Mon Jul 18 2011 Rahul Sundaram - 2.0a1-3.20110709git097ed8 -- add requires on Django - -* Mon Jun 27 2011 Praveen Kumar - 2.0a1-2.20110709git097ed8 -- Spec improved from Rahul Sundaram - -* Mon Jun 27 2011 Praveen Kumar - 2.0a1-1.20110709git097ed8 -- Initial RPM release - diff --git a/sources b/sources deleted file mode 100644 index f08822d..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (django-avatar-4.1.0.tar.gz) = 5dfba4822b032948b8b50b48e0a00ffe6f4a080b539d5bb13873f328bf561df29b7376afba2f0057b0907183847582c2483e6916ecff950f591b9c1495390e42