SHA256
1
0
forked from pool/kate

Accepting request 163239 from KDE:Distro:Factory

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/163239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kate?expand=0&rev=31
This commit is contained in:
Stephan Kulow 2013-04-18 08:15:53 +00:00 committed by Git OBS Bridge
parent 28de83f21c
commit 4df568a4d2
6 changed files with 12 additions and 81 deletions

View File

@ -1,34 +0,0 @@
From efea0f878622bec033943e50355015a18b7dcfec Mon Sep 17 00:00:00 2001
From: Luca Beltrame <lbeltrame@kde.org>
Date: Fri, 15 Mar 2013 00:23:34 +0100
Subject: [PATCH] Fix braindead logic in PyQt version detection. Fixes build
for PyQt >= 4.10.
CCMAIL: srhaque@theiet.org
---
kate/plugins/pate/sip/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kate/plugins/pate/sip/CMakeLists.txt b/kate/plugins/pate/sip/CMakeLists.txt
index d32266f..58b86e1 100644
--- a/kate/plugins/pate/sip/CMakeLists.txt
+++ b/kate/plugins/pate/sip/CMakeLists.txt
@@ -23,12 +23,12 @@ set(SIP_INCLUDES ${PYQT4_SIP_DIR} ${PYKDE4_SIP_DIR} ./kate)
set(SIP_CONCAT_PARTS 1)
set(SIP_TAGS ALL WS_X11 ${PYQT4_VERSION_TAG})
-if(PYQT4_VERSION LESS "040905")
+if(PYQT4_VERSION STRLESS "040905")
set(SIP_EXTRA_OPTIONS -g)
-else (PYQT4_VERSION LESS "040905")
+else (PYQT4_VERSION STRLESS "040905")
# Disable QVector<int> for newer PyQt
set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
-endif(PYQT4_VERSION LESS "040905")
+endif(PYQT4_VERSION STRLESS "040905")
add_sip_python_module(PyKate4.kate ./kate/katemod.sip ${KDE4_KTEXTEDITOR_LIBS} kateinterfaces)
--
1.8.2

View File

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

3
kate-4.10.2.tar.xz Normal file
View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Apr 1 19:11:47 UTC 2013 - tittiatcoke@gmail.com
- Update to 4.10.2
* Bugfixes
- Drop fix-braindead-logic-in-PyQt-version-detection.diff and
use-a-numeric-comparision.patch, they are included upstream
-------------------------------------------------------------------
Thu Mar 21 08:27:22 UTC 2013 - hrvoje.senjan@gmail.com

View File

@ -17,17 +17,13 @@
Name: kate
Version: 4.10.1
Version: 4.10.2
Release: 0
Summary: Advanced Text Editor
License: GPL-2.0+
Group: Productivity/Editors/Other
Url: http://www.kde.org/
Source0: %{name}-%{version}.tar.xz
#PATCH-FIX-UPSTREAM use-a-numeric-comparision.patch -- Fixes build with python-qt 4.10
Patch0: use-a-numeric-comparision.patch
#PATCH-FIX-UPSTREAM Fix-braindead-logic-in-PyQt-version-detection.diff -- Also fixes build with python-qt 4.10
Patch1: fix-braindead-logic-in-PyQt-version-detection.diff
BuildRequires: fdupes
BuildRequires: libkactivities-devel
BuildRequires: libkde4-devel >= %version
@ -48,8 +44,6 @@ Kate is an advanced text editor for KDE.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%ifarch ppc64

View File

@ -1,37 +0,0 @@
From: Shaheed Haque <srhaque@theiet.org>
Date: Sat, 09 Mar 2013 15:41:34 +0000
Subject: Fix Pate build for Qt 4.10
X-Git-Url: http://quickgit.kde.org/?p=kate.git&a=commitdiff&h=106f4ee310796170a28786a32f2a235d5464f83c
---
Fix Pate build for Qt 4.10
Use a numeric comparision, not a case-sensitive sring comparision!
---
--- a/kate/plugins/pate/CMakeLists.txt
+++ b/kate/plugins/pate/CMakeLists.txt
@@ -42,7 +42,7 @@
return()
endif (NOT PYTHON_LIBRARY)
if (NOT SIP_FOUND OR 0x${SIP_VERSION} LESS 0x40701)
- message(WARNING "Pate plugin needs SIP 4.7.1 or later.")
+ message(WARNING "Pate plugin needs SIP 4.7.1 or later. " ${SIP_VERSION})
return()
endif (NOT SIP_FOUND OR 0x${SIP_VERSION} LESS 0x40701)
if (NOT SIP_EXECUTABLE OR NOT EXISTS ${SIP_EXECUTABLE})
@@ -57,10 +57,10 @@
message(WARNING "Pate plugin needs the PyKDE4 development sip files kdecoremod.sip")
return()
endif()
-if (NOT PYQT4_FOUND OR PYQT4_VERSION LESS "040301")
- message(WARNING "Pate plugin needs PyQT 4.3.1 or later.")
+if (NOT PYQT4_FOUND OR 0x${PYQT4_VERSION} LESS 0x040301)
+ message(WARNING "Pate plugin needs PyQT 4.3.1 or later. " ${PYQT4_VERSION})
return()
-endif (NOT PYQT4_FOUND OR PYQT4_VERSION LESS "040301")
+endif (NOT PYQT4_FOUND OR 0x${PYQT4_VERSION} LESS 0x040301)
if (NOT PYKDE4_FOUND)
message(WARNING "Pate plugin needs PyKDE4.")
return()