# Generated by go2rpm 1 %bcond_without check # https://github.com/Dreamacro/go-shadowsocks2 %global goipath github.com/Dreamacro/go-shadowsocks2 Version: 0.1.5 %gometa %global common_description %{expand: Experimental Shadowsocks in Go. Stable fork at https://github.com/shadowsocks/go-shadowsocks2.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Experimental Shadowsocks in Go. Stable fork at https://github.com/shadowsocks/go-shadowsocks2 # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/crypto/chacha20) BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/hkdf) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/go-shadowsocks2 %{goipath} %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 * Wed Jun 24 02:04:37 CST 2020 proletarius101 - 0.1.5-1 - Initial package