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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:02:32 UTC 2015


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


diff --git a/tuxguitar.spec b/tuxguitar.spec
index fc4c2ed..d16a017 100644
--- a/tuxguitar.spec
+++ b/tuxguitar.spec
@@ -1,7 +1,7 @@
 Summary:          A multitrack tablature editor and player written in Java-SWT
 Name:             tuxguitar
 Version:          1.2
-Release:          19%{?dist}
+Release:          20%{?dist}
 URL:              http://www.tuxguitar.com.ar
 Source0:          http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.gz
 # Fedora specific build script. Accepted by upstream:
@@ -120,6 +120,51 @@ ant -f TuxGuitar/build.xml -v -d $ANT_FLAGS install
 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}
 cp -a TuxGuitar-*/jni/*.so $RPM_BUILD_ROOT%{_libdir}/%{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> -->
+<!--
+BugReportURL: https://sourceforge.net/p/tuxguitar/support-requests/8/
+SentUpstream: 2014-09-22
+-->
+<application>
+  <id type="desktop">tuxguitar.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A multitrack tablature editor and player</summary>
+  <description>
+  <p>
+    Tuxguitar is a multitrack tablature editor and player.
+    It provides the following features:
+  </p>
+  <ul>
+    <li>Tablature editor</li>
+    <li>Score Viewer</li>
+    <li>Multitrack display</li>
+    <li>Autoscroll while playing</li>
+    <li>Note duration management</li>
+    <li>Various effects (bend, slide, vibrato, hammer-on/pull-off)</li>
+    <li>Support for triplets (5,6,7,9,10,11,12)</li>
+    <li>Repeat open and close</li>
+    <li>Time signature management</li>
+    <li>Tempo management</li>
+    <li>Imports and exports gp3,gp4 and gp5 files</li>
+  </ul>
+  </description>
+  <url type="homepage">http://www.tuxguitar.com.ar/</url>
+  <screenshots>
+    <screenshot type="default">http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&amp;picid=47</screenshot>
+    <screenshot>http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&amp;picid=46</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %check
 desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
@@ -152,11 +197,15 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 %{_libdir}/%{name}
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/mime/packages/*.xml
 %{_bindir}/%{name}
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.2-20
+- Add an AppData file for the software center
+
 * Tue Feb 02 2015 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.2-19
 - Set SWT_GTK3=0 workaround for blank setting dialogs. RHBZ#1187848
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list