awips2/rpms/awips2.core/Installer.adapt-native/component.spec
Bryan Kowal 9ab0fe2d49 Issue #1957 - the build is now compatible with the expanded native tar file.
Former-commit-id: bb4785d16a [formerly 91174d197d [formerly d30ec5494a2fd748d25dbec55e5a4b918e204682]]
Former-commit-id: 91174d197d
Former-commit-id: 71da9825f9
2013-04-30 17:52:51 -05:00

69 lines
No EOL
1.5 KiB
RPMSpec

#
# AWIPS II Adapt Native Spec File
#
Name: awips2-adapt-native
Summary: AWIPS II Adapt Native Distribution
Version: %{_component_version}
Release: %{_component_release}
Group: AWIPSII
BuildRoot: /tmp
URL: N/A
License: N/A
Distribution: N/A
Vendor: Raytheon
Packager: Bryan Kowal
AutoReq: no
provides: awips2-adapt-native
requires: awips2-edex-base
# The two python native libraries are now included directly in the python
# distribution that is built.
%description
AWIPS II Native Distribution - Contains the AWIP II Native Files for Adapt.
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%prep
# Verify That The User Has Specified A BuildRoot.
if [ "${RPM_BUILD_ROOT}" = "/tmp" ]
then
echo "An Actual BuildRoot Must Be Specified. Use The --buildroot Parameter."
echo "Unable To Continue ... Terminating"
exit 1
fi
mkdir -p ${RPM_BUILD_ROOT}/awips2
%build
%install
FILES_NATIVE="%{_baseline_workspace}/files.native"
/bin/cp -rf ${FILES_NATIVE}/adapt \
%{_build_root}/awips2/
if [ $? -ne 0 ]; then
exit 1
fi
%pre
%post
%preun
%postun
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(644,awips,fxalpha,755)
%dir /awips2/adapt
%dir /awips2/adapt/climate
%dir /awips2/adapt/climate/data
/awips2/adapt/climate/data/*
%dir /awips2/adapt/climate/bin
%defattr(755,awips,fxalpha,755)
%dir /awips2/adapt/climate/bin/Linux
/awips2/adapt/climate/bin/Linux/*