public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] epel9: Move from using a subpackage to using a weak dependency for golang-bin approach
@ 2026-11-06  5:41 W. Michael Petullo
  0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2026-11-06  5:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : epel9
            Commit : 8e3da8b8d01457b10b582af9c34ff2f5c234a1e3
            Author : W. Michael Petullo <mike@flyn.org>
            Date   : 2022-08-02T17:56:19-05:00
            Stats  : +10/-18 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/8e3da8b8d01457b10b582af9c34ff2f5c234a1e3?branch=epel9

            Log:
            Move from using a subpackage to using a weak dependency for golang-bin approach

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

---
diff --git a/hugo.spec b/hugo.spec
index cbd901e..73b0bca 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -36,22 +36,16 @@ Patch0002:      0020-clbanning-mxj.patch
 Patch0003:      0030-nicksnyder-go-i18n.patch
 
 BuildRequires:  golang(github.com/bep/golibsass/libsass) >= 0.7.0
-Requires:       golang-bin
-Requires:       hugo-bin
-
-# 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
-# install a smaller package in some instances---such as CI pipelines---that do
-# not require "hugo server". Installing hugo-bin rather than hugo avoids the
-# dependencies.
-%package bin
-Summary:        The world’s fastest framework for building websites - binary
-
-%description bin
-%{common_description}
 
-This package contains only the hugo binary for use in CI.
+# 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}
 
@@ -122,14 +116,12 @@ install -Dp man/* -t %{buildroot}%{_mandir}/man1
 %files
 %doc CONTRIBUTING.md README.md docs
 %license LICENSE
+%{_bindir}/hugo
 %{_datadir}/bash-completion/completions/hugo
 %{_mandir}/man1/*.1*
 
 %gopkgfiles
 
-%files bin
-%license LICENSE
-%{_bindir}/hugo
 
 %changelog
 %autochangelog

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

only message in thread, other threads:[~2026-11-06  5:41 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:41 [rpms/hugo] epel9: Move from using a subpackage to using a weak dependency for golang-bin approach 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