# Generated by go2rpm %bcond_without check # https://github.com/layeh/radius %global goipath layeh.com/radius %global forgeurl https://github.com/layeh/radius %global commit 890bc1058917bf8fb12e1db40fada7d394401b2a %gometa %global common_description %{expand: A Go (golang) RADIUS client and server implementation.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: A Go (golang) RADIUS client and server implementation # Upstream license specification: MPL-2.0 License: MPLv2.0 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 for cmd in vendors/mikrotik vendors/aruba debug; 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 %{_bindir}/* %gopkgfiles %changelog * Fri Feb 14 15:03:44 CET 2020 Xavier Bachelot - 0-0.1.20200214git890bc10 - Initial package