From c4eb720bca5720589b9899c8220ebe01f2cc9fe5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jan 28 2017 10:52:43 +0000 Subject: correctly create icon theme cache --- diff --git a/elementary-icon-theme.spec b/elementary-icon-theme.spec index ce64752..9b28ed0 100644 --- a/elementary-icon-theme.spec +++ b/elementary-icon-theme.spec @@ -1,7 +1,7 @@ Name: elementary-icon-theme Summary: Icons from the Elementary Project Version: 4.0.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://launchpad.net/elementaryicons @@ -19,12 +19,12 @@ This is an icon theme designed to be smooth, sexy, clear, and efficient. %build -#Nothing here. +# Nothing to do. %install -mkdir -p %{buildroot}%{_datadir}/icons/elementary -cp -apR * %{buildroot}%{_datadir}/icons/elementary +mkdir -p %{buildroot}/%{_datadir}/icons/elementary +cp -apR * %{buildroot}/%{_datadir}/icons/elementary rm %{buildroot}/%{_datadir}/icons/elementary/AUTHORS rm %{buildroot}/%{_datadir}/icons/elementary/CONTRIBUTORS @@ -32,18 +32,20 @@ rm %{buildroot}/%{_datadir}/icons/elementary/COPYING rm %{buildroot}/%{_datadir}/icons/elementary/pre-commit rm %{buildroot}/%{_datadir}/icons/elementary/README.md +touch %{buildroot}/%{_datadir}/icons/elementary/icon-theme.cache + %post -/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +/bin/touch --no-create %{_datadir}/icons/elementary &>/dev/null || : %postun if [ $1 -eq 0 ] ; then - /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null - /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + /bin/touch --no-create %{_datadir}/icons/elementary &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/elementary &>/dev/null || : fi %posttrans -/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/elementary &>/dev/null || : %files @@ -51,9 +53,13 @@ fi %license COPYING %{_datadir}/icons/elementary/ +%ghost %{_datadir}/icons/elementary/icon-theme.cache %changelog +* Sat Jan 28 2017 Fabio Valentini - 4.0.2-2 +- Correctly create icon cache. + * Thu Jan 19 2017 Fabio Valentini - 4.0.2-1 - Update to version 4.0.2. - Clean up spec file.