diff --git a/hamlib.spec b/hamlib.spec index 07a99ba..a3c3322 100644 --- a/hamlib.spec +++ b/hamlib.spec @@ -21,10 +21,10 @@ Summary: Run-time library to control radio transceivers and receivers License: GPLv2+ and LGPLv2+ URL: http://www.hamlib.org -%if %{githash} -Source0: https://github.com/Hamlib/Hamlib/archive/%{githash}/%{name}-%{version}%{rel_string}.tar.gz -%else +%if "%{githash}" == "0" Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +%else +Source0: https://github.com/Hamlib/Hamlib/archive/%{githash}/%{name}-%{shorthash}.tar.gz %endif Patch0: hamlib-4.0-perl_install.patch