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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:45:33 UTC 2015


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


diff --git a/heimdall.spec b/heimdall.spec
index 3acf8eb..718399e 100644
--- a/heimdall.spec
+++ b/heimdall.spec
@@ -4,7 +4,7 @@
 
 Name:           heimdall
 Version:        1.4.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Flash firmware on to Samsung Galaxy S devices
 Group:          Development/Tools
 License:        MIT
@@ -86,6 +86,39 @@ desktop-file-install \
     --dir %{buildroot}%{_datadir}/applications \
     %{SOURCE2}
 
+# 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"?>
+<!--
+EmailAddress: contact at glassechidna.com.au
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">heimdall.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>MIT</project_license>
+ <name>Heimdall</name>
+ <summary>Flash firmware onto Samsung mobile devices</summary>
+ <description>
+  <p>
+   Heimdall is a cross-platform open-source tool suite used to flash
+   firmware (aka ROMs) onto Samsung mobile devices.
+  </p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="1275" height="718">http://jorti.fedorapeople.org/appdata/heimdall.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://glassechidna.com.au/heimdall/</url>
+ <updatecontact>jorti at fedoraproject.org</updatecontact>
+</application>
+EOF
 
 %files
 %doc Linux/README LICENSE
@@ -95,9 +128,13 @@ desktop-file-install \
 %files frontend
 %doc Linux/README LICENSE
 %{_bindir}/%{name}-frontend
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.4.1-3
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list