diff --git a/kmahjongg.spec b/kmahjongg.spec index 477d096..0160b87 100644 --- a/kmahjongg.spec +++ b/kmahjongg.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kmahjongg Version: 17.03.90 @@ -53,6 +54,10 @@ KMahjongg is a clone of the well known tile based patience game of the same name. In the game you have to empty a game board filled with piece by removing pieces of the same type. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kmahjongg-%{version} @@ -62,6 +67,10 @@ by removing pieces of the same type. %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif %suse_update_desktop_file -r org.kde.kmahjongg Game BoardGame %files @@ -75,4 +84,9 @@ by removing pieces of the same type. %{_kf5_configkcfgdir}/ %{_kf5_sharedir}/kxmlgui5 +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog