# Generated by go2rpm 1.3 %bcond_without check # https://github.com/gocolly/colly %global goipath github.com/gocolly/colly Version: 2.1.0 %gometa %global common_description %{expand: Elegant Scraper and Crawler Framework for Golang.} %global golicenses LICENSE.txt %global godocs _examples CONTRIBUTING.md CHANGELOG.md README.md Name: %{goname} Release: 1%{?dist} Summary: Elegant Scraper and Crawler Framework for Golang # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/antchfx/htmlquery) BuildRequires: golang(github.com/antchfx/xmlquery) BuildRequires: golang(github.com/gobwas/glob) BuildRequires: golang(github.com/jawher/mow.cli) BuildRequires: golang(github.com/kennygrant/sanitize) BuildRequires: golang(github.com/PuerkitoBio/goquery) BuildRequires: golang(github.com/saintfish/chardet) BuildRequires: golang(github.com/temoto/robotstxt) BuildRequires: golang(golang.org/x/net/html) BuildRequires: golang(golang.org/x/net/html/charset) BuildRequires: golang(google.golang.org/appengine/urlfetch) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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.txt %doc _examples CONTRIBUTING.md CHANGELOG.md README.md %{_bindir}/* %gopkgfiles %changelog * Fri Dec 25 2020 Fabian Affolter - 2.1.0-1 - Initial package for Fedora