# Generated by go2rpm 1 %bcond_without check # https://github.com/OJ/gobuster %global goipath github.com/OJ/gobuster Version: 3.1.0 %gometa %global common_description %{expand: Directory/File, DNS and VHost busting tool written in Go.} %global golicenses LICENSE %global godocs README.md TODO.md Name: gobuster Release: %autorelease Summary: Directory/File, DNS and VHost busting tool written in Go License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(golang.org/x/crypto/ssh/terminal) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/gobuster %{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 TODO.md %{_bindir}/* %gopkgfiles %changelog %autochangelog