Merge "Omaha #3544 - unpack the Linux 64-bit SWT jar file post-install." into omaha_14.4.1

Former-commit-id: 014c5e7259 [formerly 4f5f3dea6f [formerly 25de1e3ac801c1630a46186cc9ed02a04c568837]]
Former-commit-id: 4f5f3dea6f
Former-commit-id: 21c849be33
This commit is contained in:
Greg Armendariz 2014-08-21 12:37:35 -05:00 committed by Gerrit Code Review
commit 97eb1a8056

View file

@ -3,6 +3,8 @@
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _build_arch %(uname -i)
%define _swt_version 3.8.1.v3836b
#
# AWIPS II AlertViz Spec File
#
@ -118,6 +120,21 @@ fi
echo -e "\nInstalling A2 gdm PostSession Default script"
scp /etc/gdm/PostSession/awips2VisualizeUtility.sh /etc/gdm/PostSession/Default
pushd . > /dev/null 2>&1
cd /awips2/alertviz/plugins
# Forcefully unzip: org.eclipse.swt.gtk.linux.x86_64_*.jar
# : if x86_64
if [ -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar ]; then
mkdir org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
unzip -qq org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar \
-d org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
rm -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
mv org.eclipse.swt.gtk.linux.x86_64_%{_swt_version} \
org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
fi
popd > /dev/null 2>&1
%preun
%postun