commit e4563ac2cf92f39cb0b36099fcb72612800218b8
Author: Damian Wrobel <dwrobel(a)ertelnet.rybnik.pl>
Date: Tue Jan 7 13:57:06 2020 +0100
Add missing patch
...oce5viewer-not-starting-after-sip-upgrade.patch | 23 ++++++++++++++++++++++
ldoce5viewer.spec | 5 ++++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/ldoce5viewer-Fixes-Ldoce5viewer-not-starting-after-sip-upgrade.patch
b/ldoce5viewer-Fixes-Ldoce5viewer-not-starting-after-sip-upgrade.patch
new file mode 100644
index 0000000..d77faee
--- /dev/null
+++ b/ldoce5viewer-Fixes-Ldoce5viewer-not-starting-after-sip-upgrade.patch
@@ -0,0 +1,23 @@
+From 85690cc4bec3f0c9352d64a2150528724d679386 Mon Sep 17 00:00:00 2001
+From: Damian Wrobel <dwrobel(a)ertelnet.rybnik.pl>
+Date: Tue, 7 Jan 2020 13:18:42 +0100
+Subject: [PATCH] Fixes "Ldoce5viewer not starting after sip upgrade"
+
+Fix for
https://bugzilla.rpmfusion.org/show_bug.cgi?id=5502 as per
+https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11
+---
+ ldoce5viewer/qtgui/__init__.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ldoce5viewer/qtgui/__init__.py b/ldoce5viewer/qtgui/__init__.py
+index 56fa851..5f2eb78 100644
+--- a/ldoce5viewer/qtgui/__init__.py
++++ b/ldoce5viewer/qtgui/__init__.py
+@@ -7,6 +7,7 @@
+ from .. import __author__
+
+ # use PyQt API v2
++from PyQt5 import QtCore
+ import sip
+ sip.setapi('QString', 2)
+ sip.setapi('QVariant', 2)
diff --git a/ldoce5viewer.spec b/ldoce5viewer.spec
index a38e141..27c849c 100644
--- a/ldoce5viewer.spec
+++ b/ldoce5viewer.spec
@@ -4,7 +4,7 @@
Name: ldoce5viewer
Version: 0
-Release: 10.%{date}git%{shortcommit0}%{?dist}
+Release: 11.%{date}git%{shortcommit0}%{?dist}
Summary: Viewer Application for the Longman Dictionary (LDOCE 5)
License: GPLv3+ and Public Domain
URL:
https://forward-backward.co.jp/ldoce5viewer/
@@ -138,6 +138,9 @@ appstream-util validate-relax --nonet
%{buildroot}/%{_datadir}/appdata/*.appdata
%changelog
+* Tue Jan 07 2020 Damian Wrobel <dwrobel(a)ertelnet.rybnik.pl> -
0-11.20180309git377ff48
+- Add missing patch
+
* Tue Jan 07 2020 Damian Wrobel <dwrobel(a)ertelnet.rybnik.pl> -
0-10.20180309git377ff48
- Fix for "Ldoce5viewer not starting after sip upgrade" (rfbz#5502).