awips2/rpms/awips2.core/Installer.gfe/component.spec
Bryan Kowal 53124c5e02 Issue #2163 - remaining rpms that are not dependent on nativeLib and cleanup
Conflicts:
	RadarServer/build.rcm/build.xml
	cave/com.raytheon.uf.viz.feature.alertviz/feature.xml

Former-commit-id: 683d7e5b19 [formerly c1dab22fdb] [formerly 94eacfc460 [formerly 58a80b4b6d31d11b0ca722545bfd788a2feee488]]
Former-commit-id: 94eacfc460
Former-commit-id: 75c6d4ebf6
2013-08-15 15:30:05 -05:00

78 lines
1.6 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
%build
%install
mkdir -p ${RPM_BUILD_ROOT}/awips2/edex/data
if [ $? -ne 0 ]; then
exit 1
fi
# 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/*