Browse Source

new upstream release 0.49.2

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
2c3e51c4b8
  1. 21
      SPECS/hugo.spec

21
SPECS/hugo.spec

@ -1,5 +1,5 @@
Name : hugo Name : hugo
Version : 0.48 Version : 0.49.2
Release : 1%{?dist} Release : 1%{?dist}
Summary : The world’s fastest framework for building websites. Summary : The world’s fastest framework for building websites.
Group : System/Web Group : System/Web
@ -15,19 +15,28 @@ Requires : git


%prep %prep
%setup -T -q -c %{name}-%{version} %setup -T -q -c %{name}-%{version}
export GOPATH=`pwd` mkdir go
go get -u github.com/gohugoio/hugo export GOPATH=`pwd`/go
export GO111MODULE=on
mkdir src
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
go mod download




%build %build
export GOPATH=`pwd` export GOPATH=`pwd`/go
cd src/github.com/gohugoio/hugo cd src/hugo
git checkout tags/v%{version} git checkout tags/v%{version}
go build -ldflags '-extldflags -s -w' go build -ldflags '-extldflags -s -w'
#go install -ldflags '-extldflags -s -w'




%install %install
install -p -D -m 0555 src/github.com/gohugoio/hugo/hugo %{buildroot}%{_bindir}/hugo install -p -D -m 0555 src/hugo/hugo %{buildroot}%{_bindir}/hugo




%files %files

Loading…
Cancel
Save