74 lines
1.7 KiB
RPMSpec
74 lines
1.7 KiB
RPMSpec
#
|
|
# AWIPS II Edex "component" 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')
|
|
# disable jar repacking
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-java-repack-jars[[:space:]].*$!!g')
|
|
|
|
Name: awips2-%{_component_name}
|
|
Summary: awips2-%{_component_name} Installation
|
|
Version: %{_component_version}
|
|
Release: %{_component_release}%{?dist}
|
|
Group: AWIPSII
|
|
BuildRoot: %{_build_root}
|
|
URL: N/A
|
|
License: N/A
|
|
Distribution: N/A
|
|
Vendor: %{_build_vendor}
|
|
Packager: %{_build_site}
|
|
|
|
#######################################################
|
|
# Added since lib/plugins are exported in OSGI format
|
|
# and lib/dependencies are not resulting in yum being
|
|
# unable to find FOSS ogsi(*) requirements.
|
|
#######################################################
|
|
AutoReq: no
|
|
|
|
provides: awips2-%{_component_name}
|
|
requires: awips2
|
|
requires: awips2-edex
|
|
requires: awips2-edex-base
|
|
requires: awips2-python
|
|
requires: awips2-java
|
|
requires: awips2-psql
|
|
|
|
%description
|
|
AWIPS II Edex - Installs AWIPS II Edex Plugins.
|
|
|
|
%prep
|
|
# Verify That The User Has Specified A BuildRoot.
|
|
if [ "%{_build_root}" = "" ]
|
|
then
|
|
echo "ERROR: The RPM Build Root has not been specified."
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d %{_build_root} ]; then
|
|
rm -rf %{_build_root}
|
|
fi
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{_build_root}
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
unzip %{_baseline_workspace}/build.edex/edex/dist/%{_component_name}.zip \
|
|
-d %{_build_root}
|
|
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
%post
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr(644,awips,fxalpha,755)
|
|
/awips2/edex/*
|