2012-08-21 15:27:03 -05:00
|
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
|
|
|
%define _build_arch %(uname -i)
|
|
|
|
%define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
|
|
|
|
|
2012-01-20 13:38:00 -06:00
|
|
|
#
|
2012-08-21 15:27:03 -05:00
|
|
|
# AWIPS II Python thrift Spec File
|
2012-01-20 13:38:00 -06:00
|
|
|
#
|
|
|
|
Name: awips2-python-thrift
|
2012-08-21 15:27:03 -05:00
|
|
|
Summary: AWIPS II Python thrift Distribution
|
2012-01-20 13:38:00 -06:00
|
|
|
Version: 20080411p1
|
2012-08-21 15:27:03 -05:00
|
|
|
Release: 3
|
2012-01-20 13:38:00 -06:00
|
|
|
Group: AWIPSII
|
2012-08-21 15:27:03 -05:00
|
|
|
BuildRoot: %{_build_root}
|
|
|
|
BuildArch: %{_build_arch}
|
2012-01-20 13:38:00 -06:00
|
|
|
URL: N/A
|
|
|
|
License: N/A
|
|
|
|
Distribution: N/A
|
|
|
|
Vendor: Raytheon
|
|
|
|
Packager: Bryan Kowal
|
|
|
|
|
|
|
|
AutoReq: no
|
|
|
|
requires: awips2-python
|
|
|
|
provides: awips2-python-thrift
|
|
|
|
|
|
|
|
%description
|
2012-08-21 15:27:03 -05:00
|
|
|
AWIPS II Python thrift Site-Package - 64-bit.
|
2012-01-20 13:38:00 -06:00
|
|
|
|
|
|
|
%prep
|
|
|
|
# Verify That The User Has Specified A BuildRoot.
|
2012-08-21 15:27:03 -05:00
|
|
|
if [ "%{_build_root}" = "" ]
|
2012-01-20 13:38:00 -06:00
|
|
|
then
|
2012-08-21 15:27:03 -05:00
|
|
|
echo "A Build Root has not been specified."
|
2012-01-20 13:38:00 -06:00
|
|
|
echo "Unable To Continue ... Terminating"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2012-08-21 15:27:03 -05:00
|
|
|
rm -rf %{_build_root}
|
|
|
|
mkdir -p %{_build_root}/awips2/python/lib/python2.7/site-packages/thrift
|
2012-01-20 13:38:00 -06:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2012-08-21 15:27:03 -05:00
|
|
|
THRIFT_SRC_DIR="%{_python_pkgs_dir}/thrift"
|
2012-01-20 13:38:00 -06:00
|
|
|
|
2012-08-21 15:27:03 -05:00
|
|
|
cp -rv ${THRIFT_SRC_DIR}/* \
|
|
|
|
%{_build_root}/awips2/python/lib/python2.7/site-packages/thrift
|
2012-01-20 13:38:00 -06:00
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%postun
|
2012-08-21 15:27:03 -05:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{_build_root}
|
2012-01-20 13:38:00 -06:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,awips,fxalpha,755)
|
2012-08-21 15:27:03 -05:00
|
|
|
%dir /awips2/python/lib/python2.7/site-packages
|
|
|
|
/awips2/python/lib/python2.7/site-packages/*
|