diff --git a/eclipse-cdt.spec b/eclipse-cdt.spec index a97ad82..b6ff39c 100644 --- a/eclipse-cdt.spec +++ b/eclipse-cdt.spec @@ -36,7 +36,7 @@ Epoch: 1 Summary: Eclipse C/C++ Development Tools (CDT) plugin Name: eclipse-cdt Version: 9.3.2 -Release: 5%{?dist} +Release: 4%{?dist} License: EPL and CPL URL: http://www.eclipse.org/cdt @@ -466,6 +466,20 @@ desktop-file-validate $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop # Install man page install -D -m 644 man/cdtdebug.man $RPM_BUILD_ROOT/%{_mandir}/man1/cdtdebug.1 +%if 0%{?rhel} && 0%{?rhel} <= 7 +%post +touch --no-create /usr/share/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q /usr/share/icons/hicolor +fi + +%postun +touch --no-create /usr/share/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q /usr/share/icons/hicolor +fi +%endif + %files -f .mfiles %{_bindir}/cdtdebug /usr/share/applications/* @@ -518,9 +532,6 @@ install -D -m 644 man/cdtdebug.man $RPM_BUILD_ROOT/%{_mandir}/man1/cdtdebug.1 %endif %changelog -* Thu Jan 11 2018 Igor Gnatenko - 1:9.3.2-5 -- Remove obsolete scriptlets - * Mon Jan 08 2018 Jeff Johnston - 1:9.3.2-4 - Fix bug 529390