From e87f1288250b9a495b53a1fe91c23283267c67e4 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 16 Apr 2018 15:59:39 -0400 Subject: [PATCH] correct Source0 if centos Signed-off-by: Lokesh Mandvekar --- container-selinux.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/container-selinux.spec b/container-selinux.spec index c81db97..d2d0a5f 100644 --- a/container-selinux.spec +++ b/container-selinux.spec @@ -41,7 +41,11 @@ Release: 10.git%{shortcommit0}%{?dist} License: GPLv2 URL: %{git0} Summary: SELinux policies for container runtimes +%if 0%{?fedora} || 0%{?rhel} >7 Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz +%else +Source0: %{git0}/archive/%{el_commit0}/%{name}-%{shortcommit0}.tar.gz +%endif BuildArch: noarch BuildRequires: git BuildRequires: pkgconfig(systemd)