From d9cc449798e5ad8e4dbfccac4fb21c5c6d5972aa271fa1a9b1ffec8b41533014 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:17 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kfloppy?expand=0&rev=47 --- kfloppy.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kfloppy.spec b/kfloppy.spec index d10dc44..40aba77 100644 --- a/kfloppy.spec +++ b/kfloppy.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kfloppy Version: 17.03.90 @@ -43,6 +44,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KDE Floppy Disk Utility +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kfloppy-%{version} @@ -52,6 +57,10 @@ KDE Floppy Disk Utility %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.kfloppy System Filesystem %post -p /sbin/ldconfig @@ -67,4 +76,9 @@ KDE Floppy Disk Utility %{_kf5_appstreamdir}/ %{_kf5_configdir}/kfloppy.categories +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog