2024-07-15 17:28:53 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: hugo
|
2024-11-06 14:41:13 +00:00
|
|
|
Version: 0.138.0
|
2024-07-15 17:28:53 +03:00
|
|
|
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
|
2024-11-04 19:24:57 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2024-07-15 17:28:53 +03:00
|
|
|
|
|
|
|
%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
|
2024-10-22 13:22:35 +00:00
|
|
|
#CGO_ENABLED=1 go build -ldflags '-s -w' -o ./bin/%{name} .
|
|
|
|
CGO_ENABLED=1 go build -ldflags '-s -w' -tags extended -o ./bin/%{name} .
|
|
|
|
|
2024-07-15 17:28:53 +03:00
|
|
|
|
|
|
|
upx bin/%{name}
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|