From 48ea96a2dc48a45a1479ff1c2670d16d8af2f99568496de41e55546e282ffa19 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:02 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kate?expand=0&rev=67 --- kate.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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