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