diff --git a/kfind.spec b/kfind.spec index ba73e6b..80c323f 100644 --- a/kfind.spec +++ b/kfind.spec @@ -16,6 +16,8 @@ # +%bcond_without lang + Name: kfind Version: 17.03.90 Release: 0 @@ -39,6 +41,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KFind allows you to search for directories and files. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -48,6 +54,10 @@ KFind allows you to search for directories and files. %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.kfind System Filesystem core @@ -74,4 +84,9 @@ KFind allows you to search for directories and files. %doc %{_kf5_htmldir}/en/kfind/ %doc %{_kf5_mandir}/man1/kfind.* +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog