2011-05-26 23:45:02 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
2011-05-29 00:36:13 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
2011-05-26 23:45:02 +02:00
|
|
|
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}
|
2011-05-27 07:45:44 +02:00
|
|
|
BuildRequires: python-devel >= 2.5.1
|
|
|
|
%if 0%{?suse_version}
|
2011-05-26 23:45:02 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-26 23:45:02 +02:00
|
|
|
Requires: file
|
2011-05-28 00:08:45 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-05-26 23:45:02 +02:00
|
|
|
Recommends: atool
|
|
|
|
Recommends: mediainfo
|
|
|
|
Recommends: w3m
|
|
|
|
Recommends: highlight
|
2011-05-28 00:08:45 +02:00
|
|
|
%else
|
2011-05-28 01:58:13 +02:00
|
|
|
BuildRequires: atool
|
2011-05-28 00:08:45 +02:00
|
|
|
Requires: atool
|
|
|
|
%endif
|
2011-05-27 07:45:44 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-05-26 23:45:02 +02:00
|
|
|
BuildArch: noarch
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-28 01:55:42 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-05-26 23:45:02 +02:00
|
|
|
%py_requires
|
2011-05-28 01:55:42 +02:00
|
|
|
%endif
|
2011-05-26 23:45:02 +02:00
|
|
|
|
|
|
|
%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}" \
|
2011-05-29 00:36:13 +02:00
|
|
|
--root="%{buildroot}"
|
2011-05-26 23:45:02 +02:00
|
|
|
|
2011-05-27 07:45:44 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-05-26 23:45:02 +02:00
|
|
|
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
|
|
%suse_update_desktop_file -r "%{name}" System FileManager
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-26 23:45:02 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
2011-05-29 00:36:13 +02:00
|
|
|
%files
|
2011-05-26 23:45:02 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGELOG COPYING README
|
2011-05-29 00:36:13 +02:00
|
|
|
%{_bindir}/ranger
|
|
|
|
%{python_sitelib}/ranger-%{version}-*.egg-info
|
|
|
|
%{python_sitelib}/ranger
|
2011-05-29 01:00:54 +02:00
|
|
|
%doc %{_mandir}/man1/ranger.1*
|
2011-05-27 07:45:44 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-05-26 23:45:02 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-26 23:45:02 +02:00
|
|
|
|