diff --git a/kate.spec b/kate.spec index 035771f..eba972b 100644 --- a/kate.spec +++ b/kate.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang %define _appstreamkpackage 0%(cat %{_kf5_libdir}/cmake/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1) Name: kate @@ -85,6 +86,10 @@ Obsoletes: kate5-plugins < %{version} Kate is an advanced text editor for KDE. This package contains plugins and data files for Kate and KWrite editors. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -94,6 +99,10 @@ plugins and data files for Kate and KWrite editors. %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -135,4 +144,9 @@ plugins and data files for Kate and KWrite editors. %{_kf5_sharedir}/plasma/ %{_kf5_servicesdir}/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog