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

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


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


diff --git a/plotdrop.spec b/plotdrop.spec
index 911a2b1..354c43b 100644
--- a/plotdrop.spec
+++ b/plotdrop.spec
@@ -1,6 +1,6 @@
 Name:           plotdrop
 Version:        0.5.3
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        A minimal GNOME front-end to Gnuplot
 
 Group:          Applications/Engineering
@@ -33,6 +33,40 @@ make %{?_smp_mflags} PREFIX=%{_prefix}
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
 
+# 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/plotdrop/bugs/2/
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">plotdrop.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Create graphs and data visualizations</summary>
+  <description>
+    <p>
+      Plotdrop is a simple application for creating quick graphs from
+      2D datasets using the GNUPlot backend.
+      To use plotdrop, you simply drag and drop a data file from your file browser,
+      configure the options and generate your graph.
+    </p>
+  </description>
+  <url type="homepage">http://plotdrop.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://plotdrop.sourceforge.net/screenshot-0.5.jpeg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 # validate desktop file
 desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/plotdrop.desktop
 
@@ -44,6 +78,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc COPYING Changelog 
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
 %{_datadir}/%{name}/droplist.glade
@@ -51,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.5.3-14
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.3-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list