]> git.pld-linux.org Git - packages/kde4-kdepimlibs.git/commitdiff
- add kdepim 4.4 bcond
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 9 Dec 2012 00:27:41 +0000 (01:27 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 9 Dec 2012 00:27:41 +0000 (01:27 +0100)
kde4-kdepimlibs.spec
kdepimlibs-strict-parsing.patch [new file with mode: 0644]

index 0cbf8432d7d14e5f319b013dba4918b3a098bc45..50c2281e90db98ceb74e59a5db48ade5013182c1 100644 (file)
@@ -1,5 +1,6 @@
 #
 # Conditional build:
+%bcond_with    kdepim44
 #
 %define                qtver           4.8.1
 %define                _state          stable
@@ -16,6 +17,7 @@ Group:                X11/Applications
 Source0:       ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
 # Source0-md5: e9a04d6d033f9d9cafc8448fb22d36cd
 Patch100:      %{name}-branch.diff
+Patch101:      kdepimlibs-strict-parsing.patch
 BuildRequires: Qt3Support-devel >= %{qtver}
 BuildRequires: QtCore-devel >= %{qtver}
 BuildRequires: QtDBus-devel >= %{qtver}
@@ -49,6 +51,9 @@ Requires:     akonadi-libs >= %{akonadiver}
 Requires:      gpgme >= 1:1.2.0
 Obsoletes:     kdepimlibs4
 Conflicts:     kdepimlibs4
+%if %{without kdepim44}
+Conflicts:     kde4-kdepim < 4.5
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -76,6 +81,9 @@ opartych na kdepimlibs.
 %prep
 %setup -q -n %{orgname}-%{version}
 #%%patch100 -p0
+%if %{with kdepim44}
+%patch101 -p1 -R
+%endif
 
 %build
 install -d build
diff --git a/kdepimlibs-strict-parsing.patch b/kdepimlibs-strict-parsing.patch
new file mode 100644 (file)
index 0000000..322befb
--- /dev/null
@@ -0,0 +1,39 @@
+From: Montel Laurent <montel@kde.org>
+Date: Wed, 19 Sep 2012 12:59:54 +0000
+Subject: Fix potential error when identity path is a string (bad conversion).
+X-Git-Tag: v4.9.2
+X-Git-Url: http://quickgit.kde.org/?p=kdepimlibs.git&a=commitdiff&h=33acd1d6cc5a48974fc1093700d70caf04ae9644
+---
+Fix potential error when identity path is a string (bad conversion).
+
+in kde5 we will modify to akonadi::id
+---
+
+
+--- a/kpimidentities/identity.cpp
++++ b/kpimidentities/identity.cpp
+@@ -428,17 +428,20 @@
+ QString Identity::templates() const
+ {
+-  return property( QLatin1String( s_templates ) ).toString();
++  const QString str = property( QLatin1String( s_templates ) ).toString();
++  return verifyAkonadiId(str);
+ }
+ QString Identity::drafts() const
+ {
+-  return property( QLatin1String( s_drafts ) ).toString();
++  const QString str = property( QLatin1String( s_drafts ) ).toString();
++  return verifyAkonadiId(str);
+ }
+ QString Identity::fcc() const
+ {
+-  return property( QLatin1String( s_fcc ) ).toString();
++  const QString str = property( QLatin1String( s_fcc ) ).toString();
++  return verifyAkonadiId(str);
+ }
+ QString Identity::transport() const
+
This page took 0.089245 seconds and 4 git commands to generate.