From faae6b4b5a1e5f3629b0c7bbeab704927edc7bf58eff1fa194dfed4b1ce6371d Mon Sep 17 00:00:00 2001
From: Luca Beltrame <lbeltrame@kde.org>
Date: Sat, 15 Apr 2017 13:28:18 +0000
Subject: [PATCH] Make a merry car great again

OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kgpg?expand=0&rev=60
---
 kgpg.spec | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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