Use kf5_find_lang everywhere

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

View File

@ -93,11 +93,14 @@ Development files for Library and components for secure lock screen architecture
%endif
%build
%cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
%cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%kf5_find_lang
%endif
%post
# boo#931296
@ -110,10 +113,8 @@ Development files for Library and components for secure lock screen architecture
%postun -n libKScreenLocker5 -p /sbin/ldconfig
%if %{with lang}
%files lang
%defattr(-,root,root)
%files lang -f %{name}.lang
%doc COPYING*
%{_kf5_localedir}/
%endif
%files