hugo upstream version update

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 2018-08-31 12:06:50 +02:00
parent 1cdffed4f5
commit d3fd50adc0
1 changed files with 38 additions and 0 deletions

38
SPECS/hugo.spec Normal file
View File

@ -0,0 +1,38 @@
Name : hugo
Version : 0.48
Release : 1%{?dist}
Summary : The worlds fastest framework for building websites.
Group : System/Web
License : Apache License
URL : https://gohugo.io/
#Source0 :
BuildRequires : golang
BuildRequires : git
Requires : git

%description


%prep
%setup -T -q -c %{name}-%{version}
export GOPATH=`pwd`
go get -u github.com/gohugoio/hugo


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


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


%files
%doc
%{_bindir}/hugo


%changelog