diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e10223 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nnn-1.7.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 1218aa3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# nnn - -The nnn package \ No newline at end of file diff --git a/nnn.spec b/nnn.spec new file mode 100644 index 0000000..b8cb1c6 --- /dev/null +++ b/nnn.spec @@ -0,0 +1,80 @@ +Name: nnn +Version: 1.7 +Release: 1%{?dist} +Summary: The missing terminal file browser for X + +License: BSD +URL: https://github.com/jarun/nnn +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig(ncursesw) +BuildRequires: readline-devel + + +%description +nnn is probably the fastest and most resource-sensitive (with all +its capabilities) file browser you have ever used. It's extremely flexible +too - integrates with your DE and favourite GUI utilities, works with +the desktop opener, supports bookmarks, has smart navigation shortcuts, +navigate-as-you-type mode, disk usage analyzer mode, comprehensive file +details and much more. nnn was initially forked from noice but is +significantly different today. + +Cool things you can do with nnn: + + - open any file in the default desktop application or a custom one + - navigate-as-you-type (search-as-you-type enabled even on directory switch) + - check disk usage with number of files in current directory tree + - run desktop search utility (gnome-search-tool or catfish) in any directory + - copy absolute file paths to clipboard, spawn a terminal and use the paths + - navigate instantly using shortcuts like ~, -, & or handy bookmarks + - use cd ..... at chdir prompt to go to a parent directory + - detailed file stats, media info, list and extract archives + - pin a directory you may need to revisit and jump to it anytime + - lock the current terminal after a specified idle time + - change directory on exit + + + +%prep +%autosetup -p1 -n %{name}-%{version} + +sed -i "s|install -m|\$(INSTALL) -m|" Makefile + + +%build +export CFLAGS="%{optflags}" +export LDFLAGS="%{?__global_ldflags}" +%make_build STRIP=/bin/true + + +%install +%make_install PREFIX=%{_prefix} +install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \ + scripts/auto-completion/bash/nnn-completion.bash +install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_functions.d \ + scripts/auto-completion/fish/nnn.fish +install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \ + scripts/auto-completion/zsh/_nnn + + + +%files +%doc CHANGELOG README.md +%license LICENSE +%{_bindir}/%{name} +%{_bindir}/nlay +%{_mandir}/man1/%{name}.1.* +%{_datadir}/bash-completion +%{_datadir}/fish +%{_datadir}/zsh + + +%changelog +* Thu Mar 01 2018 Robert-André Mauchin - 1.7-1 +- Release 1.7 + +* Sat Feb 24 2018 Robert-André Mauchin - 1.6-1 +- First RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..9a0a008 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nnn-1.7.tar.gz) = 7574971b423a1c49e2217d5e4415a69536b807587b4e32b61568ce0c6a1734ed85924a3ef68027653f1f0e882ef8df1bc375e119a9ded51e133a2adf5cd560cb