public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] epel9: Update to 0.147.7 and use vendor versioning
@ 2026-11-06  5:42 W. Michael Petullo
  0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2026-11-06  5:42 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : epel9
            Commit : 45b98a7d4c44f4fff819968d4664fb6ff0227383
            Author : W. Michael Petullo <mike@flyn.org>
            Date   : 2025-06-04T12:31:43-05:00
            Stats  : +241/-93 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/45b98a7d4c44f4fff819968d4664fb6ff0227383?branch=epel9

            Log:
            Update to 0.147.7 and use vendor versioning

This update fixes:

	- https://bugzilla.redhat.com/show_bug.cgi?id=2333122
	- https://bugzilla.redhat.com/show_bug.cgi?id=2331275
	- https://bugzilla.redhat.com/show_bug.cgi?id=2351766
	- https://bugzilla.redhat.com/show_bug.cgi?id=2354195
	- https://bugzilla.redhat.com/show_bug.cgi?id=2360404
	- https://bugzilla.redhat.com/show_bug.cgi?id=2276799
	- https://bugzilla.redhat.com/show_bug.cgi?id=2331275

Signed-off-by: W. Michael Petullo <mike@flyn.org>

---
diff --git a/.gitignore b/.gitignore
index 2dcda45..c8ae2aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,7 @@
 /hugo-0.126.2.tar.gz
 /hugo-0.140.2.tar.gz
 /hugo-0.142.0.tar.gz
+/hugo-0.147.7.tar.gz
+/hugo-0.147.7-vendor.tar.bz2
+/libsass-3.6.6.tar.gz
+/libwebp-1.3.2.tar.gz

diff --git a/LICENSE-testmodBuilder b/LICENSE-testmodBuilder
new file mode 100644
index 0000000..5786f9a
--- /dev/null
+++ b/LICENSE-testmodBuilder
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 The Hugo Authors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
new file mode 100644
index 0000000..1b5b106
--- /dev/null
+++ b/go-vendor-tools.toml
@@ -0,0 +1,36 @@
+[archive]
+
+[[licensing.licenses]]
+path = "docs/LICENSE.md"
+sha256sum = "60619c2bcd9ee1b479943ae5504fed8f55ee63a1abb7c0dc76f96cca4fc019b7"
+expression = "Apache-2.0"
+
+[[licensing.licenses]]
+path = "vendor/github.com/ghodss/yaml/LICENSE"
+sha256sum = "24653fd8a39354396da1a265d68316399edc39b1df48c5866d55f9f06484fa9a"
+expression = "MIT"
+
+[[licensing.licenses]]
+path = "vendor/github.com/oasdiff/yaml/LICENSE"
+sha256sum = "24653fd8a39354396da1a265d68316399edc39b1df48c5866d55f9f06484fa9a"
+expression = "MIT"
+
+[[licensing.licenses]]
+path = "vendor/github.com/oasdiff/yaml3/LICENSE"
+sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
+expression = "Apache-2.0 AND MIT"
+
+[[licensing.licenses]]
+path = "vendor/gopkg.in/yaml.v3/LICENSE"
+sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
+expression = "Apache-2.0 AND MIT"
+
+[[licensing.licenses]]
+path = "vendor/howett.net/plist/LICENSE"
+sha256sum = "20d9b7d9372369484ecadae229d3e3efee8029b259e11c9a1b07d2e0a3c82e39"
+expression = "BSD-2-Clause AND BSD-3-Clause"
+
+[[licensing.licenses]]
+path = "vendor/github.com/gohugoio/testmodBuilder/mods/LICENSE"
+sha256sum = "8ee2a79320c471c7e63a2c1448dc9a737a73eea9d70435a44450bc563eebc2ce"
+expression = "MIT"

diff --git a/hugo.spec b/hugo.spec
index f1cdb7e..0abcd53 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -1,141 +1,225 @@
-%bcond_without check
-# Some tests use a package that uses this.
-%bcond_with bootstrap
-
-# The output from a standard Hugo package build can be overwhelming when
-# trying to diagnose package build errors. A less verbose follow up
-# is:
-#
-# 1. Run "rpmbuild -ba hugo.spec >/tmp/LOG 2>&1" to capture all of
-# the output.
-#
-# 2. Look for the command "go build ..." in that output.
-#
-# 3. Enter the BUILD/hugo-VERSION directory.
-#
-# 4. Export the two variables set before "go build ...".
-#
-# 5. Run the "go build ..." command, but without the "-v" and "-x".
+# Generated by go2rpm 1.16.0
+%bcond check 1
+%global debug_package %{nil}
+
+# To update:
+# 1. Update the version in this file.
+# 2. Retrieve new source archive:
+#    spectool -g hugo.spec.
+# 3. Generate the vendor archive:
+#    go_vendor_archive create --config go-vendor-tools.toml hugo.spec
 
 # https://github.com/gohugoio/hugo
-%global goipath github.com/gohugoio/hugo
-Version:        0.142.0
+%global goipath         github.com/gohugoio/hugo
+Version:                0.147.7
 
-%gometa -f
+%gometa -L -f
 
 %global common_description %{expand:
-Hugo is a static HTML and CSS website generator written in Go. It is optimized
-for speed, easy use and configurability. Hugo takes a directory with content
-and templates and renders them into a full HTML website.}
-
-%global golicenses      LICENSE docs/LICENSE.md docs/themes/gohugoioTheme/license.md
-%global godocs          docs examples README.md CONTRIBUTING.md
+The world’s fastest framework for building websites.}
 
 Name:           hugo
 Release:        %autorelease
 Summary:        The world’s fastest framework for building websites
 
-# Upstream license specification: Apache-2.0 and MIT
-License:        Apache-2.0 AND MIT
+# Generated by go-vendor-tools:
+License:        Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unlicense
 URL:            %{gourl}
 Source0:        %{gosource}
+# Generated by go-vendor-tools:
+Source1:        %{archivename}-vendor.tar.bz2
+Source2:        go-vendor-tools.toml
+# Manually added missing license file:
+Source3:        LICENSE-testmodBuilder
+# Needed for vendor/gowebp; go-vendor-tools does not grab C code from Go repositories:
+Source4:        libwebp-1.3.2.tar.gz
+# Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories:
+Source5:        libsass-3.6.6.tar.gz
 # Skip tests that uses the network.
 # Based on https://sources.debian.org/data/main/h/hugo/0.58.3-1/debian/patches/0005-skip-modules-TestClient.patch
 Patch0001:      0010-skip-modules-TestClient.patch
 
-BuildRequires:  golang(github.com/bep/golibsass/libsass) >= 0.7.0
-BuildRequires:  golang-github-gohugoio-hugo-goldmark-extensions-devel
-
-# This is in response to Red Hat Bugzilla #2104346. The full dependencies
-# for Hugo are large, including GCC and the Go toolchain. For example,
-# "hugo server" will not work without these. It might be beneficial to avoid
-# such large dependencies in some instances---such as CI pipelines---that
-# do not require "hugo server". Thus golang-bin is a weak dependency.
-#
-# Also see the discussion at https://src.fedoraproject.org/rpms/hugo/pull-request/13.
-Recommends:     golang-bin
-
-%description
-%{common_description}
+BuildRequires:  go-vendor-tools
+BuildRequires:  gcc-c++
 
-%gopkg
+%description %{common_description}
 
 %prep
-%goprep
-
-# See https://github.com/gohugoio/hugo/issues/9860
-sed -i 's|github.com/clbanning/mxj/v2|github.com/clbanning/mxj|' $(find . -iname '*.go' -type f)
-
-# See https://github.com/gohugoio/hugo/issues/9860
-# and https://github.com/nicksnyder/go-i18n/pull/253
-# and https://bugzilla.redhat.com/show_bug.cgi?id=2031583
-sed -i 's|github.com/gohugoio/go-i18n/v2|github.com/nicksnyder/go-i18n/v2|' $(find . -iname '*.go' -type f)
-
+%goprep -A
+%setup -q -T -D -a1 %{forgesetupargs}
 %autopatch -p1
 
-# Replace blackfriday import path to avoid conflict with v2
-sed -i \
-    -e 's|"github.com/russross/blackfriday|"gopkg.in/russross/blackfriday.v1|' \
-    $(find . -name '*.go')
+# Fix goipath:
+sed -i 's|invopop/yaml|oasdiff/yaml|g' $(find . -iname '*.go' -type f)
 
-# Skip test that assumes directory is in a git repository
-sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
+# LICENSE file not in version of repository pulled in by Hugo:
+cp %SOURCE3 vendor/github.com/gohugoio/testmodBuilder/mods/LICENSE
 
-%if %{with bootstrap}
-# Delete test using github.com/gohugoio/testmodBuilder/mods which has a
-# dependency loop.
-rm hugolib/hugo_modules_test.go
-%endif
+# Needed for vendor/gowebp; go-vendor-tools does not grab C code from Go repositories:
+mkdir vendor/github.com/bep/gowebp/libwebp_src
+tar xvf %SOURCE4 -C vendor/github.com/bep/gowebp/libwebp_src
+
+# Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories:
+mkdir vendor/github.com/bep/golibsass/libsass_src
+tar xvf %SOURCE5 -C vendor/github.com/bep/golibsass/libsass_src --strip-components=1
 
 %generate_buildrequires
-%go_generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
 
 %build
+# Allow github.com/tetratelabs/wazero to build:
+%global __golang_extldflags -Wl,-z,undefs
+
+# Build extended version of Hugo.
 BUILDTAGS="extended" LDFLAGS="${LDFLAGS} -X %{goipath}/common/hugo.buildDate=$(date --iso=seconds --date=@$SOURCE_DATE_EPOCH) -X %{goipath}/common/hugo.vendorInfo=Fedora:%{version}-%{release}" %gobuild -o %{gobuilddir}/bin/hugo %{goipath}
-%{gobuilddir}/bin/hugo completion bash >hugo-completion
-%{gobuilddir}/bin/hugo gen man
 
-%install
-%gopkginstall
+# Generated by go2rpm, but deactivated here.
+# for cmd in livereload/gen markup/goldmark scripts/fork_go_templates; do
+#   %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
+# done
 
-install -d -p %{buildroot}%{_bindir}
-install -Dp -m 0755 %{gobuilddir}/bin/hugo %{buildroot}%{_bindir}
-install -Dp hugo-completion %{buildroot}%{_datadir}/bash-completion/completions/hugo
-install -Dp man/* -t %{buildroot}%{_mandir}/man1
+%install
+%go_vendor_license_install -c %{S:2}
+install -m 0755 -vd                     %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 
-%if %{with check}
 %check
+%go_vendor_license_check -c %{S:2}
+%if %{with check}
 
-# .: Extensive test that uses network.
-# cache/dynacache: times out
-# hugolib: panic: runtime error: invalid memory address or nil pointer dereference
-# hugolib/pagesfromdata: panic: runtime error: invalid memory address or nil pointer dereference
-# internal/js/esbuild: binary with name "npm" not found in PATH
-# langs/i18n: fails with current Rawhide
-# resources/resource_factories/bundler: uses networking
-# resources/resource_factories/create: uses networking
-# tpl/tplimpl: uses networking (render-tweet)
+# .: extensive test that uses network.
+# common/hcontext: terminal coloring?
+# common/hstrings: terminal coloring?
+# common/text: terminal coloring?
+# The rest are: relocation target github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.entrypoint not defined
 %gocheck \
 	-d . \
-	-d cache/dynacache \
+	-d common/hcontext \
+	-d common/hstrings \
+	-d common/text \
+	-d cache/filecache \
+	-d cache/httpcache \
+	-d common/herrors \
+	-d common/htime \
+	-d common/hugo \
+	-d common/paths \
+	-d config/allconfig \
+	-d config/testconfig \
+	-d create \
+	-d hugofs/glob \
 	-d hugolib \
+	-d hugolib/filesystems \
 	-d hugolib/pagesfromdata \
+	-d hugolib/segments \
 	-d internal/js/esbuild \
+	-d internal/warpc \
 	-d langs/i18n \
-	-d resources/resource_factories/bundler \
+	-d markup/goldmark \
+	-d markup/goldmark/blockquotes \
+	-d markup/goldmark/codeblocks \
+	-d markup/goldmark/images \
+	-d markup/goldmark/internal/extensions/attributes \
+	-d markup/goldmark/passthrough \
+	-d markup/goldmark/tables \
+	-d markup/highlight \
+	-d markup/tableofcontents \
+	-d related \
+	-d resources \
+	-d resources/images \
+	-d resources/page \
+	-d resources/page/pagemeta \
+	-d resources/resource \
 	-d resources/resource_factories/create \
+	-d resources/resource_transformers/babel \
+	-d resources/resource_transformers/cssjs \
+	-d resources/resource_transformers/integrity \
+	-d resources/resource_transformers/js \
+	-d resources/resource_transformers/minifier \
+	-d resources/resource_transformers/templates \
+	-d resources/resource_transformers/tocss/dartsass \
+	-d resources/resource_transformers/tocss/scss \
+	-d tpl/cast \
+	-d tpl/collections \
+	-d tpl/data \
+	-d tpl/debug \
+	-d tpl/fmt \
+	-d tpl/images \
+	-d tpl/lang \
+	-d tpl/math \
+	-d tpl/openapi/openapi3 \
+	-d tpl/os \
+	-d tpl/page \
+	-d tpl/partials \
+	-d tpl/path \
+	-d tpl/reflect \
+	-d tpl/resources \
+	-d tpl/strings \
+	-d tpl/templates \
+	-d tpl/time \
 	-d tpl/tplimpl \
+	-d tpl/transform \
+	-d tpl/urls \
 
 %endif
 
-%files
-%doc CONTRIBUTING.md README.md docs
-%license LICENSE
+%files -f %{go_vendor_license_filelist}
+%license vendor/modules.txt
+%doc docs CONTRIBUTING.md README.md SECURITY.md
+%doc create/skeletons/theme/content/_index.md
+%doc create/skeletons/theme/content/posts/_index.md
+%doc create/skeletons/theme/content/posts/post-1.md
+%doc create/skeletons/theme/content/posts/post-2.md
+%doc create/skeletons/theme/content/posts/post-3/index.md
+%doc hugolib/testsite/content/first-post.md
+%doc hugolib/testsite/content_nn/first-post.md
+%doc testscripts/commands/commands_errors.txt
+%doc testscripts/commands/completion.txt testscripts/commands/config.txt
+%doc testscripts/commands/config__cachedir.txt testscripts/commands/convert.txt
+%doc testscripts/commands/deprecate.txt testscripts/commands/env.txt
+%doc testscripts/commands/gen.txt testscripts/commands/hugo.txt
+%doc testscripts/commands/hugo__configdir.txt
+%doc testscripts/commands/hugo__errors.txt testscripts/commands/hugo__flags.txt
+%doc testscripts/commands/hugo__noconfig.txt
+%doc testscripts/commands/hugo__path-warnings-postprocess.txt
+%doc testscripts/commands/hugo__path-warnings.txt
+%doc testscripts/commands/hugo__path-warnings_issue13164.txt
+%doc testscripts/commands/hugo__processingstats.txt
+%doc testscripts/commands/hugo__processingstats2.txt
+%doc testscripts/commands/hugo__publishdir_in_config.txt
+%doc testscripts/commands/hugo__static_composite.txt
+%doc testscripts/commands/hugo__watch.txt testscripts/commands/hugo_build.txt
+%doc testscripts/commands/hugo_configdev_env.txt
+%doc testscripts/commands/hugo_configdev_environment.txt
+%doc testscripts/commands/hugo_configprod.txt
+%doc testscripts/commands/hugo_printpathwarnings.txt
+%doc testscripts/commands/hugo_printunusedtemplates.txt
+%doc testscripts/commands/import_jekyll.txt testscripts/commands/list.txt
+%doc testscripts/commands/mod.txt testscripts/commands/mod__disable.txt
+%doc testscripts/commands/mod__themesdir.txt testscripts/commands/mod_get.txt
+%doc testscripts/commands/mod_get_u.txt testscripts/commands/mod_init.txt
+%doc testscripts/commands/mod_npm.txt
+%doc testscripts/commands/mod_npm_withexisting.txt
+%doc testscripts/commands/mod_tidy.txt testscripts/commands/mod_vendor.txt
+%doc testscripts/commands/new.txt testscripts/commands/new_content.txt
+%doc testscripts/commands/new_content_archetypedir.txt
+%doc testscripts/commands/noop.txt testscripts/commands/server.txt
+%doc testscripts/commands/server__edit_config.txt
+%doc testscripts/commands/server__edit_content.txt
+%doc testscripts/commands/server__error_recovery_edit_config.txt
+%doc testscripts/commands/server__error_recovery_edit_content.txt
+%doc testscripts/commands/server__multihost.txt
+%doc testscripts/commands/server__watch_hugo_stats.txt
+%doc testscripts/commands/server__watch_moduleconfig.txt
+%doc testscripts/commands/server_disablelivereload.txt
+%doc testscripts/commands/server_disablelivereload__config.txt
+%doc testscripts/commands/server_render_static_to_disk.txt
+%doc testscripts/commands/server_render_to_memory.txt
+%doc testscripts/commands/version.txt testscripts/commands/warnf_stderr.txt
+%doc testscripts/unfinished/noop.txt testscripts/withdeploy/deploy.txt
+%doc testscripts/withdeploy-off/deploy_off.txt
+%doc tpl/tplimpl/embedded/templates/robots.txt
 %{_bindir}/hugo
-%{_datadir}/bash-completion/completions/hugo
-%{_mandir}/man1/*.1*
 
-%gopkgfiles
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index d6790df..39d79a8 100644
--- a/sources
+++ b/sources
@@ -1 +1,4 @@
-SHA512 (hugo-0.142.0.tar.gz) = 9b838ef3168fdbcce97a21b4de8a442beb341c416d807ffe713890ca2c6897f9dfa6c76f8db5d1048c59476af62b0234f3da499ea169f0d7edb6c1f4ce634aac
+SHA512 (hugo-0.147.7.tar.gz) = 85f1c45da22afe94b1024e57ebf8f97e889877dba33da0ecf88205817717ed3da3d95a0bbf8193837463f9a3fb95dca06fc36957c8d846b509155a944296db74
+SHA512 (hugo-0.147.7-vendor.tar.bz2) = 478f7fe181074acf957ae18c27ad2f3b016fc411da9a9d4ce5a6f15ff70746a31910905b66e9bbb725dc1d2cc4117164daa52da781982416fb9e2e4835b2e553
+SHA512 (libsass-3.6.6.tar.gz) = 659828c854af391c10a16954425fbeeb5fa036189dea45555cd8046338f7469eb7f8d84134030ce644921514b8f397ef6070b56dfb116ea7ce94328d64576518
+SHA512 (libwebp-1.3.2.tar.gz) = a7058b816ebb55aa05f35378c7a83e5ed4cb7a62652f9f1f9c79736535fa11e10613fed53aa3ae04976d0533c796cfa6e11ad2dd72ed50833c62392f6b9b3c63

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-06  5:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06  5:42 [rpms/hugo] epel9: Update to 0.147.7 and use vendor versioning W. Michael Petullo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox