awips2/rpms/awips2.core/Installer.groovy/component.spec
Bryan Kowal ef789bf912 Issue #2422 - Merge branch 'omaha_14.1.1' into development_on_RHEL6
Conflicts:
	cave/build/alertviz/customTargets.xml
	cave/build/p2-build.xml
	edexOsgi/com.raytheon.uf.edex.distribution/src/com/raytheon/uf/edex/distribution/DistributionSrv.java
	edexOsgi/meteolib.jni.linux64/libmeteoLib.so
	javaUtilities/build.wes2bridge.utility/wes2bridge/customTargets.xml
	nativeLib/files.native/awipsShare/hydroapps/lib/native/linux32/library.ohd.pproc.so
	nativeLib/files.native/edex/lib/native/linux32/library.ohd.pproc.so
	nativeLib/ncep_grib2module/.cproject
	nativeLib/rary.meteorological/.cproject
	nativeLib/rary.meteorological/src/dcapeFunc.c
	rpms/awips2.cave/Installer.cave-etc/component.spec
	rpms/awips2.cave/Installer.cave-feature/component.spec
	rpms/awips2.core/Installer.aviation/component.spec
	rpms/awips2.qpid/0.18/deploy.builder/build.sh
	rpms/python.site-packages/Installer.qpid/component.spec

Former-commit-id: c125b5b053 [formerly 97612cb78e067c493f7b5a76a2a84d88c96a5094]
Former-commit-id: 9829477ced
2013-09-30 18:00:31 -05:00

119 lines
2.6 KiB
RPMSpec

%define _groovy_version 2.1.3
#
# AWIPS II Groovy Spec File
#
Name: awips2-groovy
Summary: AWIPS II Groovy Distribution
Version: %{_groovy_version}
Release: 1
Group: AWIPSII
BuildRoot: %{_build_root}
BuildArch: noarch
URL: N/A
License: N/A
Distribution: N/A
Vendor: Raytheon
Packager: Bryan Kowal
AutoReq: no
provides: awips2-groovy
requires: awips2-java
%description
AWIPS II Groovy Distribution - Contains Groovy %{_groovy_version}.
%prep
# Ensure that a "buildroot" has been specified.
if [ "%{_build_root}" = "" ]; then
echo "ERROR: A BuildRoot has not been specified."
echo "FATAL: Unable to Continue ... Terminating."
exit 1
fi
if [ -d %{_build_root} ]; then
rm -rf %{_build_root}
if [ $? -ne 0 ]; then
exit 1
fi
fi
%build
%install
mkdir -p %{_build_root}/awips2
if [ $? -ne 0 ]; then
exit 1
fi
mkdir -p %{_build_root}/etc/profile.d
if [ $? -ne 0 ]; then
exit 1
fi
RPMS_DIRECTORY="%{_baseline_workspace}/rpms"
INSTALLER_GROOVY="${RPMS_DIRECTORY}/awips2.core/Installer.groovy"
_profile_scripts="${INSTALLER_GROOVY}/scripts/profile.d"
_groovy_dist="${INSTALLER_GROOVY}/src/groovy-binary-%{_groovy_version}.zip"
unzip ${_groovy_dist} -d %{_build_root}/awips2
if [ $? -ne 0 ]; then
exit 1
fi
mv %{_build_root}/awips2/groovy-%{_groovy_version} \
%{_build_root}/awips2/groovy
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
fi
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(644,awips,fxalpha,755)
%attr(755,root,root) /etc/profile.d/awips2Groovy.csh
%attr(755,root,root) /etc/profile.d/awips2Groovy.sh
%dir /awips2/groovy
%dir /awips2/groovy/conf
/awips2/groovy/conf/*
%dir /awips2/groovy/embeddable
/awips2/groovy/embeddable/*
%dir /awips2/groovy/indy
/awips2/groovy/indy/*
%dir /awips2/groovy/lib
/awips2/groovy/lib/*
%dir /awips2/groovy/bin
%doc /awips2/groovy/ANTLR-LICENSE.txt
%doc /awips2/groovy/ASM-LICENSE.txt
%doc /awips2/groovy/CLI-LICENSE.txt
%doc /awips2/groovy/JSR223-LICENSE.txt
%doc /awips2/groovy/LICENSE.txt
%doc /awips2/groovy/NOTICE.txt
%defattr(755,awips,fxalpha,755)
/awips2/groovy/bin/*