# # /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/*