Add rhel condition for django17 patch.
[packages/centos7/cobbler.git] / cobbler.spec
index 92047a93b3cddb13333a94d958f857f3325f3bb5..80ddb7e8be220b0e2b482c8c5fe830be8f3a7b89 100644 (file)
@@ -16,7 +16,7 @@ Name: cobbler
 License: GPLv2+
 AutoReq: no
 Version: 2.6.9
-Release: 1%{?dist}~mos8.0.1
+Release: 1%{?dist}~mos1
 Source0: https://github.com/cobbler/cobbler/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # Support newer virt-install - https://bugzilla.redhat.com/show_bug.cgi?id=1188424
 Patch0: cobbler-virtinstall.patch
@@ -87,7 +87,7 @@ other applications.
 %patch0 -p1 -b .virtinstall
 %patch1 -p1 -b .centos
 # django 1.8 on Fedora 22+
-%if 0%{?fedora} >= 22
+%if 0%{?fedora} >= 22 || 0%{?rhel} >= 6
 %patch2 -p1 -b .django17
 %endif