## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.19.0 %bcond check 1 # To update: # 1. Update the version in this file. # 2. Retrieve new source archive: # spectool -g hugo.spec. # 3. Generate the vendor archive: # go_vendor_archive create --config go-vendor-tools.toml hugo.spec # It might be necessary first to edit go-vendor-tools.toml if package # dependencies change. It might also be necessary to edit hugo.spec's # license union. # 4. Place the following in the RPM SOURCES directory: # hugo-VERSION.tar.gz # hugo-VERSION-vendor.tar.bz2 # 0010-skip-modules-TestClient.patch # 0020-fix-errorf.patch # go-vendor-tools.toml # libsass-3.6.6.tar.gz # 5. Review gocheck. Are more or fewer -d arguments needed? # https://github.com/gohugoio/hugo %global goipath github.com/gohugoio/hugo Version: 0.159.0 %gometa -L -f Name: hugo Release: %autorelease Summary: The world’s fastest framework for building websites # Generated by go-vendor-tools License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml # Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories: Source3: libsass-3.6.6.tar.gz # Skip tests that uses the network. # Based on https://sources.debian.org/data/main/h/hugo/0.58.3-1/debian/patches/0005-skip-modules-TestClient.patch Patch0001: 0010-skip-modules-TestClient.patch # See https://github.com/gohugoio/hugo/pull/14665. Patch0002: 0020-fix-errorf.patch BuildRequires: go-vendor-tools BuildRequires: gcc-c++ %description The world’s fastest framework for building websites. %prep %goprep -p1 tar -xf %{S:1} # Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories: mkdir vendor/github.com/bep/golibsass/libsass_src tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-components=1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build # Allow github.com/tetratelabs/wazero to build. # For commentary on notext, see: # https://github.com/wazero/wazero/issues/2469 # https://bugzilla.redhat.com/show_bug.cgi?id=2428281 %global __golang_extldflags -Wl,-z,undefs -Wl,-z,notext %global gomodulesmode GO111MODULE=on # Build extended version of Hugo. export GO_BUILDTAGS="extended" export GO_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} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %global ignores %{shrink: -s TestCommands -s TestModulePrivateRepo -s TestGitInfoFromGitModuleWithGoMod -s TestGitInfoFromGitModuleWithVersionQuery -s TestModuleImportWithVersion -s TestGetRemoteHead -s TestGetRemoteResponseHeaders -s TestVimeoShortcode } %gocheck2 -F %{ignores} %endif %files -f %{go_vendor_license_filelist} %doc docs AGENTS.md CLAUDE.md CONTRIBUTING.md README.md SECURITY.md %{_bindir}/hugo %changelog ## START: Generated by rpmautospec * Mon Mar 30 2026 Mikel Olasagasti Uranga - 0.159.0-2 - Update spec - Update to go2rpm 1.19.0 template - Set `askalono` as license detector - Drop invopop/yaml to oasdiff/yaml module change - Use GO_BUILDTAGS & GO_LDFLAGS - Use gocheck2 and skip individual tests - Drop extra documentation * Tue Mar 24 2026 W. Michael Petullo - 0.159.0-1 - Update to 0.159.0 (rhbz#2434652) * Tue Feb 03 2026 Maxwell G - 0.154.3-3 - Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 * Fri Jan 16 2026 Fedora Release Engineering - 0.154.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Jan 07 2026 W. Michael Petullo - 0.154.3-1 - Update to 0.154.3 * Tue Dec 23 2025 W. Michael Petullo - 0.153.2-1 - Update to 0.153.2 * Sun Dec 21 2025 W. Michael Petullo - 0.153.1-1 - Update to 0.153.1 * Sun Dec 14 2025 W. Michael Petullo - 0.152.2-1 - Update to 0.152.2 * Fri Oct 10 2025 Alejandro Sáez - 0.147.8-4 - rebuild * Fri Aug 15 2025 Maxwell G - 0.147.8-3 - Rebuild for golang-1.25.0 * Thu Jul 24 2025 Fedora Release Engineering - 0.147.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 19 2025 W. Michael Petullo - 0.147.8-1 - Update to 0.147.8 * Wed Jun 04 2025 W. Michael Petullo - 0.147.7-2 - Update licensing after migrating to Trivy * Wed Jun 04 2025 W. Michael Petullo - 0.147.7-1 - Update to 0.147.7 and use vendor versioning * Fri Jan 24 2025 W. Michael Petullo - 0.142.0-4 - Fix typo in %%gocheck definition * Fri Jan 24 2025 W. Michael Petullo - 0.142.0-3 - Remove a build check because it uses networking * Fri Jan 24 2025 W. Michael Petullo - 0.142.0-2 - Remove obsolete patch * Fri Jan 24 2025 W. Michael Petullo - 0.142.0-1 - Update to 0.142.0 * Thu Jan 23 2025 W. Michael Petullo - 0.140.2-5 - Backport s390x check exception * Tue Jan 21 2025 W. Michael Petullo - 0.140.2-4 - Fix build on Go 1.24 * Fri Jan 17 2025 Fedora Release Engineering - 0.140.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jan 01 2025 W. Michael Petullo - 0.140.2-2 - Review and adjust license after SPDX cleanup * Tue Dec 31 2024 W. Michael Petullo - 0.140.2-1 - Update to 0.140.2 * Mon Sep 02 2024 Miroslav Suchý - 0.126.2-5 - convert license to SPDX * Sun Aug 11 2024 W. Michael Petullo - 0.126.2-4 - Add link to Bugzilla after closing golang-github-gohugoio-go-i18n package request * Thu Jul 18 2024 Fedora Release Engineering - 0.126.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 10 2024 W. Michael Petullo - 0.126.2-2 - Restore deploy feature * Fri May 31 2024 W. Michael Petullo - 0.126.2-1 - Update to 0.126.2 * Sun Apr 28 2024 W. Michael Petullo - 0.125.4-1 - Update to 0.125.4 * Sun Apr 28 2024 W. Michael Petullo - 0.124.1-2 - Re-enable checks after afero update * Tue Apr 09 2024 W. Michael Petullo - 0.124.1-1 - Update to 0.124.1 * Sun Feb 11 2024 Maxwell G - 0.121.2-2 - Rebuild for golang 1.22.0 * Wed Feb 07 2024 W. Michael Petullo - 0.121.2-1 - Update to 0.121.2 * Wed Feb 07 2024 W. Michael Petullo - 0.121.1-2 - Modify to remove dependency on golang-gocloud * Mon Feb 05 2024 W. Michael Petullo - 0.121.1-1 - Update to 0.121.1 * Wed Jan 24 2024 Fedora Release Engineering - 0.111.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.111.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Aug 17 2023 W. Michael Petullo - 0.111.3-5 - Replace import patches with use of sed * Wed Jul 26 2023 W. Michael Petullo - 0.111.3-4 - Use %%autopatch -p1 * Mon Jul 24 2023 W. Michael Petullo - 0.111.3-3 - Reenable tests that work again on current Rawhide * Thu Jul 20 2023 Fedora Release Engineering - 0.111.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu May 18 2023 W. Michael Petullo - 0.111.3-1 - Update to 0.111.3 (rhbz#1930952) - Use new patch macro - Deactivate a broken test * Sat Feb 25 2023 W. Michael Petullo - 0.109.0-3 - Import hugo-0.109.0.tar.gz * Thu Jan 19 2023 Fedora Release Engineering - 0.109.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 12 2023 W. Michael Petullo - 0.109.0-1 - 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 * Wed Jan 11 2023 W. Michael Petullo - 0.101.0-6 - Add diagnostic instructions to hugo.spec * Mon Jan 02 2023 Elliott Sales de Andrade - 0.101.0-5 - Add more build metadata to executable * Sun Oct 30 2022 W. Michael Petullo - 0.101.0-4 - Add hugo-0.101.0.tar.gz * Wed Oct 26 2022 W. Michael Petullo - 0.101.0-3 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec