## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/golang-jwt/jwt %global goipath github.com/golang-jwt/jwt Version: 3.2.2 %gometa %global common_description %{expand: A go implementation of JSON Web Tokens. Supports the parsing and verification, as well as the generation and signing of JWTs.} %global golicenses LICENSE %global godocs MIGRATION_GUIDE.md README.md VERSION_HISTORY.md Name: %{goname} Release: %autorelease Summary: A go implementation of JSON Web Tokens License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; 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}/ install -m 0755 -vd %{buildroot}%{_defaultdocdir}/%{goname} install -m 0644 -vp cmd/jwt/README.md %{buildroot}%{_defaultdocdir}/%{goname}/README-jwt.md %if %{with check} %check %gocheck %endif %files %license LICENSE %doc MIGRATION_GUIDE.md README.md VERSION_HISTORY.md README-jwt.md %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering 3.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 13 2021 Sanne Raymaekers 3.2.2-1 - Initial import (#1989386)