From 55acdda3ac18d6a803a60e7af2cde146b48bf26fd14faaf35e10d55abf703e8e Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:24 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kiten?expand=0&rev=49 --- kiten.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kiten.spec b/kiten.spec index e4086f6..09bfdf5 100644 --- a/kiten.spec +++ b/kiten.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kiten Version: 17.03.90 @@ -82,6 +83,10 @@ 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} +%lang_package +%endif + %prep %setup -q @@ -94,6 +99,10 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif %reconfigure_fonts_scriptlets -n fonts-KanjiStrokeOrders @@ -130,4 +139,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %dir %{_kf5_sharedir}/fonts/kanjistrokeorders/ %{_kf5_sharedir}/fonts/kanjistrokeorders/KanjiStrokeOrders.ttf +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog