Use kf5_find_lang everywhere

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

View File

@ -81,11 +81,14 @@ KDE Utility that provides information about a computer system.
%patch0 -p1
%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
%files
%defattr(-,root,root)
@ -106,10 +109,8 @@ KDE Utility that provides information about a computer system.
%{_kf5_sharedir}/desktop-directories/
%if %{with lang}
%files lang
%defattr(-,root,root)
%files lang -f %{name}.lang
%doc COPYING*
%{_kf5_localedir}/
%doc %lang(ca) %{_kf5_htmldir}/ca/
%doc %lang(de) %{_kf5_htmldir}/de/
%doc %lang(it) %{_kf5_htmldir}/it/