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