diff --git a/marble.spec b/marble.spec index c14dc33..7c1d86d 100644 --- a/marble.spec +++ b/marble.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang %define _so -27 %define _so_astro 1 @@ -147,6 +148,10 @@ Provides: libastro-qt5%{_so_astro} = %{version} %description -n libastro%{_so_astro} The astronomy library for the satellites plugin. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n marble-%{version} @@ -160,6 +165,10 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name --with-qt + %kf5_find_htmldocs + %endif %fdupes -s %{buildroot} %post -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig @@ -232,4 +241,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_datadir}/plasma/plasmoids/ %{_datadir}/plasma/wallpapers/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog