diff --git a/kbruch.spec b/kbruch.spec index 475a83c..514bea2 100644 --- a/kbruch.spec +++ b/kbruch.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kbruch Version: 17.03.90 @@ -44,6 +45,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KBruch is an application to learn calculating with fractions. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -56,6 +61,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 %files %defattr(-,root,root) @@ -71,4 +80,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_mandir}/man1/kbruch.1%{ext_man} %dir %{_kf5_appstreamdir} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog