awips2/rpms/awips2.upc/Installer.awips/component.spec
ucar-tmeyer 4f090d7a40 LDM Build RPM Updates
------------------------------
Moved the Installer.ldm to awips2.upc (previously in the nativelib repo) and combined from two separate ldm rpms to one
Updated build of LDM to 6.13.14
lookupRPM.sh - added awips2-ldm here and gave it the new path to component.spec
rpms/build/x86_64/build.sh - uncomment buildRPM awips2-ldm
completely updated the component.spec file to build with the paths we wanted
2022-09-22 12:35:17 -07:00

70 lines
1.6 KiB
RPMSpec

# RPM Metadata
%define _component_name awips2
%define _component_desc "awips2"
#
# awips2 Spec File
#
%define __prelink_undo_cmd %{nil}
# 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')
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-java-repack-jars[[:space:]].*$!!g')
Name: %{_component_name}
Summary: awips2 Installation
Version: %{_component_version}
Release: %{_component_release}%{?dist}
Group: AWIPSII
BuildRoot: /tmp
BuildArch: noarch
URL: N/A
License: N/A
Distribution: N/A
Vendor: %{_build_vendor}
Packager: %{_build_site}
AutoReq: no
provides: %{_component_name}
Requires: wget unzip bc
%description
%{_component_desc}
%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 %{_build_root}/usr/bin
if [ $? -ne 0 ]; then
exit 1
fi
mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d
if [ $? -ne 0 ]; then
exit 1
fi
/bin/cp -r %{_baseline_workspace}/rpms/awips2.upc/Installer.awips/programs/edex ${RPM_BUILD_ROOT}/usr/bin/
/bin/cp %{_baseline_workspace}/rpms/awips2.upc/Installer.awips/scripts/profile.d/* ${RPM_BUILD_ROOT}/etc/profile.d
%pre
%post
%postun
%clean
rm -rf ${RPM_BUILD_ROOT}/*
%files
%attr(755,awips,fxalpha) /usr/bin/edex
%attr(755,root,root) /etc/profile.d/awips2.csh
%attr(755,root,root) /etc/profile.d/awips2.sh