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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:15:28 UTC 2015


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


diff --git a/alexandria.spec b/alexandria.spec
index e2c4b72..8dbd677 100644
--- a/alexandria.spec
+++ b/alexandria.spec
@@ -15,7 +15,7 @@
 
 Name:		alexandria
 Version:	%{majorver}
-Release:	%{rel}%{?dist}
+Release:	%{rel}%{?dist}.1
 Summary:	Book collection manager
 
 Group:		Applications/Productivity
@@ -230,6 +230,48 @@ desktop-file-install \
 %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps/
 %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/%{name}.*
 
+# 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"?>
+<!--
+BugReportURL: https://github.com/mvz/alexandria-book-collection-manager/issues/2
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">alexandria.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Manage your physical book collection</summary>
+  <description>
+    <p>
+      Alexandria is an application that allows you to manage your book library.
+      It lets you build and keep a detailed database (on your local machine) of
+      information about books you own and have read.
+    </p>
+    <p>
+      Alexandria also allows you to rate books, note when you have read them,
+      and even track who you have loaned books out to.
+      It also has interfaces with a online book information sources so you don’t
+      have to type in all the information about a book, and also provides book
+      cover art for many books.
+    </p>
+  </description>
+  <url type="homepage">http://alexandria.rubyforge.org/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/alexandria/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
+
 %find_lang %{name}
 
 %pre
@@ -281,10 +323,14 @@ exit 0
 %{_datadir}/omf/%{name}/
 %{_datadir}/sounds/%{name}/
 
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/*%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.6.9-10.1
+- Add an AppData file for the software center
+
 * Mon Jan 19 2015 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.6.9-10
 - Remove deprecated Config:: usage yet more
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list