From 9332f9380540261b95b4863d898dbcfce9c05e2e702f7b5adf7b32899c6bc805 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:53 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kwordquiz?expand=0&rev=48 --- kwordquiz.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kwordquiz.spec b/kwordquiz.spec index 8ec7310..c369321 100644 --- a/kwordquiz.spec +++ b/kwordquiz.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kwordquiz Version: 17.03.90 @@ -54,6 +55,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A powerful flashcard and vocabulary learning program. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -66,6 +71,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 %fdupes -s %{buildroot} %files @@ -84,4 +93,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_datadir}/kxmlgui5/kwordquiz/ %{_kf5_configdir}/kwordquiz.knsrc +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog