diff --git a/kgpg.spec b/kgpg.spec index 0e60ed9..f42be91 100644 --- a/kgpg.spec +++ b/kgpg.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kgpg Version: 17.03.90 @@ -63,6 +64,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Kgpg is a simple GUI for gpg +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kgpg-%{version} %patch1 @@ -74,6 +79,10 @@ Kgpg is a simple GUI for gpg %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.kgpg.deskt Utility Security %files @@ -92,4 +101,9 @@ Kgpg is a simple GUI for gpg %{_kf5_configdir}/autostart/org.kde.kgpg.desktop %{_kf5_kxmlguidir}/kgpg/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog