2017-12-24 19:00:05 +01:00
|
|
|
#
|
2016-11-17 12:22:31 +01:00
|
|
|
# spec file for package ranger
|
|
|
|
#
|
2017-01-22 00:14:39 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-15 12:29:03 +02:00
|
|
|
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2016-11-17 12:22:31 +01:00
|
|
|
#
|
2013-07-15 12:29:03 +02:00
|
|
|
|
2017-12-24 19:00:05 +01:00
|
|
|
|
2016-11-17 12:22:31 +01: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))")}
|
2013-07-15 12:29:03 +02:00
|
|
|
Name: ranger
|
2017-01-22 00:14:39 +01:00
|
|
|
Version: 1.8.1
|
2013-07-15 12:29:03 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Console File Manager
|
2016-11-17 12:22:31 +01:00
|
|
|
License: GPL-3.0
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
Url: http://ranger.nongnu.org
|
2013-07-15 12:29:03 +02:00
|
|
|
Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz
|
|
|
|
Source99: ranger-rpmlintrc
|
2017-12-27 21:17:21 +01:00
|
|
|
# PATCH-FIX-UPSTREAM ranger.desktop.patch -- Add missing GenericName
|
2017-12-24 19:00:05 +01:00
|
|
|
Patch0: ranger.desktop.patch
|
2013-07-15 12:29:03 +02:00
|
|
|
BuildRequires: python-devel >= 2.5.1
|
2016-11-17 12:22:31 +01:00
|
|
|
Requires: file
|
|
|
|
Requires: python-curses
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-27 07:45:44 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-07-15 12:29:03 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-28 00:08:45 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-07-15 12:29:03 +02:00
|
|
|
Recommends: atool
|
2016-11-17 12:22:31 +01:00
|
|
|
Recommends: highlight
|
2013-07-15 12:29:03 +02:00
|
|
|
Recommends: mediainfo
|
|
|
|
Recommends: w3m
|
2011-05-28 00:08:45 +02:00
|
|
|
%else
|
2013-07-15 12:29:03 +02:00
|
|
|
BuildRequires: atool
|
|
|
|
Requires: atool
|
2011-05-28 00:08:45 +02:00
|
|
|
%endif
|
2011-05-27 07:45:44 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2013-07-15 12:29:03 +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
|
2016-12-28 16:24:44 +01:00
|
|
|
Ranger is a console file manager that gives you greater flexibility and a
|
|
|
|
good overview of your files without having to leave your text console. It
|
2011-05-26 23:45:02 +02:00
|
|
|
visualizes the directory tree in two dimensions: the directory hierarchy on
|
2016-12-28 16:24:44 +01:00
|
|
|
one, lists of files on the other, with a preview to the right.
|
2011-05-26 23:45:02 +02:00
|
|
|
|
|
|
|
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
|
2016-12-24 19:49:00 +01:00
|
|
|
sed -e 's|#!/bin/python|#!%{_bindir}/env python|' -i doc/tools/convert_papermode_to_metadata.py
|
2011-05-26 23:45:02 +02:00
|
|
|
|
2017-12-24 19:00:05 +01:00
|
|
|
%patch0 -p1
|
|
|
|
|
2011-05-26 23:45:02 +02:00
|
|
|
%build
|
2016-11-17 12:22:31 +01:00
|
|
|
python ./setup.py build
|
2011-05-26 23:45:02 +02:00
|
|
|
|
|
|
|
%install
|
2016-11-17 12:22:31 +01:00
|
|
|
python ./setup.py install \
|
2011-05-26 23:45:02 +02:00
|
|
|
--prefix="%{_prefix}" \
|
2016-11-17 12:22:31 +01:00
|
|
|
--root=%{buildroot}
|
2011-05-26 23:45:02 +02:00
|
|
|
|
2016-11-17 12:22:31 +01:00
|
|
|
rm -rf "%{buildroot}%{_datadir}/doc/ranger"
|
2013-07-15 12:36:19 +02:00
|
|
|
|
2017-12-27 21:17:21 +01:00
|
|
|
%if 0%{?suse_version} < 1330
|
2017-12-24 19:00:05 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
2011-05-27 07:45:44 +02:00
|
|
|
%endif
|
2011-05-26 23:45:02 +02:00
|
|
|
|
2011-05-29 00:36:13 +02:00
|
|
|
%files
|
2011-05-26 23:45:02 +02:00
|
|
|
%defattr(-,root,root)
|
2016-12-24 19:49:00 +01:00
|
|
|
%doc AUTHORS CHANGELOG.md README.md HACKING.md
|
2013-07-15 12:36:19 +02:00
|
|
|
%doc doc/colorschemes.txt
|
|
|
|
%doc doc/tools
|
2016-11-17 12:22:31 +01:00
|
|
|
%doc examples
|
2011-05-29 00:36:13 +02:00
|
|
|
%{_bindir}/ranger
|
2013-07-15 12:36:19 +02:00
|
|
|
%{_bindir}/rifle
|
2011-05-29 00:36:13 +02:00
|
|
|
%{python_sitelib}/ranger-%{version}-*.egg-info
|
|
|
|
%{python_sitelib}/ranger
|
2016-11-17 12:22:31 +01:00
|
|
|
%{_mandir}/man1/ranger.1*
|
|
|
|
%{_mandir}/man1/rifle.1*
|
2011-05-26 23:45:02 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
2016-11-17 12:22:31 +01:00
|
|
|
%changelog
|