File lazydocker.spec of Package lazydocker

# Generated by go2rpm 1.11.1
%bcond_without check

# https://github.com/jesseduffield/lazydocker
%global goipath         github.com/jesseduffield/lazydocker
Version:                0.24.1

%gometa -L -f

%global common_description %{expand:
The lazier way to manage everything docker.}

%global golicenses      LICENSE
%global godocs          docs README.md

Name:           lazydocker
Release:        0
Summary:        The lazier way to manage everything docker

License:        MIT
URL:            %{gourl}
Source:         %{gosource}

BuildRequires:  go-rpm-macros

Provides:       %{goname} = %{version}
Obsoletes:      %{goname} < 0.23.3

%description %{common_description}

%gopkg

%prep
%goprep -A -k
%autopatch -p1

%build
%gobuild -o %{gobuilddir}/bin/lazydocker %{goipath}
for cmd in scripts/translations scripts/cheatsheet; 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 docs README.md
%{_bindir}/*

%gopkgfiles

%changelog
openSUSE Build Service is sponsored by