LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kiten.spec of Package kiten.openSUSE_Backports_SLE-12-SP3 (Project home:alarrosa:Backports:SLE-12-SP3:KDE)

# spec file for package kiten
# Copyright (c) 2016 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
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%bcond_without lang

Name:           kiten
Version:        17.04.2
Release:        0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary:        Japanese Reference/Study Tool
# Data files are under CC-BY-SA-3.0 (edict) and CC-BY-SA-4.0 ("kanjidic"/SKIP numbers therein)
License:        GPL-2.0+ and CC-BY-SA-3.0 and CC-BY-SA-4.0
Group:          Amusements/Teaching/Language
Url:            http://edu.kde.org
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  extra-cmake-modules
BuildRequires:  karchive-devel
BuildRequires:  kcompletion-devel
BuildRequires:  kconfig-devel
BuildRequires:  kconfigwidgets-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kcrash-devel
BuildRequires:  kdoctools-devel
BuildRequires:  kf5-filesystem
BuildRequires:  khtml-devel
BuildRequires:  ki18n-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       fonts-KanjiStrokeOrders
Obsoletes:      %{name}5 < %{version}
Provides:       %{name}5 = %{version}
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Kiten is a tool to learn Japanese.

%package devel
Summary:        Development files for kiten
License:        GPL-2.0+
Group:          Development/Libraries/KDE
Requires:       kiten = %{version}

%description devel
Kiten is a tool to learn Japanese.

This package contains files for developing applications using kiten.

%package -n fonts-KanjiStrokeOrders
Summary:        Font for learning Japanese Kanji
License:        BSD-3-Clause
Group:          System/X11/Fonts
BuildRequires:  fontpackages-devel
Provides:       kdeedu4:%{_kde4_datadir}/fonts/kanjistrokeorders/KanjiStrokeOrders.ttf
BuildArch:      noarch

%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.

%if %{with lang}

%setup -q

%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
  %cmake_kf5 -d build

  %kf5_makeinstall -C build
  %if %{with lang}
    %find_lang %{name} --with-man --all-name

%reconfigure_fonts_scriptlets -n fonts-KanjiStrokeOrders

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%dir %{_kf5_appstreamdir}
%doc %{_kf5_htmldir}/en/kiten/

%files devel

%files -n fonts-KanjiStrokeOrders
%doc data/font/copyright.txt data/font/readme_*.txt
%dir %{_kf5_sharedir}/fonts/kanjistrokeorders/

%if %{with lang}
%files lang -f %{name}.lang