forked from pool/ranger
60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: ranger
|
|
Version: 1.4.3
|
|
Release: 0
|
|
Summary: Console File Manager
|
|
Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz
|
|
Source1: ranger.desktop
|
|
Source99: ranger-rpmlintrc
|
|
URL: http://ranger.nongnu.org
|
|
Group: Productivity/File utilities
|
|
License: GNU General Public License version 3 (GPL v3)
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: python-devel
|
|
BuildRequires: update-desktop-files
|
|
Requires: file
|
|
Recommends: atool
|
|
Recommends: mediainfo
|
|
Recommends: w3m
|
|
Recommends: highlight
|
|
BuildArch: noarch
|
|
%py_requires
|
|
|
|
%description
|
|
Ranger is a free console file manager that gives you greater flexibility and a
|
|
good overview of your files without having to leave your *nix console. It
|
|
visualizes the directory tree in two dimensions: the directory hierarchy on
|
|
one, lists of files on the other, with a preview to the right so you know where
|
|
you'll be going.
|
|
|
|
The default keys are similar to those of Vim, Emacs and Midnight Commander,
|
|
though ranger is easily controllable with just the arrow keys or the mouse.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%__python ./setup.py build
|
|
|
|
%install
|
|
%__python ./setup.py install \
|
|
--prefix="%{_prefix}" \
|
|
--root="%{buildroot}" \
|
|
--record-rpm=files.lst
|
|
|
|
%__perl -n -i -e 'print unless m,^%{_mandir},' files.lst
|
|
|
|
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
%suse_update_desktop_file -r "%{name}" System FileManager
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files -f files.lst
|
|
%defattr(-,root,root)
|
|
%doc CHANGELOG COPYING README
|
|
%doc %{_mandir}/man1/ranger.1%{ext_man}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|