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:
parent
1237d3be55
commit
be670ba42d
@ -93,11 +93,14 @@ Development files for Library and components for secure lock screen architecture
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%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
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
|
%if %{with lang}
|
||||||
|
%kf5_find_lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# boo#931296
|
# boo#931296
|
||||||
@ -110,10 +113,8 @@ Development files for Library and components for secure lock screen architecture
|
|||||||
%postun -n libKScreenLocker5 -p /sbin/ldconfig
|
%postun -n libKScreenLocker5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%if %{with lang}
|
%if %{with lang}
|
||||||
%files lang
|
%files lang -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc COPYING*
|
%doc COPYING*
|
||||||
%{_kf5_localedir}/
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user