From 9ef9367525dc4378007a10051c95220773db95fb766c571f9a729aa26aac30ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Mon, 4 Jun 2018 09:50:24 +0000
Subject: [PATCH 1/3] - Update to version 1.1   * Remove a hack used for broken
 mobi files   * Update libmobi for better compatibility

OBS-URL: https://build.opensuse.org/package/show/Education/mobidict?expand=0&rev=7
---
 mobidict-1.0.tar.xz     |  3 ---
 mobidict-1.0.tar.xz.asc | 16 ----------------
 mobidict-1.1.tar.xz     |  3 +++
 mobidict-1.1.tar.xz.asc | 16 ++++++++++++++++
 mobidict.changes        |  7 +++++++
 mobidict.spec           | 10 +++-------
 6 files changed, 29 insertions(+), 26 deletions(-)
 delete mode 100644 mobidict-1.0.tar.xz
 delete mode 100644 mobidict-1.0.tar.xz.asc
 create mode 100644 mobidict-1.1.tar.xz
 create mode 100644 mobidict-1.1.tar.xz.asc

diff --git a/mobidict-1.0.tar.xz b/mobidict-1.0.tar.xz
deleted file mode 100644
index 9e5887a..0000000
--- a/mobidict-1.0.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:131c140f75226b3892bc5d3ab20959dc1a1c6bf0a4503730c4c757d8eaa23c38
-size 258848
diff --git a/mobidict-1.0.tar.xz.asc b/mobidict-1.0.tar.xz.asc
deleted file mode 100644
index a3d2d5d..0000000
--- a/mobidict-1.0.tar.xz.asc
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQIzBAABCgAdFiEEJ4CQbwKqDn8RjDnDOB+h1y1y2pcFAloOppoACgkQOB+h1y1y
-2pdSLBAArCbRBtPf9lNwMNcPaEPI5cTCm4Ofgm6Gsbk4/l6q+1qQFLCdRQ7UQFHe
-5RTQPQyRYJzU7GxSU3ul8UfgY5XAQWWWPyu/Dr39Gw8sI0YsJEaTYibKVtePCpaG
-+Qolcgwsqx1Yr8sR6op5lojv0j3mUvJTuwSlLtPqw1QLvKwbHhS7OdXhW/o8L1Y2
-G/mYTuE0oG0YeiK4+4Coh/BhVjJC1TzaEeElbXtE5cdA4HCCQXaAamgqmVSIT984
-S2039rae1KQd3zW23vSOcPtv0oxoi2sRfIF4KU1qGwGgec5h5igQi3PhnKRytn5A
-7oP0+xMbXeN1wG6hAfaoq7Z3toQSpB9/48DQ4wU85266lhvfTXX0RBWj30aVYowh
-dPko8/Ceuq2GjBXvtacVuAKpk2h0O0KSOaH/0mdVxccXV6YZSmER7Oyr61091wPB
-+WsOlLFOw98GvtSFSbw9iLW1ndqDytNSwxXi9jLs99zzSCpw9d4bzIgfvFB+KG4X
-VgzUym7Rhlhm5vdEctX4VtuomrsW4G3SVMqzr5snQu7a8+jYR4KiU9w3IYSlwB+4
-0Ft3Wr6oObngJuDLpWZPuFyxnOapQF+ZEQEcVYmqprLu01grgQfn/wcxdxheyMMR
-Lhn5yEfFiDV2y5WHC34Ggbk+llrJFUH9lxtiTael6ijn8QPwUTg=
-=rN2n
------END PGP SIGNATURE-----
diff --git a/mobidict-1.1.tar.xz b/mobidict-1.1.tar.xz
new file mode 100644
index 0000000..a56200f
--- /dev/null
+++ b/mobidict-1.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:60053690e3e15160b3b915aedee8f2581f05036a8eb97ee9413eb34f0eec434f
+size 263944
diff --git a/mobidict-1.1.tar.xz.asc b/mobidict-1.1.tar.xz.asc
new file mode 100644
index 0000000..268f602
--- /dev/null
+++ b/mobidict-1.1.tar.xz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCgAdFiEEJ4CQbwKqDn8RjDnDOB+h1y1y2pcFAlsVCikACgkQOB+h1y1y
+2pf62RAAj1j6J0qWU1tAX+HTG2l7Jgb/E+HjjntSg+7w+G4kF0HWhrtOrSHqLovj
+9fFBqU7Kcr6Zs3tSxriCeOUkcEjir8mAr3+m7XT+/K3E/FgaD1ehirj2wrJa3Z2O
+DySmbZq3TgDDJCHTus6YuiPERh95YdhnymDZM59wCKPDYglhKsO9/rmhoc2WYEgi
+kD4yqZD4OEYZ+5Lh+EJGA+hAv2iWDIePOrbbPqeiOX604NjsbVKd9iBWzdfg6edT
+v5GS2oQFOilDl09QzQXKdzTHhokeb5hEim551eA0L4ZrqEZBbPhyZTaWtvGMQ0GP
+orGZSHJIyraoZYruCW5pJntrRFu4vt0/+Wqw84SMV2sZXoQ9gekHTutxLftLqZFE
+1W4xAa5HnWiPyW5NTjhVfXGHklrivw6L0mQ3gx4DH7+ylpy7KQ4ZW7lrNcGPuMW5
+KlCEbBHZX668t3nM0LGK7VAFyt3ZI9Jjp4R8mHkCEIoV8O0YaMcH6Fsu1WOHpIhn
+iOTauHuWKzi0eu8aIW3j8RRxicvJOcuqcVn8+s7Vg2ziqvoQbUA3d6A5Vjbmtz9c
+g3FqKE3lg+CHmbSfd/Qqu3rQD8MfretI8miuf+pVuHB9iajYI/fPCZY9hmYmKpRn
+7WJ2RoUx/z3Z/RSRBY0OEWollAzzHcNbx+6BD3mL0ZOk+J/OyHg=
+=rkra
+-----END PGP SIGNATURE-----
diff --git a/mobidict.changes b/mobidict.changes
index f2bf56a..65695ab 100644
--- a/mobidict.changes
+++ b/mobidict.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Mon Jun  4 09:46:32 UTC 2018 - idonmez@suse.com
+
+- Update to version 1.1
+  * Remove a hack used for broken mobi files
+  * Update libmobi for better compatibility
+
 -------------------------------------------------------------------
 Tue Nov 21 15:53:49 UTC 2017 - jengelh@inai.de
 
diff --git a/mobidict.spec b/mobidict.spec
index db496e8..9fc924f 100644
--- a/mobidict.spec
+++ b/mobidict.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package mobidict
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
 
 
 Name:           mobidict
-Version:        1.0
+Version:        1.1
 Release:        0
 Summary:        A dictionary viewer for AZW/MOBI files
-License:        GPL-3.0  
+License:        GPL-3.0-only
 Group:          Productivity/Office/Dictionary
 Url:            https://github.com/ismail/mobidict
 Source:         https://github.com/ismail/mobidict/releases/download/v%{version}/mobidict-%{version}.tar.xz
@@ -40,9 +40,6 @@ A dictionary viewer for AZW/MOBI files.
 
 %prep
 %setup -q
-cd libmobi
-patch -p1 < ../libmobi.patch
-patch -p1 < ../update-enc-length.patch
 
 %build
 export CFLAGS="%{optflags} -std=c11"
@@ -60,4 +57,3 @@ export CFLAGS="%{optflags} -std=c11"
 %{_datadir}/applications/mobidict.desktop
 
 %changelog
-

From 7ee7e32a128a97a5a06fe0411808de1b5ac0f948d6215566d936a3b9433cd599 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Mon, 4 Jun 2018 09:52:44 +0000
Subject: [PATCH 2/3] -

OBS-URL: https://build.opensuse.org/package/show/Education/mobidict?expand=0&rev=8
---
 mobidict.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mobidict.spec b/mobidict.spec
index 9fc924f..cc4ecac 100644
--- a/mobidict.spec
+++ b/mobidict.spec
@@ -26,7 +26,7 @@ Url:            https://github.com/ismail/mobidict
 Source:         https://github.com/ismail/mobidict/releases/download/v%{version}/mobidict-%{version}.tar.xz
 Source1:        https://github.com/ismail/mobidict/releases/download/v%{version}/mobidict-%{version}.tar.xz.asc
 Source2:        %{name}.keyring
-BuildRequires:  cmake
+BuildRequires:  cmake >= 3.9.2
 BuildRequires:  ninja
 BuildRequires:  pkgconfig(Qt5Concurrent)
 BuildRequires:  pkgconfig(Qt5Gui)

From 6a288b44fff41b0ebc6219e0eaf0fbc4d37eb397423e7e71b7029dc7a5400d14 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Mon, 4 Jun 2018 09:53:05 +0000
Subject: [PATCH 3/3] -

OBS-URL: https://build.opensuse.org/package/show/Education/mobidict?expand=0&rev=9
---
 mobidict.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mobidict.spec b/mobidict.spec
index cc4ecac..0ad1bbb 100644
--- a/mobidict.spec
+++ b/mobidict.spec
@@ -51,7 +51,7 @@ export CFLAGS="%{optflags} -std=c11"
 
 %files
 %defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{_bindir}/mobidict
 %{_datadir}/pixmaps/mobidict.png
 %{_datadir}/applications/mobidict.desktop