## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1 %bcond_without check %global build_timestamp %(date +"%Y%m%d") # https://github.com/Dreamacro/go-shadowsocks2 %global goipath github.com/Dreamacro/go-shadowsocks2 Version: 0.1.7 %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: %autorelease Summary: Experimental Shadowsocks in Go # 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 * Thu Jan 20 2022 Fedora Release Engineering 0.1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Apr 03 2021 Qiyu Yan - 0.1.7-1 - Update to 0.1.7 upstream release * Tue Jan 26 2021 Fedora Release Engineering - 0.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Oct 09 2020 Qiyu Yan - 0.1.6-1 - update to 0.1.6 upstream release * Tue Aug 18 2020 Qiyu Yan - 0.1.6-0.1 - update to 0.1.6 prerelease * Tue Jul 28 00:07:28 CST 2020 Qiyu Yan - 0.1.5-1 - Initial package