%global debug_package %{nil} Name: lazydocker Version: 0.24.1 Release: 1%{?dist} Summary: The lazier way to manage everything docker License: MIT URL: https://github.com/jesseduffield/lazydocker Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: golang >= 1.24 %if 0%{?fedora} BuildRequires: go-md2man %endif %description A simple terminal UI for both docker and docker-compose, written in Go. %prep %autosetup -p1 %build go build \ -ldflags "-X main.version=%{version} -s -w" \ -o _build/%{name} %if 0%{?fedora} go-md2man -in README.md -out %{name}.1 %endif %install install -Dpm 0755 _build/%{name} %{buildroot}%{_bindir}/%{name} %if 0%{?fedora} install -Dpm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %endif %files %license LICENSE %doc README.md CONTRIBUTING.md docs/ %{_bindir}/%{name} %if 0%{?fedora} %{_mandir}/man1/*.1* %endif %changelog %autochangelog