rhughes pushed to gwget (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:44:58 UTC 2015


>From a182b3b030aa1c2354686c14d6cdd8c25006d3ea Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:34:50 +0000
Subject: Add an AppData file for the software center


diff --git a/gwget.spec b/gwget.spec
index 28e7bdd..cfe9b20 100644
--- a/gwget.spec
+++ b/gwget.spec
@@ -1,6 +1,6 @@
 Name:		gwget
 Version:	1.0.4
-Release:	13%{?dist}
+Release:	14%{?dist}
 Summary:	Graphical download manager that uses wget
 
 License:	GPLv2+
@@ -69,6 +69,40 @@ desktop-file-install \
 	--delete-original				\
 	${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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: david at alderia.com
+SentUpstream: 2014-05-27
+-->
+<application>
+  <id type="desktop">gwget.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Download manager</summary>
+  <description>
+    <p>
+      gwget is an application that allows you to manage the downloading of 
+      files from the internet. It supports the pausing and resuming of downloads,
+      can download all the accompanying files of a HTML page, and supports drag
+      and drop.
+    </p>
+  </description>
+  <url type="homepage">http://gnome.org/projects/gwget</url>
+  <screenshots>
+    <screenshot type="default">https://projects.gnome.org/gwget/main_window_p.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name}
 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
 
@@ -94,6 +128,7 @@ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 %{_sysconfdir}/gconf/schemas/gwget.schemas
 %{_datadir}/%{name}
 %{_datadir}/pixmaps/*
+%{_datadir}/appdata/*%{name}.appdata.xml
 %{_datadir}/applications/*%{name}.desktop
 %{_datadir}/dbus-1/services/org.gnome.gwget.service
 
@@ -106,6 +141,9 @@ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.4-14
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.4-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gwget.git/commit/?h=master&id=a182b3b030aa1c2354686c14d6cdd8c25006d3ea


More information about the scm-commits mailing list