add fxa data/nationalData dirs and files to awips2-cli build

This commit is contained in:
mjames-upc 2015-11-05 19:36:44 -07:00
parent c810a506f3
commit 7b3f08ae01
2 changed files with 12 additions and 3 deletions

View file

@ -74,11 +74,16 @@ cp -r %{_baseline_workspace}/${CLI_PROJECT_DIR}/impl/* ${RPM_BUILD_ROOT}/awips2/
copyLegal "awips2/fxa"
# Copy our profile.d scripts.
PROFILE_D_DIRECTORY="rpms/awips2.core/Installer.cli/scripts/profile.d"
CLI_DIRECTORY="rpms/awips2.core/Installer.cli"
PROFILE_D_DIRECTORY="${CLI_DIRECTORY}/scripts/profile.d"
mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d
cp %{_baseline_workspace}/${PROFILE_D_DIRECTORY}/* \
${RPM_BUILD_ROOT}/etc/profile.d
# Copy fxa data files
cp -r %{_baseline_workspace}/${CLI_DIRECTORY}/fxa/* ${RPM_BUILD_ROOT}/awips2/fxa/
%pre
if [ "${1}" = "2" ]; then
exit 0
@ -130,5 +135,9 @@ rm -rf ${RPM_BUILD_ROOT}
/etc/profile.d/awips2CLI.sh
%defattr(755,awips,fxalpha,755)
%dir /awips2/fxa/bin
%dir /awips2/fxa/data
%dir /awips2/fxa/nationalData
%attr(755,awips,fxalpha) /awips2/fxa/bin/*
%attr(755,awips,fxalpha) /awips2/fxa/data/*
%attr(755,awips,fxalpha) /awips2/fxa/nationalData/*
%config(noreplace) /awips2/fxa/bin/setup.env

View file

@ -518,9 +518,9 @@ if [ "${1}" = "-cave" ]; then
fi
if [ "${1}" = "-other" ]; then
#buildRPM "awips2-cli"
buildRPM "awips2-cli"
#buildRPM "awips2-yajsw"
buildRPM "awips2-hydroapps-shared" # disabled - removed from repo comps.xml
#buildRPM "awips2-hydroapps-shared" # disabled - removed from repo comps.xml
#buildRPM "awips2-tools"
#buildRPM "awips2-pypies"
#buildRPM "awips2-adapt-native"