diff --git a/knavalbattle.spec b/knavalbattle.spec index 5ada9f6..d885a43 100644 --- a/knavalbattle.spec +++ b/knavalbattle.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: knavalbattle Version: 17.03.90 @@ -62,6 +63,10 @@ KBatteship is a KDE implentation of the popular game "Battleship" where you have to try to sink the opponents ships. The game can also be played with friends online via the internet. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n knavalbattle-%{version} @@ -71,6 +76,10 @@ played with friends online via the internet. %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.knavalbattle Game BoardGame %post -p /sbin/ldconfig @@ -89,4 +98,9 @@ played with friends online via the internet. %{_kf5_appsdir}/kconf_update/knavalbattle.upd %{_datadir}/kxmlgui5/knavalbattle/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog