Use kf5_find_lang everywhere

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/libksysguard5?expand=0&rev=3
This commit is contained in:
Fabian Vogt 2016-09-15 19:41:33 +00:00 committed by Git OBS Bridge
parent 88f2a2ad6f
commit f8e18e618d

View File

@ -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