|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
Name : hugo |
|
|
|
|
Version : 0.48 |
|
|
|
|
Version : 0.49.2 |
|
|
|
|
Release : 1%{?dist} |
|
|
|
|
Summary : The world’s fastest framework for building websites. |
|
|
|
|
Group : System/Web |
|
|
|
@ -15,19 +15,28 @@ Requires : git
@@ -15,19 +15,28 @@ Requires : git
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -T -q -c %{name}-%{version} |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
go get -u github.com/gohugoio/hugo |
|
|
|
|
mkdir go |
|
|
|
|
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 |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
cd src/github.com/gohugoio/hugo |
|
|
|
|
export GOPATH=`pwd`/go |
|
|
|
|
cd src/hugo |
|
|
|
|
git checkout tags/v%{version} |
|
|
|
|
go build -ldflags '-extldflags -s -w' |
|
|
|
|
#go install -ldflags '-extldflags -s -w' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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 |
|
|
|
|