You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
636 B
39 lines
636 B
6 years ago
|
Name : hugo
|
||
|
Version : 0.48
|
||
|
Release : 1%{?dist}
|
||
|
Summary : The world’s 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
|