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