Add diagnostic instructions to hugo.spec

Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
W. Michael Petullo 2023-01-11 13:00:09 -06:00
parent 48108bbbb7
commit 00486392df
1 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,21 @@
# 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".
# https://github.com/gohugoio/hugo
%global goipath github.com/gohugoio/hugo
Version: 0.101.0