diff --git a/rpms/awips2.cave/Installer.alertviz/component.spec b/rpms/awips2.cave/Installer.alertviz/component.spec index 2311259687..f98fdcae09 100644 --- a/rpms/awips2.cave/Installer.alertviz/component.spec +++ b/rpms/awips2.cave/Installer.alertviz/component.spec @@ -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