diff --git a/kteatime.spec b/kteatime.spec index 3a6d520..872871a 100644 --- a/kteatime.spec +++ b/kteatime.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kteatime Version: 17.03.90 @@ -51,6 +52,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KDE time utility for making a fine cup of tea +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -60,6 +65,10 @@ KDE time utility for making a fine cup of tea %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.kteatime Applet %files @@ -72,4 +81,9 @@ KDE time utility for making a fine cup of tea %{_kf5_appstreamdir}/ %{_datadir}/knotifications5/kteatime.notifyrc +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog