|
|
|
@ -0,0 +1,112 @@
|
|
|
|
|
# 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.2.0
|
|
|
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
|
|
|
|
|
%global goaltipaths github.com/mvdan/xurls mvdan.cc/xurls/v2
|
|
|
|
|
|
|
|
|
|
%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: 10%{?dist}
|
|
|
|
|
Summary: Extract urls from text
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: BSD-3-Clause
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: %{gourl}
|
|
|
|
|
Source0: %{gosource}
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: golang(github.com/rogpeppe/go-internal/testscript)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%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 -d cmd/xurls
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Apr 19 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 2.2.0-10
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 2.2.0-7
|
|
|
|
|
- Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in
|
|
|
|
|
golang
|
|
|
|
|
|
|
|
|
|
* Sat Jun 18 2022 Robert-André Mauchin <zebob.m@gmail.com> - 2.2.0-6
|
|
|
|
|
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191,
|
|
|
|
|
CVE-2022-29526, CVE-2022-30629
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Aug 07 21:26:12 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.2.0-2
|
|
|
|
|
- Add alternate import path
|
|
|
|
|
|
|
|
|
|
* Thu Aug 06 22:43:35 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.2.0-1
|
|
|
|
|
- Update to 2.2.0
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 16 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.0-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat May 18 21:32:37 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-1
|
|
|
|
|
- Initial package
|