diff --git a/rpms/awips2.core/Installer.groovy/component.spec b/rpms/awips2.core/Installer.groovy/component.spec index fe2cb96df2..bec3d1b072 100644 --- a/rpms/awips2.core/Installer.groovy/component.spec +++ b/rpms/awips2.core/Installer.groovy/component.spec @@ -64,6 +64,26 @@ mv %{_build_root}/awips2/groovy-%{_groovy_version} \ if [ $? -ne 0 ]; then exit 1 fi + +# spring-enable groovy +_spring_dependencies=\ +(\ + 'org.springframework.context-3.1.4.RELEASE.jar' \ + 'org.springframework.beans-3.1.4.RELEASE.jar' \ + 'org.springframework.core-3.1.4.RELEASE.jar' \ + 'org.springframework.asm-3.1.4.RELEASE.jar' \ + 'org.springframework.expression-3.1.4.RELEASE.jar' \ +) + +for spring_dependency in ${_spring_dependencies[*]}; +do + cp %{_baseline_workspace}/org.springframework/${spring_dependency} \ + %{_build_root}/awips2/groovy/lib + if [ $? -ne 0 ]; then + exit 1 + fi +done + cp ${_profile_scripts}/* %{_build_root}/etc/profile.d if [ $? -ne 0 ]; then exit 1 @@ -96,4 +116,4 @@ rm -rf ${RPM_BUILD_ROOT} %doc /awips2/groovy/NOTICE.txt %defattr(755,awips,fxalpha,755) -/awips2/groovy/bin/* \ No newline at end of file +/awips2/groovy/bin/*