From 37f1281caec7800c2969e58b1aabf9883d0820868e04da8780468000ec87fb32 Mon Sep 17 00:00:00 2001 From: Christophe Marin Date: Wed, 17 May 2023 14:32:56 +0000 Subject: [PATCH] Accepting request 1087673 from home:jengelh:branches:KDE:Applications - Reuse system edict dictionaries and shave off 13 MB worth of data. 15.4 support OBS-URL: https://build.opensuse.org/request/show/1087673 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kiten?expand=0&rev=182 --- kiten.changes | 7 +++++++ kiten.spec | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/kiten.changes b/kiten.changes index 1dba6d4..24a582f 100644 --- a/kiten.changes +++ b/kiten.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 11 15:36:49 UTC 2023 - Jan Engelhardt + +- Reuse system edict dictionaries and shave off 13 MB worth of + data. The system edict is also (much) newer and more + comprehensive. + ------------------------------------------------------------------- Tue May 9 10:47:06 UTC 2023 - Christophe Marin diff --git a/kiten.spec b/kiten.spec index 1d81c21..4c5e25a 100644 --- a/kiten.spec +++ b/kiten.spec @@ -46,6 +46,10 @@ BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Widgets) +%if 0%{?suse_version} >= 1599 +BuildRequires: edict-eucjp >= 20230511 +Requires: edict-eucjp >= 20230511 +%endif Requires: fonts-KanjiStrokeOrders Obsoletes: %{name}5 < %{version} Provides: %{name}5 = %{version} @@ -95,6 +99,11 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %install %kf5_makeinstall -C build +%if 0%{?suse_version} >= 1599 +for i in edict kanjidic radkfile; do + ln -fsv "%_datadir/edict/$i.eucjp" "%buildroot/%_datadir/kiten/$i" +done +%endif %find_lang %{name} --with-man --all-name %{kf5_find_htmldocs}