public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hugo] epel9: Update to latest version.
Date: Fri, 06 Nov 2026 05:41:00 GMT [thread overview]
Message-ID: <179394366000.1.1643229849000306786.rpms-hugo-b3589d059f48@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hugo
Branch : epel9
Commit : b3589d059f48e3571c98708b37c72dc65e6b5713
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date : 2019-03-04T18:07:52-05:00
Stats : +127/-71 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/hugo/c/b3589d059f48e3571c98708b37c72dc65e6b5713?branch=epel9
Log:
Update to latest version.
---
diff --git a/.gitignore b/.gitignore
index 1a9402f..3b00a76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/hugo-0.37.tar.gz
/hugo-0.37.1.tar.gz
/hugo-0.38.tar.gz
+/hugo-0.54.0.tar.gz
diff --git a/0001-Fix-tests-against-latest-emoji-package.patch b/0001-Fix-tests-against-latest-emoji-package.patch
index 2c51e95..3d70f6a 100644
--- a/0001-Fix-tests-against-latest-emoji-package.patch
+++ b/0001-Fix-tests-against-latest-emoji-package.patch
@@ -1,4 +1,4 @@
-From 8f25792a159f13f11e742d255df589f7e8b18d24 Mon Sep 17 00:00:00 2001
+From a66029c8d92210dec8272f9d89964b9f5c322f9a Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Fri, 1 Mar 2019 18:47:19 -0500
Subject: [PATCH] Fix tests against latest emoji package.
@@ -11,10 +11,10 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/data/docs.json b/docs/data/docs.json
-index 6400900a..1c0b94e7 100644
+index 5b1388fe..c7687e45 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
-@@ -3475,7 +3475,7 @@
+@@ -3866,7 +3866,7 @@
"Examples": [
[
"{{ \"I :heart: Hugo\" | emojify }}",
@@ -24,7 +24,7 @@ index 6400900a..1c0b94e7 100644
]
},
diff --git a/tpl/transform/init.go b/tpl/transform/init.go
-index 86951c25..898d3ea9 100644
+index 62cb0a9c..2783a513 100644
--- a/tpl/transform/init.go
+++ b/tpl/transform/init.go
@@ -32,7 +32,7 @@ func init() {
@@ -37,7 +37,7 @@ index 86951c25..898d3ea9 100644
)
diff --git a/tpl/transform/transform_test.go b/tpl/transform/transform_test.go
-index ab3beb80..ee5da725 100644
+index a09ec6fb..6db2272d 100644
--- a/tpl/transform/transform_test.go
+++ b/tpl/transform/transform_test.go
@@ -41,7 +41,7 @@ func TestEmojify(t *testing.T) {
diff --git a/5285.patch b/5285.patch
deleted file mode 100644
index 7d32e45..0000000
--- a/5285.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From b137ad4dbd6d14d0a9af68c044aaee61f2c87fe5 Mon Sep 17 00:00:00 2001
-From: Shreyansh Khajanchi <shreyansh_k@live.com>
-Date: Wed, 3 Oct 2018 19:45:54 +0530
-Subject: [PATCH] helpers/content.go: call rst2html directly on *nix but via
- python on windows
-
-Initially, rst2html was called via the python interpreter which would
-fail if the script was wrapped in a launcher as on NixOS.
-Ideally, on *nix, binaries should be invoked directly to ensure that
-shebangs work properly as is being done now.
-Handle the case of windows as it doesn't do shebangs.
----
- helpers/content.go | 17 ++++++++++++++---
- 1 file changed, 14 insertions(+), 3 deletions(-)
-
-diff --git a/helpers/content.go b/helpers/content.go
-index 55d8ce202..f8479cd1b 100644
---- a/helpers/content.go
-+++ b/helpers/content.go
-@@ -22,6 +22,7 @@ import (
- "fmt"
- "html/template"
- "os/exec"
-+ "runtime"
- "unicode"
- "unicode/utf8"
-
-@@ -678,7 +679,6 @@ func getPythonExecPath() string {
- // getRstContent calls the Python script rst2html as an external helper
- // to convert reStructuredText content to HTML.
- func getRstContent(ctx *RenderingContext) []byte {
-- python := getPythonExecPath()
- path := getRstExecPath()
-
- if path == "" {
-@@ -688,8 +688,19 @@ func getRstContent(ctx *RenderingContext) []byte {
-
- }
- jww.INFO.Println("Rendering", ctx.DocumentName, "with", path, "...")
-- args := []string{path, "--leave-comments", "--initial-header-level=2"}
-- result := externallyRenderContent(ctx, python, args)
-+ var result []byte
-+ // certain *nix based OSs wrap executables in scripted launchers
-+ // invoking binaries on these OSs via python interpreter causes SyntaxError
-+ // invoke directly so that shebangs work as expected
-+ // handle Windows manually because it doesn't do shebangs
-+ if runtime.GOOS == "windows" {
-+ python := getPythonExecPath()
-+ args := []string{path, "--leave-comments", "--initial-header-level=2"}
-+ result = externallyRenderContent(ctx, python, args)
-+ } else {
-+ args := []string{"--leave-comments", "--initial-header-level=2"}
-+ result = externallyRenderContent(ctx, path, args)
-+ }
- // TODO(bep) check if rst2html has a body only option.
- bodyStart := bytes.Index(result, []byte("<body>\n"))
- if bodyStart < 0 {
diff --git a/5670.patch b/5670.patch
new file mode 100644
index 0000000..50c5294
--- /dev/null
+++ b/5670.patch
@@ -0,0 +1,61 @@
+From a9ccc9df05b2d5b0f6e1f0b45adeacc27eeb4930 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?=
+ <bjorn.erik.pedersen@gmail.com>
+Date: Sat, 2 Feb 2019 12:04:42 +0100
+Subject: [PATCH] commands: Update debouncer version
+
+---
+ commands/commandeer.go | 2 +-
+ go.mod | 2 +-
+ go.sum | 5 ++---
+ 3 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/commands/commandeer.go b/commands/commandeer.go
+index 75d69b251..3939d3bd0 100644
+--- a/commands/commandeer.go
++++ b/commands/commandeer.go
+@@ -143,7 +143,7 @@ func newCommandeer(mustHaveConfigFile, running bool, h *hugoBuilderCommon, f fla
+ // The time value used is tested with mass content replacements in a fairly big Hugo site.
+ // It is better to wait for some seconds in those cases rather than get flooded
+ // with rebuilds.
+- rebuildDebouncer, _, _ = debounce.New(4 * time.Second)
++ rebuildDebouncer = debounce.New(4 * time.Second)
+ }
+
+ c := &commandeer{
+diff --git a/go.mod b/go.mod
+index d60deb020..ce5a4e04a 100644
+--- a/go.mod
++++ b/go.mod
+@@ -8,7 +8,7 @@ require (
+ github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38
+ github.com/alecthomas/chroma v0.6.2
+ github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 // indirect
+- github.com/bep/debounce v1.1.0
++ github.com/bep/debounce v1.2.0
+ github.com/bep/gitmap v1.0.0
+ github.com/bep/go-tocss v0.6.0
+ github.com/chaseadamsio/goorgeous v1.1.0
+diff --git a/go.sum b/go.sum
+index a692cf7f5..e2cf53c75 100644
+--- a/go.sum
++++ b/go.sum
+@@ -18,8 +18,8 @@ github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1p
+ github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 h1:GDQdwm/gAcJcLAKQQZGOJ4knlw+7rfEQQcmwTbt4p5E=
+ github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ=
+ github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
+-github.com/bep/debounce v1.1.0 h1:6ocXeW2iZ/7vAzgXz82J00tYxncMiEEBExPftTtOQzk=
+-github.com/bep/debounce v1.1.0/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0=
++github.com/bep/debounce v1.2.0 h1:wXds8Kq8qRfwAOpAxHrJDbCXgC5aHSzgQb/0gKsHQqo=
++github.com/bep/debounce v1.2.0/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0=
+ github.com/bep/gitmap v1.0.0 h1:cTTZwq7vpGuhwefKCBDV9UrHnZAPVJTvoWobimrqkUc=
+ github.com/bep/gitmap v1.0.0/go.mod h1:g9VRETxFUXNWzMiuxOwcudo6DfZkW9jOsOW0Ft4kYaY=
+ github.com/bep/go-tocss v0.6.0 h1:lJf+nIjsQDpifUr+NgHi9QMBnrr9cFvMvEBT+uV9Q9E=
+@@ -75,7 +75,6 @@ github.com/magefile/mage v1.4.0 h1:RI7B1CgnPAuu2O9lWszwya61RLmfL0KCdo+QyyI/Bhk=
+ github.com/magefile/mage v1.4.0/go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA=
+ github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY=
+ github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
+-github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6 h1:LZhVjIISSbj8qLf2qDPP0D8z0uvOWAW5C85ly5mJW6c=
+ github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6/go.mod h1:oTeZL2KHA7CUX6X+fovmK9OvIOFuqu0TwdQrZjLTh88=
+ github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs=
+ github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
diff --git a/b4148cd1d9ea889b81070d3e84a37bd5d23e5746.patch b/b4148cd1d9ea889b81070d3e84a37bd5d23e5746.patch
new file mode 100644
index 0000000..56843b0
--- /dev/null
+++ b/b4148cd1d9ea889b81070d3e84a37bd5d23e5746.patch
@@ -0,0 +1,27 @@
+commit b4148cd1d9ea889b81070d3e84a37bd5d23e5746
+Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
+Date: Tue Feb 19 21:47:03 2019 +0100
+
+ hugolib: Adjust test for Go 1.12
+
+diff --git a/hugolib/hugo_sites_build_errors_test.go b/hugolib/hugo_sites_build_errors_test.go
+index fce6ec91..dd80946e 100644
+--- a/hugolib/hugo_sites_build_errors_test.go
++++ b/hugolib/hugo_sites_build_errors_test.go
+@@ -3,6 +3,7 @@ package hugolib
+ import (
+ "fmt"
+ "path/filepath"
++ "regexp"
+ "runtime"
+ "strings"
+ "testing"
+@@ -211,7 +212,7 @@ func TestSiteBuildErrors(t *testing.T) {
+ assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
+ assert.Error(err)
+ // This is fixed in latest Go source
+- if strings.Contains(runtime.Version(), "devel") {
++ if regexp.MustCompile("devel|12").MatchString(runtime.Version()) {
+ fe := a.getFileError(err)
+ assert.Equal(5, fe.Position().LineNumber)
+ assert.Equal(21, fe.Position().ColumnNumber)
diff --git a/hugo.spec b/hugo.spec
index 9e6d841..53d10dd 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -1,21 +1,23 @@
# https://github.com/gohugoio/hugo
%global goipath github.com/gohugoio/hugo
-Version: 0.38
+Version: 0.54.0
%gometa
Name: hugo
-Release: 4%{?dist}
+Release: 1%{?dist}
Summary: A Fast and Flexible Static Site Generator built with love in GoLang
License: ASL 2.0 and MIT
URL: %{gourl}
Source0: %{gosource}
-# Call rst2html directly instead of via 'python'.
-Patch0001: https://github.com/gohugoio/hugo/pull/5285.patch
+# Fix build with golang-github-bep-debounce 1.2.0
+Patch0001: https://github.com/gohugoio/hugo/pull/5670.patch
%if %{?fedora} > 29
# Fix build against golang-github-kyokomi-emoji 2.1
Patch0002: 0001-Fix-tests-against-latest-emoji-package.patch
%endif
+# Adjust test for Go 1.12
+Patch0003: b4148cd1d9ea889b81070d3e84a37bd5d23e5746.patch
%description
Hugo is a static HTML and CSS website generator written in Go. It is optimized
@@ -27,6 +29,7 @@ and templates and renders them into a full HTML website.
Summary: %{summary}
BuildArch: noarch
+BuildRequires: golang(github.com/BurntSushi/locker)
BuildRequires: golang(github.com/BurntSushi/toml)
BuildRequires: golang(github.com/PuerkitoBio/purell)
BuildRequires: golang(github.com/alecthomas/chroma)
@@ -34,7 +37,11 @@ BuildRequires: golang(github.com/alecthomas/chroma/formatters)
BuildRequires: golang(github.com/alecthomas/chroma/formatters/html)
BuildRequires: golang(github.com/alecthomas/chroma/lexers)
BuildRequires: golang(github.com/alecthomas/chroma/styles)
+BuildRequires: golang(github.com/bep/debounce)
BuildRequires: golang(github.com/bep/gitmap)
+BuildRequires: golang(github.com/bep/go-tocss/scss)
+BuildRequires: golang(github.com/bep/go-tocss/scss/libsass)
+BuildRequires: golang(github.com/bep/go-tocss/tocss)
BuildRequires: golang(github.com/chaseadamsio/goorgeous)
BuildRequires: golang(github.com/disintegration/imaging)
BuildRequires: golang(github.com/eknkc/amber)
@@ -45,12 +52,15 @@ BuildRequires: golang(github.com/hashicorp/go-immutable-radix)
BuildRequires: golang(github.com/jdkato/prose/transform)
BuildRequires: golang(github.com/kyokomi/emoji)
BuildRequires: golang(github.com/markbates/inflect)
+BuildRequires: golang(github.com/mattn/go-isatty)
BuildRequires: golang(github.com/miekg/mmark)
+BuildRequires: golang(github.com/mitchellh/hashstructure)
BuildRequires: golang(github.com/mitchellh/mapstructure)
BuildRequires: golang(github.com/muesli/smartcrop)
BuildRequires: golang(github.com/nicksnyder/go-i18n/i18n/bundle)
BuildRequires: golang(github.com/nicksnyder/go-i18n/i18n/language)
BuildRequires: golang(github.com/olekukonko/tablewriter)
+BuildRequires: golang(github.com/pkg/errors)
BuildRequires: golang(gopkg.in/russross/blackfriday.v1)
BuildRequires: golang(github.com/spf13/afero)
BuildRequires: golang(github.com/spf13/cast)
@@ -61,15 +71,22 @@ BuildRequires: golang(github.com/spf13/jwalterweatherman)
BuildRequires: golang(github.com/spf13/nitro)
BuildRequires: golang(github.com/spf13/pflag)
BuildRequires: golang(github.com/spf13/viper)
+BuildRequires: golang(github.com/tdewolff/minify)
+BuildRequires: golang(github.com/tdewolff/minify/css)
+BuildRequires: golang(github.com/tdewolff/minify/html)
+BuildRequires: golang(github.com/tdewolff/minify/js)
+BuildRequires: golang(github.com/tdewolff/minify/json)
+BuildRequires: golang(github.com/tdewolff/minify/svg)
+BuildRequires: golang(github.com/tdewolff/minify/xml)
BuildRequires: golang(github.com/yosssi/ace)
BuildRequires: golang(golang.org/x/image/webp)
-BuildRequires: golang(golang.org/x/net/context)
BuildRequires: golang(golang.org/x/sync/errgroup)
BuildRequires: golang(golang.org/x/text/transform)
BuildRequires: golang(golang.org/x/text/unicode/norm)
BuildRequires: golang(gopkg.in/yaml.v2)
# These are used during tests
+BuildRequires: golang(github.com/alecthomas/assert)
BuildRequires: golang(github.com/fortytw2/leaktest)
BuildRequires: golang(github.com/sanity-io/litter)
BuildRequires: golang(github.com/stretchr/testify/assert)
@@ -89,7 +106,11 @@ which use import path with %{goipath} prefix.
%forgeautosetup -p1
# Replace blackfriday import path to avoid conflict with v2
-sed -i 's|"github.com/russross/blackfriday|"gopkg.in/russross/blackfriday.v1|' $(find . -name '*.go')
+# Depend on unversioned tdewolff/minify until Go modules are supported in Fedora
+sed -i \
+ -e 's|"github.com/russross/blackfriday|"gopkg.in/russross/blackfriday.v1|' \
+ -e 's|"github.com/tdewolff/minify/v2|"github.com/tdewolff/minify|' \
+ $(find . -name '*.go')
# Skip test that assumes directory is in a git repository
sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
@@ -116,16 +137,19 @@ install -p -m 0755 _bin/hugo %{buildroot}%{_bindir}
%files
-%license LICENSE.md
%doc CONTRIBUTING.md README.md
+%license LICENSE
%{_bindir}/hugo
%files -n %{goname}-devel -f devel.file-list
-%license LICENSE.md
%doc CONTRIBUTING.md README.md
+%license LICENSE
%changelog
+* Mon Mar 04 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.54.0-1
+- Update to latest version
+
* Thu Feb 28 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.38-4
- Fix FTBFS (#1675118)
diff --git a/sources b/sources
index 0e10538..8f2a0b1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (hugo-0.38.tar.gz) = 5b6c089e8c04dc610b02c17fed8c68b4fb87c6af5c78f48604e6a46c380f834793651c3cc94da83233fd521225c5ed4c7c7ea35124fea322157d9e5de9217a40
+SHA512 (hugo-0.54.0.tar.gz) = 904b9ae9e3db91195e9e768faca8867d6534d20f64b19dec4d1788ca5f19863e9fac284821855ffef9bee6280d77cc72816c42b6e28b5f3a4f45d12daf6b9d0d
next reply other threads:[~2026-11-06 5:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 5:41 Elliott Sales de Andrade [this message]
2026-11-06 5:41 [rpms/hugo] epel9: Update to latest version Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
2026-11-06 5:41 Elliott Sales de Andrade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179394366000.1.1643229849000306786.rpms-hugo-b3589d059f48@fedoraproject.org \
--to=quantum.analyst@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox