From c3fb6dbfaea79e07274fbed4267c127af8bb57aec657fe1dac9eb99c111151da Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 15 Sep 2016 19:41:06 +0000 Subject: [PATCH] Use kf5_find_lang everywhere OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/kinfocenter5?expand=0&rev=3 --- kinfocenter5.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kinfocenter5.spec b/kinfocenter5.spec index 77cd592..572e5fd 100644 --- a/kinfocenter5.spec +++ b/kinfocenter5.spec @@ -81,11 +81,14 @@ KDE Utility that provides information about a computer system. %patch0 -p1 %build - %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 + %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} %make_jobs %install %kf5_makeinstall -C build +%if %{with lang} + %kf5_find_lang +%endif %files %defattr(-,root,root) @@ -106,10 +109,8 @@ KDE Utility that provides information about a computer system. %{_kf5_sharedir}/desktop-directories/ %if %{with lang} -%files lang -%defattr(-,root,root) +%files lang -f %{name}.lang %doc COPYING* -%{_kf5_localedir}/ %doc %lang(ca) %{_kf5_htmldir}/ca/ %doc %lang(de) %{_kf5_htmldir}/de/ %doc %lang(it) %{_kf5_htmldir}/it/