diff --git a/cave/build/customAssembly.xml.p2 b/cave/build/customAssembly.xml.p2
new file mode 100644
index 0000000000..b7c950882f
--- /dev/null
+++ b/cave/build/customAssembly.xml.p2
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cave/build/p2-build.xml b/cave/build/p2-build.xml
index 0b45464eef..e77826595f 100644
--- a/cave/build/p2-build.xml
+++ b/cave/build/p2-build.xml
@@ -32,6 +32,9 @@
+
+
@@ -413,10 +416,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rpms/awips2.cave/Installer.cave-feature/component.spec b/rpms/awips2.cave/Installer.cave-feature/component.spec
index e1c2652cb8..a3fa4d6a9b 100644
--- a/rpms/awips2.cave/Installer.cave-feature/component.spec
+++ b/rpms/awips2.cave/Installer.cave-feature/component.spec
@@ -1,4 +1,5 @@
-%define _component_zip_file_name %{_component_feature}-repo-linux.%{_build_arch}.zip
+%define _component_zip_file_name %{_component_feature}-linux.%{_build_arch}.zip
+%define _component_repo_zip_file_name %{_component_feature}-repo-linux.%{_build_arch}.zip
#
# awips2-cave Spec File
#
@@ -41,7 +42,7 @@ if [ -d ${RPM_BUILD_ROOT} ]; then
rm -rf ${RPM_BUILD_ROOT}
fi
-mkdir -p ${RPM_BUILD_ROOT}/awips2/cave/.repository
+mkdir -p ${RPM_BUILD_ROOT}
CAVE_DIST_DIR="%{_baseline_workspace}/rpms/awips2.cave/setup/dist"
if [ ! -f ${CAVE_DIST_DIR}/%{_component_zip_file_name} ]; then
@@ -49,8 +50,8 @@ if [ ! -f ${CAVE_DIST_DIR}/%{_component_zip_file_name} ]; then
exit 1
fi
-cp ${CAVE_DIST_DIR}/%{_component_zip_file_name} \
- ${RPM_BUILD_ROOT}/awips2/cave/.repository
+unzip ${CAVE_DIST_DIR}/%{_component_zip_file_name} \
+ -d ${RPM_BUILD_ROOT}
%build
@@ -162,7 +163,7 @@ fi
# unzip the repository
cd /awips2/cave/.repository
cleanupUnzip
-unzip %{_component_zip_file_name} > /dev/null 2>&1
+unzip %{_component_repo_zip_file_name} > /dev/null 2>&1
RC=$?
if [ ${RC} -ne 0 ]; then
echo "ERROR: Unzip of repository FAILED."
@@ -248,5 +249,7 @@ rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(644,awips,fxalpha,755)
+%dir /awips2/cave/
+/awips2/cave/*
%dir /awips2/cave/.repository
-/awips2/cave/.repository/*
+/awips2/cave/.repository/*
\ No newline at end of file