Add explicit check for Fedora. 75/8275/1
authorThomas F Herbert <therbert@redhat.com>
Thu, 31 Aug 2017 14:22:57 +0000 (10:22 -0400)
committerThomas F Herbert <therbert@redhat.com>
Thu, 31 Aug 2017 16:31:52 +0000 (12:31 -0400)
Change-Id: I0a5aece190ccc82f0f840e3bc75e1d27433f5b47
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
Makefile

index 8eaf515..4457806 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ ifeq ($(OS_ID)-$(OS_VERSION_ID),fedora-25)
        RPM_DEPENDS += python-devel
        RPM_DEPENDS += python2-virtualenv
        RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
-else ifeq ($(shell test $($(OS_VERSION_ID) -gt 25; echo $$?)),0)
+else ifeq ($(shell if [ "$(OS_ID)" = "fedora" ]; then test $(OS_VERSION_ID) -gt 25; echo $$?; fi),0)
        RPM_DEPENDS += python2-devel
        RPM_DEPENDS += python2-virtualenv
        RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'