From 57e58d397d6ce7f764ebbab253d81e0ac62f65ec Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sun, 9 Oct 2022 18:04:53 +0200 Subject: [PATCH] update prep section to avoid mod duplication Signed-off-by: Toshaan Bharvani --- SPECS/hugo.spec | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SPECS/hugo.spec b/SPECS/hugo.spec index 34b1d06..f4286d4 100644 --- a/SPECS/hugo.spec +++ b/SPECS/hugo.spec @@ -25,11 +25,6 @@ cd src git clone https://github.com/gohugoio/hugo.git cd hugo git checkout tags/v%{version} -#go get -u -v github.com/gohugoio/hugo -sed 's|h1:NCWpmDDNjHNsrei6VmnYXzOiyZUxV8LVU19REGQ8dKA=|h1:CRDpKE90NuksNOWe7qjq1JHh7yonOht8f7rzAJQSDhc=|' -i go.sum -sed 's|h1:JFNqj2afbbhCqTiyN16D7Tudc/aaDzE2FBDk+VlBQnE=|h1:TA3qh4Cq1VOjh4AJnMHrUFbAsIbD7OnOvpaIRYsU0sI=|' -i go.sum -sed 's|h1:KG+mPzRdPs7eklbZ7KsIikzwvd4wcyA9vv2MniUrFQ8=|h1:o/A5/1yxndTbcU6+eNQ3bJs7TL0xuNoI0MiLZvmE5Jg=|' -i go.sum -go mod download %build @@ -50,8 +45,8 @@ unset CGO_ENABLED %endif %install -install -p -D -m 0555 src/hugo/hugo %{buildroot}%{_bindir}/hugo -install -p -D -m 0555 src/hugo/hugo-extended %{buildroot}%{_bindir}/hugo-extended +install -p -D -m 0755 src/hugo/hugo %{buildroot}%{_bindir}/hugo +install -p -D -m 0755 src/hugo/hugo-extended %{buildroot}%{_bindir}/hugo-extended %files