diff --git a/kmines.spec b/kmines.spec index 82c099c..9b440bb 100644 --- a/kmines.spec +++ b/kmines.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kmines Version: 17.03.90 @@ -74,6 +75,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build KMines is the classical Minesweeper game where you have to find mines by logical deduction. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kmines-%{version} @@ -83,6 +88,10 @@ by logical deduction. %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.kmines Game LogicGame %files @@ -97,4 +106,9 @@ by logical deduction. %{_kf5_kxmlguidir}/ %{_kf5_appstreamdir}/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog