diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75cdcdc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clifm-1.7.tar.gz diff --git a/clifm.spec b/clifm.spec new file mode 100644 index 0000000..ec039e7 --- /dev/null +++ b/clifm.spec @@ -0,0 +1,75 @@ +Name: clifm +Version: 1.7 +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 +# misc/colors/ and plugins/ are GPL-3.0-only +# src/ are GPL-2.0-or-later + + +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 +# 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 +- Initial package build +- rhbz#2118835 diff --git a/sources b/sources new file mode 100644 index 0000000..e2522bb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clifm-1.7.tar.gz) = 30bdc33090846b82edb2cf6372ca3515806f85261405476518d9b5cb1f9dc22e513263cac70f7d93bb85e6489b1486868964b1719637c1b317ce491b5734c453