Omaha #4072 Remove old python files before installing.
Former-commit-id: ba56c1d304d2f7ca03f26112ec2f8b25783ff8ca
This commit is contained in:
parent
f05248d198
commit
c740122b7c
1 changed files with 4 additions and 1 deletions
|
@ -54,6 +54,9 @@ cp -rv ${DYNAMICSERIALIZE_SRC_DIR}/* \
|
||||||
%{_build_root}/awips2/python/lib/python2.7/site-packages/dynamicserialize
|
%{_build_root}/awips2/python/lib/python2.7/site-packages/dynamicserialize
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
if [ -d /awips2/python/lib/python2.7/site-packages/dynamicserialize ]; then
|
||||||
|
rm -rf /awips2/python/lib/python2.7/site-packages/dynamicserialize
|
||||||
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
|
@ -67,4 +70,4 @@ rm -rf %{_build_root}
|
||||||
%files
|
%files
|
||||||
%defattr(644,awips,fxalpha,755)
|
%defattr(644,awips,fxalpha,755)
|
||||||
%dir /awips2/python/lib/python2.7/site-packages
|
%dir /awips2/python/lib/python2.7/site-packages
|
||||||
/awips2/python/lib/python2.7/site-packages/*
|
/awips2/python/lib/python2.7/site-packages/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue