SHA256
1
0
forked from pool/nnn
nnn/nnn.spec

58 lines
1.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nnn
#
Accepting request 663514 from home:dilawar:branches:openSUSE:Factory - Update to 2.2 * (neo)vim plugin nnn.vim * macOS fixes - Fix issues with file copy, move, remove - Handle Del in rename prompt - Pass correct file option to identify mime * Support selection across directories and contexts * Offer option force before file remove * Keys Tab, ^I to go to next active context * Per-context directory color specified by $NNN_CONTEXT_COLORS - Option -c is removed * Option -C to disable colors * Choose script to run from a script directory * Run a command (or launch an application) * Run file as executable (key C) * Documentation on lftp integration for remote file transfers * Support a combined set of arguments to $EDITOR, $PAGER and $SHELL * Handle > 2 GB files on 32-bit ARM * Env var $DISABLE_FILE_OPEN_ON_NAV to disable file open on Right or l * NUL-terminated file paths in selection list instead of LF * Better support for Termux and Cygwin environments * Remapped keys - ^I - go to next active context - ^T - toggle navigate-as-you-type - Update to 2.1 * Multiple contexts (aka tabs aka workspaces) [max 4] * Copy, move, remove selected files, remove current file * Leader key (like vim) * In-built GUI app launcher with up to 2 arguments (key o) * List copy selection (key y) * Env var NNN_NO_AUTOSELECT to disable dir auto-select * Key Esc exits prompt, ^L clears prompt * Program runtime help revamped * Static code analysis integration * gcc-8 warnings fixed * Remapped keys: ^W - go to pinned dir ^X - delete current entry ^Q - quit program * nlay is retired (functionality built into nnn) * chdir prompt is retired * Env var NNN_NO_X retired, selection now works out of the box * Only single-char bookmark keys (to work with Leader key) - Update to 2.0 * Added mode to show apparent size (key S) * Added script to integrate patool instead of atool * Added support bashlock (OS X) and lock (BSD) as terminal locker * Added symbol @/ for symlink to dir * Dependency on libreadline removed - Update to 1.9 * Support unlimited number of scripts * Pass currently selected filename as first argument to custom scripts * Support directory auto-select in navigate-as-you-type mode * Show selection name in archive name prompt * Better support on RHEL 25 with earlier version on curses * Sample script for fzy integration - Update to 1.8 * Run a custom script * Archive selected file/directory * Show number of cherry-picked files in multi-copy mode * Env var NNN_SHOW_HIDDEN to show hidden files by default * Additional information in help screen * Prefer env var VISUAL, if defined, to EDITOR * New/changed/remapped shortcuts ^] - spawn a new shell in current directory r - edit directory entries in vidir R - run a custom script ^I - toggle navigate-as-you-type mode L - lock the current terminal * All Ctrl shortcuts enabled in navigate-as-you-type mode * Fix: GUI programs closing when parent terminal is closed * Recognize ~, - and & at bookmark prompt * Recognize ruby (.rb) files as text files * Efficient integer-only file size calculation - minor cleanup with spec-cleaner - include license, readme and changelog - Update to 1.7 * Batch rename/move/delete files in vidir (from moreutils) * Copy multiple file paths * Copy file paths when X is unavailable * Optionally quote individual file paths with single quotes on copy * Use ISO 8601 date format in file details * See CHANGELOG for new and changed keybindings - cleanup with spec-cleaner - Ensure neutrality of description. - Update to 1.6 * Shortcut ^O to open file with custom application * Option -b to open bookmarks directly at start * Huge performance improvements around file name storing and handling * Several large static buffers removed or reduced * Several internal algorithms fine tuned for performance / resource usage - pass through optflags - Update to 1.5 * File and directory creation (n) * Env variable NNN_NOWAIT to unblock nnn when opening files (DE-specific) * Show current entry number in status bar * Support archive listing (F) and extraction (Ctrl-X) [using atool] * Show correct file size on i386 for large files (> 2GB) - Drop _service file - Create initial package at 1.4 OBS-URL: https://build.opensuse.org/request/show/663514 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=17
2019-01-08 04:36:17 +00:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: nnn
Version: 2.6
Release: 0
Summary: Terminal based file browser
License: GPL-2.0-or-later
Group: Productivity/File utilities
Accepting request 628527 from home:dilawar:branches:openSUSE:Factory - Update to 1.9 * Support unlimited number of scripts * Pass currently selected filename as first argument to custom scripts * Support directory auto-select in navigate-as-you-type mode * Show selection name in archive name prompt * Support Cygwin opener * Better support on RHEL 25 with earlier version on curses * Sample script for fzy integration * Now available on OpenBSD * Disabled package generation for Ubuntu 17.10 - Update to 1.8 * Run a custom script * Archive selected file/directory * Show number of cherry-picked files in multi-copy mode * Env var NNN_SHOW_HIDDEN to show hidden files by default * Additional information in help screen * Prefer env var VISUAL, if defined, to EDITOR * New/changed/remapped shortcuts ^] - spawn a new shell in current directory r - edit directory entries in vidir R - run a custom script ^I - toggle navigate-as-you-type mode L - lock the current terminal * All Ctrl shortcuts enabled in navigate-as-you-type mode * Fix: GUI programs closing when parent terminal is closed * Recognize ~, - and & at bookmark prompt * Recognize ruby (.rb) files as text files * Efficient integer-only file size calculation - minor cleanup with spec-cleaner - include license, readme and changelog - Update to 1.7 * Batch rename/move/delete files in vidir (from moreutils) * Copy multiple file paths * Copy file paths when X is unavailable * Optionally quote individual file paths with single quotes on copy * Use ISO 8601 date format in file details * See CHANGELOG for new and changed keybindings - cleanup with spec-cleaner - Ensure neutrality of description. - Update to 1.6 * Shortcut ^O to open file with custom application * Option -b to open bookmarks directly at start * Huge performance improvements around file name storing and handling * Several large static buffers removed or reduced * Several internal algorithms fine tuned for performance / resource usage - pass through optflags - Update to 1.5 * File and directory creation (n) * Env variable NNN_NOWAIT to unblock nnn when opening files (DE-specific) * Show current entry number in status bar * Support archive listing (F) and extraction (Ctrl-X) [using atool] * Show correct file size on i386 for large files (> 2GB) - Drop _service file - Create initial package at 1.4 OBS-URL: https://build.opensuse.org/request/show/628527 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=10
2018-08-10 17:48:20 +00:00
Url: https://github.com/jarun/nnn#nnn
Source0: https://github.com/jarun/nnn/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: readline-devel
%if 0%{?leap_version} == 420300
BuildRequires: ncurses-devel
%else
BuildRequires: pkgconfig(ncursesw)
%endif
Recommends: sshfs
%description
nnn is a fork of noice, a terminal file browser with keyboard
shortcuts for navigation, opening files and running tasks. There is
no config file and MIME associations are hard-coded.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%make_install PREFIX=%{_prefix}
%files
%license LICENSE
%doc README.md CHANGELOG
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog