mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
component.spec can now determine release version
This commit is contained in:
parent
a84c045204
commit
f9feb2827a
1 changed files with 2 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
|||
%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_awips_version %(grep ^ver /awips2/repo/python-awips/setup.py | cut -d '"' -f 2)
|
||||
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# Python AWIPS Spec File
|
||||
#
|
||||
Name: awips2-python-awips
|
||||
Summary: Python AWIPS Distribution
|
||||
Version: 18.1.6
|
||||
Version: %{_python_awips_version}
|
||||
Release: 1%{?dist}
|
||||
Group: AWIPSII
|
||||
BuildRoot: %{_build_root}
|
||||
|
@ -67,10 +67,6 @@ fi
|
|||
|
||||
cd %{_python_build_loc}/python-awips
|
||||
|
||||
## Apply patch
|
||||
patch dynamicserialize/ThriftSerializationContext.py rpm/patch.diff
|
||||
cat dynamicserialize/ThriftSerializationContext.py |grep long
|
||||
|
||||
pushd . > /dev/null
|
||||
/awips2/python/bin/python setup.py clean
|
||||
RC=$?
|
||||
|
|
Loading…
Add table
Reference in a new issue