nnn/nnn.spec
Nicolas FORMICHELLA 7b5ed436a1 Accepting request 991322 from home:stig124:branches:utilities
- Update to version v4.6:
  * icon handling overhaul for better performance, memory usage and reduced binary size (#1432, #1436)
  * emoji support for supporting distros and terminals (#1346)
  * open the target directory of symlinked bookmarks (#1353)
  * enable show hidden when a hidden file is passed as argument
  * add Colemak-DH layout keybinds to patch framework (#1421)
  * set bsdtar as the default archive utility
  * support 4 byte unicode keybinds (#1428)
  * enable directory auto-enter during filter operation (-A to disable)
  * enable filter prompt inside the bookmark/plugin dirs
  * show volume usage information in help
  * add Elixir icons (#1437)
  * add new icon colors for mp4 and flac files
  * use stat -x for file details on *BSD and macOS (#1389)
  * interpret suffix $nnn when paging (#1355)
  * disable key e (edit file) in explorer mode (#1394)
  * fix double order chars on filter case match change
  * .cbcp: more verbose message on paste without a selection
  * plugin preview-tui: scale-up kitty previews
  * plugin preview-tui: account for ueberzug offset
  * plugin preview-tui: support SPLIT_SIZE for preview pane (#1431)
  * plugin autojump: support z.lua
  * new Makefile target shellcheck to verify plugins
- Strpping executable

OBS-URL: https://build.opensuse.org/request/show/991322
OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=64
2022-07-27 05:23:39 +00:00

98 lines
2.9 KiB
RPMSpec

#
# spec file for package nnn
#
# Copyright (c) 2022 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: nnn
Version: 4.6
Release: 0
Summary: Terminal based file browser
License: BSD-2-Clause
Group: Productivity/File utilities
URL: https://github.com/jarun/nnn#nnn
Source0: https://github.com/jarun/nnn/releases/download/v%{version}/%{name}-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://github.com/jarun/nnn/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
Source99: nnn.keyring
BuildRequires: pkgconfig
BuildRequires: readline-devel
Recommends: sshfs
%if 0%{?leap_version} == 420300
BuildRequires: ncurses-devel
%else
BuildRequires: pkgconfig(ncursesw)
%endif
%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.
%package bash-completion
Summary: Bash completions for %{name}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
The official bash completion script for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for %{name}.
%package zsh-completion
Summary: ZSH Completion for %{name}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for %{name}.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
%make_build strip
%install
%make_install PREFIX=%{_prefix}
install -Dm0644 misc/auto-completion/fish/nnn.fish $RPM_BUILD_ROOT%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -Dm0644 misc/auto-completion/bash/nnn-completion.bash $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/%{name}
install -Dm0644 misc/auto-completion/zsh/_nnn $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_%{name}
%files
%license LICENSE
%doc README.md CHANGELOG
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh/
%changelog