# Generated by go2rpm 1 %bcond_without check # https://github.com/gobwas/ws %global goipath github.com/gobwas/ws Version: 1.0.3 %gometa %global common_description %{expand: Tiny WebSocket library for Go.} %global golicenses LICENSE %global godocs example README.md Name: %{goname} Release: 1%{?dist} Summary: Tiny WebSocket library License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/gobwas/httphead) BuildRequires: golang(github.com/gobwas/pool) %description %{common_description} %gopkg %prep %goprep %build for cmd in autobahn; 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 example README.md %{_bindir}/* %gopkgfiles %changelog * Tue Apr 07 2020 Fabian Affolter - 1.0.3-1 - Initial package