Former-commit-id:861a887084
[formerly17d652a8dd
] [formerly9415560b38
] [formerly861a887084
[formerly17d652a8dd
] [formerly9415560b38
] [formerlyab3485a3ed
[formerly9415560b38
[formerly b0e47f4548c235a7cbaefc12e97264ce4c782fce]]]] Former-commit-id:ab3485a3ed
Former-commit-id:ece1f596c6
[formerly751f005228
] [formerly dbc6b10841e1b6bd48ab2c5bb58813c728e5fbb6 [formerly17b8ded082
]] Former-commit-id: 5eac7e9d81479e0f95630179883986d57bbb753f [formerly6de01af674
] Former-commit-id:a8898ec348
68 lines
No EOL
1.3 KiB
RPMSpec
68 lines
No EOL
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: %{_component_release}
|
|
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/* |