diff --git a/kturtle.spec b/kturtle.spec index e52dfad..7aa7c9f 100644 --- a/kturtle.spec +++ b/kturtle.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kturtle Version: 17.03.90 @@ -46,6 +47,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KTurtle is an educational Logo programming environment. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -58,11 +63,14 @@ 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 Math %files %defattr(-,root,root) -%doc %lang(en) %{_kf5_htmldir}/en/kturtle/ %doc AUTHORS COPYING* README %{_kf5_applicationsdir}/org.kde.kturtle.desktop %{_kf5_bindir}/kturtle @@ -71,7 +79,15 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_kf5_iconsdir}/hicolor/*/apps/kturtle.* %{_kf5_configdir}/*.knsrc %{_datadir}/kxmlgui5/kturtle/ -%{_kf5_htmldir}/en/kturtle/ +%dir %{_datadir}/katepart +%{_datadir}/katepart/syntax/ +%{_datadir}/kturtle +%doc %{_kf5_htmldir}/en/kturtle/ %dir %{_kf5_appstreamdir} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog