diff --git a/kinfocenter5.spec b/kinfocenter5.spec index 77cd592..572e5fd 100644 --- a/kinfocenter5.spec +++ b/kinfocenter5.spec @@ -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/