SHA256
1
0
forked from pool/xdg-utils

Accepting request 213327 from home:jirislaby:branches:X11:common:Factory

update to 20140109

OBS-URL: https://build.opensuse.org/request/show/213327
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/xdg-utils?expand=0&rev=31
This commit is contained in:
Jiri Slaby 2014-01-09 16:13:45 +00:00 committed by Git OBS Bridge
parent 2326b00299
commit 59eb2bfd81
5 changed files with 6 additions and 43 deletions

View File

@ -1,31 +0,0 @@
From: Jiri Slaby <jslaby@suse.cz>
Date: Thu, 9 Jan 2014 14:11:18 +0100
Subject: xdg-mime: generic, handle filenames with colon
Patch-mainline: not yet, submitted on 9 Jan 2014
References: bnc#854777
When we use the generic path, we use cut to separate filename from
mime type from the output of /usr/bin/file. Let's use -b parameter of
/usr/bin/file and eliminate cut and sed completely.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
scripts/xdg-mime.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
index 7669a3b93a9c..474dc5d4488e 100644
--- a/scripts/xdg-mime.in
+++ b/scripts/xdg-mime.in
@@ -98,7 +98,7 @@ info_generic()
mimetype -b "$1"
else
DEBUG 1 "Running file --mime-type \"$1\""
- /usr/bin/file --mime-type "$1" 2> /dev/null | cut -d ":" -f 2 | sed s/"^ "//
+ /usr/bin/file -b --mime-type "$1" 2> /dev/null
fi
if [ $? -eq 0 ]; then
--
1.8.5.2

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15db685c4e1f35fa9bba9b75194993c21c7f931c8daeb920d9ac1915452731b1
size 273228

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e0497f7a2659d7447c37f623e40fb0a844dd9559395560f861fad0604229de3
size 266420

View File

@ -1,12 +1,8 @@
-------------------------------------------------------------------
Thu Jan 9 13:54:09 UTC 2014 - jslaby@suse.com
- xdg-mime-generic-handle-filenames-with-colon.patch (bnc#854777)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 9 13:51:11 UTC 2014 - jslaby@suse.com Thu Jan 9 13:51:11 UTC 2014 - jslaby@suse.com
- update to 20131024 - update to 20140109
* xdg-mime: generic, handle filenames with colon (bnc#854777)
* xdg-desktop-menu: improperly check for vendor prefix ... * xdg-desktop-menu: improperly check for vendor prefix ...
* xdg-screensaver: Support MATE desktop part 2 * xdg-screensaver: Support MATE desktop part 2
* xdg-desktop-menu: Unquoted file name (BR69399) * xdg-desktop-menu: Unquoted file name (BR69399)

View File

@ -26,7 +26,7 @@ BuildRequires: w3m
Summary: Utilities to uniformly interface desktop environments Summary: Utilities to uniformly interface desktop environments
License: MIT License: MIT
Group: System/GUI/Other Group: System/GUI/Other
Version: 20131024 Version: 20140109
Release: 0 Release: 0
BuildArch: noarch BuildArch: noarch
Url: http://portland.freedesktop.org/ Url: http://portland.freedesktop.org/
@ -34,7 +34,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
# http://portland.freedesktop.org/download/xdg-utils-%%{version}.tgz # http://portland.freedesktop.org/download/xdg-utils-%%{version}.tgz
Source0: xdg-utils-%{version}.tar.xz Source0: xdg-utils-%{version}.tar.xz
Patch0: install-some-more-scripts.diff Patch0: install-some-more-scripts.diff
Patch1: xdg-mime-generic-handle-filenames-with-colon.patch
Patch8: xdg-screensaver-gnome-perl.diff Patch8: xdg-screensaver-gnome-perl.diff
Requires: perl Requires: perl
Requires: perl-Net-DBus Requires: perl-Net-DBus
@ -59,7 +58,6 @@ these utilities work properly in their environment.
%prep %prep
%setup -q -n %name-%{version} %setup -q -n %name-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
%patch8 -p1 %patch8 -p1
%build %build