# Generated by go2rpm 1.3 %bcond_without check # https://github.com/hakluke/hakrawler %global goipath github.com/hakluke/hakrawler %global commit e39a514d0e179d33362ee244c017fb65cc2c12a5 %gometa %global common_description %{expand: Simple, fast web crawler designed for easy, quick discovery of endpoints and assets within a web application.} %global golicenses LICENSE %global godocs README.md Name: hakrawler Version: 0 Release: 0.1%{?dist} Summary: Web crawler for the discovery of endpoints and assets License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/gocolly/colly) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/logrusorgru/aurora) BuildRequires: golang(github.com/oxffaa/gopher-parse-sitemap) %if %{with check} # Tests BuildRequires: golang(gopkg.in/h2non/gock.v1) %endif %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/hakrawler %{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 Dec 24 2020 Fabian Affolter - 0-0.1.20201224gite39a514 - Initial package for Fedora