mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14: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}
|
||||
|
||||
%build
|
||||
#AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
||||
#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
|
||||
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
||||
cp -R ${AWIPS_SRC_DIR} %{_python_build_loc}/
|
||||
RC=$?
|
||||
if [ ${RC} -ne 0 ]; then
|
||||
exit 1
|
||||
|
@ -69,7 +66,7 @@ if [ ${RC} -ne 0 ]; then
|
|||
fi
|
||||
|
||||
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
|
||||
RC=$?
|
||||
if [ ${RC} -ne 0 ]; then
|
||||
|
@ -83,15 +80,11 @@ fi
|
|||
popd > /dev/null
|
||||
|
||||
%install
|
||||
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
|
||||
|
||||
pushd . > /dev/null
|
||||
cd %{_python_build_loc}/python-awips-18.1.1
|
||||
|
||||
source /etc/profile.d/awips2.sh
|
||||
RC=$?
|
||||
if [ ${RC} -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd %{_python_build_loc}/python-awips
|
||||
export LD_LIBRARY_PATH=/awips2/python/lib
|
||||
/awips2/python/bin/python setup.py install \
|
||||
--root=%{_build_root} \
|
||||
--prefix=/awips2/python
|
||||
|
@ -101,8 +94,6 @@ if [ ${RC} -ne 0 ]; then
|
|||
fi
|
||||
popd > /dev/null
|
||||
|
||||
ls -altr /awips2/jenkins/buildspace/workspace/tmp/awips/awips-component/awips2/python/lib/python2.7/site-packages
|
||||
|
||||
%pre
|
||||
|
||||
%post
|
||||
|
|
Loading…
Add table
Reference in a new issue