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

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


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


diff --git a/Add64.spec b/Add64.spec
index be25c6c..d1c3bc7 100644
--- a/Add64.spec
+++ b/Add64.spec
@@ -1,7 +1,7 @@
 Summary:       An additive synthesizer using JACK
 Name:          Add64
 Version:       1.2.2
-Release:       6%{?dist}
+Release:       7%{?dist}
 URL:           http://sourceforge.net/projects/add64
 Source0:       http://downloads.sourceforge.net/project/add64/%{name}-%{version}.tar.bz2
 Source1:       %{name}.desktop
@@ -39,6 +39,43 @@ desktop-file-install \
   --dir %{buildroot}%{_datadir}/applications    \
     %{SOURCE1}
 
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/add64/discussion/general/thread/6ff4fec1/
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">Add64.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Additive software sound synthesizer</summary>
+  <description>
+    <p>
+      Add64 is an additive modular software synthesizer for generating sounds.
+      Unlike other software synthesizers -- that use a skeuomorphic interface of
+      knobs, sliders and buttons, Add64 displays a spectral graph and allows the
+      user to modify the oscillators and related parameters.
+    </p>
+  </description>
+  <url type="homepage">http://www.amsynth.com/add64.html</url>
+  <screenshots>
+    <screenshot type="default">http://www.amsynth.com/images/Add64-Harmonics.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
+
 %post
 update-desktop-database &> /dev/null || :
 
@@ -48,10 +85,14 @@ update-desktop-database &> /dev/null || :
 %files 
 %doc LICENSE README 
 %{_bindir}/%{name}
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/add64.png
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.2.2-7
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.2-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/Add64.git/commit/?h=master&id=2509a3cd2617dc7a7d716a3f9b20e090dfc3700e


More information about the scm-commits mailing list