From 425aba13e2f4f2d9de296164239134d1519657fb6db68cc263d45a25ae69c194 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:30 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/knavalbattle?expand=0&rev=46 --- knavalbattle.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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