Accepting request 559743 from home:sogal:branches:utilities

- Update desktop database upon ranger installation/removal
  * Fixed desktop file by adding GenericName entry

OBS-URL: https://build.opensuse.org/request/show/559743
OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=15
This commit is contained in:
Luigi Baldoni 2017-12-24 18:00:05 +00:00 committed by Git OBS Bridge
parent 34a57ab587
commit 6add3d462c
4 changed files with 36 additions and 4 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:1433f9f9958b104c97d4b23ab77a2ac37d3f98b826437b941052a55c01c721b4 oid sha256:755c1eac08221ec37515073c3555a34c3e7fb30270985252c763e5a581322784
size 227415 size 234971

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 21 23:02:07 UTC 2017 - aloisio@gmx.com Sat Jan 21 23:02:07 UTC 2017 - aloisio@gmx.com

15
ranger.desktop.patch Normal file
View 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;

View File

@ -1,3 +1,4 @@
#
# spec file for package ranger # spec file for package ranger
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
@ -15,6 +16,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # 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_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))")} %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: ranger Name: ranger
@ -26,6 +28,7 @@ Group: Productivity/File utilities
Url: http://ranger.nongnu.org Url: http://ranger.nongnu.org
Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz
Source99: ranger-rpmlintrc Source99: ranger-rpmlintrc
Patch0: ranger.desktop.patch
BuildRequires: python-devel >= 2.5.1 BuildRequires: python-devel >= 2.5.1
Requires: file Requires: file
Requires: python-curses Requires: python-curses
@ -62,6 +65,8 @@ though ranger is easily controllable with just the arrow keys or the mouse.
%setup -q %setup -q
sed -e 's|#!/bin/python|#!%{_bindir}/env python|' -i doc/tools/convert_papermode_to_metadata.py sed -e 's|#!/bin/python|#!%{_bindir}/env python|' -i doc/tools/convert_papermode_to_metadata.py
%patch0 -p1
%build %build
python ./setup.py build python ./setup.py build
@ -72,8 +77,14 @@ python ./setup.py install \
rm -rf "%{buildroot}%{_datadir}/doc/ranger" rm -rf "%{buildroot}%{_datadir}/doc/ranger"
%if 0%{?suse_version} %if 0%{?suse_version} > 1330
%suse_update_desktop_file -r "%{name}" System FileManager %post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1330
%postun
%desktop_database_postun
%endif %endif
%files %files