Blame golang-mvdan-xurls.spec

0958c51
# Generated by go2rpm
0958c51
%bcond_without check
0958c51
0958c51
# https://github.com/mvdan/xurls
0958c51
%global goipath         mvdan.cc/xurls
0958c51
%global forgeurl        https://github.com/mvdan/xurls
6103251
Version:                2.2.0
0958c51
0958c51
%gometa
0958c51
b3b94f5
%global goaltipaths     github.com/mvdan/xurls mvdan.cc/xurls/v2
0958c51
0958c51
%global common_description %{expand:
0958c51
Extract urls from text using regular expressions. Requires Go 1.10.3 or later.}
0958c51
0958c51
%global golicenses      LICENSE
0958c51
%global godocs          README.md
0958c51
0958c51
Name:           %{goname}
b3b94f5
Release:        2%{?dist}
0958c51
Summary:        Extract urls from text
0958c51
0958c51
# Upstream license specification: BSD-3-Clause
0958c51
License:        BSD
0958c51
URL:            %{gourl}
0958c51
Source0:        %{gosource}
0958c51
6103251
%if %{with check}
6103251
# Tests
6103251
BuildRequires:  golang(github.com/rogpeppe/go-internal/testscript)
6103251
%endif
6103251
0958c51
%description
0958c51
%{common_description}
0958c51
0958c51
%gopkg
0958c51
0958c51
%prep
0958c51
%goprep
0958c51
0958c51
%build
0958c51
for cmd in cmd/* ; do
0958c51
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
0958c51
done
0958c51
0958c51
%install
0958c51
%gopkginstall
0958c51
install -m 0755 -vd                     %{buildroot}%{_bindir}
0958c51
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
0958c51
0958c51
%if %{with check}
0958c51
%check
6103251
%gocheck -d cmd/xurls
0958c51
%endif
0958c51
0958c51
%files
0958c51
%license LICENSE
0958c51
%doc README.md
0958c51
%{_bindir}/*
0958c51
0958c51
%gopkgfiles
0958c51
0958c51
%changelog
b3b94f5
* Fri Aug 07 21:26:12 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.2.0-2
b3b94f5
- Add alternate import path
b3b94f5
6103251
* Thu Aug 06 22:43:35 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.2.0-1
6103251
- Update to 2.2.0
6103251
f5018e3
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
f5018e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f5018e3
87cf6c3
* Sun Feb 16 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.0-1
87cf6c3
- Update to latest version
87cf6c3
53c8931
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
53c8931
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
53c8931
d88fd73
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
d88fd73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d88fd73
0958c51
* Sat May 18 21:32:37 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-1
0958c51
- Initial package