Accepting request 286700 from home:sumski:hazard:to:your:stereo

Add shared-mime-info-bump-priority-for-ISO-images.patch (fdo#80877, kde#337035, boo#904100)

OBS-URL: https://build.opensuse.org/request/show/286700
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/shared-mime-info?expand=0&rev=47
This commit is contained in:
Dominique Leuenberger 2015-02-19 09:40:50 +00:00 committed by Git OBS Bridge
parent 26c592d947
commit d35a994e77
3 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 824cff3da0f17812715795f0e64a47f7331a338b Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 18 Feb 2015 10:37:36 +0100
Subject: Bump priority for ISO images glob matching
To work-around file managers that cannot use magic to differentiate
mime-types.
https://bugs.freedesktop.org/show_bug.cgi?id=80877
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 64f34b9..59e399c 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -1499,7 +1499,7 @@ command to generate the output files.
<_comment>raw CD image</_comment>
<sub-class-of type="application/x-raw-disk-image"/>
<alias type="application/x-iso9660-image"/>
- <glob pattern="*.iso"/>
+ <glob pattern="*.iso" weight="80"/>
<glob pattern="*.iso9660"/>
</mime-type>
<mime-type type="application/x-cdrdao-toc">
--
cgit v0.10.2

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 19 02:51:39 UTC 2015 - hrvoje.senjan@gmail.com
- Add shared-mime-info-bump-priority-for-ISO-images.patch
(fdo#80877, kde#337035, boo#904100)
-------------------------------------------------------------------
Tue Apr 8 23:10:43 UTC 2014 - hrvoje.senjan@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package shared-mime-info
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,8 @@ Group: System/X11/Utilities
Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
Source1: mime-info-to-mime
Source2: macros.shared-mime-info
# PATCH-FIX-UPSTREAM shared-mime-info-bump-priority-for-ISO-images.patch fdo#80877 kde#337035 boo#904100 hrvoje.senjan@gmail.com -- work-around file managers that cannot use magic to differentiate mime-types
Patch0: shared-mime-info-bump-priority-for-ISO-images.patch
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: libxml2-devel
@ -59,6 +61,7 @@ This package contains:
%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build