awips2/rpms/awips2.core/Installer.gfe/component.spec
Bryan Kowal 8aea713004 Issue #777 - removing the few remaining references to the WORKSPACE_DIR environment variable and the Installer.rpm directory. Ensure that
the build builds awips2-data.gfe.


Former-commit-id: 0e279845ba [formerly b79f5a3c2b] [formerly c7a172f97a [formerly 38fd864d20cc5830b0f3913faf9b66cbf0f10048]]
Former-commit-id: c7a172f97a
Former-commit-id: 7ace6b7acb
2012-07-11 09:42:46 -05:00

79 lines
No EOL
1.5 KiB
RPMSpec

#
# /awips2/edex/data/gfe Spec File
#
Name: awips2-data.gfe
Summary: AWIPS II gfe Distribution
Version: %{_component_version}
Release: %{_component_release}
Group: AWIPSII
# We default the buildroot to determine whether or not the user has
# specified the buildroot.
BuildArch: noarch
BuildRoot: /tmp
URL: N/A
License: N/A
Distribution: N/A
Vendor: Raytheon
Packager: Bryan Kowal
AutoReq: no
provides: awips2-data.gfe
%description
AWIPS II gfe Distribution - Contains the AWIP II gfe netcdf files.
%prep
# Verify That The User Has Specified A BuildRoot.
if [ "${RPM_BUILD_ROOT}" = "/tmp" ]
then
echo "An Actual BuildRoot Must Be Specified. Use The --buildroot Parameter."
echo "Unable To Continue ... Terminating"
exit 1
fi
mkdir -p ${RPM_BUILD_ROOT}/awips2/edex/data
%build
%install
# Determine which version of the gfe we should use.
RPM_COMMON_DIR="%{_baseline_workspace}/rpms/common/static.versions"
if [ ! -f ${RPM_COMMON_DIR}/LATEST.gfe ]; then
file ${RPM_COMMON_DIR}/LATEST.gfe
exit 1
fi
VERSION_DIR=`cat ${RPM_COMMON_DIR}/LATEST.gfe`
GFE_SRC_DIR="${AWIPSCM_SHARE}/awips2-static/gfe/${VERSION_DIR}"
gfe_tar="${GFE_SRC_DIR}/gfeData.tgz"
if [ ! -f ${gfe_tar} ]; then
file ${gfe_tar}
exit 1
fi
/bin/tar -xvf ${gfe_tar} \
-C ${RPM_BUILD_ROOT}/awips2/edex/data
if [ $? -ne 0 ]; then
exit 1
fi
%pre
%post
%preun
%postun
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(644,awips,fxalpha,755)
%dir /awips2
%dir /awips2/edex
%defattr(775,awips,fxalpha,775)
%dir /awips2/edex/data
%dir /awips2/edex/data/gfe
/awips2/edex/data/gfe/*