# Generated by go2rpm %bcond_without check # https://github.com/mvdan/xurls %global goipath mvdan.cc/xurls %global forgeurl https://github.com/mvdan/xurls Version: 2.0.0 %gometa %global goaltipaths github.com/mvdan/xurls %global common_description %{expand: Extract urls from text using regular expressions. Requires Go 1.10.3 or later.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Extract urls from text # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} %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 %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sat May 18 21:32:37 CEST 2019 Robert-André Mauchin - 2.0.0-1 - Initial package