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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:05:54 UTC 2015


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


diff --git a/zynaddsubfx.spec b/zynaddsubfx.spec
index 75b246b..f3629fc 100644
--- a/zynaddsubfx.spec
+++ b/zynaddsubfx.spec
@@ -1,7 +1,7 @@
 Summary:        Real-time software synthesizer
 Name:           zynaddsubfx
 Version:        2.4.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 # Source is a collective work, distributed by
 License:        GPLv2 and GPLv2+
 Group:          Applications/Multimedia
@@ -102,6 +102,20 @@ make %{?_smp_mflags} -C ExternalPrograms/Spliter
 %install
 make install DESTDIR=%{buildroot} -C %{_target_platform}
 
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/zynaddsubfx-jack.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>zynaddsubfx-jack.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">zynaddsubfx-alsa.desktop</value>
+  </metadata>
+</component>
+EOF
+
 mkdir -p %{buildroot}%{_datadir}/%{name}
 
 cp -rp instruments/examples instruments/banks %{buildroot}%{_datadir}/%{name}
@@ -120,6 +134,7 @@ rm -fr %{buildroot}%{_datadir}/doc/%{name}/
 
 %files
 %{_bindir}/*
+%{_datadir}/appdata/%{name}*.appdata.xml
 %{_datadir}/applications/%{name}*.desktop
 %{_datadir}/pixmaps/zynaddsubfx.svg
 
@@ -131,6 +146,9 @@ rm -fr %{buildroot}%{_datadir}/doc/%{name}/
 %{_libdir}/dssi/*.so
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.4.4-4
+- Add an AppData file for the software center
+
 * Thu Feb 19 2015 Rex Dieter <rdieter at fedoraproject.org> 2.4.4-3
 - rebuild (fltk)
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list