# Generated by go2rpm -p vendor --name rdap --version 0.9.1 github.com/openrdap/rdap %bcond check 1 # https://github.com/openrdap/rdap %global goipath github.com/openrdap/rdap Version: 0.9.1 %gometa -L -f Name: rdap Release: %autorelease Summary: RDAP command line client # Generated by go-vendor-tools License: BSD-3-Clause AND ISC 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 RDAP command line client. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if %{with check} %gotest ./... %endif %files %license LICENSE %doc README.md %{_bindir}/rdap %changelog %autochangelog