mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
Revert "component.spec file build from github release tarball"
This reverts commit e119769c84
.
This commit is contained in:
parent
fc2c5cb930
commit
b66bd7af3e
1 changed files with 7 additions and 16 deletions
|
@ -52,11 +52,8 @@ fi
|
||||||
mkdir -p %{_python_build_loc}
|
mkdir -p %{_python_build_loc}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
||||||
#cp -R ${AWIPS_SRC_DIR} %{_python_build_loc}/
|
cp -R ${AWIPS_SRC_DIR} %{_python_build_loc}/
|
||||||
cd %{_python_build_loc}
|
|
||||||
wget https://github.com/Unidata/python-awips/archive/18.1.1.tar.gz
|
|
||||||
tar -xvzf 18.1.1.tar.gz
|
|
||||||
RC=$?
|
RC=$?
|
||||||
if [ ${RC} -ne 0 ]; then
|
if [ ${RC} -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -69,7 +66,7 @@ if [ ${RC} -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd . > /dev/null
|
pushd . > /dev/null
|
||||||
cd %{_python_build_loc}/python-awips-18.1.1
|
cd %{_python_build_loc}/python-awips
|
||||||
/awips2/python/bin/python setup.py clean
|
/awips2/python/bin/python setup.py clean
|
||||||
RC=$?
|
RC=$?
|
||||||
if [ ${RC} -ne 0 ]; then
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
@ -83,15 +80,11 @@ fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
||||||
|
|
||||||
pushd . > /dev/null
|
pushd . > /dev/null
|
||||||
cd %{_python_build_loc}/python-awips-18.1.1
|
cd %{_python_build_loc}/python-awips
|
||||||
|
export LD_LIBRARY_PATH=/awips2/python/lib
|
||||||
source /etc/profile.d/awips2.sh
|
|
||||||
RC=$?
|
|
||||||
if [ ${RC} -ne 0 ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/awips2/python/bin/python setup.py install \
|
/awips2/python/bin/python setup.py install \
|
||||||
--root=%{_build_root} \
|
--root=%{_build_root} \
|
||||||
--prefix=/awips2/python
|
--prefix=/awips2/python
|
||||||
|
@ -101,8 +94,6 @@ if [ ${RC} -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
ls -altr /awips2/jenkins/buildspace/workspace/tmp/awips/awips-component/awips2/python/lib/python2.7/site-packages
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
Loading…
Add table
Reference in a new issue