# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/mythologyli/zju-connect %global goipath github.com/mythologyli/zju-connect Version: 1.3.1 %gometa -L -f Name: zju-connect Release: %autorelease Summary: ZJU RVPN 客户端的 Go 语言实现 # Generated by go-vendor-tools License: AGPL-3.0-only AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-only AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description ZJU RVPN 客户端的 Go 语言实现. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/zju-connect %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs README.md README_en.md %{_bindir}/zju-connect %changelog %autochangelog