kalev pushed to transmission (f22). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed May 13 16:05:02 UTC 2015
From a1ef7fdf23b12d7112c895df79af572d333a699d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:44:55 +0000
Subject: Add an AppData file for the software center
diff --git a/transmission.spec b/transmission.spec
index 10b15d8..2279201 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -2,7 +2,7 @@
Name: transmission
Version: 2.84
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A lightweight GTK+ BitTorrent client
Group: Applications/Internet
@@ -125,6 +125,50 @@ desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications/ \
qt/%{name}-qt.desktop
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/transmission-gtk.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://forum.transmissionbt.com/viewtopic.php?f=3&t=16443
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">transmission-gtk.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ BitTorrent is a peer-to-peer file-sharing protocol that is commonly used to
+ distribute large amounts of data between multiple users.
+ </p>
+ <p>
+ Transmission is a BitTorrent client with an easy-to-use frontend on top a
+ cross-platform backend.
+ Native frontends are available for OS X and Windows, as well as command line and
+ web frontends.
+ </p>
+ <p>
+ Notable features of Transmission include Local Peer Discovery and Full Encryption,
+ Full encryption, DHTµTP, PEX and Magnet Link support.
+ </p>
+ </description>
+ <url type="homepage">http://www.transmissionbt.com/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/transmission-gtk/a.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%post common
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -186,6 +230,7 @@ fi
%files gtk -f %{name}-gtk.lang
%{_bindir}/transmission-gtk
+%{_datadir}/appdata/%{name}-gtk.appdata.xml
%{_datadir}/applications/transmission-gtk.desktop
%doc %{_mandir}/man1/transmission-gtk.*
@@ -195,6 +240,9 @@ fi
%doc %{_mandir}/man1/transmission-qt.*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.84-4
+- Add an AppData file for the software center
+
* Thu Mar 12 2015 Helio Chissini de Castro <helio at kde.org> - 2.83-3
- Compile with Qt5 now
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/transmission.git/commit/?h=f22&id=a1ef7fdf23b12d7112c895df79af572d333a699d
More information about the scm-commits
mailing list