Blob Blame History Raw
# Generated by go2rpm 1
%bcond_without check

# https://github.com/OJ/gobuster
%global goipath         github.com/OJ/gobuster
Version:                3.0.1

%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:        3%{?dist}
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
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
- Second attempt - Rebuilt for
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Mar 24 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
- Initial package for Fedora