From d76bfb1dfa8b052efbf1f619c39649eae8b70427 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Feb 27 2018 18:01:14 +0000 Subject: Fix the Github download path --- diff --git a/go-srpm-macros.spec b/go-srpm-macros.spec index ae50eaf..0d736d9 100644 --- a/go-srpm-macros.spec +++ b/go-srpm-macros.spec @@ -1,6 +1,6 @@ Name: go-srpm-macros Version: 2 -Release: 13%{?dist} +Release: 14%{?dist} Summary: RPM macros for building Golang packages for various architectures Group: Development/Libraries License: GPLv3+ @@ -27,6 +27,9 @@ install -m 644 -D %{SOURCE0} \ %{_rpmconfigdir}/macros.d/macros.go-srpm %changelog +* Tue Feb 27 2018 Robert-André Mauchin - 2-14 +- Fix the Github download path + * Fri Feb 23 2018 Jan Chaloupka - 2-13 - Update only the macros.go-srpm file, the upstream tarball can not be found diff --git a/macros.go-srpm b/macros.go-srpm index ef60f37..4662f11 100644 --- a/macros.go-srpm +++ b/macros.go-srpm @@ -100,7 +100,7 @@ if string.starts(provider_prefix, "github.com") then index = 0 for part in string.gmatch(provider_prefix, "[^/]+") do if index == 2 then - safeset("gosource", "https://%{provider_prefix}/%{commit}/" .. part .. "-" .. rpm.expand("%{shortcommit}") .. ".tar.gz") + safeset("gosource", "https://%{provider_prefix}/archive/%{commit}/" .. part .. "-" .. rpm.expand("%{shortcommit}") .. ".tar.gz") safeset("gosetup", "%setup -q -n " .. part .. "-%{commit}") end index = index + 1