# Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/francoismichel/ssh3 %global goipath github.com/francoismichel/ssh3 Version: 0.1.5~rc2 %gometa -L -f %global extractdir %(echo %{extractdir} | sed -e 's/~/-/g') %global gosource %(echo %{gosource} | sed -e 's/~/-/g') %global goname ssh3 %global common_description %{expand: SSH3: faster and rich secure shell using HTTP/3.} %global golicenses LICENSE %global godocs README.md Name: ssh3 Release: %autorelease Summary: Faster and rich secure shell using HTTP/3 License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %package -n ssh3-server Summary: Server for SSH3 %description -n ssh3-server Server for SSH3 %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %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 %license LICENSE %doc README.md %{_bindir}/ssh3 %files -n ssh3-server %license LICENSE %doc README.md %{_bindir}/ssh3-server %gopkgfiles %changelog %autochangelog