diff --git a/django-avatar.spec b/django-avatar.spec index 26f38c2..81d5027 100644 --- a/django-avatar.spec +++ b/django-avatar.spec @@ -1,52 +1,51 @@ %global git_date 20110709 %global git_version 097ed8 -Name: django-avatar -Version: 2.0a1 -Release: 2.%{git_date}git%{git_version}%{?dist} -Summary: A django module for handling user avatars +Name: django-avatar +Version: 2.0a1 +Release: 3.%{git_date}git%{git_version}%{?dist} +Summary: A django module for handling user avatars -Group: Development/Libraries -License: BSD -URL: http://pypi.python.org/pypi/django-avatar/ +Group: Development/Libraries +License: BSD +URL: http://pypi.python.org/pypi/django-avatar/ # git clone https://github.com/ericflo/django-avatar.git # cd django-avatar; # git archive --format=tar HEAD | xz > django-avatar-{version}.{git_date}git{git_version}.tar.xz -Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz -BuildArch: noarch +Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz +BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python-devel +Requires: Django + %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. - %prep %setup -q -cn %{name} - %build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +%{__python} setup.py build %install -%{__python} setup.py install --skip-build --root="$RPM_BUILD_ROOT" - +%{__python} setup.py install --skip-build --root=%{buildroot} %find_lang django - %files -f django.lang +%doc CHANGELOG CONTRIBUTORS.txt README.txt LICENSE.txt %{python_sitelib}/avatar/ %{python_sitelib}/*.egg-info/ -%doc CHANGELOG CONTRIBUTORS.txt README.txt LICENSE.txt - - %changelog +* 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