5.2.0
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kio?expand=0&rev=35
This commit is contained in:
parent
d7eaca0891
commit
2f8b14311e
52
0001-Fix-thumbnails-for-mimetype-groups.patch
Normal file
52
0001-Fix-thumbnails-for-mimetype-groups.patch
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
From c372f9d634fa61aff5d4df6700ed294433df913b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Maarten De Meyer <de.meyer.maarten@gmail.com>
|
||||||
|
Date: Mon, 8 Sep 2014 23:58:55 +0200
|
||||||
|
Subject: [PATCH] Fix thumbnails for mimetype groups.
|
||||||
|
|
||||||
|
KService::mimeTypes cannot handle mimetype groups. ex: text/*
|
||||||
|
Go back to KService::serviceTypes and remove 'ThumbCreator' entries.
|
||||||
|
|
||||||
|
REVIEW: 119958
|
||||||
|
---
|
||||||
|
src/widgets/previewjob.cpp | 17 +++++++++++------
|
||||||
|
1 file changed, 11 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/widgets/previewjob.cpp b/src/widgets/previewjob.cpp
|
||||||
|
index 55a3fb7..c8ea2b7 100644
|
||||||
|
--- a/src/widgets/previewjob.cpp
|
||||||
|
+++ b/src/widgets/previewjob.cpp
|
||||||
|
@@ -268,20 +268,25 @@ void PreviewJobPrivate::startPreview()
|
||||||
|
protocols.append(p);
|
||||||
|
}
|
||||||
|
foreach (const QString &protocol, protocols) {
|
||||||
|
- const QStringList mtypes = (*it)->mimeTypes();
|
||||||
|
+ // We cannot use mimeTypes() here, it doesn't support groups. text/*
|
||||||
|
+ const QStringList mtypes = (*it)->serviceTypes();
|
||||||
|
// Add supported mimetype for this protocol
|
||||||
|
QStringList &_ms = m_remoteProtocolPlugins[protocol];
|
||||||
|
foreach (const QString &_m, mtypes) {
|
||||||
|
- protocolMap[protocol].insert(_m, *it);
|
||||||
|
- if (!_ms.contains(_m)) {
|
||||||
|
- _ms.append(_m);
|
||||||
|
+ if (_m != QLatin1String("ThumbCreator")) {
|
||||||
|
+ protocolMap[protocol].insert(_m, *it);
|
||||||
|
+ if (!_ms.contains(_m)) {
|
||||||
|
+ _ms.append(_m);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (enabledPlugins.contains((*it)->desktopEntryName())) {
|
||||||
|
- const QStringList mimeTypes = (*it)->mimeTypes();
|
||||||
|
+ const QStringList mimeTypes = (*it)->serviceTypes();
|
||||||
|
for (QStringList::ConstIterator mt = mimeTypes.constBegin(); mt != mimeTypes.constEnd(); ++mt) {
|
||||||
|
- mimeMap.insert(*mt, *it);
|
||||||
|
+ if (*mt != QLatin1String("ThumbCreator")) {
|
||||||
|
+ mimeMap.insert(*mt, *it);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:73ceb6be282b9ceb0bc8ca12ddbc2c10cf215ec8807455136cdcb91fbf5c3dab
|
|
||||||
size 2251736
|
|
3
kio-5.2.0.tar.xz
Normal file
3
kio-5.2.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f7be3026dbf32efb6245ca4443cec2c0be52e0b303e396cbb70c2e09834046db
|
||||||
|
size 2253536
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 9 09:49:34 UTC 2014 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
- Update to 5.2.0
|
||||||
|
* For more details please see:
|
||||||
|
http://kde.org/announcements/kde-frameworks-5.2.php
|
||||||
|
- Added 0001-Fix-thumbnails-for-mimetype-groups.patch, fixes thumbnail
|
||||||
|
generation for mimetypes with wildcard usage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 2 10:20:18 UTC 2014 - hrvoje.senjan@gmail.com
|
Sat Aug 2 10:20:18 UTC 2014 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
7
kio.spec
7
kio.spec
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: kio
|
Name: kio
|
||||||
Version: 5.1.0
|
Version: 5.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define kf5_version %{version}
|
%define kf5_version %{version}
|
||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: extra-cmake-modules >= 1.1.0
|
BuildRequires: extra-cmake-modules >= 1.2.0
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: karchive-devel >= %{kf5_version}
|
BuildRequires: karchive-devel >= %{kf5_version}
|
||||||
BuildRequires: kbookmarks-devel >= %{kf5_version}
|
BuildRequires: kbookmarks-devel >= %{kf5_version}
|
||||||
@ -66,6 +66,8 @@ Group: System/GUI/KDE
|
|||||||
Url: http://www.kde.org
|
Url: http://www.kde.org
|
||||||
Source: http://download.kde.org/stable/frameworks/%{version}/%{name}-%{version}.tar.xz
|
Source: http://download.kde.org/stable/frameworks/%{version}/%{name}-%{version}.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM 0001-Fix-thumbnails-for-mimetype-groups.patch -- https://git.reviewboard.kde.org/r/119958/
|
||||||
|
Patch0: 0001-Fix-thumbnails-for-mimetype-groups.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -95,6 +97,7 @@ Development files.
|
|||||||
%lang_package
|
%lang_package
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kf5 -d build
|
%cmake_kf5 -d build
|
||||||
|
Loading…
Reference in New Issue
Block a user