diff --git a/kblocks.spec b/kblocks.spec index d3bd5a1..68b4b9d 100644 --- a/kblocks.spec +++ b/kblocks.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kblocks Version: 17.03.90 @@ -57,6 +58,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KBlocks is the KDE version of the classic falling blocks game. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kblocks-%{version} @@ -66,6 +71,10 @@ KBlocks is the KDE version of the classic falling blocks game. %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -85,4 +94,9 @@ KBlocks is the KDE version of the classic falling blocks game. %{_datadir}/kxmlgui5/kblocks/ %dir %{_kf5_appstreamdir} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog