# 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.1%{?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 * Sat May 04 17:35:57 CEST 2019 Robert-André Mauchin - 0-0.1.20190504git7d4729f - Initial package