From 109f64b127ef6508045c4820b4e88ad074dbb169248d5da2db3a3b8838fa0850 Mon Sep 17 00:00:00 2001 From: Berthold Gunreben Date: Mon, 3 Jan 2011 10:05:19 +0000 Subject: [PATCH] Accepting request 56916 from KDE:Distro:Factory Accepted submit request 56916 from user rwooninck OBS-URL: https://build.opensuse.org/request/show/56916 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/digikam?expand=0&rev=60 --- add_mimetype_bnc629393.diff | 7 +++++++ digikam.changes | 5 +++++ digikam.spec | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 add_mimetype_bnc629393.diff diff --git a/add_mimetype_bnc629393.diff b/add_mimetype_bnc629393.diff new file mode 100644 index 0000000..10fee8c --- /dev/null +++ b/add_mimetype_bnc629393.diff @@ -0,0 +1,7 @@ +--- digikam/digikam.desktop 2010-12-19 11:29:17.000000000 +0100 ++++ digikam/digikam.desktop_patched 2010-12-30 12:59:47.000000000 +0100 +@@ -140,3 +140,4 @@ + Comment[zh_CN]=以开源的力量专业化地管理您的照片 + Comment[zh_TW]=運用開放原始碼的力量像專業人士般管理您的照片 + Terminal=false ++MimeType=x-content/image-dcf;x-content/image-picturecd; diff --git a/digikam.changes b/digikam.changes index 884339e..b4d4b8b 100644 --- a/digikam.changes +++ b/digikam.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 30 12:04:30 UTC 2010 - ctrippe@gmx.net + +- Add MimeTypes to desktop file for better integration in GNOME (bnc#629393) + ------------------------------------------------------------------- Wed Dec 22 22:19:01 UTC 2010 - Nico.Laus.2001@gmx.de diff --git a/digikam.spec b/digikam.spec index 167df76..cef02c5 100644 --- a/digikam.spec +++ b/digikam.spec @@ -32,6 +32,7 @@ Release: 1 Source0: %name-%{tar_version}.tar.bz2 Source1: %{name}-docs.tar.bz2 Patch1: %{name}-buildtime.patch +Patch2: add_mimetype_bnc629393.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %kde4_runtime_requires %kde4_pimlibs_requires @@ -101,6 +102,7 @@ Authors: %prep %setup -q -n %name-%{tar_version} -a 1 %patch1 +%patch2 FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" digikam/version.h.cmake echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt