- Switch _service to use manual instead of the deprecated disabled - Update to version 32: Breaking: * The example script etc/lfcd.cmd is updated to use the -print-last-dir option instead of -last-dir-path * The documentation from lf -doc and the doc command is now generated from Markdown using pandoc New: * A new option hidecursorinactive is added to hide the cursor when the terminal is not focused * A new special command on-redraw is added to be able to run a command when the screen is redrawn or when the terminal is resized * Options cutfmt, copyfmt and selectfmt are added to configure the indicator color for cut/copied/selected files respectively * zsh completion is added for the lfcd command * The file stat information now falls back to displaying user/group ID if looking up the user/group name fails * A new environment variable lf_mode is now exported to indicate which mode lf is currently running in * Default icons are added for Docker Compose files Fix: * Default value of rulerfmt option is now left-padded with spaces to visually separate it from the file stat information * Previews should now work for files containing lines with 65536 characters or more * Sixel previews should now work when using lfcd scripts * Colors and icons should now display properly for character device files * The selection file is now immediately synced to physical storage after writing to it * Timestamps are preserved when moving files across devices * Fix crash for high and low commands when scrolloff is set to a large value * Documentation is updated with various spelling and grammar fixes * Files beginning with a dot * Prevent potential race condition when sorting directory contents * Signals are now handled properly even after receiving and ignoring SIGINT * The file stat information should now update properly after using the cd command to change to a directory for the first time * Previous error messages should now be cleared after a mark-save/mark-remove operation * Fix high CPI usage issue when viewing CryFS filesystems * Invalid entries in the marks and tags files now raise an error message instead of crashing * Startup time is improved on Windows * Sixel previews are now resized properly when the horizontal size of the preview window changes * The cut buffer is only cleared if the paste operation succeeds * The extension after . is ignored to set the cursor position when renaming a directory * The option period should not cause flickers in sixel previews anymore OBS-URL: https://build.opensuse.org/request/show/1163812 OBS-URL: https://build.opensuse.org/package/show/utilities/lf?expand=0&rev=7
103 lines
3.0 KiB
RPMSpec
103 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package lf
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: lf
|
|
Version: 32
|
|
Release: 0
|
|
Summary: Terminal file manager (with sixel support)
|
|
License: MIT
|
|
Group: Productivity/File utilities
|
|
URL: https://github.com/gokcehan/lf
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: golang-packaging
|
|
|
|
%description
|
|
lf (as in "list files") is a terminal file manager written in Go with a
|
|
heavy inspiration from ranger file manager
|
|
|
|
%package bash-completion
|
|
Summary: Bash Completion for %{name}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and bash-completion)
|
|
Requires: bash-completion
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
Bash command-line completion support for %{name}.
|
|
|
|
%package fish-completion
|
|
Summary: Fish Completion for %{name}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and fish)
|
|
Requires: fish
|
|
BuildArch: noarch
|
|
|
|
%description fish-completion
|
|
Fish command-line completion support for %{name}.
|
|
|
|
%package zsh-completion
|
|
Summary: Zsh Completion for %{name}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and zsh)
|
|
Requires: zsh
|
|
BuildArch: noarch
|
|
|
|
%description zsh-completion
|
|
Zsh command-line completion support for %{name}.
|
|
|
|
%prep
|
|
%autosetup -a 1
|
|
|
|
%build
|
|
go build -v -buildmode=pie -ldflags="-s -w \
|
|
-X main.gVersion=%{version}" \
|
|
-mod vendor -trimpath .
|
|
|
|
%install
|
|
install -Dm755 -t "%{buildroot}%{_bindir}" lf
|
|
install -Dm644 -t "%{buildroot}%{_mandir}/man1" lf.1
|
|
install -Dm644 -t "%{buildroot}%{_docdir}/%{name}" README.md etc/lfrc.example
|
|
install -Dm644 -t "%{buildroot}%{_datadir}/applications" lf.desktop
|
|
install -Dm644 -t "%{buildroot}%{_datadir}/bash-completion/completions/lf" etc/lf.bash
|
|
install -Dm644 -t "%{buildroot}%{_datadir}/fish/vendor_functions.d" etc/lfcd.fish
|
|
install -Dm644 -t "%{buildroot}%{_datadir}/fish/vendor_completions.d/lf.fish" etc/lf.fish
|
|
install -Dm644 -t "%{buildroot}%{_datadir}/zsh/site-functions/_lf" etc/lf.zsh
|
|
install -Dm644 -t "%{buildroot}%{_licensedir}/lf" LICENSE
|
|
|
|
%files
|
|
%doc README.md lfrc.example
|
|
%license LICENSE
|
|
|
|
%{_mandir}/man1/lf.1*
|
|
%{_bindir}/lf
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion/*
|
|
|
|
%files fish-completion
|
|
%dir %{_datadir}/fish
|
|
%{_datadir}/fish/*
|
|
|
|
%files zsh-completion
|
|
%dir %{_datadir}/zsh
|
|
%{_datadir}/zsh/*
|
|
|
|
%changelog
|