mirror of
https://abf.rosa.ru/djam/hugo.git
synced 2025-02-23 17:52:50 +00:00
37 lines
800 B
RPMSpec
37 lines
800 B
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: hugo
|
|
Version: 0.136.4
|
|
Release: 1
|
|
Summary: A framework for building websites
|
|
URL: https://gohugo.io
|
|
Source0: https://github.com/gohugoio/hugo/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: MIT
|
|
Group: Development/Other
|
|
BuildRequires: go
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
|
|
%description
|
|
A fast and flexible static site generator built with love by
|
|
bep, spf13, and friends in Go.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
|
#CGO_ENABLED=1 go build -ldflags '-s -w' -o ./bin/%{name} .
|
|
CGO_ENABLED=1 go build -ldflags '-s -w' -tags extended -o ./bin/%{name} .
|
|
|
|
|
|
upx bin/%{name}
|
|
|
|
%install
|
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
%files
|
|
%doc README.md LICENSE
|
|
%{_bindir}/%{name}
|
|
|