1
Fork 0

Add needed go dependencies for hugo

This commit is contained in:
Joshua Goins 2024-12-30 18:14:30 -05:00
parent f456045983
commit 639b528cd8
7 changed files with 425 additions and 135 deletions

View file

@ -0,0 +1,94 @@
# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/bep/imagemeta
%global goipath github.com/bep/imagemeta
Version: 0.8.3
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another package,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -L -f
%global common_description %{expand:
Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG,
and WebP files.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-github-bep-imagemeta
Release: %autorelease
Summary: Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in gen; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0775 -p %{gosourcedir}/metadecoder_iptc_fields.json %{buildroot}%{_datadir}/gocode/src/github.com/bep/imagemeta/metadecoder_iptc_fields.json
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%files
%license LICENSE
%doc README.md
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should not use globs to avoid installing conflicting
# binaries.
# Write a _bindir line per each of the binaries the package will install.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%{_bindir}/*
%gopkgfiles
%{_datadir}/gocode/src/github.com/bep/imagemeta/metadecoder_iptc_fields.json
%changelog
%autochangelog

View file

@ -0,0 +1,57 @@
# Generated by go2rpm
%bcond_without check
%global debug_package %{nil}
# https://github.com/bep/gitmap
%global goipath github.com/bep/gitmap
Version: 1.6.0
%gometa
%global godevelheader %{expand:
Requires: git-core}
%global common_description %{expand:
A fairly fast way to create a map from all the filenames to info objects for a
given revision of a Git repo.
This library uses os/exec to talk to Git. There are faster ways to do this by
using some Go Git-lib or C bindings, but that adds dependencies I really don't
want or need.}
%global golicenses LICENSE
%global godocs README.md
Name: %{goname}
Release: %autorelease
Summary: Create map from filename to info object from revision of a repo
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: git-core
%description
%{common_description}
%gopkg
%prep
%goprep
%install
%gopkginstall
%if %{with check}
%check
# .: Skip tests that require execution from Git repository.
%gocheck \
-d .
%endif
%gopkgfiles
%changelog
%autochangelog

View file

@ -0,0 +1,66 @@
# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%global debug_package %{nil}
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/gohugoio/hashstructure
%global goipath github.com/gohugoio/hashstructure
Version: 0.1.0
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another package,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -L -f
%global common_description %{expand:
Get hash values for arbitrary values in Go (golang).}
%global golicenses LICENSE
%global godocs README.md
Name: golang-github-gohugoio-hashstructure
Release: %autorelease
Summary: Get hash values for arbitrary values in Go (golang)
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%install
%gopkginstall
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%gopkgfiles
%changelog
%autochangelog

View file

@ -0,0 +1,67 @@
# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%global debug_package %{nil}
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/gohugoio/httpcache
%global goipath github.com/gohugoio/httpcache
Version: 0.7.0
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another package,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -L -f
%global common_description %{expand:
A Transport for http.Client that will cache responses according to the HTTP
RFC.}
%global golicenses LICENSE.txt
%global godocs README.md
Name: golang-github-gohugoio-httpcache
Release: %autorelease
Summary: A Transport for http.Client that will cache responses according to the HTTP RFC
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%install
%gopkginstall
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%gopkgfiles
%changelog
%autochangelog

View file

@ -0,0 +1,50 @@
# Generated by go2rpm 1.10.0
%bcond_without check
%global debug_package %{nil}
# https://github.com/gohugoio/hugo-goldmark-extensions
%global goipath github.com/gohugoio/hugo-goldmark-extensions
Version: 0.3.0
%global tag passthrough/v0.3.0
%global distprefix %{nil}
%gometa -L -f
%global common_description %{expand:
A collection of Goldmark extensions created by the Hugo community.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-github-gohugoio-hugo-goldmark-extensions
Release: %autorelease
Summary: A collection of Goldmark extensions created by the Hugo community
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
%if %{with check}
%check
# passthrough: fails on Rawhide.
%gocheck \
-d passthrough
%endif
%gopkgfiles
%changelog
%autochangelog

View file

@ -0,0 +1,91 @@
# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/tetratelabs/wazero
%global goipath github.com/tetratelabs/wazero
Version: 1.8.2
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another package,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -L -f
%global common_description %{expand:
Wazero: the zero dependency WebAssembly runtime for Go developers.}
%global golicenses LICENSE NOTICE
Name: golang-github-tetratelabs-wazero
Release: %autorelease
Summary: Wazero: the zero dependency WebAssembly runtime for Go developers
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
# check fials
%endif
%endif
%if %{without bootstrap}
%files
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should not use globs to avoid installing conflicting
# binaries.
# Write a _bindir line per each of the binaries the package will install.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%{_bindir}/*
%endif
%gopkgfiles
%changelog
%autochangelog

File diff suppressed because one or more lines are too long