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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:48:44 UTC 2015


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


diff --git a/lingot.spec b/lingot.spec
index 6bad86d..403fbb2 100644
--- a/lingot.spec
+++ b/lingot.spec
@@ -1,6 +1,6 @@
 Name:		lingot
 Version:	0.9.1
-Release:	9%{?dist}
+Release:	10%{?dist}
 Summary:	A musical instruments tuner
 
 Group:		Applications/Multimedia
@@ -37,6 +37,56 @@ rm -rf %{buildroot}/%{_defaultdocdir}/%{name}
 %find_lang %{name}
 desktop-file-validate %{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> -->
+<!--
+BugReportURL: https://savannah.nongnu.org/bugs/?40353
+SentUpstream: 2014-10-23
+-->
+<application>
+  <id type="desktop">lingot.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Lingot</name>
+  <summary>A musical instrument tuner</summary>
+  <description>
+    <p>
+      LINGOT is a musical instrument tuner.
+      It's accurate, easy to use, and highly configurable.
+      Originally conceived to tune electric guitars, it can
+      now be used to tune other instruments.
+    </p>
+      <p>
+      It looks like an analogue tuner, with a gauge indicating
+      the relative shift to a certain note, found automatically
+      as the closest note to the estimated frequency.
+    </p>
+    <ul>
+      <li>It's free software. LINGOT is distributed under the GPL license</li>
+      <li>It's really quick and accurate, perfect for real-time microtonal tuning</li>
+      <li>Easy to use. Just plug in your instrument and run it</li>
+      <li>It can tune many musical instruments, you only need to provide the temperaments</li>
+      <li>It supports the Scala project .scl format</li>
+      <li>Highly configurable via GUI</li>
+    </ul>
+  </description>
+  <screenshots>
+    <screenshot type="default">http://www.nongnu.org/lingot/thumbnails/main.png</screenshot>
+    <screenshot>http://www.nongnu.org/lingot/thumbnails/config1.png</screenshot>
+    <screenshot>http://www.nongnu.org/lingot/thumbnails/config4.png</screenshot>
+  </screenshots>
+  <url type="homepage">http://lingot.wikidot.com/start</url>
+  <updatecontact>ibancg at gmail.com</updatecontact>
+</application>
+EOF
 
 %clean
 rm -rf %{buildroot}
@@ -46,12 +96,16 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}/
 %{_datadir}/%{name}/glade/
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.1-10
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lingot.git/commit/?h=master&id=03be43818160916ac9650454f8c676278217653b


More information about the scm-commits mailing list