2011-07-25 10:45:37 +00:00
|
|
|
#
|
2011-07-25 10:45:47 +00:00
|
|
|
# spec file for package kiten
|
2011-07-25 10:45:37 +00:00
|
|
|
#
|
2024-02-23 20:08:20 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-07-25 10:45:37 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-24 23:44:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-25 10:45:37 +00:00
|
|
|
#
|
|
|
|
|
2017-08-11 22:56:51 +00:00
|
|
|
|
2024-02-23 20:08:20 +00:00
|
|
|
%define kf6_version 5.240.0
|
|
|
|
%define qt6_version 6.6.0
|
|
|
|
|
2022-01-06 12:44:46 +00:00
|
|
|
%bcond_without released
|
2018-11-24 23:44:50 +00:00
|
|
|
Name: kiten
|
2024-03-21 13:54:47 +00:00
|
|
|
Version: 24.02.1
|
2018-11-24 23:44:50 +00:00
|
|
|
Release: 0
|
2011-07-25 10:45:37 +00:00
|
|
|
Summary: Japanese Reference/Study Tool
|
2017-05-28 12:06:47 +00:00
|
|
|
# Data files are under CC-BY-SA-3.0 (edict) and CC-BY-SA-4.0 ("kanjidic"/SKIP numbers therein)
|
2018-11-24 23:44:50 +00:00
|
|
|
License: GPL-2.0-or-later AND CC-BY-SA-3.0 AND CC-BY-SA-4.0
|
2021-04-19 13:31:00 +00:00
|
|
|
URL: https://apps.kde.org/kiten
|
2024-02-26 10:17:36 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-06 12:44:46 +00:00
|
|
|
%if %{with released}
|
2024-02-26 10:17:36 +00:00
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2021-04-19 13:31:00 +00:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2024-02-23 20:08:20 +00:00
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
2020-03-28 13:57:44 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2024-02-23 20:08:20 +00:00
|
|
|
BuildRequires: cmake(KF6Archive) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Completion) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6DocTools) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Notifications) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6XmlGui) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6StatusNotifierItem) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
2023-05-17 14:32:56 +00:00
|
|
|
%if 0%{?suse_version} >= 1599
|
|
|
|
BuildRequires: edict-eucjp >= 20230511
|
|
|
|
Requires: edict-eucjp >= 20230511
|
|
|
|
%endif
|
2012-09-11 09:24:08 +00:00
|
|
|
Requires: fonts-KanjiStrokeOrders
|
2024-02-23 20:08:20 +00:00
|
|
|
Provides: kiten5 = %{version}
|
|
|
|
Obsoletes: kiten5 < %{version}
|
2011-07-25 10:45:37 +00:00
|
|
|
|
|
|
|
%description
|
2011-08-11 08:18:53 +00:00
|
|
|
Kiten is a tool to learn Japanese.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for kiten
|
2018-11-24 23:44:50 +00:00
|
|
|
License: GPL-2.0-or-later
|
2011-08-11 08:18:53 +00:00
|
|
|
Requires: kiten = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Kiten is a tool to learn Japanese.
|
|
|
|
|
|
|
|
This package contains files for developing applications using kiten.
|
2011-07-25 10:45:37 +00:00
|
|
|
|
2012-09-11 09:24:08 +00:00
|
|
|
%package -n fonts-KanjiStrokeOrders
|
|
|
|
Summary: Font for learning Japanese Kanji
|
|
|
|
License: BSD-3-Clause
|
2016-12-03 15:10:58 +00:00
|
|
|
BuildRequires: fontpackages-devel
|
2012-09-11 09:24:08 +00:00
|
|
|
BuildArch: noarch
|
2012-09-25 08:38:59 +00:00
|
|
|
%reconfigure_fonts_prereq
|
2012-09-11 09:24:08 +00:00
|
|
|
|
|
|
|
%description -n fonts-KanjiStrokeOrders
|
|
|
|
This font provides an easy way to view stroke order diagrams for over 6350
|
|
|
|
kanji, 183 kana symbols, the Latin characters and quite a few other symbols.
|
|
|
|
I have also used it as a dumping ground for my own character creation doodles.
|
|
|
|
|
|
|
|
My hope is that this font will assist people who are learning kanji. I
|
|
|
|
also hope it will help teachers of Japanese in the preparation of
|
|
|
|
classroom material. Beware that Japanese stroke order can differ from the
|
|
|
|
stroke order used in other languages that use Chinese characters.
|
|
|
|
|
2017-04-15 13:28:24 +00:00
|
|
|
%lang_package
|
|
|
|
|
2011-07-25 10:45:37 +00:00
|
|
|
%prep
|
2021-04-19 13:31:00 +00:00
|
|
|
%autosetup -p1
|
2011-07-25 10:45:37 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch ppc ppc64
|
2011-07-27 15:27:42 +00:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
2011-07-25 10:45:37 +00:00
|
|
|
%endif
|
2024-02-23 20:08:20 +00:00
|
|
|
|
|
|
|
%cmake_kf6
|
|
|
|
|
|
|
|
%kf6_build
|
2011-07-25 10:45:37 +00:00
|
|
|
|
|
|
|
%install
|
2024-02-23 20:08:20 +00:00
|
|
|
%kf6_install
|
2023-05-17 14:32:56 +00:00
|
|
|
%if 0%{?suse_version} >= 1599
|
|
|
|
for i in edict kanjidic radkfile; do
|
2024-02-23 20:08:20 +00:00
|
|
|
ln -fsv "%{_datadir}/edict/$i.eucjp" "%{buildroot}%{_datadir}/kiten/$i"
|
2023-05-17 14:32:56 +00:00
|
|
|
done
|
|
|
|
%endif
|
2022-11-17 22:58:25 +00:00
|
|
|
|
2024-02-23 20:08:20 +00:00
|
|
|
%find_lang %{name} --with-html --all-name
|
2011-07-25 10:45:37 +00:00
|
|
|
|
2012-09-25 08:38:59 +00:00
|
|
|
%reconfigure_fonts_scriptlets -n fonts-KanjiStrokeOrders
|
2011-07-25 10:45:37 +00:00
|
|
|
|
2023-03-02 14:21:12 +00:00
|
|
|
%ldconfig_scriptlets
|
2011-07-25 10:45:37 +00:00
|
|
|
|
|
|
|
%files
|
2021-03-28 07:27:18 +00:00
|
|
|
%license LICENSES/*
|
2024-02-23 20:08:20 +00:00
|
|
|
%doc AUTHORS README.md
|
|
|
|
%doc %lang(en) %{_kf6_htmldir}/en/kiten/
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kiten.desktop
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kitenkanjibrowser.desktop
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kitenradselect.desktop
|
|
|
|
%{_kf6_appstreamdir}/org.kde.kiten.appdata.xml
|
|
|
|
%{_kf6_bindir}/kiten
|
|
|
|
%{_kf6_bindir}/kitenkanjibrowser
|
|
|
|
%{_kf6_bindir}/kitenradselect
|
|
|
|
%{_kf6_configkcfgdir}/kiten.kcfg
|
|
|
|
%{_kf6_iconsdir}/hicolor/*/*/kiten.*
|
|
|
|
%{_kf6_libdir}/libkiten.so.*
|
|
|
|
%{_kf6_sharedir}/kiten/
|
2011-07-25 10:45:37 +00:00
|
|
|
|
2011-08-11 08:18:53 +00:00
|
|
|
%files devel
|
2024-02-23 20:08:20 +00:00
|
|
|
%{_kf6_libdir}/libkiten.so
|
|
|
|
%{_includedir}/libkiten/
|
2011-08-11 08:18:53 +00:00
|
|
|
|
2012-09-11 09:24:08 +00:00
|
|
|
%files -n fonts-KanjiStrokeOrders
|
2021-03-28 07:27:18 +00:00
|
|
|
%license data/font/KanjiStrokeOrders.ttf.license
|
2024-02-23 20:08:20 +00:00
|
|
|
%doc data/font/readme_en_v2.016.txt
|
|
|
|
%dir %{_kf6_sharedir}/fonts/kanjistrokeorders/
|
|
|
|
%{_kf6_sharedir}/fonts/kanjistrokeorders/KanjiStrokeOrders.ttf
|
2012-09-11 09:24:08 +00:00
|
|
|
|
2017-04-15 13:28:24 +00:00
|
|
|
%files lang -f %{name}.lang
|
2024-02-23 20:08:20 +00:00
|
|
|
%exclude %{_kf6_htmldir}/en/kiten/
|
2017-04-15 13:28:24 +00:00
|
|
|
|
2011-07-25 10:45:37 +00:00
|
|
|
%changelog
|