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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:49:34 UTC 2015


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


diff --git a/lxmusic.spec b/lxmusic.spec
index ae652c2..3cf6461 100644
--- a/lxmusic.spec
+++ b/lxmusic.spec
@@ -1,6 +1,6 @@
 Name:           lxmusic
 Version:        0.4.4
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Lightweight XMMS2 client with simple user interface
 
 Group:          Applications/Multimedia
@@ -47,6 +47,24 @@ desktop-file-install                                       \
   ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
 %find_lang %{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"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<application>
+<id type="desktop">lxmusic.desktop</id>
+<metadata_license>CC0-1.0</metadata_license>
+<name>LXMusic</name>
+<summary>A minimalist music player for LXDE</summary>
+</application>
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -56,12 +74,16 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING README
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/lxmusic.desktop
 %{_datadir}/lxmusic
 %{_datadir}/pixmaps/lxmusic.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4.4-13
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.4-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lxmusic.git/commit/?h=master&id=1ddb679c4015a6b9afb60a5f3fee6e085bf3802c


More information about the scm-commits mailing list