# Generated by go2rpm %bcond_without check # https://github.com/fernet/fernet-go %global goipath github.com/fernet/fernet-go %global commit 9eac43b88a5efb8651d24de9b68e87567e029736 %gometa %global common_description %{expand: Fernet takes a user-provided *message* (an arbitrary sequence of bytes), a key (256 bits), and the current time, and produces a token, which contains the message in a form that can't be read or altered without the key.} %global godocs Readme Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Generate and verify HMAC-based authentication tokens License: # FIXME 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}/ %if %{with check} %check %gocheck %endif %files %doc Readme %{_bindir}/* %gopkgfiles %changelog * Tue May 07 23:56:02 CEST 2019 Robert-André Mauchin - 0-0.1.20190507git9eac43b - Initial package