Skip to content

Commit f9feb28

Browse files
committed
component.spec can now determine release version
1 parent a84c045 commit f9feb28

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rpm/component.spec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
22
%define _build_arch %(uname -i)
3+
%define _python_awips_version %(grep ^ver /awips2/repo/python-awips/setup.py | cut -d '"' -f 2)
34
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4-
55
#
66
# Python AWIPS Spec File
77
#
88
Name: awips2-python-awips
99
Summary: Python AWIPS Distribution
10-
Version: 18.1.6
10+
Version: %{_python_awips_version}
1111
Release: 1%{?dist}
1212
Group: AWIPSII
1313
BuildRoot: %{_build_root}
@@ -67,10 +67,6 @@ fi
6767

6868
cd %{_python_build_loc}/python-awips
6969

70-
## Apply patch
71-
patch dynamicserialize/ThriftSerializationContext.py rpm/patch.diff
72-
cat dynamicserialize/ThriftSerializationContext.py |grep long
73-
7470
pushd . > /dev/null
7571
/awips2/python/bin/python setup.py clean
7672
RC=$?

0 commit comments

Comments
 (0)