new awips2-python-gfe rpm build

This commit is contained in:
mjames-upc 2017-08-17 08:48:00 -06:00
parent 3cdabfd7a5
commit 110b54688a
10 changed files with 48 additions and 140 deletions

View file

@ -1,23 +1,3 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# -*-python-*-
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# This software is in the public domain, furnished "as is", without technical # This software is in the public domain, furnished "as is", without technical
# support, and with no warranty, express or implied, as to its usefulness for # support, and with no warranty, express or implied, as to its usefulness for

View file

@ -1,23 +1,3 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# -*-python-*-
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# This software is in the public domain, furnished "as is", without technical # This software is in the public domain, furnished "as is", without technical
# support, and with no warranty, express or implied, as to its usefulness for # support, and with no warranty, express or implied, as to its usefulness for

View file

@ -1,23 +1,3 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# -*-python-*-
# NOTE: THIS FILE SHOULD NOT BE MODIFIED BY THE USER. INSTEAD, REFER TO # NOTE: THIS FILE SHOULD NOT BE MODIFIED BY THE USER. INSTEAD, REFER TO
# THE BASE,SITE,USER and GFE CONFIGURATION DOCUMENTATION ON HOW TO # THE BASE,SITE,USER and GFE CONFIGURATION DOCUMENTATION ON HOW TO
# OVERRIDE ENTRIES IN THIS FILE. # OVERRIDE ENTRIES IN THIS FILE.
@ -222,7 +202,7 @@ PublishTimes = ['Today', 'Tonight', 'Tomorrow', 'Tomorrow Night', 'Day 3',
# Defines the initial loaded set of map backgrounds. The name of each # Defines the initial loaded set of map backgrounds. The name of each
# background should match the name (without ".xml") of a map file in the # background should match the name (without ".xml") of a map file in the
# CAVE/Bundles/maps directory under the Localization perspective. # CAVE/Bundles/maps directory under the Localization perspective.
MapBackgrounds_default = ['States','CWA'] MapBackgrounds_default = ['statesCounties','CWA_All']
# Specific Colors for a map background # Specific Colors for a map background
# The user may specify a specific color to be used for a map background, # The user may specify a specific color to be used for a map background,

View file

@ -1,22 +1,3 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# Test file for ifpIMAGE # Test file for ifpIMAGE
from gfeConfig import * from gfeConfig import *

View file

@ -1,21 +1,2 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# Don't remove this file. This file indicates to python that this directory # Don't remove this file. This file indicates to python that this directory
# should be included in the module search path. # should be included in the module search path.

View file

@ -1,21 +1,2 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
# Don't remove this file. This file indicates to python that this directory # Don't remove this file. This file indicates to python that this directory
# should be included in the module search path. # should be included in the module search path.

View file

@ -0,0 +1,2 @@
# Don't remove this file. This file indicates to python that this directory
# should be included in the module search path.

View file

@ -0,0 +1,2 @@
# Don't remove this file. This file indicates to python that this directory
# should be included in the module search path.

View file

@ -0,0 +1,2 @@
# Don't remove this file. This file indicates to python that this directory
# should be included in the module search path.

View file

@ -9,7 +9,7 @@
Name: awips2-python-gfe Name: awips2-python-gfe
Summary: AWIPS II Python GFE Files Summary: AWIPS II Python GFE Files
Version: %{_component_version} Version: %{_component_version}
Release: 1 Release: %{_component_release}
Group: AWIPSII Group: AWIPSII
BuildRoot: %{_build_root} BuildRoot: %{_build_root}
BuildArch: %{_build_arch} BuildArch: %{_build_arch}
@ -49,42 +49,61 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
cp -rv %{_baseline_workspace}/com.raytheon.uf.common.localization.python/utility/common_static/base/python/* \ # Copy source files to site-packages/gfe/
%{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/ pysrc=(%{_baseline_workspace}/deploy.edex.awips2/esb/data/utility/common_static/base/python/
cp -rv %{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/python/gfe/*.py \ %{_baseline_workspace}/com.raytheon.viz.textworkstation/localization/textws/python/
%{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/ %{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/python/
cp -rv %{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/python/*.py \ %{_baseline_workspace}/com.raytheon.uf.common.localization.python/utility/common_static/base/python/
%{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/ %{_baseline_workspace}/rpms/awips2.core/Installer.localization/utility/common_static/configured/OAX/gfe/python/
cp -rv %{_baseline_workspace}/com.raytheon.uf.common.python/utility/common_static/base/python/*.py \ %{_baseline_workspace}/com.raytheon.uf.common.python/utility/common_static/base/python/
%{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/ %{_baseline_workspace}/com.raytheon.uf.common.status/utility/common_static/base/python/
cp -rv %{_baseline_workspace}/com.raytheon.uf.common.status/utility/common_static/base/python/*.py \ %{_baseline_workspace}/com.raytheon.uf.edex.activetable/utility/common_static/base/vtec/
%{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/ %{_baseline_workspace}/com.raytheon.uf.common.time/utility/common_static/base/python/time/
%{_baseline_workspace}/com.raytheon.uf.edex.dataaccess/utility/common_static/base/python/dataaccess/
%{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/python/)
mkdir -p %{_build_root}/awips2/python/lib/python2.7/site-packages/vtec for dir in "${pysrc[@]}"; do
if [ $? -ne 0 ]; then echo ${dir}
exit 1 cp ${dir}*.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/
fi done
cp -rv %{_baseline_workspace}/com.raytheon.uf.edex.activetable/utility/common_static/base/vtec/*.py \
%{_build_root}/awips2/python/lib/python2.7/site-packages/vtec # Copy entire directories to site-packages/gfe/ (each requires __init__.py)
pydirs=(%{_baseline_workspace}/com.raytheon.viz.gfe/localization/gfe/userPython/utilities/
%{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/python/isc/
%{_baseline_workspace}/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/
%{_baseline_workspace}/com.raytheon.uf.tools.gfesuite/cli/src/activeTable/)
for dir in "${pydirs[@]}"; do
cp -R ${dir} %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/
done
mv %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/textproducts/templates/product/*.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/
mv %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/textproducts/templates/utility/*.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/
cp %{_baseline_workspace}/rpms/python.site-packages/Installer.gfe/__init__.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/activeTable/
cp %{_baseline_workspace}/rpms/python.site-packages/Installer.gfe/__init__.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/isc/
cp %{_baseline_workspace}/rpms/python.site-packages/Installer.gfe/__init__.py %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe/utilities/
find %{_build_root}/awips2/python/lib/python2.7/site-packages/gfe -name "*.pyc" | xargs rm -rf
%pre %pre
if [ -d /awips2/python/lib/python2.7/site-packages/gfe ]; then if [ -d /awips2/python/lib/python2.7/site-packages/gfe ]; then
rm -rf /awips2/python/lib/python2.7/site-packages/gfe rm -rf /awips2/python/lib/python2.7/site-packages/gfe
fi fi
if [ -d /awips2/python/lib/python2.7/site-packages/vtec ]; then
rm -rf /awips2/python/lib/python2.7/site-packages/vtec
fi
%post %post
%preun %preun
%postun %postun
if [ -d /awips2/python/lib/python2.7/site-packages/gfe ]; then
rm -rf /awips2/python/lib/python2.7/site-packages/gfe
fi
%clean %clean
rm -rf %{_build_root} rm -rf %{_build_root}
%files %files
%defattr(644,awips,fxalpha,755) %defattr(644,awips,fxalpha,755)
%dir /awips2/python/lib/python2.7/site-packages %dir /awips2/python/lib/python2.7/site-packages/gfe
/awips2/python/lib/python2.7/site-packages/* /awips2/python/lib/python2.7/site-packages/gfe*