]> git.pld-linux.org Git - packages/nnn.git/blame - nnn.spec
up to 4.5
[packages/nnn.git] / nnn.spec
CommitLineData
1764ae3d
AG
1# TODO:
2# - package rest of scripts/
3#
4Summary: The missing terminal file browser for X
5Name: nnn
9c7ba01d 6Version: 4.5
9b45bc89 7Release: 1
1764ae3d
AG
8License: BSD
9Group: Applications/Console
10Source0: https://github.com/jarun/nnn/archive/v%{version}/%{name}-%{version}.tar.gz
9c7ba01d 11# Source0-md5: 7358f4ca32c04e1a1bef7633ab10aff6
1764ae3d
AG
12Patch0: %{name}-no-rebuild-on-install.patch
13URL: https://github.com/jarun/nnn
14BuildRequires: ncurses-devel
a28b3c61 15BuildRequires: pcre-devel
1764ae3d
AG
16BuildRequires: pkgconfig
17BuildRequires: readline-devel
9a2886cd 18Suggests: archivemount
1764ae3d
AG
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22nnn is probably the fastest and most resource-sensitive (with all its
23capabilities) file browser you have ever used. It's extremely flexible
24too - integrates with your DE and favourite GUI utilities, works with
25the desktop opener, supports bookmarks, has smart navigation
26shortcuts, navigate-as-you-type mode, disk usage analyzer mode,
27comprehensive file details and much more. nnn was initially forked
28from noice but is significantly different today.
29
30Cool things you can do with nnn:
31
32 - open any file in the default desktop application or a custom one
33 - navigate-as-you-type (search-as-you-type enabled even on directory
34 switch)
35 - check disk usage with number of files in current directory tree
36 - run desktop search utility (gnome-search-tool or catfish) in any
37 directory
38 - copy absolute file paths to clipboard, spawn a terminal and use the
39 paths
40 - navigate instantly using shortcuts like ~, -, & or handy bookmarks
41 - use cd ..... at chdir prompt to go to a parent directory
42 - detailed file stats, media info, list and extract archives
43 - pin a directory you may need to revisit and jump to it anytime
44 - lock the current terminal after a specified idle time
45 - change directory on exit
46
47%package -n bash-completion-nnn
48Summary: bash-completion for nnn
49Summary(pl.UTF-8): bashowe uzupełnianie nazw dla nnn
50Group: Applications/Shells
51Requires: %{name} = %{version}-%{release}
52Requires: bash-completion >= 2.0
1764ae3d 53BuildArch: noarch
1764ae3d
AG
54
55%description -n bash-completion-nnn
56This package provides bash-completion for nnn.
57
58%description -n bash-completion-nnn -l pl.UTF-8
59Pakiet ten dostarcza bashowe uzupełnianie nazw dla nnn.
60
61%package -n fish-completion-nnn
62Summary: Fish completion for nnn command
63Summary(pl.UTF-8): Dopełnianie parametrów w fish dla polecenia nnn
64Group: Applications/Shells
65Requires: fish
66Requires: nnn = %{version}-%{release}
c1461ecf 67BuildArch: noarch
1764ae3d
AG
68
69%description -n fish-completion-nnn
70Fish completion for nnn command.
71
72%description -n fish-completion-nnn -l pl.UTF-8
73Dopełnianie parametrów w fish dla polecenia nnn.
74
75%package -n zsh-completion-nnn
76Summary: Zsh completion for nnn command
77Summary(pl.UTF-8): Dopełnianie parametrów w zsh dla polecenia nnn
78Group: Applications/Shells
79Requires: nnn = %{version}-%{release}
80Requires: zsh
c1461ecf 81BuildArch: noarch
1764ae3d
AG
82
83%description -n zsh-completion-nnn
84Zsh completion for nnn command.
85
86%description -n zsh-completion-nnn -l pl.UTF-8
87Dopełnianie parametrów w zsh dla polecenia nnn.
88
89%prep
90%setup -q
91%patch0 -p1
92
93%build
ae9d9c43
JP
94export CFLAGS="%{rpmcflags}"
95export CPPFLAGS="%{rpmcppflags}"
96export LDFLAGS="%{rpmldflags}"
1764ae3d
AG
97%{__make} \
98 CC="%{__cc}" \
a28b3c61 99 CFLAGS_OPTIMIZATION= \
a28b3c61
JP
100 O_CTX8=1 \
101 O_PCRE=1
1764ae3d
AG
102
103%install
104rm -rf $RPM_BUILD_ROOT
105%{__make} install \
106 DESTDIR=$RPM_BUILD_ROOT \
107 PREFIX=%{_prefix}
108
109install -Dpm0644 -t $RPM_BUILD_ROOT%{bash_compdir} \
a28b3c61 110 misc/auto-completion/bash/nnn-completion.bash
1764ae3d 111install -Dpm0644 -t $RPM_BUILD_ROOT%{fish_compdir} \
a28b3c61 112 misc/auto-completion/fish/nnn.fish
1764ae3d 113install -Dpm0644 -t $RPM_BUILD_ROOT%{zsh_compdir} \
a28b3c61 114 misc/auto-completion/zsh/_nnn
1764ae3d
AG
115
116%clean
117rm -rf $RPM_BUILD_ROOT
118
119%files
120%defattr(644,root,root,755)
121%doc CHANGELOG LICENSE README.md
122%attr(755,root,root) %{_bindir}/%{name}
123%{_mandir}/man1/%{name}.1*
124
125%files -n bash-completion-nnn
126%defattr(644,root,root,755)
127%{bash_compdir}/nnn-completion.bash
128
129%files -n fish-completion-%{name}
130%defattr(644,root,root,755)
131%{fish_compdir}/nnn.fish
132
133%files -n zsh-completion-%{name}
134%defattr(644,root,root,755)
135%{zsh_compdir}/_nnn
This page took 0.086 seconds and 4 git commands to generate.