diff --git a/hamlib.spec b/hamlib.spec index bddae06..07a99ba 100644 --- a/hamlib.spec +++ b/hamlib.spec @@ -8,7 +8,7 @@ %global swigver swig3 %endif -#global githash 18e9d56b4745097be56ac3899e4237afbf3f1736 +%global githash 0 %global shorthash %(c=%{githash}; echo ${c:0:10}) %global rel_date 20201223 %global rel_string .%{rel_date}git%{shorthash} @@ -21,7 +21,7 @@ Summary: Run-time library to control radio transceivers and receivers License: GPLv2+ and LGPLv2+ URL: http://www.hamlib.org -%if 0%{?githash:1} +%if %{githash} Source0: https://github.com/Hamlib/Hamlib/archive/%{githash}/%{name}-%{version}%{rel_string}.tar.gz %else Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz @@ -124,7 +124,7 @@ Hamlib TCL Language bindings to allow radio control from TCL scripts. %prep -%autosetup -p1 %{?githash:-n Hamlib-%{githash}} +%autosetup -p1 %{githash:-n Hamlib-%{githash}} %build