add opensuse post install post uninstall script

Refresh icon cache and desktop database
This commit is contained in:
Ivan 2015-12-14 15:37:20 +01:00
parent e96fa21155
commit 5fd419086a

View file

@ -71,6 +71,19 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications share/applica
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
%if 0%{?suse_version} >= 1140
%post
%icon_theme_cache_post
%desktop_database_post
%endif
%if 0%{?suse_version} >= 1140
%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%{_bindir}/%{name}
%{_datadir}/%{name}/