From f8e18e618dee14b2eb4fbeea9decfc54d851c82c992c414ee057a6f24f57f26a Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 15 Sep 2016 19:41:33 +0000 Subject: [PATCH] Use kf5_find_lang everywhere OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/libksysguard5?expand=0&rev=3 --- libksysguard5.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libksysguard5.spec b/libksysguard5.spec index d36299e..efa4d85 100644 --- a/libksysguard5.spec +++ b/libksysguard5.spec @@ -89,11 +89,14 @@ for actions that require elevated privileges. %setup -q -n libksysguard-%{version} %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 %post -p /sbin/ldconfig @@ -129,9 +132,7 @@ for actions that require elevated privileges. %{_kf5_libdir}/libprocessui.so %if %{with lang} -%files lang -%defattr(-,root,root) -%{_kf5_localedir}/ +%files lang -f %{name}.lang %endif %changelog