# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/nats-io/jwt %global goipath github.com/nats-io/jwt Version: 2.5.0 %gometa -f %global goname golang-github-nats-io-jwt-2 %global goaltipaths github.com/nats-io/jwt/v2 %global common_description %{expand: JWT tokens signed using NKeys for Ed25519 for the NATS ecosystem.} %global golicenses LICENSE %global godocs README.md ReleaseNotes.md dependencies.md Name: %{goname} Release: %autorelease Summary: JWT tokens signed using NKeys for Ed25519 for the NATS ecosystem License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in v2; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md ReleaseNotes.md dependencies.md %{_bindir}/* %gopkgfiles %changelog %autochangelog