# Generated by go2rpm 1.3 %bcond_without check # https://github.com/muesli/duf %global goipath github.com/muesli/duf Version: 0.5.0 %gometa %global common_description %{expand: Disk Usage/Free Utility} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: None License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/jedib0t/go-pretty/v6/table) BuildRequires: golang(github.com/jedib0t/go-pretty/v6/text) BuildRequires: golang(github.com/muesli/termenv) BuildRequires: golang(golang.org/x/crypto/ssh/terminal) BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/duf %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/duf %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/duf %gopkgfiles %changelog * Wed Jan 27 02:56:48 UTC 2021 Qiyu Yan - 0.5.0-1 - Initial package