rhughes pushed to gpodder (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:43:52 UTC 2015
>From 089d61f6f4d0425bbe10f2d926789bf63dfa0858 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:34:06 +0000
Subject: Add an AppData file for the software center
diff --git a/gpodder.spec b/gpodder.spec
index 6232364..22a8a22 100644
--- a/gpodder.spec
+++ b/gpodder.spec
@@ -3,7 +3,7 @@
Name: gpodder
Version: 3.8.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Podcast receiver/catcher written in Python
Group: Applications/Multimedia
@@ -54,6 +54,47 @@ desktop-file-install --delete-original \
--remove-category Network \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.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/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://bugs.gpodder.org/show_bug.cgi?id=1846
+SentUpstream: 2013-10-07
+-->
+<application>
+ <id type="desktop">gpodder.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>gPodder</name>
+ <summary>Manage and download podcasts</summary>
+ <description>
+ <p>
+ gPodder lets you manage your Podcast subscriptions, discover new content
+ and download episodes to your devices.
+ </p>
+ <p>
+ You can also take advantage of the service gpodder.net, which lets
+ you sync subscriptions, playback progress and starred episodes.
+ </p>
+ </description>
+ <url type="homepage">http://gpodder.org/</url>
+ <screenshots>
+ <screenshot type="default">http://gpodder.org/images/full_desktop.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+ <project_group>GNOME</project_group>
+</application>
+EOF
+
%find_lang %{name}
%clean
@@ -81,6 +122,7 @@ fi
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/
%{_mandir}/man1/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
#%{_datadir}/pixmaps/%{name}*.png
%{_datadir}/dbus-1/services/org.gpodder.service
@@ -88,6 +130,9 @@ fi
%{python_sitelib}/%{name}*.egg-info
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.8.3-2
+- Add an AppData file for the software center
+
* Fri Nov 21 2014 Jon Ciesla <limburgher at gmail.com> - 3.8.3-1
- 3.8.3.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gpodder.git/commit/?h=master&id=089d61f6f4d0425bbe10f2d926789bf63dfa0858
More information about the scm-commits
mailing list