[transmission] fix Transmission Qt icon location (rhbz#1096423)

Rahul Sundaram sundaram at fedoraproject.org
Sat May 17 17:09:33 UTC 2014


commit 039e695b69ef5dbdb85622ef59c681967f97d021
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Sat May 17 13:09:18 2014 -0400

    fix Transmission Qt icon location (rhbz#1096423)

 transmission.spec |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/transmission.spec b/transmission.spec
index bb140be..edbc886 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -2,7 +2,7 @@
 
 Name:           transmission
 Version:        2.82
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A lightweight GTK+ BitTorrent client
 
 Group:          Applications/Internet
@@ -94,6 +94,10 @@ exit 0
 %setup -q 
 %patch0 -p2 -R
 
+# fix icon location for Transmission Qt
+sed -i 's|Icon=%{name}-qt|Icon=%{name}|g' qt/%{name}-qt.desktop
+
+# convert to UTF encoding
 iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new
 mv AUTHORS.new AUTHORS
 iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
@@ -125,7 +129,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gtk.desktop
 desktop-file-install \
                 --dir=%{buildroot}%{_datadir}/applications/  \
                   qt/%{name}-qt.desktop
-                
 
 %post common
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -197,6 +200,9 @@ fi
 %doc %{_mandir}/man1/transmission-qt.*
 
 %changelog
+* Sat May 17 2014 Rahul Sundaram <sundaram at fedoraproject.org> - 2.82-3
+- fix Transmission Qt icon location (rhbz#1096423)
+
 * Thu Aug 29 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 2.82-2
 - Remove obseleted Obsoletes tag
 - Forgot a spec bump
@@ -216,7 +222,7 @@ fi
 - Update to new upstream release: 2.81
 - https://trac.transmissionbt.com/wiki/Changes#version-2.81
 - Replace /var/lib by sharestatedir macro
-- Replace $RPM_OPT_FLAGS with %optflags for consistency
+- Replace $RPM_OPT_FLAGS with optflags for consistency
 
 * Sun Jul 14 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 2.80-2
 - systemd-units -> systemd. rhbz:981647


More information about the scm-commits mailing list