diff --git a/ktimer.spec b/ktimer.spec index 99c1d6a..66147b1 100644 --- a/ktimer.spec +++ b/ktimer.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: ktimer Version: 17.03.90 @@ -47,6 +48,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Countdown launching tool for KDE +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n ktimer-%{version} @@ -56,6 +61,10 @@ Countdown launching tool for KDE %install %kf5_makeinstall -C build +%if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs +%endif %suse_update_desktop_file org.kde.ktimer Utility TimeUtility %post -p /sbin/ldconfig @@ -63,11 +72,16 @@ Countdown launching tool for KDE %files %defattr(-,root,root) -%doc COPYING +%doc COPYING* %{_kf5_bindir}/ktimer %{_kf5_htmldir}/en/ktimer/ %{_kf5_applicationsdir}/org.kde.ktimer.desktop %{_kf5_iconsdir}/hicolor/*/*/*.png %{_kf5_htmldir}/en/ktimer/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog