# Generated by go2rpm
# Needs access to /dev/mem, not available in chroot
%bcond_with check
# https://github.com/mrunalp/fileutils
%global goipath github.com/mrunalp/fileutils
%global commit 7d4729fb36185a7c1719923406c9d40e54fb93c7
%gometa
%global common_description %{expand:
Collection of utilities for file manipulation in Go.}
%global golicenses LICENSE
%global godocs README.md
Name: %{goname}
Version: 0
Release: 0.3%{?dist}
Summary: Collection of utilities for file manipulation in Go
# Upstream license specification: Apache-2.0
License: ASL 2.0
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
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat May 04 17:35:57 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190627git7d4729f
- Initial package