From fce42fd0435c97f4fcdc4a12666f517d67238210 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Sat, 23 Feb 2013 17:31:29 +0100 Subject: Handle Django and South RPM names in F17 --- hyperkitty.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/hyperkitty.spec b/hyperkitty.spec index 47c86c0..ebc01ea 100644 --- a/hyperkitty.spec +++ b/hyperkitty.spec @@ -21,22 +21,32 @@ BuildArch: noarch BuildRequires: python-devel BuildRequires: python-sphinx # Unit tests in %%check -BuildRequires: Django BuildRequires: kittystore BuildRequires: django-gravatar2 BuildRequires: django-rest-framework >= 2.0.0 BuildRequires: django-social-auth >= 0.7.1 -BuildRequires: python-django-south BuildRequires: django-crispy-forms +%if 0%{fedora} && 0%{fedora} < 18 +BuildRequires: Django +BuildRequires: Django-south +%else +BuildRequires: python-django +BuildRequires: python-django-south +%endif -Requires: Django >= 1.4 Requires: django-gravatar2 Requires: django-social-auth >= 0.7.1 Requires: django-rest-framework >= 2.0.0 Requires: mailman >= 3.0.0b2 Requires: kittystore -Requires: python-django-south Requires: django-crispy-forms +%if 0%{fedora} && 0%{fedora} < 18 +Requires: Django >= 1.4 +Requires: Django-south +%else +Requires: python-django >= 1.4 +Requires: python-django-south +%endif %description -- cgit