From 24b8ee37f88ea83d3e268ca1ede0fa21e8523fc968d5bad6f16ea6e334f6dae9 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:43 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/ktouch?expand=0&rev=47 --- ktouch.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ktouch.spec b/ktouch.spec index ab9a43d..3b05847 100644 --- a/ktouch.spec +++ b/ktouch.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: ktouch Version: 17.03.90 @@ -64,6 +65,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A KDE program that helps you to learn and practice touch typing. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -76,6 +81,10 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %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.ktouch X-KDE-Edu-Teaching %files @@ -92,4 +101,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_kf5_iconsdir}/hicolor/*/apps/ktouch.* %{_kf5_mandir}/man1/ktouch.1.gz +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog