Name: lf Version: 31 Release: 1%{?dist} Summary: Terminal file manager written in Go License: MIT URL: https://github.com/gokcehan/lf Source0: %{url}/archive/r%{version}.tar.gz # These are the build requirements BuildRequires: go-rpm-macros BuildRequires: golang %description lf (as in "list files") is a terminal file manager written in Go. It is heavily inspired by ranger with some missing and extra features. %prep # Unpack the source tarball %autosetup -n lf-r%{version} %build # Use Fedora's Go build macros to compile the binary # Enable module support so Go can download dependencies export GO111MODULE=on # Download the dependencies before building go mod download # Now build the binary go build -o %{name} . %install # Create the directory inside the virtual 'buildroot' mkdir -p %{buildroot}%{_bindir} # Move the 'lf' binary we just built into that directory install -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} %files # This tells RPM which files to actually include in the final package %{_bindir}/%{name} %license LICENSE %doc README.md %changelog * Sun Apr 05 2026 Chris McDonald - 31-1 - Initial package for Copr