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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:52:24 UTC 2015


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


diff --git a/musique.spec b/musique.spec
index f26b0c4..72aca41 100644
--- a/musique.spec
+++ b/musique.spec
@@ -1,6 +1,6 @@
 Name:           musique
 Version:        1.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A music player designed by and for people that love music
 
 Group:          Applications/Multimedia
@@ -60,6 +60,60 @@ desktop-file-install --delete-original \
     --remove-category=Music \
     %{buildroot}%{_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> -->
+<!--
+EmailAddress: flavio.tordini at gmail.com
+SentUpstream: 2013-09-05
+-->
+<application>
+  <id type="desktop">musique.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Musique does its best to stay out of the way and keep you focused on the only
+      thing that really matters: Music.
+    </p>
+    <p>
+      Musique is great for those who appreciate its efficient simplicity.
+      Consider getting it as a gift for kids and other family members that may find
+      other players too complex and cumbersome.
+    </p>
+    <ul>
+      <li>Starts fast, very lightweight and can easily handle large collections</li>
+      <li>Browse artist photos, album covers and folders too, so you can organize your music your way</li>
+      <li>Immersive Info View you can switch to when listening. It contains valuable information about the current track, album and artist. When a new song starts, it will auto-update</li>
+      <li>Automatically fixes misspellings and case in track titles, album titles and artist names, freeing you from the hassle of manually tagging your files</li>
+      <li>Musique never ever modifies your files, it stores all of its data in its own database</li>
+      <li>Supports scrobbling to Last.fm</li>
+      <li>Displays song lyrics stored inside your MP3s</li>
+      <li>Musique has just a single play queue. You can't go wrong, it's always there on the right</li>
+      <li>Supports all common audio formats</li>
+    </ul>
+  </description>
+  <url type="homepage">http://flavio.tordini.org/musique</url>
+  <!--
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/musique/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/musique/b.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/musique/c.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
+
 # There is a bug in find-lang.sh (see BZ #729336)
 # heavily borrowed from /usr/lib/rpm/find-lang.sh
 find %{buildroot} -type f -o -type l|sort|sed '
@@ -83,6 +137,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %files -f %{name}.lang
 %doc CHANGES COPYING LICENSE.LGPL TODO
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.*
 %{_datadir}/icons/hicolor/512x512/
@@ -91,6 +146,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %dir %{_datadir}/%{name}/locale
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.4-2
+- Add an AppData file for the software center
+
 * Sat Dec 20 2014 Germán A. Racca <skytux at fedoraproject.org> - 1.4-1
 - Updated to new upstream version 1.4
 - Re-created patch to use system qtsingleapplication
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list