From 322803299ab8025b31af499bf4a99e1eed8b79e93c83905113e68ae8791f158f Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:26 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/klettres?expand=0&rev=49 --- klettres.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/klettres.spec b/klettres.spec index b2732fc..d6e44cf 100644 --- a/klettres.spec +++ b/klettres.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: klettres Version: 17.03.90 @@ -53,6 +54,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Helps to learn the alphabet and read some syllables. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -65,6 +70,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.%{name} Education Languages %files @@ -82,4 +91,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_kf5_appstreamdir}/org.kde.klettres.appdata.xml %dir %{_kf5_appstreamdir} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog