Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/rogpeppe/go-internal
%global goipath         github.com/rogpeppe/go-internal
Version:                1.5.0

%gometa

%global common_description %{expand:
Selected Go-internal packages factored out from the standard library.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        2%{?dist}
Summary:        Selected Go-internal packages factored out from the standard library

# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(gopkg.in/errgo.v2/fmt/errors)

%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
# https://github.com/rogpeppe/go-internal/issues/76
%gocheck -d imports -d cmd/testscript -d testscript
%endif

%files
%license LICENSE
%doc README.md
%{_bindir}/*

%gopkgfiles

%changelog
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Oct 10 16:48:13 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.5.0-1
- Release 1.5.0 (#1747063)
- Disable failing test (#1735296)

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue May 07 15:22:23 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.3.0-1
- Initial package