public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Briza <mbriza@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mediawriter] epel10: Don't forget to update the icon cache
Date: Tue, 29 Sep 2026 15:27:26 GMT	[thread overview]
Message-ID: <179069564672.1.11471092657403586131.rpms-mediawriter-7dadd5e1786a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mediawriter
Branch : epel10
Commit : 7dadd5e1786ad893dc209636ed3315885bd043a8
Author : Martin Briza <mbriza@redhat.com>
Date   : 2016-10-31T17:11:12+01:00
Stats  : +23/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/mediawriter/c/7dadd5e1786ad893dc209636ed3315885bd043a8?branch=epel10

Log:
Don't forget to update the icon cache

---
diff --git a/mediawriter.spec b/mediawriter.spec
index a2106ff..9200acc 100644
--- a/mediawriter.spec
+++ b/mediawriter.spec
@@ -1,6 +1,6 @@
 Name:           mediawriter
 Version:        4.0.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Fedora Media Writer
 
 License:        GPLv2+
@@ -46,16 +46,37 @@ make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
 %check
 appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
 
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/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 || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
 
 %files
 %{_bindir}/%{name}
 %{_libexecdir}/%{name}/
 %{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/icons/hicolor/*
+%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
+%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
+%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
+%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
+%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
 
 
 %changelog
+* Mon Oct 31 2016 Martin Bříza <mbriza@redhat.com> 4.0.0-2
+- Don't forget to update the icon cache
+
 * Mon Oct 31 2016 Martin Bříza <mbriza@redhat.com> 4.0.0-1
 - Make mediawriter obsolete the liveusb-creator package
 

                 reply	other threads:[~2026-09-29 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179069564672.1.11471092657403586131.rpms-mediawriter-7dadd5e1786a@fedoraproject.org \
    --to=mbriza@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox