diff --git a/kruler.spec b/kruler.spec index a3b5547..2a7aced 100644 --- a/kruler.spec +++ b/kruler.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kruler Version: 17.03.90 @@ -45,6 +46,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A screen ruler for the K Desktop Environment +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -54,6 +59,10 @@ A screen ruler for the K Desktop Environment %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.kruler Utility DesktopUtility %post -p /sbin/ldconfig @@ -69,4 +78,9 @@ A screen ruler for the K Desktop Environment %{_datadir}/knotifications5/kruler.notifyrc %{_kf5_appstreamdir}/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog