Use kf5_find_lang everywhere
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/kde-gtk-config5?expand=0&rev=3
This commit is contained in:
parent
2795e95aa8
commit
c6d6815f85
@ -74,11 +74,14 @@ Among its many features, it lets you:
|
||||
%setup -q -n kde-gtk-config-%{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
|
||||
|
||||
install -Dpm 0755 %{SOURCE1} %{buildroot}%{_kf5_configdir}/plasma-workspace/env/kde_gtk_config.suse.sh
|
||||
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_kf5_sharedir}/%{name}/gtkrc-2.0-kde4.template
|
||||
@ -103,9 +106,7 @@ install -Dpm 0644 %{SOURCE3} %{buildroot}%{_kf5_sharedir}/%{name}/gtk3-settings.
|
||||
%{_kf5_sharedir}/icons/hicolor/*/*/*.*
|
||||
|
||||
%if %{with lang}
|
||||
%files lang
|
||||
%defattr(-,root,root)
|
||||
%{_kf5_localedir}/
|
||||
%files lang -f %{name}.lang
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user