From 615be4e5696ff7ba71a0346d8346161ecde54bbd80f51b8c7114960b57d72841 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sat, 5 Aug 2017 22:22:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/lskat?expand=0&rev=55 --- lskat.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lskat.spec b/lskat.spec index 6e2e1d2..57acbeb 100644 --- a/lskat.spec +++ b/lskat.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: lskat Version: 17.07.90 @@ -54,6 +55,7 @@ BuildRequires: pkgconfig(Qt5Widgets) Requires: kdegames-carddecks-default Obsoletes: lskat5 < %{version} Provides: lskat5 = %{version} +Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -62,6 +64,10 @@ for the German game (Offiziers)-Skat. The program includes many different carddecks to choose. A computer opponent can play for any of the players. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -71,6 +77,10 @@ the players. %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.lskat Game CardGame %files @@ -84,4 +94,9 @@ the players. %{_kf5_iconsdir}/hicolor/*/apps/lskat.* %{_kf5_kxmlguidir}/lskat/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog