awips2/rpms/python.site-packages/Installer.jimporter/component.spec
mjames-upc 2866fa9af2 UCAR build and install scripts, RPM specs, edex deploy, p2 build
Former-commit-id: 739d54f31d5ac3032218e30f9298001a9c3a15bd
2016-06-27 14:17:07 -05:00

68 lines
1.3 KiB
RPMSpec

%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
#
# AWIPS II Python JavaImporter Spec File
#
Name: awips2-python-jimporter
Summary: AWIPS II Python JavaImporter Distribution
Version: %{_component_version}
Release: 1
Group: AWIPSII
BuildRoot: %{_build_root}
BuildArch: noarch
URL: N/A
License: N/A
Distribution: N/A
Vendor: Raytheon
Packager: Bryan Kowal
AutoReq: no
requires: awips2-python
provides: awips2-python-jimporter
%description
AWIPS II Python JavaImporter Site-Package.
%prep
# Verify That The User Has Specified A BuildRoot.
if [ "%{_build_root}" = "" ]
then
echo "A Build Root has not been specified."
echo "Unable To Continue ... Terminating"
exit 1
fi
rm -rf %{_build_root}
%build
%install
mkdir -p %{_build_root}/awips2/python/lib/python2.7/site-packages
if [ $? -ne 0 ]; then
exit 1
fi
JIMPORTER_SRC_DIR="%{_python_pkgs_dir}/java-importer"
cp -rv ${JIMPORTER_SRC_DIR}/* \
%{_build_root}/awips2/python/lib/python2.7/site-packages
if [ $? -ne 0 ]; then
exit 1
fi
%pre
%post
%preun
%postun
%clean
rm -rf %{_build_root}
%files
%defattr(644,awips,fxalpha,755)
%dir /awips2/python/lib/python2.7/site-packages
/awips2/python/lib/python2.7/site-packages/*