# Generated by go2rpm 1.3 %bcond_without check # https://github.com/psanford/wormhole-william %global goipath github.com/psanford/wormhole-william Version: 1.0.4 %gometa %global common_description %{expand: Wormhole-william is a Go (golang) implementation of magic wormhole. It provides secure end-to-end encrypted file transfers between computers. The endpoints are connected using the same "wormhole code".} %global golicenses LICENSE %global godocs examples README.md Name: wormhole-william Release: 1%{?dist} Summary: End-to-end encrypted file transfer License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/cheggaaa/pb/v3) BuildRequires: golang(github.com/gorilla/websocket) BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/crypto/nacl/secretbox) BuildRequires: golang(salsa.debian.org/vasudev/gospake2) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/wormhole-william %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # Needs network for test in "TestWormholeDirectoryTransportSendRecvDirect" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc examples README.md %{_bindir}/* %gopkgfiles %changelog * Sat Jan 30 21:24:25 CET 2021 Robert-André Mauchin - 1.0.4-1 - Initial package