From 3c135e77e87175cb6ccb212c10ccc2b5934071d4 Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawars@ncbs.res.in>
Date: Wed, 7 Mar 2018 10:53:26 +0530
Subject: [PATCH] Cleaner macros in spec file. [skip ci]

---
 rpm/moose.spec | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/rpm/moose.spec b/rpm/moose.spec
index ea4cf4f8..3c680c36 100644
--- a/rpm/moose.spec
+++ b/rpm/moose.spec
@@ -108,6 +108,7 @@ mkdir -p _build
 cd _build 
 cmake \
           -DWITH_DOC=OFF \
+          -DWITH_GUI=ON \
           -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
           -DCMAKE_INSALL_LIBEXEC=%_libexecdir \
           -DCMAKE_C_FLAGS=%optflags \
@@ -115,11 +116,6 @@ cmake \
           -DMOOSE_VERSION=%version \
           -DCMAKE_BUILD_TYPE="Release|RelWithDebugInfo" \
           -DCMAKE_INSTALL_DO_STRIP=0 \
-%if 0%{?centos_version}
-          -DWITH_MOOGLI=OFF \
-%else
-          -DWITH_MOOGLI=ON \
-%endif
           ..
 
 make VERBOSE=1 %{?_smp_mflags}
@@ -137,7 +133,7 @@ compileall.compile_dir("%{buildroot}/%{python_sitelib}/"
 # Create a launcher.
 GUIBIN=%{buildroot}/%{_prefix}/bin/moosegui
 cat > $GUIBIN <<EOF
-#!/bin/bash
+#!/bin/sh
 cd %{_prefix}/lib/moose/gui && python mgui.py & 
 EOF
 chmod a+x $GUIBIN
-- 
GitLab