Accepting request 560191 from utilities
- Fix wrong conditionals for desktop_database_post(un) calls. - Update desktop database upon ranger installation/removal - Fixed desktop file by adding GenericName entry using ranger.desktop.patch OBS-URL: https://build.opensuse.org/request/show/560191 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ranger?expand=0&rev=2
This commit is contained in:
commit
ec8d2281dd
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1433f9f9958b104c97d4b23ab77a2ac37d3f98b826437b941052a55c01c721b4
|
||||
size 227415
|
||||
oid sha256:755c1eac08221ec37515073c3555a34c3e7fb30270985252c763e5a581322784
|
||||
size 234971
|
||||
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 27 18:01:01 UTC 2017 - antoine.belvire@opensuse.org
|
||||
|
||||
- Fix wrong conditionals for desktop_database_post(un) calls.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 11 13:04:03 UTC 2017 - sogal@volted.net
|
||||
|
||||
- Update desktop database upon ranger installation/removal
|
||||
- Fixed desktop file by adding GenericName entry using
|
||||
ranger.desktop.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 21 23:02:07 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
|
15
ranger.desktop.patch
Normal file
15
ranger.desktop.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- ranger-1.8.1.orig/doc/ranger.desktop 2017-12-11 13:46:27.000000000 +0100
|
||||
+++ ranger-1.8.1/doc/ranger.desktop 2017-12-21 14:33:47.854478237 +0100
|
||||
@@ -1,9 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=ranger
|
||||
+GenericName=ranger
|
||||
+X-SuSE-translate=false
|
||||
Comment=Launches the ranger file manager
|
||||
Icon=utilities-terminal
|
||||
Terminal=true
|
||||
Exec=ranger
|
||||
-Categories=ConsoleOnly;System;FileTools;FileManager
|
||||
+Categories=ConsoleOnly;System;FileTools;FileManager;
|
||||
MimeType=inode/directory;
|
14
ranger.spec
14
ranger.spec
@ -1,3 +1,4 @@
|
||||
#
|
||||
# spec file for package ranger
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
@ -15,6 +16,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{!?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))")}
|
||||
Name: ranger
|
||||
@ -26,6 +28,8 @@ Group: Productivity/File utilities
|
||||
Url: http://ranger.nongnu.org
|
||||
Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz
|
||||
Source99: ranger-rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM ranger.desktop.patch -- Add missing GenericName
|
||||
Patch0: ranger.desktop.patch
|
||||
BuildRequires: python-devel >= 2.5.1
|
||||
Requires: file
|
||||
Requires: python-curses
|
||||
@ -62,6 +66,8 @@ though ranger is easily controllable with just the arrow keys or the mouse.
|
||||
%setup -q
|
||||
sed -e 's|#!/bin/python|#!%{_bindir}/env python|' -i doc/tools/convert_papermode_to_metadata.py
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python ./setup.py build
|
||||
|
||||
@ -72,8 +78,12 @@ python ./setup.py install \
|
||||
|
||||
rm -rf "%{buildroot}%{_datadir}/doc/ranger"
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -r "%{name}" System FileManager
|
||||
%if 0%{?suse_version} < 1330
|
||||
%post
|
||||
%desktop_database_post
|
||||
|
||||
%postun
|
||||
%desktop_database_postun
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Loading…
Reference in New Issue
Block a user