80 lines
1.5 KiB
RPMSpec
80 lines
1.5 KiB
RPMSpec
%define _yajsw_version 11.11
|
|
|
|
#
|
|
# AWIPS II YAJSW Spec File
|
|
#
|
|
|
|
Name: awips2-yajsw
|
|
Summary: AWIPS II yajsw Distribution
|
|
Version: %{_yajsw_version}
|
|
Release: 3
|
|
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-yajsw
|
|
requires: awips2-java
|
|
|
|
%description
|
|
AWIPS II yajsw Distribution - A custom compilation of yajsw ${_yajsw_version} used
|
|
by several AWIPS II components.
|
|
|
|
# disable jar repacking
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-java-repack-jars[[:space:]].*$!!g')
|
|
|
|
%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}
|
|
fi
|
|
/bin/mkdir -p %{_build_root}
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
%install
|
|
DIST_DIR="%{_baseline_workspace}/foss/yajsw-%{_yajsw_version}/packaged"
|
|
|
|
YAJSW_ZIP="yajsw-dist.zip"
|
|
|
|
unzip ${DIST_DIR}/${YAJSW_ZIP} -d %{_build_root}
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p %{_build_root}/etc
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr(644,awips,fxalpha,755)
|
|
%dir /awips2
|
|
%dir /awips2/yajsw
|
|
/awips2/yajsw/*.jar
|
|
/awips2/yajsw/*.txt
|
|
%dir /awips2/yajsw/lib
|
|
/awips2/yajsw/lib/*
|
|
|
|
%defattr(755,awips,fxalpha,755)
|
|
%dir /awips2/yajsw/scripts
|
|
/awips2/yajsw/scripts/*.sh
|