Compare commits

...

87 Commits
f26 ... rawhide

Author SHA1 Message Date
W. Michael Petullo bd8ac048e8 Update to 0.111.3 (rhbz#1930952)
- Use new patch macro
- Deactivate a broken test

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2023-05-17 22:16:32 -05:00
W. Michael Petullo b805b22882 Import hugo-0.109.0.tar.gz
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2023-02-25 10:16:19 -06:00
Fedora Release Engineering 77ab4e3c0c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 12:18:40 +00:00
W. Michael Petullo fc27713881 Update to 0.109.0 (rhbz#1930952)
- Use %gometa -f due to use in dependencies
- Restore some tests that work with the latest Fedora packages

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2023-01-12 10:43:01 -06:00
W. Michael Petullo 00486392df Add diagnostic instructions to hugo.spec
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2023-01-11 13:00:09 -06:00
Elliott Sales de Andrade 48108bbbb7 Add more build metadata to executable 2023-01-01 21:45:30 -05:00
W. Michael Petullo 4afa291970 Add hugo-0.101.0.tar.gz
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-10-29 20:55:48 -05:00
W. Michael Petullo 7e736d21c8 Merge branch 'rawhide' of ssh://pkgs.fedoraproject.org/rpms/hugo into rawhide
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-10-26 14:03:38 -05:00
W. Michael Petullo 37036c7c39 Clean up hugo.spec a bit
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-10-26 14:00:57 -05:00
W. Michael Petullo ee5944a1e6 Update to 0.101.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-10-26 14:00:08 -05:00
W. Michael Petullo 15dbf3c44e Disable resources/page test, as if fails on ppc64le
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-08-29 13:33:41 -05:00
Maxwell G 0d396f88e9
Rebuild to fix FTBFS 2022-08-10 12:11:31 -05:00
W. Michael Petullo 8e3da8b8d0 Move from using a subpackage to using a weak dependency for golang-bin approach
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-08-02 17:56:19 -05:00
W. Michael Petullo 5c9a60e699 Add comments regarding rhbz#2104346
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-07-29 18:59:50 -05:00
Michael Scherer 4ef672a559 Move /usr/bin/hugo to a subpackage
See rhbz#2104346 for the discussion

Signed-off-by: Michael Scherer <misc@fedoraproject.org>
2022-07-30 01:12:55 +02:00
Fedora Release Engineering 98e1d91b0c Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 13:49:49 +00:00
W. Michael Petullo acc74e9987 Require golang-bin; fixes BZ#2104346
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-07-12 12:30:10 -05:00
W. Michael Petullo c2f453da72 Deactivate more tests that fail in Fedora build environment
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-06-19 12:46:23 -05:00
Robert-André Mauchin e225968128 Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 2022-06-18 12:11:23 +02:00
W. Michael Petullo 2918c1cb45 Update to include 0.98.0 source code
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-06-09 18:51:09 -05:00
W. Michael Petullo 86793cc59d Update to 0.98.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-06-09 18:47:46 -05:00
W. Michael Petullo 15fd06d363 Use %autorelease and %autochangelog
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-05-13 12:01:48 -05:00
W. Michael Petullo 89c0fe699e Update to 0.93.3
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-05-11 08:19:59 -05:00
Fedora Release Engineering 06a72944c0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 12:31:08 +00:00
W. Michael Petullo 6d9bb081aa Patch to adjust expected test output to use non-breaking space
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-09-30 13:54:55 -05:00
W. Michael Petullo c018edf91f Patch to work with current golang-github-getkin-kin-openapi-devel package
It seems that the API exported by golang-github-getkin-kin-openapi-devel
changed out from under Hugo. the README.md from
golang-github-getkin-kin-openapi-devel contains:

Sub-v0 breaking API changes

v0.61.0
* Renamed `openapi2.Swagger` to `openapi2.T`.
* Renamed `openapi2conv.FromV3Swagger` to `openapi2conv.FromV3`.
* Renamed `openapi2conv.ToV3Swagger` to `openapi2conv.ToV3`.
* Renamed `openapi3.LoadSwaggerFromData` to `openapi3.LoadFromData`.
* Renamed `openapi3.LoadSwaggerFromDataWithPath` to `openapi3.LoadFromDataWithPath`.
* Renamed `openapi3.LoadSwaggerFromFile` to `openapi3.LoadFromFile`.
* Renamed `openapi3.LoadSwaggerFromURI` to `openapi3.LoadFromURI`.
* Renamed `openapi3.NewSwaggerLoader` to `openapi3.NewLoader`.
* Renamed `openapi3.Swagger` to `openapi3.T`.
* Renamed `openapi3.SwaggerLoader` to `openapi3.Loader`.
* Renamed `openapi3filter.ValidationHandler.SwaggerFile` to `openapi3filter.ValidationHandler.File`.
* Renamed `routers.Route.Swagger` to `routers.Route.Spec`.

This adds a patch to make use of the new name T.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-09-29 16:32:14 -05:00
Fedora Release Engineering 583fca187e - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 07:47:48 +00:00
Fedora Release Engineering 354f1b7c76 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 13:38:29 +00:00
Robert-André Mauchin 3291efb99c
Update to 0.80.0
Close: rhbz#1856494

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2021-01-19 17:11:54 +01:00
Robert-André Mauchin abc68b1525
Update to 0.75.1
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2020-09-18 06:30:52 +02:00
Fedora Release Engineering 0d9a6574af - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 03:30:05 +00:00
Fedora Release Engineering bec5535328 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 01:03:16 +00:00
Athos Ribeiro 3027b3cffa Update version to 0.73.0
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-06-23 22:33:28 +02:00
Athos Ribeiro 554f0f1b70 Update sources for hugo 0.72.0
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-06-07 12:51:20 +02:00
Athos Ribeiro 31b275a5a2 Update version to 0.72.0
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-06-07 12:41:42 +02:00
Athos Ribeiro 0ddfdc7799 Bump release
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-05-07 21:06:51 +02:00
Athos Ribeiro 5f1167d58b Use dynamic automatic build requires
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-05-07 21:05:11 +02:00
Athos Ribeiro f976a5347d Update version to 0.70.0
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-05-07 20:18:04 +02:00
Athos Ribeiro d2b8567168 Update version to 0.69.2
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-05-02 13:22:50 +02:00
Elliott Sales de Andrade 27d11eff0d Add patch to build with go-org 1.1.0. 2020-04-19 00:53:11 -04:00
Elliott Sales de Andrade 80730254b8 De-bootstrap. 2020-04-19 00:32:20 -04:00
Athos Ribeiro f29b07c974 Update golang-github-kyokomi-emoji dep version
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-04-18 12:28:52 +02:00
Athos Ribeiro fe85840911 Update to version 0.69.0
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-04-18 10:56:37 +02:00
Athos Ribeiro c47745455c Ship hugo with extended features
Signed-off-by: Athos Ribeiro <athoscr@fedoraproject.org>
2020-04-13 01:06:40 +02:00
Elliott Sales de Andrade b39ee36c37 Update to latest version. 2020-04-08 16:16:55 -04:00
Elliott Sales de Andrade b1b5bad40b Update to latest version. 2020-02-24 02:16:35 -05:00
Elliott Sales de Andrade 96a14caf85 Update to latest version. 2020-02-22 22:10:45 -05:00
Fedora Release Engineering f1a94c71e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 04:30:28 +00:00
Elliott Sales de Andrade 1df337fa28 Update to latest version. 2019-11-01 01:11:00 -04:00
Elliott Sales de Andrade 32b3139450 Merge commit 'bf3eba5' 2019-10-22 00:34:56 -04:00
Elliott Sales de Andrade bf3eba5d21 Revert update to 0.59.0.
This reverts commit b3cf0b6b77.
2019-10-22 00:34:29 -04:00
Elliott Sales de Andrade e64dfc80fd Backport fix to image tests on alternate arches. 2019-10-22 00:33:33 -04:00
Elliott Sales de Andrade c810557c42 Upload sources for 0.58.3. 2019-10-22 00:33:05 -04:00
Elliott Sales de Andrade b3cf0b6b77 Update to latest version. 2019-10-21 22:28:20 -04:00
Elliott Sales de Andrade 1ce2d37d55 Update to latest version. 2019-10-21 19:47:02 -04:00
Elliott Sales de Andrade 6bb10eefe4 Update to latest Go macros. 2019-08-01 00:46:19 -04:00
Fedora Release Engineering 61102cb600 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 08:40:38 +00:00
Elliott Sales de Andrade 75722f7284 Update to latest version. 2019-05-18 18:31:18 -04:00
Elliott Sales de Andrade f7fefef0e6 Update to latest version. 2019-05-11 02:44:25 -04:00
Elliott Sales de Andrade bf3dfac003 Update to latest version. 2019-04-24 19:31:28 -04:00
Elliott Sales de Andrade 27586693c7 Update to latest version. 2019-04-13 01:38:29 -04:00
Elliott Sales de Andrade 2989e044c3 Update to latest version. 2019-04-10 04:28:06 -04:00
Elliott Sales de Andrade ae5310d626 Add bash-completion and man pages. 2019-03-22 03:43:22 -04:00
Elliott Sales de Andrade d0e3d2a959 Make minify BR versions more explicit. 2019-03-04 18:30:17 -05:00
Elliott Sales de Andrade b3589d059f Update to latest version. 2019-03-04 18:07:52 -05:00
Elliott Sales de Andrade 18ad36ac80 Fix FTBFS bug number. 2019-03-01 22:37:02 -05:00
Elliott Sales de Andrade 4d9d394031 Add fix for new emoji test results. 2019-03-01 18:59:48 -05:00
Elliott Sales de Andrade 0fe58cafcd Update changelog. 2019-02-28 02:14:20 -05:00
Elliott Sales de Andrade 354aba701b Fix or skip failing tests. 2019-02-28 02:13:39 -05:00
Elliott Sales de Andrade ba4f6c9c1e Add another missing test dependency. 2019-02-28 02:12:57 -05:00
Elliott Sales de Andrade ce84e9b599 Patch in Blackfriday v1 paths. 2019-02-28 02:12:05 -05:00
Elliott Sales de Andrade 78c6651845 Rewrite spec using latest template. 2019-02-28 02:11:44 -05:00
Fedora Release Engineering 690e274246 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 02:30:43 +00:00
Fedora Release Engineering 1603a5fa66 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 05:09:02 +00:00
Athos Ribeiro b4018c25c8 Add Hugo 0.38 sources to gitignore 2018-04-09 09:28:06 -03:00
Pierre-Alain TORET a08d51ac24 Update version to Hugo 0.38
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-04-04 13:00:22 +02:00
Athos Ribeiro 624583255c Update version to Hugo 0.37.1 2018-03-08 08:24:14 -03:00
Athos Ribeiro 3170b0056d Update version to Hugo 0.37 2018-03-03 02:27:25 -03:00
Athos Ribeiro 2acc5792bd Include missing test files in unit-test-devel 2018-02-21 22:01:08 -03:00
Athos Ribeiro 3d9ceb1e04 Update to version 0.36.1 2018-02-16 23:27:46 -02:00
Fedora Release Engineering 54b42d276c - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 16:33:59 +00:00
Athos Ribeiro 91d6bfcd09 Update sources hash 2017-12-11 18:46:27 -02:00
Pierre-Alain TORET d32c0e4da9 Update version to 0.31.1
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2017-12-11 17:29:15 +01:00
Athos Ribeiro 4da675eaa8 Update version to 0.31 2017-11-20 21:53:55 -02:00
Athos Ribeiro d0c39f1379 Update version 2017-10-21 22:33:47 -02:00
Athos Ribeiro 12d9c1e953 Update version to hugo-0.30 2017-10-17 13:43:11 -02:00
Athos Ribeiro 6281c4d6cd Update version to hugo-0.29 2017-10-17 11:30:59 -02:00
7 changed files with 452 additions and 426 deletions

33
.gitignore vendored
View File

@ -1 +1,34 @@
/hugo-0.27.1.tar.gz
/hugo-0.29.tar.gz
/hugo-0.30.tar.gz
/hugo-0.30.2.tar.gz
/hugo-0.31.tar.gz
/hugo-0.31.1.tar.gz
/hugo-0.36.1.tar.gz
/hugo-0.37.tar.gz
/hugo-0.37.1.tar.gz
/hugo-0.38.tar.gz
/hugo-0.54.0.tar.gz
/hugo-0.55.0.tar.gz
/hugo-0.55.1.tar.gz
/hugo-0.55.3.tar.gz
/hugo-0.55.5.tar.gz
/hugo-0.55.6.tar.gz
/hugo-0.58.3.tar.gz
/hugo-0.59.0.tar.gz
/hugo-0.59.1.tar.gz
/hugo-0.65.2.tar.gz
/hugo-0.65.3.tar.gz
/hugo-0.68.3.tar.gz
/hugo-0.69.0.tar.gz
/hugo-0.69.2.tar.gz
/hugo-0.70.0.tar.gz
/hugo-0.72.0.tar.gz
/hugo-0.73.0.tar.gz
/hugo-0.75.1.tar.gz
/hugo-0.80.0.tar.gz
/hugo-0.93.3.tar.gz
/hugo-0.98.0.tar.gz
/hugo-0.101.0.tar.gz
/hugo-0.109.0.tar.gz
/hugo-0.111.3.tar.gz

View File

@ -0,0 +1,11 @@
diff -u --recursive hugo-0.93.3-vanilla/modules/client_test.go hugo-0.93.3/modules/client_test.go
--- hugo-0.93.3-vanilla/modules/client_test.go 2022-03-08 04:15:27.000000000 -0600
+++ hugo-0.93.3/modules/client_test.go 2022-03-08 20:11:16.719396644 -0600
@@ -33,6 +33,7 @@
)
func TestClient(t *testing.T) {
+ t.Skip("skip test as network access is not allowed during package build")
modName := "hugo-modules-basic-test"
modPath := "github.com/gohugoio/tests/" + modName
defaultImport := "modh2_2"

50
0020-clbanning-mxj.patch Normal file
View File

@ -0,0 +1,50 @@
diff -u --recursive hugo-0.111.3-vanilla/go.mod hugo-0.111.3/go.mod
--- hugo-0.111.3-vanilla/go.mod 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/go.mod 2023-05-14 13:56:23.960785402 -0500
@@ -16,7 +16,7 @@
github.com/bep/lazycache v0.2.0
github.com/bep/overlayfs v0.6.0
github.com/bep/tmc v0.5.1
- github.com/clbanning/mxj/v2 v2.5.7
+ github.com/clbanning/mxj v2.5.7
github.com/cli/safeexec v1.0.0
github.com/disintegration/gift v1.2.1
github.com/dustin/go-humanize v1.0.0
diff -u --recursive hugo-0.111.3-vanilla/go.sum hugo-0.111.3/go.sum
--- hugo-0.111.3-vanilla/go.sum 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/go.sum 2023-05-14 13:56:38.784639997 -0500
@@ -195,8 +195,8 @@
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
-github.com/clbanning/mxj/v2 v2.5.7 h1:7q5lvUpaPF/WOkqgIDiwjBJaznaLCCBd78pi8ZyAnE0=
-github.com/clbanning/mxj/v2 v2.5.7/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
+github.com/clbanning/mxj v2.5.7 h1:7q5lvUpaPF/WOkqgIDiwjBJaznaLCCBd78pi8ZyAnE0=
+github.com/clbanning/mxj v2.5.7/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI=
github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
diff -u --recursive hugo-0.111.3-vanilla/parser/frontmatter.go hugo-0.111.3/parser/frontmatter.go
--- hugo-0.111.3-vanilla/parser/frontmatter.go 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/parser/frontmatter.go 2023-05-14 13:56:53.511495544 -0500
@@ -24,7 +24,7 @@
yaml "gopkg.in/yaml.v2"
- xml "github.com/clbanning/mxj/v2"
+ xml "github.com/clbanning/mxj"
)
const (
diff -u --recursive hugo-0.111.3-vanilla/parser/metadecoders/decoder.go hugo-0.111.3/parser/metadecoders/decoder.go
--- hugo-0.111.3-vanilla/parser/metadecoders/decoder.go 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/parser/metadecoders/decoder.go 2023-05-14 13:57:05.633376639 -0500
@@ -24,7 +24,7 @@
"github.com/gohugoio/hugo/common/herrors"
"github.com/niklasfasching/go-org/org"
- xml "github.com/clbanning/mxj/v2"
+ xml "github.com/clbanning/mxj"
toml "github.com/pelletier/go-toml/v2"
"github.com/spf13/afero"
"github.com/spf13/cast"

View File

@ -0,0 +1,50 @@
diff -u --recursive hugo-0.111.3-vanilla/go.mod hugo-0.111.3/go.mod
--- hugo-0.111.3-vanilla/go.mod 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/go.mod 2023-05-14 13:58:42.855422989 -0500
@@ -28,7 +28,7 @@
github.com/ghodss/yaml v1.0.0
github.com/gobuffalo/flect v0.3.0
github.com/gobwas/glob v0.2.3
- github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
+ github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
github.com/gohugoio/locales v0.14.0
github.com/gohugoio/localescompressed v1.0.1
github.com/gohugoio/testmodBuilder/mods v0.0.0-20190520184928-c56af20f2e95
diff -u --recursive hugo-0.111.3-vanilla/go.sum hugo-0.111.3/go.sum
--- hugo-0.111.3-vanilla/go.sum 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/go.sum 2023-05-14 13:59:02.688228448 -0500
@@ -282,8 +282,8 @@
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
-github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
-github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
github.com/gohugoio/locales v0.14.0 h1:Q0gpsZwfv7ATHMbcTNepFd59H7GoykzWJIxi113XGDc=
github.com/gohugoio/locales v0.14.0/go.mod h1:ip8cCAv/cnmVLzzXtiTpPwgJ4xhKZranqNqtoIu0b/4=
github.com/gohugoio/localescompressed v1.0.1 h1:KTYMi8fCWYLswFyJAeOtuk/EkXR/KPTHHNN9OS+RTxo=
diff -u --recursive hugo-0.111.3-vanilla/langs/i18n/i18n.go hugo-0.111.3/langs/i18n/i18n.go
--- hugo-0.111.3-vanilla/langs/i18n/i18n.go 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/langs/i18n/i18n.go 2023-05-14 13:59:22.567033455 -0500
@@ -27,7 +27,7 @@
"github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/resources/page"
- "github.com/gohugoio/go-i18n/v2/i18n"
+ "github.com/nicksnyder/go-i18n/v2/i18n"
)
type translateFunc func(ctx context.Context, translationID string, templateData any) string
diff -u --recursive hugo-0.111.3-vanilla/langs/i18n/translationProvider.go hugo-0.111.3/langs/i18n/translationProvider.go
--- hugo-0.111.3-vanilla/langs/i18n/translationProvider.go 2023-03-12 06:40:50.000000000 -0500
+++ hugo-0.111.3/langs/i18n/translationProvider.go 2023-05-14 13:59:39.406868272 -0500
@@ -24,7 +24,7 @@
"golang.org/x/text/language"
yaml "gopkg.in/yaml.v2"
- "github.com/gohugoio/go-i18n/v2/i18n"
+ "github.com/nicksnyder/go-i18n/v2/i18n"
"github.com/gohugoio/hugo/helpers"
toml "github.com/pelletier/go-toml/v2"

200
changelog Normal file
View File

@ -0,0 +1,200 @@
* Wed May 11 2022 W. Michael Petullo <mike@flyn.org> - 0.93.3-1
- Update to 0.93.3
* Wed Sep 29 2021 W. Michael Petullo <mike@flyn.org> - 0.80.0-4
- Patch to work with current golang-github-getkin-kin-openapi-devel package
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.80.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.80.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Jan 17 22:04:05 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0.80.0-1
- Update to 0.80.0
- Close: rhbz#1856494
* Fri Sep 18 04:37:22 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.75.1-1
- Update to 0.75.1
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.73.0-1
- Update to latest version
* Sun Jun 07 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.72.0-1
- Update to latest version
* Thu May 07 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.70.0-2
- Use generated dynamic buildrequires
* Thu May 07 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.70.0-1
- Update to latest version
* Sat May 02 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.69.2-1
- Update to latest version
* Sun Apr 19 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.69.0-3
- Add patch for latest go-org
* Sat Apr 18 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.69.0-2
- Update golang-github-kyokomi-emoji required version
* Sat Apr 18 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.69.0-1
- Update to latest version
* Mon Apr 13 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.68.3-2
- Build hugo with extended features for SCSS support
* Wed Apr 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.68.3-1
- Update to latest version
* Mon Feb 24 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.65.3-1
- Update to latest version
* Sat Feb 22 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.65.2-1
- Update to latest version
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.59.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.59.1-1
- Update to latest version
* Wed Oct 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.58.3-1
- Update to latest version
* Thu Aug 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.6-3
- Update to latest Go macros
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.55.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat May 18 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.6-1
- Update to latest version
* Sat May 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.5-1
- Update to latest version
* Wed Apr 24 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.3-1
- Update to latest version
* Sat Apr 13 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.1-1
- Update to latest version
* Wed Apr 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.55.0-1
- Update to latest version
* Fri Mar 22 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.54.0-2
- Add bash-completion
- Add man pages
* 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)
* Tue Feb 26 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.38-4
- Rewrite spec using latest template
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Apr 04 2018 Pierre-Alain TORET <pierre-alain.toret@protonmail.com> - 0.38-1
- Update version
* Thu Mar 08 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 0.37.1-1
- Update version
* Thu Mar 01 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 0.37-1
- Update version
* Wed Feb 21 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 0.36.1-2
- Include resource/testdata in unit tests package
* Fri Feb 16 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 0.36.1-1
- Update version
* Tue Feb 13 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 0.36-1
- Update version
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Dec 11 2017 Pierre-Alain TORET <pierre-alain.toret@protonmail.com> - 0.31.1-1
- Update Version
* Mon Nov 20 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.31-1
- Update Version
* Sat Oct 21 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.30.2-1
- Update Version
* Tue Oct 17 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.30-1
- Update Version
* Wed Oct 11 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.29-1
- Update Version
* Fri Sep 15 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27.1-2
- Add MIT License
* Wed Sep 13 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27.1-1
- Update version
* Tue Sep 12 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27-1
- Update version
* Fri Aug 11 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.26-2
- Substitute bep/inflect for markbates/inflect
* Fri Aug 11 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.26-1
- Update version
* Mon Jul 31 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.25.1-1
- Update version
- Fix unit-test subpackage requires to correct devel package
- Use global instead of define for gobuild
* Mon Jun 26 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.24-2
- Add external test dependencies
* Fri Jun 23 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.24-1
- New version
- Regenerate specfile with gofed
* Fri Mar 17 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-4
- Remove empty conditionals
* Sun Mar 12 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-3
- Use dist tag
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-2
- Move test data to unit-test subpackage path
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-1
- New version
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-5
- Include testdata in unit-test-devel subpackage
* Wed Mar 01 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-4
- Change binary name
* Wed Mar 01 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-3
- Use lowercase for jww package
* Tue Feb 28 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-2
- Use cammelcase for jww package
* Sun Feb 26 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-1
- Initial package

532
hugo.spec
View File

@ -1,456 +1,138 @@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
%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:
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
# 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".
# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 1
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 1
%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif
%if ! 0%{?gobuild:1}
%global gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif
%global provider github
%global provider_tld com
%global project gohugoio
%global repo hugo
# https://github.com/gohugoio/hugo
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
# This commit is the 0.27.1 tag
%global commit 5a4002bc8916600c0d28b59c83ae11e85ebcbf6e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global goipath github.com/gohugoio/hugo
Version: 0.111.3
Name: hugo
Version: 0.27.1
Release: 2%{?dist}
Summary: A Fast and Flexible Static Site Generator built with love in GoLang
License: ASL 2.0 and MIT
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{version}.tar.gz
%gometa -f
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
%if ! 0%{?with_bundled}
# main.go
BuildRequires: golang(github.com/spf13/jwalterweatherman)
# Remaining dependencies not included in main packages
BuildRequires: golang(github.com/yosssi/ace)
BuildRequires: golang(golang.org/x/text/unicode/norm)
BuildRequires: golang(github.com/BurntSushi/toml)
BuildRequires: golang(github.com/hashicorp/go-immutable-radix)
BuildRequires: golang(github.com/russross/blackfriday)
BuildRequires: golang(golang.org/x/text/transform)
BuildRequires: golang(github.com/dchest/cssmin)
BuildRequires: golang(github.com/markbates/inflect)
BuildRequires: golang(gopkg.in/yaml.v2)
BuildRequires: golang(github.com/mitchellh/mapstructure)
BuildRequires: golang(github.com/spf13/viper)
BuildRequires: golang(github.com/fsnotify/fsnotify)
BuildRequires: golang(github.com/spf13/fsync)
BuildRequires: golang(github.com/kardianos/osext)
BuildRequires: golang(github.com/spf13/afero)
BuildRequires: golang(github.com/spf13/cast)
BuildRequires: golang(github.com/chaseadamsio/goorgeous)
BuildRequires: golang(github.com/nicksnyder/go-i18n/i18n/bundle)
BuildRequires: golang(github.com/kyokomi/emoji)
BuildRequires: golang(github.com/gorilla/websocket)
BuildRequires: golang(github.com/eknkc/amber)
BuildRequires: golang(github.com/spf13/cobra/doc)
BuildRequires: golang(github.com/spf13/pflag)
BuildRequires: golang(github.com/miekg/mmark)
BuildRequires: golang(github.com/jdkato/prose/transform)
BuildRequires: golang(github.com/PuerkitoBio/purell)
BuildRequires: golang(github.com/spf13/nitro)
BuildRequires: golang(github.com/spf13/cobra)
BuildRequires: golang(github.com/bep/gitmap)
BuildRequires: golang(golang.org/x/image/webp)
%endif
%description
%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.
and templates and renders them into a full HTML website.}
%if 0%{?with_devel}
%package -n golang-%{provider}-%{project}-%{repo}-devel
Summary: %{summary}
BuildArch: noarch
%global golicenses LICENSE docs/LICENSE.md docs/themes/gohugoioTheme/license.md
%global godocs docs examples README.md CONTRIBUTING.md
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/BurntSushi/toml)
BuildRequires: golang(github.com/PuerkitoBio/purell)
BuildRequires: golang(github.com/bep/gitmap)
BuildRequires: golang(github.com/markbates/inflect)
BuildRequires: golang(github.com/chaseadamsio/goorgeous)
BuildRequires: golang(github.com/dchest/cssmin)
BuildRequires: golang(github.com/eknkc/amber)
BuildRequires: golang(github.com/fsnotify/fsnotify)
BuildRequires: golang(github.com/gorilla/websocket)
BuildRequires: golang(github.com/hashicorp/go-immutable-radix)
BuildRequires: golang(github.com/jdkato/prose/transform)
BuildRequires: golang(github.com/kardianos/osext)
BuildRequires: golang(github.com/kyokomi/emoji)
BuildRequires: golang(github.com/miekg/mmark)
BuildRequires: golang(github.com/mitchellh/mapstructure)
BuildRequires: golang(github.com/nicksnyder/go-i18n/i18n/bundle)
BuildRequires: golang(github.com/russross/blackfriday)
BuildRequires: golang(github.com/spf13/afero)
BuildRequires: golang(github.com/spf13/cast)
BuildRequires: golang(github.com/spf13/cobra)
BuildRequires: golang(github.com/spf13/cobra/doc)
BuildRequires: golang(github.com/spf13/fsync)
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/yosssi/ace)
BuildRequires: golang(golang.org/x/text/transform)
BuildRequires: golang(golang.org/x/text/unicode/norm)
BuildRequires: golang(gopkg.in/yaml.v2)
BuildRequires: golang(golang.org/x/image/webp)
%endif
Name: hugo
Release: %autorelease
Summary: The worlds fastest framework for building websites
Requires: golang(github.com/BurntSushi/toml)
Requires: golang(github.com/PuerkitoBio/purell)
Requires: golang(github.com/bep/gitmap)
Requires: golang(github.com/markbates/inflect)
Requires: golang(github.com/chaseadamsio/goorgeous)
Requires: golang(github.com/dchest/cssmin)
Requires: golang(github.com/eknkc/amber)
Requires: golang(github.com/fsnotify/fsnotify)
Requires: golang(github.com/gorilla/websocket)
Requires: golang(github.com/hashicorp/go-immutable-radix)
Requires: golang(github.com/jdkato/prose/transform)
Requires: golang(github.com/kardianos/osext)
Requires: golang(github.com/kyokomi/emoji)
Requires: golang(github.com/miekg/mmark)
Requires: golang(github.com/mitchellh/mapstructure)
Requires: golang(github.com/nicksnyder/go-i18n/i18n/bundle)
Requires: golang(github.com/russross/blackfriday)
Requires: golang(github.com/spf13/afero)
Requires: golang(github.com/spf13/cast)
Requires: golang(github.com/spf13/cobra)
Requires: golang(github.com/spf13/cobra/doc)
Requires: golang(github.com/spf13/fsync)
Requires: golang(github.com/spf13/jwalterweatherman)
Requires: golang(github.com/spf13/nitro)
Requires: golang(github.com/spf13/pflag)
Requires: golang(github.com/spf13/viper)
Requires: golang(github.com/yosssi/ace)
Requires: golang(golang.org/x/text/transform)
Requires: golang(golang.org/x/text/unicode/norm)
Requires: golang(gopkg.in/yaml.v2)
Requires: golang(golang.org/x/image/webp)
# Upstream license specification: Apache-2.0 and MIT
License: ASL 2.0 and MIT
URL: %{gourl}
Source0: %{gosource}
# 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
# Use clbanning-mxj, not clbanning-mxj-v2
# See https://github.com/gohugoio/hugo/issues/9860
Patch0002: 0020-clbanning-mxj.patch
# Use nicksnyder-go-i18n, not gohugoio/go-i18n/
# See https://github.com/gohugoio/hugo/issues/9860
# and https://github.com/nicksnyder/go-i18n/pull/253
Patch0003: 0030-nicksnyder-go-i18n.patch
Provides: golang(%{import_path}/bufferpool) = %{version}-%{release}
Provides: golang(%{import_path}/cache) = %{version}-%{release}
Provides: golang(%{import_path}/commands) = %{version}-%{release}
Provides: golang(%{import_path}/common/types) = %{version}-%{release}
Provides: golang(%{import_path}/compare) = %{version}-%{release}
Provides: golang(%{import_path}/config) = %{version}-%{release}
Provides: golang(%{import_path}/create) = %{version}-%{release}
Provides: golang(%{import_path}/deps) = %{version}-%{release}
Provides: golang(%{import_path}/docshelper) = %{version}-%{release}
Provides: golang(%{import_path}/helpers) = %{version}-%{release}
Provides: golang(%{import_path}/hugofs) = %{version}-%{release}
Provides: golang(%{import_path}/hugolib) = %{version}-%{release}
Provides: golang(%{import_path}/i18n) = %{version}-%{release}
Provides: golang(%{import_path}/livereload) = %{version}-%{release}
Provides: golang(%{import_path}/media) = %{version}-%{release}
Provides: golang(%{import_path}/output) = %{version}-%{release}
Provides: golang(%{import_path}/parser) = %{version}-%{release}
Provides: golang(%{import_path}/related) = %{version}-%{release}
Provides: golang(%{import_path}/releaser) = %{version}-%{release}
Provides: golang(%{import_path}/source) = %{version}-%{release}
Provides: golang(%{import_path}/tpl) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/cast) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/collections) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/compare) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/crypto) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/data) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/encoding) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/fmt) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/images) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/inflect) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/lang) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/math) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/os) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/partials) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/safe) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/strings) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/time) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/tplimpl) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/transform) = %{version}-%{release}
Provides: golang(%{import_path}/tpl/urls) = %{version}-%{release}
Provides: golang(%{import_path}/transform) = %{version}-%{release}
Provides: golang(%{import_path}/utils) = %{version}-%{release}
Provides: golang(%{import_path}/watcher) = %{version}-%{release}
BuildRequires: golang(github.com/bep/golibsass/libsass) >= 0.7.0
%description -n golang-%{provider}-%{project}-%{repo}-devel
%{summary}
# 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
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%endif
%description
%{common_description}
%if 0%{?with_unit_test} && 0%{?with_devel}
%package -n golang-%{provider}-%{project}-%{repo}-unit-test-devel
Summary: Unit tests for %{name} package
%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif
# test subpackage tests code from devel subpackage
Requires: golang-%{provider}-%{project}-%{repo}-devel = %{version}-%{release}
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/fortytw2/leaktest)
BuildRequires: golang(github.com/stretchr/testify/assert)
BuildRequires: golang(github.com/stretchr/testify/require)
%endif
Requires: golang(github.com/fortytw2/leaktest)
Requires: golang(github.com/stretchr/testify/assert)
Requires: golang(github.com/stretchr/testify/require)
# These are used during hugolib tests
%%if 0%{?with_check}
BuildRequires: python-docutils
BuildRequires: python3-pygments
BuildRequires: rubygem-asciidoctor
Requires: python-docutils
Requires: python3-pygments
Requires: rubygem-asciidoctor
%%endif
%description -n golang-%{provider}-%{project}-%{repo}-unit-test-devel
%{summary}
This package contains unit tests for project
providing packages with %{import_path} prefix.
%endif
%gopkg
%prep
%setup -q -n %{repo}-%{commit}
%goprep
%patch 0001 -p1
%patch 0002 -p1
%patch 0003 -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')
# Pin github.com/evanw/esbuild to v0.8.20
# See https://github.com/gohugoio/hugo/issues/8141
sed -i \
-e 's|"github.com/evanw/esbuild|"github.com/evanw/esbuild-0.8.20|' \
$(find . -name '*.go')
# Skip test that assumes directory is in a git repository
sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
%if %{with bootstrap}
# Delete test using github.com/gohugoio/testmodBuilder/mods which has a
# dependency loop.
rm hugolib/hugo_modules_test.go
%endif
%generate_buildrequires
%go_generate_buildrequires
%build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../ src/%{import_path}
%if ! 0%{?with_bundled}
export GOPATH=$(pwd):%{gopath}
%else
# No dependency directories so far
export GOPATH=$(pwd):%{gopath}
%endif
%gobuild -o bin/hugo %{import_path}/
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 gen autocomplete >hugo-completion
%{gobuilddir}/bin/hugo gen man
%install
%gopkginstall
install -d -p %{buildroot}%{_bindir}
install -p -m 0755 bin/hugo %{buildroot}%{_bindir}
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
%endif
# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test-devel.file-list
for file in $(find . -iname "*_test.go") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
# install data used for tests
cp -pav ./hugolib/testdata %{buildroot}/%{gopath}/src/%{import_path}/hugolib/
echo "%%{gopath}/src/%%{import_path}/hugolib/testdata" >> unit-test-devel.file-list
%endif
%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif
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
%if %{with check}
%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
# No dependency directories so far
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%endif
%if ! 0%{?gotest:1}
%global gotest go test
%endif
%gotest %{import_path}/bufferpool
%gotest %{import_path}/cache
%gotest %{import_path}/commands
%gotest %{import_path}/common/types
%gotest %{import_path}/create
%gotest %{import_path}/helpers
%gotest %{import_path}/hugofs
%gotest %{import_path}/hugolib
%gotest %{import_path}/i18n
%gotest %{import_path}/media
%gotest %{import_path}/output
%gotest %{import_path}/parser
%gotest %{import_path}/related
# We do not want to test upstream release process (needs git repo)
# %%gotest %%{import_path}/releaser
%gotest %{import_path}/source
%gotest %{import_path}/tpl/cast
%gotest %{import_path}/tpl/collections
%gotest %{import_path}/tpl/compare
%gotest %{import_path}/tpl/crypto
%gotest %{import_path}/tpl/data
%gotest %{import_path}/tpl/encoding
%gotest %{import_path}/tpl/fmt
%gotest %{import_path}/tpl/images
%gotest %{import_path}/tpl/inflect
%gotest %{import_path}/tpl/internal
%gotest %{import_path}/tpl/lang
%gotest %{import_path}/tpl/math
%gotest %{import_path}/tpl/os
%gotest %{import_path}/tpl/partials
%gotest %{import_path}/tpl/safe
%gotest %{import_path}/tpl/strings
# A test depends on the host timezone, we do now want to test it.
# releaser: We do not want to test upstream release process (needs git repo)
# tpl/time: A test depends on the host timezone, we do now want to test it.
# time_test.go:49: [3] DateFormat failed: Unable to Cast 1421733600 to Time # line 35 returns different results
# %%gotest %%{import_path}/tpl/time
%gotest %{import_path}/tpl/tplimpl
%gotest %{import_path}/tpl/transform
%gotest %{import_path}/tpl/urls
%gotest %{import_path}/transform
# common/herrors: Terminal colors seem to affect this test.
# common/text: Terminal colors seem to affect this test.
# deploy: We do not want to test deployment process.
# hugolib: We should run this one, but it presently fails.
# langs/i18n: Patched gohugoio/go-i18n/ back to nicksnyder/go-i18n.
# markup/goldmark/codeblocks: We should run this one, but it presently fails.
# resources/resource_transformers/js: Error message formats have changed.
# resources/resource_factories/create: Now fails with latest Rawhide dependencies.
%gocheck -d releaser -d tpl/time -d common/herrors -d common/text -d deploy -d hugolib -d langs/i18n -d markup/goldmark/codeblocks -d resources/resource_transformers/js -d resources/resource_factories/create
%endif
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
%files
%license LICENSE.md
%doc CONTRIBUTING.md README.md
%doc CONTRIBUTING.md README.md docs
%license LICENSE
%{_bindir}/hugo
%{_datadir}/bash-completion/completions/hugo
%{_mandir}/man1/*.1*
%if 0%{?with_devel}
%files -n golang-%{provider}-%{project}-%{repo}-devel -f devel.file-list
%license LICENSE.md
%doc CONTRIBUTING.md README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
%endif
%if 0%{?with_unit_test} && 0%{?with_devel}
%files -n golang-%{provider}-%{project}-%{repo}-unit-test-devel -f unit-test-devel.file-list
%license LICENSE.md
%doc CONTRIBUTING.md README.md
%endif
%gopkgfiles
%changelog
* Fri Sep 15 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27.1-2
- Add MIT License
* Wed Sep 13 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27.1-1
- Update version
* Tue Sep 12 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.27-1
- Update version
* Fri Aug 11 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.26-2
- Substitute bep/inflect for markbates/inflect
* Fri Aug 11 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.26-1
- Update version
* Mon Jul 31 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.25.1-1
- Update version
- Fix unit-test subpackage requires to correct devel package
- Use global instead of define for gobuild
* Mon Jun 26 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.24-2
- Add external test dependencies
* Fri Jun 23 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.24-1
- New version
- Regenerate specfile with gofed
* Fri Mar 17 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-4
- Remove empty conditionals
* Sun Mar 12 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-3
- Use dist tag
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-2
- Move test data to unit-test subpackage path
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.19-1
- New version
* Fri Mar 03 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-5
- Include testdata in unit-test-devel subpackage
* Wed Mar 01 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-4
- Change binary name
* Wed Mar 01 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-3
- Use lowercase for jww package
* Tue Feb 28 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-2
- Use cammelcase for jww package
* Sun Feb 26 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0.18.1-1
- Initial package
%autochangelog

View File

@ -1 +1 @@
SHA512 (hugo-0.27.1.tar.gz) = 615794eedc8eb438ea0ba12b0b4ec2467e16af4fa3431da633d048b5ad7a1a980011b43d1c7e36bab05aa37a9dbca813ecb432f4ebd3f5508b4f304729a84909
SHA512 (hugo-0.111.3.tar.gz) = fd9fa9138cf714572d50328abc332edcdaaa3d45440914705d0d2119fd2a062c8df59732d9f5c23f540076e0c5a4104ac1d332f8633d93ab1479f82dd5ecce39