# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/gammazero/nexus %global goipath github.com/gammazero/nexus Version: 3.2.0 %gometa -f %global common_description %{expand: Full-feature WAMP v2 router and client written in Go.} %global golicenses LICENSE %global godocs doc examples CONTRIBUTING.md README.md\\\ nexusd/README.md Name: %{goname} Release: %autorelease Summary: Full-feature WAMP v2 router and client written in Go License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in nexusd; 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 doc examples CONTRIBUTING.md README.md nexusd/README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog