%global commit bd9457fb4aec0a797bf0b449fc7f33d3277af15d %global shortcommit %(c=%commit}; echo ${c:0:7}) Name: clifm Version: 1.7~^1.%{shortcommit} Release: 1%{?dist} Summary: Shell-like, command line terminal file manager # source is pretty evently split between these License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-1.0-only # misc/colors/ and plugins/ are GPL-3.0-only # src/ are GPL-2.0-or-later # LICENSE is GPL-2.0-only URL: https://github.com/leo-arch/clifm Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: readline-devel BuildRequires: libcap-devel BuildRequires: libacl-devel BuildRequires: file-devel BuildRequires: desktop-file-utils Requires: hicolor-icon-theme %description CliFM is a Command Line Interface File Manager: all input and interaction is performed via commands. This is its main feature and strength. Unlike most terminal file managers out there, indeed, CliFM replaces the traditional TUI interface (also known as curses or text-menu based interface) by a command-line interface (CLI),1 also known as REPL.2 If working with the command-line, your workflow is not affected at all, but just enriched with file management functionalities: automatic files listing, files selection, bookmarks, tags, directory jumper, directory and commands history, auto-cd and auto-open, bulk rename, TAB completion, autosuggestions, and a trash system, among other features. In this sense, CliFM is certainly a file manager, but also a shell extension. Briefly put, with CliFM the command-line is always already there, never hidden. %prep %autosetup -n %{name}-%{commit} # just to be sure we use system lib rm -f src/{printf*,qsort.h} %build %cmake %cmake_build %install %cmake_install desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %files %license LICENSE %doc README.md CHANGELOG %{_bindir}/%{name} %{_datadir}/applications/clifm.desktop %{_datadir}/%{name}/ %{_mandir}/man1/%{name}.1* %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/bash-completion/completions/%{name} %{_datadir}/zsh/site-functions/_%{name} %changelog * Tue Aug 16 2022 Jonathan Wright - 1.7~^1.bd9457f-1 - Initial package build - rhbz#2118835