ranger/ranger.spec
Luigi Baldoni 6254aaa55f Accepting request 634654 from home:alois:branches:utilities
- Update to version 1.9.2
  * Added a `hint_collapse_threshold` setting
  * Added a `traverse_backwards` command analogous to `traverse`
  * Added a command to shift tabs
  * Added a normal mode mapping to quickly enter the console and
    scroll through the history `C-p`
  * Added a section to `scope.sh` for image previews of archives
  * Added an avfs plugin
  * Added an option to the move command to enable launching the
    selected file instead of the marked files
  * Added filtering functionality inspired by dired's filter
    stack, `.n, .| ...`
  * Added image preview method for Kitty
  * Added option to disable the display of free space for high
    latency situations
  * Added section to `scope.sh` for pdf previews with mutool
  * Added several emacs/readline-inspired keybindings, `C-g` for
    `ESC`, `alt-f/b`
  * Added systemwide `rc.conf` and `commands.py` in `/etc/ranger`
  * Added the `%any_path` macro to allow bookmarks to be used
    with commands that need a path and are unaware of bookmarks
  * Added versioning logic to include extra info in unreleased
    versions
  * Change tab saving to save all tabs, not just the active tab
  * Changed `draw_borders` setting to enable drawing only
    borders or seperators
  * Changed behavior of positional arguments to the ranger
    command, if you specify a path to a file ranger will open
    with that file selected
  * Changed the `tilde_in_titlebar` setting to influence the
    window titlebar too
  * Changed the default colorscheme to work properly in
    terminals that don't equate bold and bright
  * Fixed StopIteration errors
  * Fixed embedded null errors
  * Fixed issues reported by coverity scan
  * Fixed running ranger as root on Mac OS
  * Fixed unicode issue for python2
  * Fixed w3m preview issues with black stripes
  * Improved PEP8 adherence
  * Improved VCS symbols
  * Improved `--cmd` functionality
  * Improved file encoding detection by using chardet if it's
    available
  * Rifle's flag t should now work with more terminals than
    xterm and urxvt
  * Update colorscheme documentation
- Fixed license field

OBS-URL: https://build.opensuse.org/request/show/634654
OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=24
2018-09-10 06:46:44 +00:00

88 lines
2.7 KiB
RPMSpec

#
# spec file for package ranger
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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/
#
Name: ranger
Version: 1.9.2
Release: 0
Summary: Console File Manager
License: GPL-3.0-or-later
Group: Productivity/File utilities
URL: https://ranger.github.io
Source: https://github.com/ranger/ranger/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: ranger-rpmlintrc
# PATCH-FIX-UPSTREAM ranger.desktop.patch -- Add missing GenericName
Patch0: ranger.desktop.patch
BuildRequires: python3-devel
BuildRequires: update-desktop-files
Requires: file
Requires: python3-curses
Recommends: atool
Recommends: highlight
Recommends: mediainfo
Recommends: w3m
BuildArch: noarch
%description
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
visualizes the directory tree in two dimensions: the directory hierarchy on
one, lists of files on the other, with a preview to the right.
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
%patch0 -p1
sed -e 's|#!/usr/bin/env python|#!%{_bindir}/python3|' -i doc/tools/*.py
sed -e 's|#!/usr/bin/env bash|#!/bin/bash|' -i ranger/data/scope.sh
%build
python3 ./setup.py build
%install
python3 ./setup.py install \
--prefix="%{_prefix}" \
--root=%{buildroot}
rm -rf "%{buildroot}%{_datadir}/doc/ranger"
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%doc AUTHORS CHANGELOG.md README.md HACKING.md
%doc doc/colorschemes.md
%doc doc/tools
%doc examples
%{_bindir}/ranger
%{_bindir}/rifle
%{python3_sitelib}/ranger_fm-%{version}-*.egg-info
%{python3_sitelib}/ranger
%{_mandir}/man1/ranger.1%{ext_man}
%{_mandir}/man1/rifle.1%{ext_man}
%{_datadir}/applications/%{name}.desktop
%changelog