awips2/rpms/awips2.core/Installer.hydroapps/component.spec
mjames-upc bfaffd9ba4 spec file include dist in generated rpm
Conflicts:
	rpms/awips2.core/Installer.localapps-environment/component.spec
2017-04-24 19:08:20 -06:00

81 lines
1.7 KiB
RPMSpec

%define _component_name awips2-hydroapps-shared
%define _component_project_dir awips2.core/Installer.hydroapps
#
# AWIPS II Hydroapps Spec File
#
Name: %{_component_name}
Summary: AWIPS II Hydroapps Distribution
Version: %{_component_version}
Release: %{_component_release}%{?dist}
Group: AWIPSII
BuildRoot: /tmp
URL: N/A
License: N/A
Distribution: N/A
Vendor: %{_build_vendor}
Packager: %{_build_site}
AutoReq: no
Provides: awips2-hydroapps-shared
Obsoletes: awips2-hydroapps
Requires: awips2-edex-base
%description
AWIPS II Hydroapps Distribution - Includes applications, configurations, and
filesystems for Hydro.
%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
%build
%install
mkdir -p ${RPM_BUILD_ROOT}/awips2/edex/data
if [ $? -ne 0 ]; then
exit 1
fi
FILES_NATIVE="%{_baseline_workspace}/files.native"
/bin/cp -rf ${FILES_NATIVE}/awipsShare \
%{_build_root}/awips2/edex/data/share
if [ $? -ne 0 ]; then
exit 1
fi
FILES_STATIC="%{_static_files}/hydroapps"
/bin/cp -rf ${FILES_STATIC}/* \
%{_build_root}/awips2/edex/data/share/hydroapps/lib/native/linux32/
if [ $? -ne 0 ]; then
exit 1
fi
/usr/bin/find %{_build_root}/awips2/edex/data/share -name .gitignore -exec rm -rf {} \;
if [ $? -ne 0 ]; then
exit 1
fi
%pre
%post
%preun
%postun
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(644,awips,fxalpha,775)
%dir /awips2
%dir /awips2/edex
%dir /awips2/edex/data
%dir /awips2/edex/data/share
%defattr(777,awips,fxalpha,777)
%dir /awips2/edex/data/share/hydroapps
/awips2/edex/data/share/hydroapps/*