Compare commits
87 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
bd8ac048e8 | ||
|
b805b22882 | ||
|
77ab4e3c0c | ||
|
fc27713881 | ||
|
00486392df | ||
|
48108bbbb7 | ||
|
4afa291970 | ||
|
7e736d21c8 | ||
|
37036c7c39 | ||
|
ee5944a1e6 | ||
|
15dbf3c44e | ||
|
0d396f88e9 | ||
|
8e3da8b8d0 | ||
|
5c9a60e699 | ||
|
4ef672a559 | ||
|
98e1d91b0c | ||
|
acc74e9987 | ||
|
c2f453da72 | ||
|
e225968128 | ||
|
2918c1cb45 | ||
|
86793cc59d | ||
|
15fd06d363 | ||
|
89c0fe699e | ||
|
06a72944c0 | ||
|
6d9bb081aa | ||
|
c018edf91f | ||
|
583fca187e | ||
|
354f1b7c76 | ||
|
3291efb99c | ||
|
abc68b1525 | ||
|
0d9a6574af | ||
|
bec5535328 | ||
|
3027b3cffa | ||
|
554f0f1b70 | ||
|
31b275a5a2 | ||
|
0ddfdc7799 | ||
|
5f1167d58b | ||
|
f976a5347d | ||
|
d2b8567168 | ||
|
27d11eff0d | ||
|
80730254b8 | ||
|
f29b07c974 | ||
|
fe85840911 | ||
|
c47745455c | ||
|
b39ee36c37 | ||
|
b1b5bad40b | ||
|
96a14caf85 | ||
|
f1a94c71e1 | ||
|
1df337fa28 | ||
|
32b3139450 | ||
|
bf3eba5d21 | ||
|
e64dfc80fd | ||
|
c810557c42 | ||
|
b3cf0b6b77 | ||
|
1ce2d37d55 | ||
|
6bb10eefe4 | ||
|
61102cb600 | ||
|
75722f7284 | ||
|
f7fefef0e6 | ||
|
bf3dfac003 | ||
|
27586693c7 | ||
|
2989e044c3 | ||
|
ae5310d626 | ||
|
d0e3d2a959 | ||
|
b3589d059f | ||
|
18ad36ac80 | ||
|
4d9d394031 | ||
|
0fe58cafcd | ||
|
354aba701b | ||
|
ba4f6c9c1e | ||
|
ce84e9b599 | ||
|
78c6651845 | ||
|
690e274246 | ||
|
1603a5fa66 | ||
|
b4018c25c8 | ||
|
a08d51ac24 | ||
|
624583255c | ||
|
3170b0056d | ||
|
2acc5792bd | ||
|
3d9ceb1e04 | ||
|
54b42d276c | ||
|
91d6bfcd09 | ||
|
d32c0e4da9 | ||
|
4da675eaa8 | ||
|
d0c39f1379 | ||
|
12d9c1e953 | ||
|
6281c4d6cd |
33
.gitignore
vendored
33
.gitignore
vendored
@ -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
|
||||
|
11
0010-skip-modules-TestClient.patch
Normal file
11
0010-skip-modules-TestClient.patch
Normal 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
50
0020-clbanning-mxj.patch
Normal 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"
|
50
0030-nicksnyder-go-i18n.patch
Normal file
50
0030-nicksnyder-go-i18n.patch
Normal 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
200
changelog
Normal 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
532
hugo.spec
@ -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 world’s 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
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (hugo-0.27.1.tar.gz) = 615794eedc8eb438ea0ba12b0b4ec2467e16af4fa3431da633d048b5ad7a1a980011b43d1c7e36bab05aa37a9dbca813ecb432f4ebd3f5508b4f304729a84909
|
||||
SHA512 (hugo-0.111.3.tar.gz) = fd9fa9138cf714572d50328abc332edcdaaa3d45440914705d0d2119fd2a062c8df59732d9f5c23f540076e0c5a4104ac1d332f8633d93ab1479f82dd5ecce39
|
||||
|
Loading…
Reference in New Issue
Block a user